/* =============================================================================
   Sea Star Logistics (SSA) - giao diện riêng của site trên Nexus CMS
   Phục vụ qua /site-theme.css (BR-CMS-THEMECSS-01). Quy ước: docs/wiki/guides/cms-customer-site.md
   Màu thương hiệu: navy #02338F · vàng #F8AF0A · xanh sóng #1BA9EC
   Mục lục:
     1. Biến màu          6. Vì sao chọn SSA      11. Trang con (rich text)
     2. Thanh trên cùng   7. Quy trình 4 bước     12. Chân trang
     3. Header            8. Tin tức              13. Bài viết
     4. Tiêu đề khối      9. Khách hàng           14. Chuyển động
     5. Hero + dịch vụ   10. Kêu gọi báo giá      15. Responsive
   ============================================================================= */


/* 1. Biến màu ---------------------------------------------------------------- */
:root {
    --ssa-mid: #1F4EA6;     /* header, chân trang (nhạt hơn thanh địa chỉ 2 tông) */
    --ssa-navy: #02338F;
    --ssa-deep: #011E57;
    --ssa-gold: #F8AF0A;
    --ssa-sky: #1BA9EC;
    --ssa-ink: #1B2540;
    --ssa-muted: #4A5573;
    --ssa-line: #E3E8F2;
    --ssa-radius: 16px;
    --ssa-ease: cubic-bezier(.16, 1, .3, 1);
}
html {
    scroll-padding-top: 120px;
}


/* 2. Thanh địa chỉ + header luôn ghim trên cùng khi cuộn ---------------------- */
.site-topbar {
    position: sticky;
    top: 0;
    z-index: 101;
    height: 36px;
    overflow: hidden;
}
.site-topbar .topbar-container {
    height: 36px;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}


/* 3. Header nền xanh, logo chữ trắng, nút vàng ------------------------------- */
.site-header,
html[data-theme="dark"] .site-header,
body.layout-dark-mode .site-header {
    top: 36px;
    background: var(--ssa-mid);
    border-bottom: 0;
    box-shadow: 0 6px 18px rgba(2, 51, 143, .18);
}
.site-header .site-logo {
    display: inline-block;
    width: 168px;
    height: 45px;
    background: url(/uploads/cms/site-ssa/logo-ssa-h2-light.png) left center / contain no-repeat;
}
.site-header .site-logo svg,
.site-footer .site-logo svg {
    display: none;
}
.site-header .site-logo span {      /* tên site chỉ dành cho trình đọc màn hình */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.site-nav a {
    position: relative;
    font-weight: 600;
}
.site-header .site-nav > ul > li > a {
    color: rgba(255, 255, 255, .88);
}
.site-header .site-nav > ul > li > a:hover,
.site-header .site-nav > ul > li > a.active {
    color: #fff;
}
.site-nav a:not(.nav-parent)::after {   /* gạch vàng dưới mục menu */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--ssa-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.site-nav a:not(.nav-parent):hover::after,
.site-nav a:not(.nav-parent).active::after {
    transform: scaleX(1);
}
.site-header .theme-toggle-btn {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}
.site-header .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, .2);
}
.site-header .theme-toggle-btn svg {
    stroke: currentColor;
}
.site-header .mobile-menu-toggle,
.site-header .nav-toggle,
.site-header .menu-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}
.site-header .mobile-menu-toggle span,
.site-header .nav-toggle span,
.site-header .menu-toggle span {
    background: #fff;
}
.site-header .lang-switcher {           /* VI | EN cùng kiểu nút Ctrl+K / Sáng-Tối */
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    height: 36px;
    padding: 0 .7rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    font-size: .8rem;
    font-weight: 700;
}
.site-header .lang-switcher .lang-link {
    color: rgba(255, 255, 255, .62);
}
.site-header .lang-switcher .lang-link.active,
.site-header .lang-switcher a.lang-link:hover {
    color: #fff;
}
.site-header .lang-switcher .lang-sep {
    color: rgba(255, 255, 255, .35);
}
.site-header .header-actions > a.header-cta {    /* nút "Nhận báo giá" */
    background: var(--ssa-gold);
    border-color: var(--ssa-gold);
    color: #0B1F4D;
    font-weight: 700;
    border-radius: 10px;
}


/* 4. Tiêu đề khối: gạch vàng phía trên ----------------------------------------- */
.block-features {
    padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}
.block-title {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.2;
    margin: 0 0 .6rem;
    color: var(--ssa-ink);
}
.block-title::before,
.logo-bar-label::before {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    border-radius: 4px;
    background: var(--ssa-gold);
    margin: 0 auto .9rem;
}
.block-subtitle {
    margin: 0 auto 2.25rem;
    font-size: 1.05rem;
    color: var(--ssa-muted);
}
.feature-icon:empty,
.feature-icon-wrap:empty {
    display: none;
}


/* 5a. Hero: ảnh tràn màn hình + lớp phủ navy + sóng -------------------------- */
.block-hero.block-hero--split {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ssa-deep);
    border: 0;
    padding: clamp(5rem, 9vw, 8rem) 1.5rem clamp(7.5rem, 11vw, 9.5rem);
    text-align: left;
}
.block-hero .hero-blueprint-grid {
    display: none;
}
.block-hero .hero-split-container {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    max-width: 1200px;
}
.block-hero .hero-visual {          /* ảnh nền phủ cả khối, không chạy hiệu ứng hiện dần của CMS */
    position: absolute;
    inset: 0;
    z-index: -2;
    margin: 0;
    max-width: none;
    opacity: 1;
    transform: none;
    animation: none;
}
.block-hero .hero-product-wrapper {
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.block-hero .hero-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}
.block-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(1, 22, 70, .95) 0%, rgba(2, 51, 143, .82) 42%, rgba(2, 51, 143, .2) 100%);
}
.block-hero::after {                /* 2 lớp sóng trắng + xanh ở đáy hero */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 96px;
    z-index: 0;
    pointer-events: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C360 0 360 100 720 50 S1080 100 1440 50 V100 H0Z' fill='%23ffffff'/%3E%3C/svg%3E") 0 100% / 1440px 62px repeat-x,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C360 0 360 100 720 50 S1080 100 1440 50 V100 H0Z' fill='%231BA9EC' fill-opacity='.55'/%3E%3C/svg%3E") 0 100% / 1440px 92px repeat-x;
}
.block-hero .hero-copy {
    max-width: 640px;
    color: #fff;
}
.block-hero .hero-title {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
    font-size: clamp(2.2rem, 4.8vw, 3.7rem);
    line-height: 1.07;
    letter-spacing: -.01em;
}
.block-hero .hero-subtitle {
    color: #D5DEF2;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.block-hero .hero-badge {
    background: rgba(248, 175, 10, .14);
    border: 1px solid rgba(248, 175, 10, .45);
    color: #FFD36B;
}
.block-hero .hero-badge svg,
.block-hero .btn-hero-secondary svg {
    display: none;
}
.block-hero .btn-hero-primary {
    background: var(--ssa-gold);
    border-color: var(--ssa-gold);
    color: var(--ssa-ink);
    box-shadow: 0 10px 30px rgba(248, 175, 10, .35);
}
.block-hero .btn-hero-secondary {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    backdrop-filter: blur(4px);
}
.block-hero .hero-trust {
    color: #A9BCE6;
}


/* 5b. Thẻ dịch vụ: biểu tượng tròn navy, nổi lên khi rê chuột -------------- */
/* (khối features thường; khối "Vì sao" dùng .bg-slate-light, "Quy trình" dùng .bg-primary-teal) */
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem;
}
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .feature-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card, #fff);
    border: 1px solid var(--ssa-line);
    border-radius: var(--ssa-radius);
    padding: 1.6rem 1.4rem;
    transition: transform .35s var(--ssa-ease), box-shadow .35s, border-color .35s;
}
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .feature-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ssa-navy), var(--ssa-sky), var(--ssa-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s ease;
}
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(2, 51, 143, .16);
    border-color: transparent;
}
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .feature-card:hover::after {
    transform: scaleX(1);
}
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .feature-icon {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--ssa-navy);
    font-size: 0;
    margin-bottom: 1.1rem;
    transition: background .35s, transform .45s var(--ssa-ease);
}
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .feature-icon::before {   /* icon vẽ bằng mask (biến --ic) */
    content: "";
    position: absolute;
    inset: 15px;
    background: #fff;
    -webkit-mask: var(--ic) center / contain no-repeat;
    mask: var(--ic) center / contain no-repeat;
    transition: background .35s;
}
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .feature-card:hover .feature-icon {
    background: var(--ssa-gold);
    transform: rotate(-8deg) scale(1.06);
}
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .feature-card:hover .feature-icon::before {
    background: var(--ssa-navy);
}
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .feature-name {
    font-size: 1.1rem;
    margin: 0 0 .5rem;
    color: var(--ssa-ink);
}
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .feature-desc {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--ssa-muted);
    margin: 0;
}
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .feature-desc a {
    display: inline-block;
    margin-top: .5rem;
    font-weight: 700;
    color: var(--ssa-navy);
    text-decoration: none;
}
/* Thẻ không có biểu tượng (Tầm nhìn, Sứ mệnh, Liên hệ…): tiêu đề navy + gạch vàng */
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .features-grid:not(:has(.feature-icon:not(:empty))) {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .feature-card:has(.feature-icon:empty) .feature-name {
    font-size: 1.2rem;
    color: var(--ssa-navy);
}
.block-features:not(.bg-slate-light):not(.bg-primary-teal) .feature-card:has(.feature-icon:empty) .feature-name::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: var(--ssa-gold);
    margin-top: .6rem;
}
.feature-desc ul {
    margin: .2rem 0 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.feature-desc li {
    line-height: 1.55;
}
/* Icon từng thẻ dịch vụ (thứ tự thẻ: hải quan, đường biển, hàng không, nội địa, kho bãi) */
.features-grid .feature-card:nth-child(1) .feature-icon {
    --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='m9 15 2 2 4-4'/%3E%3C/svg%3E");
}
.features-grid .feature-card:nth-child(2) .feature-icon {
    --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1 .6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1'/%3E%3Cpath d='M19.38 20A11.6 11.6 0 0 0 21 14l-9-4-9 4c0 2.9.94 5.34 2.81 7.76'/%3E%3Cpath d='M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6'/%3E%3Cpath d='M12 10v4M12 2v3'/%3E%3C/svg%3E");
}
.features-grid .feature-card:nth-child(3) .feature-icon {
    --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z'/%3E%3C/svg%3E");
}
.features-grid .feature-card:nth-child(4) .feature-icon {
    --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E");
}
.features-grid .feature-card:nth-child(5) .feature-icon {
    --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z'/%3E%3Cpath d='M6 18h12M6 14h12'/%3E%3Crect x='6' y='10' width='12' height='12'/%3E%3C/svg%3E");
}


/* 6. Vì sao chọn Seastar: số thứ tự vàng lớn ---------------------------------- */
.block-features.bg-slate-light {
    background: linear-gradient(180deg, #F4F7FC, #EAF0FA);
}
.block-features.bg-slate-light .features-grid {
    counter-reset: why;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.block-features.bg-slate-light .feature-card {
    counter-increment: why;
    position: relative;
    background: var(--bg-card, #fff);
    border: 0;
    border-radius: var(--ssa-radius);
    padding: 1.5rem 1.4rem;
    box-shadow: 0 6px 20px rgba(2, 51, 143, .06);
    transition: transform .35s var(--ssa-ease), box-shadow .35s;
}
.block-features.bg-slate-light .feature-card::before {
    content: counter(why, decimal-leading-zero);
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ssa-gold);
    margin-bottom: .6rem;
}
.block-features.bg-slate-light .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(2, 51, 143, .14);
}
.block-features.bg-slate-light .feature-name {
    font-size: 1.08rem;
    margin: 0 0 .4rem;
    color: var(--ssa-ink);
}
.block-features.bg-slate-light .feature-desc {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--ssa-muted);
    margin: 0;
}


/* 7. Quy trình 4 bước: nền navy, vòng số vàng + đường nối --------------------- */
.block-features.bg-primary-teal {
    position: relative;
    /* !important: theme.css của CMS đặt .bg-primary-teal { background-color: #01757A !important } */
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(27, 169, 236, .25), transparent 60%),
        linear-gradient(135deg, var(--ssa-deep), var(--ssa-navy)) !important;
    color: #fff;
    border: 0;
}
.block-features.bg-primary-teal .block-title,
.block-features.bg-primary-teal .feature-name {
    color: #fff;
}
.block-features.bg-primary-teal .block-subtitle,
.block-features.bg-primary-teal .feature-desc {
    color: #C7D2EA;
}
.block-features.bg-primary-teal .features-grid {
    position: relative;
    counter-reset: step;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
}
.block-features.bg-primary-teal .feature-card {
    counter-increment: step;
    position: relative;
    background: transparent;
    border: 0;
    padding: 0 .5rem;
    text-align: center;
}
.block-features.bg-primary-teal .feature-card::before {
    content: counter(step);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--ssa-gold);
    color: var(--ssa-ink);
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 0 0 8px rgba(248, 175, 10, .18);
}
.block-features.bg-primary-teal .feature-card:not(:last-child)::after {   /* đường nối nét đứt giữa các bước */
    content: "";
    position: absolute;
    top: 32px;
    left: calc(50% + 44px);
    width: calc(100% - 88px + 1.5rem);
    border-top: 2px dashed rgba(255, 255, 255, .35);
}
.block-features.bg-primary-teal .features-grid:has(> .feature-card:nth-child(5)) .feature-card::after {
    display: none;                  /* 5 thẻ = danh sách giá trị, không phải các bước */
}
.block-features.bg-primary-teal .feature-name {
    font-size: 1.1rem;
    margin: 0 0 .4rem;
}


/* 8. Tin tức: thẻ bo góc, ảnh phóng nhẹ khi rê chuột ------------------------- */
.block-features:has(.blog-grid) {
    padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}
.blog-grid .blog-card,
.blog-card {
    border-radius: var(--ssa-radius);
    overflow: hidden;
    transition: transform .35s var(--ssa-ease), box-shadow .35s;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(2, 51, 143, .14);
}
.blog-image {
    overflow: hidden;
}
.blog-image img {
    transition: transform .7s var(--ssa-ease);
}
.blog-card:hover .blog-image img {
    transform: scale(1.07);
}
.blog-card .blog-more {
    color: var(--ssa-navy);
}
.blog-category-badge {
    background: rgba(2, 51, 143, .08);
    color: var(--ssa-navy);
}


/* 9. Khách hàng & đối tác: logo màu, thẻ trắng ------------------------------- */
.block-logo-bar {
    padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
    background: var(--bg-card, #fff);
}
.logo-bar-label {
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    font-weight: 800;
    color: var(--ssa-ink);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 1.6rem;
}
.logo-bar-grid {
    gap: 1.1rem;
}
.logo-bar-grid .logo-bar-item {
    width: 190px;
    height: 108px;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--ssa-line);
    border-radius: var(--ssa-radius);
    filter: none;
    opacity: 1;
    transition: transform .35s var(--ssa-ease), box-shadow .35s;
}
.logo-bar-grid .logo-bar-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(2, 51, 143, .14);
}
.logo-bar-grid .logo-bar-item img {
    height: 68px;
    max-height: 68px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
}


/* 10. Kêu gọi báo giá: nền ảnh tàu, nút vàng có ánh sáng chạy ---------------- */
/* !important: khối CTA của CMS đặt style inline (nền, viền, padding) nên chỉ ghi đè được bằng !important */
.block-cta-banner {
    padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem !important;
}
.cta-banner-inner {
    background:
        linear-gradient(100deg, rgba(1, 22, 70, .96) 0%, rgba(2, 51, 143, .82) 55%, rgba(2, 51, 143, .45) 100%),
        url(/uploads/cms/site-ssa/cta-ship-bridge.jpg) center / cover no-repeat !important;
    border: 0 !important;
    border-radius: 20px !important;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem) !important;
    box-shadow: 0 24px 60px rgba(1, 22, 70, .28);
}
.cta-banner-inner a {
    border-radius: 10px !important;
}
.cta-banner-inner .btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--ssa-gold) !important;
    border-color: var(--ssa-gold) !important;
    color: var(--ssa-ink) !important;
}
.cta-banner-inner .btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
    transform: skewX(-20deg);
}


/* 11. Trang con (khối rich text): màu chữ + gạch vàng trước h2 ---------------- */
/* (khoảng cách đọc do CMS lo: BR-CMS-PROSE-01) */
.rich-text-content .pain-section-container,
.custom-html-block .pain-section-container {
    max-width: 920px;
    margin: 0 auto;
}
.pain-section-container h1 {
    color: var(--ssa-navy);
    margin: 0 0 1.2rem;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}
.pain-section-container h2 {
    color: var(--ssa-ink);
    border-left: 0;
    margin: 1.6rem 0 .6rem;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}
.pain-section-container h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--ssa-gold);
    margin: 0 0 .55rem;
}
.pain-section-container h3 {
    margin: 1.3rem 0 .5rem;
}
.pain-section-container p {
    margin: 0 0 .8rem;
    line-height: 1.7;
}
.pain-section-container ul {
    padding-left: 1.25rem;
    margin: .2rem 0 1rem;
}
.pain-section-container li {
    margin: .25rem 0;
    line-height: 1.65;
}


/* 12. Chân trang: nền xanh, sóng phía trên, tiêu đề vàng --------------------- */
.site-footer,
html[data-theme="dark"] .site-footer,
body.layout-dark-mode .site-footer {
    position: relative;
    background: var(--ssa-mid);
    color: #E6ECF8;
    border: 0;
    padding: 6rem 1.5rem 1.5rem;
    margin-top: 1.5rem;
}
.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 64px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1440 V50 C1080 100 1080 0 720 50 S360 0 0 50 Z' fill='%23ffffff'/%3E%3C/svg%3E") 0 0 / 1440px 64px repeat-x;
}
.site-footer .footer-container {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.2rem;
}
.site-footer .site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-footer .site-logo::before {   /* logo tròn nền trắng */
    content: "";
    flex: none;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff url(/uploads/cms/site-ssa/logo-ssa-icon2.png) center / 48px no-repeat;
    box-shadow: 0 0 0 4px rgba(248, 175, 10, .35);
}
.site-footer .site-logo span {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}
.site-footer .footer-desc {
    display: none;
}
.site-footer .footer-slogan {
    color: #FFD36B;
    font-weight: 600;
    font-style: italic;
    margin-top: .9rem;
    line-height: 1.55;
}
.site-footer .footer-links h4 {
    color: var(--ssa-gold);
    font-size: .85rem;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}
.site-footer .footer-links ul {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
.site-footer .footer-links a {
    color: #E6ECF8;
    text-decoration: none;
    font-size: .95rem;
    line-height: 1.5;
    transition: color .2s, padding-left .25s;
}
.site-footer .footer-links a:hover {
    color: #fff;
    padding-left: 6px;
}
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: #D3DDF2;
}
.site-footer .footer-legal {
    color: #D3DDF2;
}
.site-footer .footer-bottom a {
    color: #FFD36B;
    font-weight: 600;
    text-decoration: none;
}
.site-footer .footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}


/* 13. Bài viết: dòng nguồn tham khảo cuối bài ------------------------------- */
.post-sources {
    font-size: .875rem;
    color: #64748B;
    border-top: 1px solid #E2E8F0;
    padding-top: 12px;
    margin-top: 28px;
}
.post-sources a {
    color: var(--ssa-navy);
}


/* 14. Chuyển động (chỉ khi người dùng không chọn giảm chuyển động) ----------- */
@keyframes ssaKen {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to   { transform: scale(1.14) translate3d(-2%, -1%, 0); }
}
@keyframes ssaWave {
    from { background-position: 0 100%, 0 100%; }
    to   { background-position: -1440px 100%, 1440px 100%; }
}
@keyframes ssaUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}
@keyframes ssaShine {
    0%, 60% { left: -60%; }
    100%    { left: 130%; }
}
@keyframes ssaPulse {
    0%, 100% { box-shadow: 0 0 0 8px rgba(248, 175, 10, .18); }
    50%      { box-shadow: 0 0 0 14px rgba(248, 175, 10, .06); }
}
@media (prefers-reduced-motion: no-preference) {
    .block-hero .hero-product-img { animation: ssaKen 26s ease-in-out infinite alternate; }
    .block-hero::after { animation: ssaWave 24s linear infinite; }
    .block-hero .hero-copy > * { animation: ssaUp .9s var(--ssa-ease) both; }
    .block-hero .hero-copy > *:nth-child(2) { animation-delay: .12s; }
    .block-hero .hero-copy > *:nth-child(3) { animation-delay: .24s; }
    .block-hero .hero-copy > *:nth-child(4) { animation-delay: .36s; }
    .block-hero .hero-copy > *:nth-child(5) { animation-delay: .48s; }
    .cta-banner-inner .btn-primary::after { animation: ssaShine 3.2s ease-in-out infinite; }
    .block-features.bg-primary-teal .feature-card::before { animation: ssaPulse 2.6s ease-in-out infinite; }
    .block-features.bg-primary-teal .feature-card:nth-child(2)::before { animation-delay: .4s; }
    .block-features.bg-primary-teal .feature-card:nth-child(3)::before { animation-delay: .8s; }
    .block-features.bg-primary-teal .feature-card:nth-child(4)::before { animation-delay: 1.2s; }
    .features-grid .feature-card:nth-child(2),
    .blog-grid .blog-card:nth-child(2) { --reveal-delay: 90ms; }
    .features-grid .feature-card:nth-child(3),
    .blog-grid .blog-card:nth-child(3) { --reveal-delay: 180ms; }
    .features-grid .feature-card:nth-child(4) { --reveal-delay: 270ms; }
    .features-grid .feature-card:nth-child(5) { --reveal-delay: 360ms; }
    @supports (animation-timeline: view()) {
        .logo-bar-item,
        .block-title,
        .block-subtitle,
        .logo-bar-label,
        .cta-banner-inner {
            animation: ssaUp linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }
    }
}


/* 15. Responsive -------------------------------------------------------------- */
@media (min-width: 900px) {
    /* 6 thẻ (trang Liên hệ): 3 cột x 2 hàng */
    .block-features:not(.bg-slate-light):not(.bg-primary-teal) .features-grid:has(> .feature-card:nth-child(6)):not(:has(> .feature-card:nth-child(7))) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 901px) and (max-width: 1079px) {
    .site-header .site-logo {
        width: 140px;
        height: 38px;
    }
}
@media (max-width: 900px) {
    .site-footer .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .site-footer .footer-container {
        grid-template-columns: minmax(0, 1fr);
    }
    .block-features.bg-primary-teal .feature-card::after {
        display: none;
    }
    .site-header .site-logo {
        width: 150px;
        height: 40px;
    }
}