/* ============================================================================
    Modern Design System - Ampcore
    Color Scheme: Logo-matched Blue + Charcoal Palette
    ============================================================================ */

:root {
    /* Primary Colors - logo matched */
    --primary-purple: #169FDA;  /* Ampcore Logo Blue */
    --primary-teal: #169FDA;    /* Unified Primary Action */
    --dark-purple: #2F3233;     /* Logo Charcoal */
    --light-purple: #72C2E8;    /* Soft Brand Blue */
    
    /* Secondary Colors */
    --accent-teal: #727D83;     /* Supporting Steel Gray */
    --light-teal: #F2F7FA;      /* Soft Blue-Gray Background */
    --dark-teal: #2F3233;       /* Deep Charcoal */
    
    /* Neutral Colors - Modern Slate */
    --dark-gray: #0F172A;       /* Slate 900 - Rich Dark */
    --medium-gray: #475569;     /* Slate 600 - Readable Gray */
    --light-gray: #F8FAFC;      /* Slate 50 - Soft White */
    --white: #FFFFFF;
    
    /* Success, Warning, Error */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Typography */
    --font-family: 'Poppins', 'Montserrat', sans-serif;
    --font-sans: 'Poppins', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 32px rgba(0,0,0,0.25);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   GLOBAL STYLES
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family) !important;
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-teal);
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark-gray);
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.5px;
    color: var(--dark-gray);
}

h2 {
    font-size: 2.2rem;
    letter-spacing: -0.3px;
    color: var(--dark-gray);
}

h3 {
    font-size: 1.6rem;
    letter-spacing: -0.2px;
    color: var(--dark-gray);
}

h4 {
    font-size: 1.3rem;
    color: var(--dark-gray);
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 0.95rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--medium-gray);
    font-size: 1rem;
    line-height: 1.7;
}

.text-muted {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.text-small {
    font-size: 0.85rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Primary Button */
.btn-primary {
    background: var(--primary-purple);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--light-gray);
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background-color: var(--primary-purple);
    color: var(--white);
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
}

.btn-outline:hover {
    background-color: var(--light-teal);
    border-color: var(--dark-teal);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.05rem;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.85rem;
}

/* ============================================================================
   CONTAINER & LAYOUT
   ============================================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.modern-grid-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.modern-grid-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.modern-grid-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.modern-grid-row.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Keep Bootstrap row behavior intact for existing pages */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
}

/* Bootstrap-like grid compatibility for templates using col-* classes */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    margin-left: calc(var(--bs-gutter-x) * -0.5);
}

.row > * {
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
}

.col-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 576px) {
    .col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-sm-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }

    .col-sm-9 {
        flex: 0 0 auto;
        width: 75%;
    }

    .col-sm-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }

    .offset-md-2 {
        margin-left: 16.66666667%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-lg-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }

    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-lg-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

@media (max-width: 768px) {
    .modern-grid-row.cols-2,
    .modern-grid-row.cols-3,
    .modern-grid-row.cols-4 {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
}

/* ============================================================================
   AMPCORE PAGE UTILITIES
   ============================================================================ */

.page-hero {
    background: linear-gradient(135deg, #1a2a4a 0%, #169fda 100%);
    padding: 60px 0 50px;
    color: #fff;
}

.page-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #e0e8ff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.page-hero-title {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0;
}

.page-soft {
    background: #f6f8ff;
}

.page-cta {
    background: #f6f8ff;
    padding: 50px 0;
    text-align: center;
}

.page-cta h2 {
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 12px;
}

.page-cta p {
    color: #555;
    margin-bottom: 28px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.page-cta-dark {
    background: linear-gradient(135deg, #1a2a4a 0%, #169fda 100%);
    color: #fff;
    text-align: center;
    padding: 50px 0;
}

.page-cta-dark h2,
.page-cta-dark h3 {
    color: #fff;
}

.page-cta-dark p {
    color: rgba(255, 255, 255, 0.85);
}

.stats-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 48px;
    justify-content: center;
}

.stat-chip {
    background: linear-gradient(135deg, #0f2044 0%, #1a3a6e 100%);
    border: 1px solid rgba(22, 159, 218, 0.25);
    border-radius: 16px;
    padding: 28px 36px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(10, 30, 72, 0.18);
    min-width: 160px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat-chip:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(10, 30, 72, 0.26);
}

.stat-chip-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #72c2e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-chip-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.media-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* ============================================================================
   HOME LAYOUT (IDESIGN-INSPIRED)
   ============================================================================ */

.home-shell {
    padding: 4rem 0 2rem;
    background: #ffffff;
}

.home-shell-hero {
    background: linear-gradient(135deg, #1a2a4a 0%, #2053c5 100%);
    color: #fff;
    padding: 70px 0 60px;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.home-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-purple);
    background: rgba(32, 83, 197, 0.1);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.home-eyebrow-light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.home-title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.home-title-light {
    color: #fff;
}

.home-subtitle {
    font-size: 1.05rem;
    max-width: 620px;
}

.home-subtitle-light {
    color: rgba(255, 255, 255, 0.9);
}

.home-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.home-micro-note {
    margin-top: 0.9rem;
    color: #575757;
    font-size: 0.92rem;
}

.home-micro-note-light {
    color: rgba(255, 255, 255, 0.75);
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.btn-outline-light:hover {
    border-color: #fff;
    color: #1a2a4a;
    background: #fff;
}

.home-image-frame {
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.home-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    transform: scale(1);
}

.home-image-frame:hover .home-cover-image {
    transform: scale(1.03);
}

.home-center-block {
    text-align: center;
    margin-bottom: 30px;
}

.home-center-block-spaced {
    margin-top: 30px;
    margin-bottom: 0;
}

.home-why-image {
    max-width: 500px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 16px;
}

.home-about-cta {
    margin-top: 16px;
}

.home-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(10,25,60,0.72) 0%, rgba(10,25,60,0) 100%);
    font-size: 12px;
    color: #e8edf7;
    letter-spacing: 0.02em;
    border-radius: 0 0 10px 10px;
    pointer-events: none;
}
.caption-icon {
    margin-right: 5px;
    font-style: normal;
}

.client-logo-card {
    padding: 10px;
    background: #fff;
}

.client-logo-image {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.home-cert-strip {
    background: linear-gradient(135deg, #0b1a3d 0%, #122866 60%, #0d2257 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
/* ===== DEWA / Guide Pages ===== */
.guide-page-bg { background: #f6f9ff; }
.guide-container { max-width: 960px; }

.guide-block {
    margin-bottom: 52px;
}

.guide-heading {
    font-size: 1.45rem;
    font-weight: 800;
    color: #122866;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #dce8ff;
}

.guide-lead {
    color: #4e5d75;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* Trigger cards */
.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}
.guide-trigger-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #dce8ff;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 0.92rem;
    color: #2a3f6e;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(18,47,96,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.guide-trigger-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(18,47,96,0.1);
}
.guide-trigger-icon { font-size: 1.5rem; flex-shrink: 0; }

/* Step-by-step */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.guide-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    padding-bottom: 28px;
}
.guide-step:last-child { padding-bottom: 0; }
.guide-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: #dce8ff;
}
.guide-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2053c5;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(32,83,197,0.28);
    position: relative;
    z-index: 1;
}
.guide-step-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #122866;
    margin-bottom: 4px;
    padding-top: 8px;
}
.guide-step-body p {
    color: #4e5d75;
    font-size: 0.92rem;
    line-height: 1.75;
    margin: 0;
}

/* Checklist */
.guide-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}
.guide-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2eeff;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 0.92rem;
    color: #2a3f6e;
    line-height: 1.5;
}
.guide-check-icon {
    color: #1aaa55;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Timeline table */
.guide-timeline-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dce8ff;
    box-shadow: 0 4px 14px rgba(18,47,96,0.06);
}
.guide-timeline-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    padding: 13px 18px;
    gap: 12px;
    font-size: 0.9rem;
    color: #3a4f70;
    border-bottom: 1px solid #eef3ff;
    background: #fff;
    transition: background 0.2s;
}
.guide-timeline-row:last-child { border-bottom: none; }
.guide-timeline-row:not(.guide-timeline-header):hover { background: #f0f6ff; }
.guide-timeline-header {
    background: #2053c5;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mistakes */
.guide-mistakes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.guide-mistake-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff8f0;
    border: 1px solid #fde0b0;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.92rem;
    color: #4e3b1a;
    line-height: 1.65;
}
.guide-mistake-icon {
    color: #f59e0b;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Guide CTA box */
.guide-cta-box {
    background: linear-gradient(135deg, #0f2050 0%, #2053c5 100%);
    border-radius: 16px;
    padding: 40px 36px;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
}
.guide-cta-box h3 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.guide-cta-box p {
    color: rgba(220,232,255,0.9);
    margin-bottom: 24px;
    font-size: 1rem;
}
.guide-cta-box .home-cta-row { justify-content: center; }

@media (max-width: 600px) {
    .guide-timeline-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .guide-timeline-header div:not(:first-child) { display: none; }
}

/* Footer ISO logo hover */
.footer-iso-logo {
    display: block;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), filter 0.35s ease;
    cursor: default;
}
.footer-iso-logo:hover {
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 8px 16px rgba(60,120,255,0.35));
}

.home-cert-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(60,120,255,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.home-cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    text-align: center;
}

@keyframes cert-fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.home-cert-item {
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 32px 22px 28px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    cursor: default;
}
.home-cert-item.cert-visible {
    animation: cert-fade-up 0.55s ease forwards;
}
.home-cert-item:nth-child(1) { animation-delay: 0s; }
.home-cert-item:nth-child(2) { animation-delay: 0.1s; }
.home-cert-item:nth-child(3) { animation-delay: 0.2s; }
.home-cert-item:nth-child(4) { animation-delay: 0.3s; }

.home-cert-item:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(100,160,255,0.4);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(100,160,255,0.2);
}

.home-cert-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 14px;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.home-cert-item:hover .home-cert-icon {
    transform: scale(1.2) rotate(-4deg);
}

.home-cert-item h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.home-cert-item p {
    color: rgba(200,218,255,0.85);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.home-cta-row-center {
    justify-content: center;
}

.photo-slot {
    width: 100%;
    border: 2px dashed #9ab1dc;
    border-radius: 14px;
    color: #2f3233;
    background: #f2f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    padding: 1rem;
}

.photo-slot-xl { min-height: 380px; }
.photo-slot-lg { min-height: 320px; }
.photo-slot-sm { min-height: 86px; }

.overlap-card {
    position: relative;
    border: none !important;
    border-radius: 18px;
    overflow: visible !important;
    background: transparent !important;
    isolation: isolate;
    transition: transform 220ms ease;
}

.overlap-tilt-left {
    transform: rotate(-2.8deg) translateY(10px) translateX(6px);
}

.overlap-tilt-right {
    transform: rotate(2.4deg) translateY(14px) translateX(-4px);
}

.overlap-card::before {
    content: '';
    position: absolute;
    inset: 14px -14px -14px 14px;
    border-radius: 18px;
    background: linear-gradient(140deg, rgba(32, 83, 197, 0.16) 0%, rgba(24, 167, 198, 0.22) 100%);
    z-index: 1;
}

.overlap-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #d7e3f6;
    z-index: 2;
}

.overlap-card img {
    position: relative;
    z-index: 3;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 34px rgba(17, 24, 39, 0.16);
}

.photo-slot-avatar {
    width: 90px;
    height: 90px;
    min-height: unset;
    border-radius: 50%;
    margin-bottom: 1rem;
    padding: 0;
    border: none;
    background: none;
    overflow: hidden;
}

.home-strip {
    padding-top: 0;
}

.home-strip-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #4d4d4d;
    font-weight: 600;
}

.logo-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(13, minmax(180px, 1fr));
    gap: 0.8rem;
}

.logo-marquee {
    overflow: hidden;
    width: 100%;
}

.logo-marquee-track {
    display: flex;
    gap: 0.8rem;
    width: max-content;
    transform: translateX(-50%);
    animation: logos-move-right 16.8s linear infinite;
}

.logo-marquee .logo-placeholder-grid {
    flex: 0 0 auto;
    min-width: max-content;
}

.logo-card {
    border-color: #9ab1dc !important;
    background: #fff;
}

.home-client-logos .logo-marquee {
    overflow: hidden;
}

.home-client-logos .logo-marquee-track {
    display: flex;
    gap: 0.8rem;
    width: max-content;
    transform: translateX(0);
    animation: home-logos-scroll 22s linear infinite;
}

.home-client-logos .logo-placeholder-grid {
    display: flex;
    gap: 0.8rem;
    flex: 0 0 auto;
    min-width: max-content;
}

.home-client-logos .logo-card {
    width: 220px;
    min-height: 110px;
    border-style: solid;
    border-width: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-client-logos .client-logo-image {
    max-height: 72px;
}

.home-client-logos .logo-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes home-logos-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.home-testimonials .testimonial-track {
    display: block;
    width: 100%;
    transform: none;
    animation: none;
}

.home-testimonials .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@keyframes logos-move-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0%);
    }
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.feature-panel {
    border: 1px solid #dfdfdf;
    border-radius: 14px;
    padding: 1.2rem;
    background: #fff;
}

.feature-panel h3 {
    font-size: 1.2rem;
    color: #2f3233;
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.35rem;
    color: #4d4d4d;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-teal);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* Collage Stack - 4 overlapping tilted images */
.collage-stack {
    position: relative;
    min-height: 320px;
    perspective: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.collage-card {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 16px;
    border: 1px solid #d1e3fa;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.18);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 72%;
    aspect-ratio: 16 / 10;
}

.collage-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card 4 - back layer, tilted left */
.collage-card-4 {
    z-index: 1;
    transform: rotate(-8deg) translate(-35px, 15px) scale(0.88);
    opacity: 0.5;
    filter: brightness(0.95);
}

/* Card 3 - tilted right */
.collage-card-3 {
    z-index: 2;
    transform: rotate(6deg) translate(30px, 10px) scale(0.92);
    opacity: 0.65;
    filter: brightness(0.97);
}

/* Card 2 - slight tilt */
.collage-card-2 {
    z-index: 3;
    transform: rotate(-3deg) translate(-15px, -5px) scale(0.96);
    opacity: 0.82;
}

/* Card 1 - front/main card */
.collage-card-1 {
    z-index: 4;
    transform: rotate(1deg) translate(5px, 0) scale(1);
    opacity: 1;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
}

/* Hover: spread, zoom, and lift */
.collage-stack:hover .collage-card-4 {
    transform: rotate(-12deg) translate(-70px, 25px) scale(0.95);
    opacity: 0.75;
}

.collage-stack:hover .collage-card-3 {
    transform: rotate(10deg) translate(65px, 20px) scale(0.98);
    opacity: 0.85;
}

.collage-stack:hover .collage-card-2 {
    transform: rotate(-5deg) translate(-30px, -15px) scale(1.02);
    opacity: 0.95;
}

.collage-stack:hover .collage-card-1 {
    transform: rotate(0deg) translate(0, -10px) scale(1.08);
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.3);
}

/* Guard against third-party/global overrides that can stack cards in a column. */
.showcase-grid .collage-stack > .collage-card {
    position: absolute !important;
    display: block;
}

/* Legacy home-shot-stack kept for other pages */
.home-shot-stack {
    position: relative;
    min-height: 260px;
    perspective: 1200px;
}

.home-shot-frame {
    border-radius: 18px;
    border: 1px solid #bfdbfe;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.2);
}

.home-shot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-shot-primary {
    position: relative;
    z-index: 2;
    width: 86%;
    aspect-ratio: 16 / 10;
    transform: rotate(-0.6deg);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.home-shot-secondary {
    position: absolute;
    right: 0;
    bottom: -18px;
    z-index: 1;
    width: 72%;
    aspect-ratio: 16 / 10;
    opacity: 0.92;
    transform: rotate(-3deg);
    filter: saturate(1.05);
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.home-shot-stack:hover .home-shot-primary {
    transform: translate3d(8px, -8px, 0) rotate(-1.4deg);
}

.home-shot-stack:hover .home-shot-secondary {
    transform: translate3d(-6px, 10px, 0) rotate(-5deg);
    opacity: 0.98;
}

.showcase-points {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
}

.showcase-point {
    padding: 0.75rem 0.9rem;
    border-left: 3px solid var(--primary-purple);
    background: #fff;
    border-radius: 8px;
}

.pricing-teaser {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.25rem 2rem;
    border: 1px solid #d7e3f6;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.pricing-teaser h2 {
    margin-bottom: 0.9rem;
}

.pricing-teaser p {
    max-width: 620px;
    margin: 0 auto;
    color: #51607a;
}

.pricing-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.plan-card-lite {
    border: 1px solid #dfdfdf;
    border-radius: 14px;
    background: #fff;
    padding: 1.1rem;
}

.plan-card-lite.featured {
    border: 2px solid var(--primary-purple);
    box-shadow: 0 10px 24px rgba(32, 83, 197, 0.12);
}

.plan-pill {
    display: inline-block;
    margin-bottom: 0.7rem;
    padding: 4px 10px;
    background: rgba(0, 132, 239, 0.12);
    border-radius: 999px;
    color: var(--primary-teal);
    font-size: 0.8rem;
    font-weight: 700;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #2f3233;
}

.plan-price span {
    font-size: 0.9rem;
    color: #575757;
    font-weight: 500;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.testimonial-marquee {
    overflow: hidden;
    width: 100%;
}

.testimonial-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    transform: translateX(-50%);
    animation: testimonials-move-right 57.6s linear infinite;
}

.testimonial-marquee .testimonial-grid {
    flex: 0 0 auto;
    min-width: max-content;
    grid-template-columns: repeat(6, minmax(520px, 1fr));
}

.testimonial-card {
    border-radius: 14px;
    padding: 1.2rem;
    background: #fff;
    border: 1px solid #e6e6e6;
}

.testimonial-card-slot {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-style: dashed;
    border-color: #c8d6ee;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
}

.testimonial-card h5 {
    margin: 0;
    color: #2f3233;
}

.testimonial-marquee .testimonial-card {
    padding: 1.4rem 1.5rem;
    width: 520px;
    min-width: 520px;
    max-width: 520px;
    border: 1px solid #dbe3f1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 40, 88, 0.08);
    display: flex;
    flex-direction: column;
}

.testimonial-marquee .testimonial-card p {
    flex: 1;
    color: #3f4f67;
    line-height: 1.65;
    font-size: 1rem;
}

/* Pause scroll when hovering or focusing inside the marquee */
.testimonial-marquee:hover .testimonial-track,
.testimonial-marquee:focus-within .testimonial-track {
    animation-play-state: paused;
}

.testimonial-marquee .testimonial-card:hover {
    transform: none;
    box-shadow: 0 10px 24px rgba(16, 40, 88, 0.1);
}


.testimonial-marquee .testimonial-card h5 {
    margin-top: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #223a5f;
}

@keyframes testimonials-move-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0%);
    }
}

.home-final-cta {
    background: #0a142f;
}

.home-final-cta h2,
.home-final-cta p {
    color: #fff;
}

/* Safety net: keep text readable inside dark sections even if inline color is omitted */
.section.section-dark p,
.section.section-dark li,
.section.section-dark span {
    color: rgba(255, 255, 255, 0.9);
}

.section.section-dark h1,
.section.section-dark h2,
.section.section-dark h3,
.section.section-dark h4,
.section.section-dark h5,
.section.section-dark h6 {
    color: #ffffff;
}

.home-final-cta .home-cta-row {
    justify-content: center;
    align-items: center;
}

/* Shared internal page hero and CTA blocks */
.page-hero {
    padding: 2.5rem 0 1.4rem;
    background: #ffffff;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -110px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(32, 83, 197, 0.18) 0%, rgba(32, 83, 197, 0) 72%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    left: -120px;
    bottom: -150px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(0, 132, 239, 0.1) 0%, rgba(0, 132, 239, 0) 72%);
    pointer-events: none;
}

.page-hero-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 26px 28px;
    background: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(29, 53, 87, 0.1);
    position: relative;
    z-index: 1;
}

.page-hero-split {
    display: grid;
    grid-template-columns: 1fr minmax(340px, 460px);
    gap: 2.4rem;
    align-items: center;
}

.page-hero-copy {
    max-width: 600px;
}

.page-hero-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(32, 83, 197, 0.12);
    color: #169fda;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-hero-content h1 {
    color: var(--dark-gray);
    margin-bottom: 14px;
    font-size: clamp(2rem, 3.3vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.page-hero-title {
    color: var(--dark-gray) !important;
    margin-bottom: 14px !important;
}

.page-hero-content p {
    color: var(--medium-gray);
    font-size: 1.11rem;
    max-width: 620px;
    margin: 0;
}

.page-hero-subtitle {
    color: var(--medium-gray) !important;
    font-size: 1.11rem !important;
    line-height: 1.58;
    max-width: 620px !important;
    margin: 0 !important;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 2rem;
    margin-bottom: 1.6rem;
}

.page-hero-note {
    margin-top: 0;
    margin-bottom: 0;
    color: #68748f;
    font-size: 0.98rem;
}

.page-hero-visual {
    width: 100%;
}

.page-shot-grid {
    display: block;
    margin-top: 0;
}

.page-shot-slot {
    min-height: 340px;
    border: 2px dashed #9ab1dc;
    border-radius: 18px;
    background: linear-gradient(180deg, #f2f6ff 0%, #e9f0ff 100%);
    color: #2f3233;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
}

.page-hero-visual .page-shot-slot {
    box-shadow: 0 14px 30px rgba(29, 53, 87, 0.12);
}

.page-final-cta {
    background: #0a142f;
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}

.page-final-cta h2,
.page-final-cta h3,
.page-final-cta p {
    color: #fff;
}

.page-final-title {
    color: #fff !important;
    margin-bottom: 20px !important;
}

/* Home-like visual rhythm for all internal pages */
.page-hero ~ .section {
    position: relative;
}

.page-hero ~ .section.section-light {
    background: #ffffff;
}

.page-hero ~ .section .row {
    row-gap: 24px;
}

.page-hero ~ .section h2 {
    letter-spacing: -0.2px;
}

.page-hero ~ .section .card {
    border: 1px solid #e2e8f6;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(29, 53, 87, 0.06);
}

@media (max-width: 1024px) {
    .page-hero-split {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .page-hero-copy {
        max-width: 100%;
    }

    .page-shot-slot {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 1.8rem 0 1rem;
    }

    .page-hero-content {
        padding: 20px;
    }

    .page-hero-content h1 {
        font-size: clamp(1.72rem, 8.5vw, 2.35rem);
    }

    .page-hero-subtitle {
        font-size: 1rem !important;
    }

    .page-shot-slot {
        min-height: 220px;
        font-size: 0.95rem;
    }
}

.page-hero ~ .section .card:hover {
    box-shadow: 0 16px 30px rgba(29, 53, 87, 0.12);
}

/* ============================================================================
   HERO VARIANTS — Unique layouts per page type
   ============================================================================ */

/* --- VARIANT: Story (About, Case Studies) — Centered + stats row --- */
.hero-story .page-hero-content {
    text-align: center;
}
.hero-story .page-hero-copy {
    max-width: 720px;
    margin: 0 auto;
}
.hero-story .page-hero-subtitle {
    max-width: 620px !important;
    margin: 0 auto !important;
}
.hero-story .page-hero-actions {
    justify-content: center;
}
.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5edf8;
}
.hero-stat-item {
    text-align: center;
}
.hero-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-purple);
    line-height: 1.2;
}
.hero-stat-label {
    font-size: 0.78rem;
    color: var(--medium-gray);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* --- VARIANT: Catalog (Services) — Split with mini module cards --- */
.hero-catalog .page-hero-split {
    grid-template-columns: 1.1fr 0.9fr;
}
.hero-module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.hero-module-card {
    background: #f5f9ff;
    border: 1px solid #dce8ff;
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    transition: var(--transition);
}
.hero-module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 53, 87, 0.1);
}
.hero-module-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
    display: block;
}
.hero-module-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2f3233;
}

/* --- VARIANT: Pricing — Centered with highlight pill --- */
.hero-pricing .page-hero-content {
    text-align: center;
}
.hero-pricing .page-hero-copy {
    max-width: 700px;
    margin: 0 auto;
}
.hero-pricing .page-hero-subtitle {
    max-width: 600px !important;
    margin: 0 auto !important;
}
.hero-pricing .page-hero-actions {
    justify-content: center;
}
.hero-pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f0f6ff 0%, #e5edff 100%);
    border: 1px solid #c8d8fb;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #169fda;
}
.hero-pricing-badge svg {
    flex-shrink: 0;
}

/* --- VARIANT: Contact — Split with quick-touch cards --- */
.hero-contact .page-hero-split {
    grid-template-columns: 1.15fr 0.85fr;
}
.hero-touch-stack {
    display: grid;
    gap: 12px;
}
.hero-touch-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #f8fbff;
    border: 1px solid #e2ecf9;
    border-radius: 14px;
    transition: var(--transition);
}
.hero-touch-card:hover {
    border-color: #b8d0f5;
    box-shadow: 0 6px 16px rgba(29, 53, 87, 0.08);
}
.hero-touch-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(32, 83, 197, 0.1);
    border-radius: 12px;
    color: #169fda;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.hero-touch-text strong {
    display: block;
    font-size: 0.88rem;
    color: #2f3233;
    margin-bottom: 2px;
}
.hero-touch-text span {
    font-size: 0.82rem;
    color: var(--medium-gray);
}

/* --- VARIANT: People (Careers) — Centered with perk badges --- */
.hero-people .page-hero-content {
    text-align: center;
}
.hero-people .page-hero-copy {
    max-width: 700px;
    margin: 0 auto;
}
.hero-people .page-hero-subtitle {
    max-width: 620px !important;
    margin: 0 auto !important;
}
.hero-people .page-hero-actions {
    justify-content: center;
}
.hero-perk-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e5edf8;
}
.hero-perk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f9ff;
    border: 1px solid #dce8ff;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2f3233;
}
.hero-perk-badge span.perk-icon {
    font-size: 1rem;
}

/* --- VARIANT: Proof (Case Studies) — Centered with result metrics --- */
.hero-proof .page-hero-content {
    text-align: center;
}
.hero-proof .page-hero-copy {
    max-width: 720px;
    margin: 0 auto;
}
.hero-proof .page-hero-subtitle {
    max-width: 640px !important;
    margin: 0 auto !important;
}
.hero-proof .page-hero-actions {
    justify-content: center;
}
.hero-results-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e5edf8;
}
.hero-result-item {
    text-align: center;
    padding: 14px 10px;
    background: #f5f9ff;
    border: 1px solid #dce8ff;
    border-radius: 14px;
}
.hero-result-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-teal);
    line-height: 1.2;
}
.hero-result-label {
    font-size: 0.76rem;
    color: var(--medium-gray);
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* --- VARIANT: Help (FAQ) — Compact centered with topic chips --- */
.hero-help .page-hero-content {
    text-align: center;
    padding: 22px 28px;
}
.hero-help .page-hero-copy {
    max-width: 660px;
    margin: 0 auto;
}
.hero-help .page-hero-subtitle {
    max-width: 560px !important;
    margin: 0 auto !important;
}
.hero-help .page-hero-actions {
    justify-content: center;
}
.hero-topic-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5edf8;
}
.hero-topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: #ffffff;
    border: 1px solid #c8d8fb;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #169fda;
    cursor: default;
}
.hero-topic-chip .chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-teal);
}

/* --- VARIANT: Connect (Integrations) — Split with partner badges --- */
.hero-connect .page-hero-split {
    grid-template-columns: 1.1fr 0.9fr;
}
.hero-partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.hero-partner-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    background: #f8fbff;
    border: 1px solid #dce8ff;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2f3233;
    text-align: center;
    transition: var(--transition);
}
.hero-partner-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(29, 53, 87, 0.08);
}
.hero-partner-icon {
    font-size: 1.2rem;
}

/* Training page: make module icons more prominent without affecting other pages. */
.hero-training .hero-partner-badge {
    gap: 10px;
    font-size: 0.86rem;
}

.hero-training .hero-partner-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    line-height: 1;
}

/* --- VARIANT: Legal (Terms, Privacy, Cookie, GDPR, Refund, Data Deletion, Data Retention) --- */
.hero-legal .page-hero-content {
    text-align: center;
    padding: 28px 32px;
}
.hero-legal .page-hero-copy {
    max-width: 640px;
    margin: 0 auto;
}
.hero-legal .page-hero-subtitle {
    max-width: 560px !important;
    margin: 0 auto !important;
}
.hero-legal .page-hero-actions {
    justify-content: center;
}
.hero-legal-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(32, 83, 197, 0.08);
    border-radius: 16px;
    color: #169fda;
}
.hero-legal-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.82rem;
    color: #68748f;
    font-weight: 500;
}
.hero-legal-meta svg {
    flex-shrink: 0;
}

/* --- Hero variants responsive --- */
@media (max-width: 768px) {
    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-module-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .hero-results-bar {
        grid-template-columns: 1fr;
    }
    .hero-partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-perk-row {
        gap: 8px;
    }
    .hero-touch-stack {
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .hero-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .hero-module-grid {
        grid-template-columns: 1fr;
    }
    .hero-partner-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.page-hero ~ .section .btn.btn-primary {
    box-shadow: 0 8px 18px rgba(32, 83, 197, 0.2);
}

.page-hero ~ .section .btn.btn-primary:hover {
    box-shadow: 0 12px 22px rgba(32, 83, 197, 0.28);
}

.btn-light-solid {
    background: #fff;
    color: #169fda;
    border: 2px solid #fff;
}

.btn-light-solid:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: #fff;
}

@media (max-width: 992px) {
    .home-hero-grid,
    .showcase-grid,
    .pricing-preview-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .logo-placeholder-grid {
        grid-template-columns: repeat(13, minmax(140px, 1fr));
    }

    .logo-marquee-track {
        animation-duration: 22s;
    }

    .testimonial-marquee .testimonial-grid {
        grid-template-columns: repeat(6, minmax(440px, 1fr));
    }

    .testimonial-track {
        animation-duration: 46.8s;
    }

    .photo-slot-xl {
        min-height: 280px;
    }

    .home-shot-stack {
        min-height: 220px;
    }

    .home-shot-primary,
    .home-shot-secondary {
        width: 100%;
        aspect-ratio: auto;
        position: relative;
        right: auto;
        bottom: auto;
        transform: none;
    }

    .home-shot-stack:hover .home-shot-primary,
    .home-shot-stack:hover .home-shot-secondary {
        transform: none;
    }

    /* Collage stack responsive */
    .collage-stack {
        min-height: 280px;
    }

    .collage-card {
        width: 85%;
    }

    .collage-card-4 {
        transform: rotate(-6deg) translate(-20px, 12px) scale(0.9);
    }

    .collage-card-3 {
        transform: rotate(5deg) translate(18px, 8px) scale(0.93);
    }

    .collage-card-2 {
        transform: rotate(-2deg) translate(-10px, -3px) scale(0.97);
    }

    .collage-card-1 {
        transform: rotate(1deg) translate(3px, 0) scale(1);
    }

    .collage-stack:hover .collage-card-4,
    .collage-stack:hover .collage-card-3,
    .collage-stack:hover .collage-card-2,
    .collage-stack:hover .collage-card-1 {
        transform: none;
    }

    .overlap-tilt-left,
    .overlap-tilt-right {
        transform: none;
    }

    .overlap-card::before {
        inset: 10px -10px -10px 10px;
    }

    .page-hero {
        padding-top: 1.2rem;
    }

    .page-hero-content {
        padding: 18px 16px;
    }

    .page-shot-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .home-client-logos .logo-placeholder-grid {
        gap: 0.7rem;
    }

    .home-testimonials .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .home-testimonials .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .home-client-logos .logo-card {
        width: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-track {
        animation: none;
        transform: none;
    }
}

/* Home page testimonials: force non-marquee 3-card layout (placed late to override earlier track rules) */
.home-testimonials .testimonial-track {
    display: block !important;
    width: 100% !important;
    transform: none !important;
    animation: none !important;
}

.home-testimonials .testimonial-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100%;
}

@media (max-width: 992px) {
    .home-testimonials .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .home-testimonials .testimonial-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================================
   SECTION STYLES
   ============================================================================ */

.section {
    padding: var(--spacing-xxl) 0;
}

.section-sm {
    padding: var(--spacing-xl) 0;
}

.section-light {
    background-color: #ffffff;
}

.section-dark {
    background: var(--dark-gray);
    color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--white);
}

.section-gradient {
    background: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-purple);
    margin: var(--spacing-md) auto 0;
    border-radius: 2px;
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--dark-gray);
}

.card-text {
    color: var(--medium-gray);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.card-footer {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--light-gray);
    margin-top: auto;
}

/* Feature Card */
.card-feature {
    text-align: center;
}

.card-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--light-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    width: 100% !important;
}

.navbar-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: var(--spacing-md);
    min-height: 78px;
    padding: 10px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand img {
    max-height: 44px;
    max-width: 200px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.navbar-nav {
    display: flex !important;
    gap: 10px !important;
    list-style: none !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: row !important;
    flex: 1;
    flex-wrap: nowrap;
}

.navbar-nav li {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
}

.navbar-main-links {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.navbar-actions {
    display: flex !important;
    align-items: center !important;
    margin-left: var(--spacing-md) !important;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    color: var(--dark-gray) !important;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    text-decoration: none !important;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.92rem;
}

.navbar-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    width: 0;
    height: 2px;
    background: var(--primary-teal);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 24px);
}

.nav-link:hover {
    color: #0b2a47 !important;
    background: rgba(5, 176, 170, 0.1);
}

.nav-link.active {
    color: #0b2a47 !important;
    background: rgba(5, 176, 170, 0.12);
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none !important;
    background: rgba(5, 176, 170, 0.08);
    border: 1px solid rgba(5, 176, 170, 0.2);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: var(--dark-gray);
}

.navbar-toggle-icon {
    display: inline-block;
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .navbar-container {
        min-height: 68px;
        padding: 8px 0;
    }

    .navbar-brand img {
        max-height: 38px;
        max-width: 176px;
        width: auto !important;
        height: auto !important;
    }
    
    .navbar-nav {
        position: absolute !important;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        background: var(--white);
        display: none !important;
        padding: 10px;
        border: 1px solid rgba(5, 176, 170, 0.12);
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    }
    
    .navbar-nav.active {
        display: flex !important;
    }

    .navbar-main-links,
    .navbar-actions {
        width: 100%;
        margin-left: 0 !important;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        border-radius: 10px;
        padding: 11px 14px;
        font-size: 0.95rem;
        text-align: center;
    }

    .navbar-actions .btn {
        width: 100%;
    }
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    background: var(--dark-gray) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)" /></svg>');
    background-attachment: fixed;
    background-size: cover;
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 150, 105, 0.05);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xl);
    color: rgba(255,255,255,0.9);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   FOOTER - MODERN REDESIGN
   ============================================================================ */

.footer-modern {
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-lg);
}

/* Gradient Background Layer */
.footer-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        #1a2a4a 0%,
        #1e3f87 42%,
        #2053c5 100%);
    z-index: 0;
}

.footer-gradient-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 18% 42%, rgba(114, 194, 232, 0.24) 0%, transparent 54%),
        radial-gradient(circle at 78% 84%, rgba(255, 255, 255, 0.12) 0%, transparent 58%);
    animation: footerPulse 8s ease-in-out infinite;
}

@keyframes footerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Newsletter Band */
.footer-newsletter-band {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding: var(--spacing-lg) 0;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .footer-newsletter-band {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.newsletter-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 var(--spacing-sm) 0;
    background: linear-gradient(135deg, var(--white) 0%, #9fdcf5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.45;
    margin: 0;
}

.newsletter-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.newsletter-input {
    flex: 1;
    padding: 10px 18px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, #169fda 0%, #2053c5 100%);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(32, 83, 197, 0.38);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 26px rgba(32, 83, 197, 0.48);
}

.newsletter-privacy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
    padding-left: 0;
    text-align: left;
}

/* Main Footer Content */
.footer-main {
    position: relative;
    z-index: 1;
    padding: var(--spacing-lg) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.1fr 1fr 1.3fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col-brand .footer-logo h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 var(--spacing-md) 0;
    background: linear-gradient(135deg, var(--white) 0%, #9fdcf5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 var(--spacing-md) 0;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-teal) 0%, transparent 100%);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-teal);
    padding-left: 8px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Social Links - Modern */
.footer-social-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.social-icons-grid {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-icon-modern {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
}

.social-icon-modern:hover {
    background: linear-gradient(135deg, #169fda 0%, #2053c5 100%);
    border-color: var(--primary-teal);
    color: var(--white);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 22px rgba(32, 83, 197, 0.4);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    right: 12px;
    bottom: 78px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(37, 211, 102, 0.35);
    z-index: 1100;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.whatsapp-float:hover {
    color: #ffffff;
    background: #1fb95a;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.35);
    animation: waPulse 1.9s ease-out infinite;
}

@keyframes waPulse {
    0% {
        transform: scale(0.88);
        opacity: 0.85;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Trust Bar */
.footer-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.trust-item i {
    font-size: 1.05rem;
    color: #9fdcf5;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom-modern {
    position: relative;
    z-index: 1;
    background: rgba(22, 43, 87, 0.5);
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .footer-bottom-modern {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-teal);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-address {
    color: #72c2e8 !important;
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Footer Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.45;
}
.footer-contact-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-contact-list a:hover { color: #72c2e8; }
.fc-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.85;
}
.fc-label {
    font-style: normal;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 4px;
}
.footer-cta-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.87rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    width: fit-content;
}
.footer-wa-btn:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,211,102,0.38);
}
.footer-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.87rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    width: fit-content;
}
.footer-quote-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.32);
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-trust-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newsletter-title {
        font-size: 1.4rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-trust-bar {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-gradient-bg::before,
    .whatsapp-float::after {
        animation: none;
    }

    .footer-newsletter-band,
    .footer-bottom-modern {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 10px;
        bottom: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-gradient-bg::before,
    .whatsapp-float::after {
        animation: none !important;
    }
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .newsletter-btn {
        width: 100%;
        border-radius: 12px;
    }
}

/* ============================================================================
   LEGAL PAGES - Simple & Clean
   ============================================================================ */

.terms-simple {
    color: #545f7d;
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.terms-simple h2 {
    color: #2f3233;
    font-size: 2rem;
    font-weight: 700;
}

.terms-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f6;
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-section h3 {
    color: #2f3233;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.terms-section p {
    margin-bottom: 14px;
    color: #545f7d;
}

.terms-section ul {
    margin: 14px 0;
    padding-left: 24px;
}

.terms-section ul li {
    margin-bottom: 10px;
    color: #545f7d;
}

.terms-section a {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 500;
}

.terms-section a:hover {
    text-decoration: underline;
}

/* ============================================================================
   FORMS
   ============================================================================ */

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--dark-gray);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--dark-gray);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(26, 155, 142, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================================================
   CONTACT PAGE
   ============================================================================ */

.contact-section-main {
    background: #ffffff;
}

.contact-quick-section {
    padding: 0;
    background: #f6f8ff;
}

.contact-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 32px 0;
}

.contact-quick-card {
    display: block;
    text-decoration: none;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    border: 1px solid #e5edf8;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.11);
}

.contact-quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #fff;
    font-size: 22px;
}

.quick-icon-blue {
    background: #169fda;
}

.quick-icon-green {
    background: #2f3233;
}

.quick-icon-amber {
    background: #727d83;
}

.quick-icon-whatsapp {
    background: #169fda;
}

.contact-quick-label {
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 4px;
}

.contact-quick-value {
    color: #169fda;
    font-weight: 600;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 991px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid #e5edf8;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.contact-form-head {
    position: relative;
    margin: -6px -6px 24px;
    padding: 14px 14px 16px;
    border-radius: 14px;
    background: linear-gradient(145deg, #f7faff 0%, #ffffff 72%);
    border: 1px solid #e3ecfb;
}

.contact-form-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(32, 83, 197, 0.12);
    color: #169fda;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-block-title {
    margin: 0 0 10px;
    color: #2f3233;
}

.contact-block-subtitle {
    margin: 0 0 24px;
    color: #5d6b86;
}

.contact-form-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d6e3f8;
    color: #365173;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.contact-chip::before {
    content: '';
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #169fda, #2f3233);
}

.contact-form-card .form-group {
    margin-bottom: 12px;
}

.contact-form-card .form-label {
    margin-bottom: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #4a5d7d;
}

.contact-form-card .form-input,
.contact-form-card .form-textarea,
.contact-form-card .form-select {
    padding: 0.6rem 0.75rem;
    border: 1px solid #d7e2f3;
    border-radius: 10px;
    background: #ffffff;
    font-size: 0.92rem;
    line-height: 1.35;
}

.contact-form-card .form-input {
    height: 42px;
}

.contact-form-card .form-textarea {
    min-height: 110px;
}

.contact-form-card .form-input::placeholder,
.contact-form-card .form-textarea::placeholder {
    color: #8b9ab4;
}

.contact-form-card .form-input:focus,
.contact-form-card .form-textarea:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 2px rgba(5, 176, 170, 0.14);
}

.contact-submit {
    width: auto;
    min-width: 200px;
    padding: 0.72rem 1.15rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #169fda 0%, #2f3233 100%);
    box-shadow: 0 10px 22px rgba(32, 83, 197, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contact-submit:hover {
    filter: brightness(1.03);
    box-shadow: 0 14px 26px rgba(32, 83, 197, 0.3);
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-message {
    margin-top: 14px;
    min-height: 28px;
}

.contact-info-stack {
    display: grid;
    gap: 16px;
}

.contact-info-card {
    background: #ffffff;
    border: 1px solid #e5edf8;
    border-radius: 16px;
    padding: 22px;
}

.contact-info-accent {
    background: #ffffff;
}

.contact-info-title {
    margin: 0 0 14px;
    font-size: 1.1rem;
    color: #153f68;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-title i {
    color: var(--primary-teal);
}

.contact-address-block h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: #19466f;
}

.contact-address-block p {
    margin: 0 0 12px;
    color: #5d6b86;
    line-height: 1.55;
}

.contact-meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.contact-meta-list li {
    margin-bottom: 8px;
    color: #5d6b86;
}

.contact-meta-list a {
    color: var(--primary-teal);
    text-decoration: none;
}

.contact-meta-list a:hover {
    text-decoration: underline;
}

.contact-map-section {
    background: #ffffff;
}

.contact-map-head {
    max-width: 860px;
    margin: 0 auto 18px;
}

.contact-map-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(32, 83, 197, 0.12);
    color: #169fda;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-map-head h2 {
    margin-bottom: 10px;
}

.contact-map-head p {
    margin: 0 auto 16px;
    max-width: 700px;
    color: #5d6b86;
}

.contact-map-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.contact-map-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #d6e3f8;
    background: #ffffff;
    color: #365173;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.contact-map-pill-link {
    background: linear-gradient(135deg, #169fda 0%, #2f3233 100%);
    color: #ffffff;
    border-color: transparent;
}

.contact-map-pill-link:hover {
    color: #ffffff;
    filter: brightness(1.05);
}

.contact-map-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #d9e4f5;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.contact-support-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 767px) {
    .contact-support-grid {
        grid-template-columns: 1fr;
    }
}

.contact-support-copy {
    background: #ffffff;
    border: 1px solid #e5edf8;
    border-radius: 16px;
    padding: 24px;
}

.contact-support-copy h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #2f3233;
}

.contact-support-copy p {
    color: #5d6b86;
    margin-bottom: 12px;
}

.contact-ticket-frame {
    background: #ffffff;
    border: 1px solid #e5edf8;
    border-radius: 16px;
    overflow: hidden;
    min-height: 500px;
}

.contact-ticket-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 0;
}

.contact-ticket-fallback {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
}

.contact-ticket-fallback h4 {
    margin: 0 0 10px;
    color: #2f3233;
}

.contact-ticket-fallback p {
    max-width: 520px;
    margin: 0 0 16px;
    color: #5d6b86;
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.pt-3 { padding-top: var(--spacing-lg); }
.pb-3 { padding-bottom: var(--spacing-lg); }
.px-3 { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }

.text-teal {
    color: var(--primary-teal);
}

.text-purple {
    color: var(--primary-purple);
}

.bg-light {
    background-color: #ffffff;
}

.bg-white {
    background-color: var(--white);
}

.rounded {
    border-radius: var(--radius-lg);
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: var(--spacing-md);
}

.gap-3 {
    gap: var(--spacing-lg);
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .contact-layout,
    .contact-support-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form-card,
    .contact-info-card,
    .contact-support-copy {
        padding: 18px;
    }

    .contact-submit {
        width: 100%;
    }

    .contact-ticket-frame,
    .contact-ticket-frame iframe {
        min-height: 420px;
    }

    /* Contact page specific mobile hardening */
    .hero-contact .page-hero-content {
        padding: 18px;
    }

    .hero-contact .page-hero-actions {
        width: 100%;
        gap: 10px;
    }

    .hero-contact .page-hero-actions .btn {
        width: 100%;
        white-space: normal;
    }

    .hero-touch-card {
        padding: 14px;
        align-items: flex-start;
    }

    .hero-touch-text span {
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.35;
    }

    .contact-block-title {
        font-size: 1.4rem;
    }

    .contact-form-head {
        margin: 0 0 20px;
        padding: 12px;
    }

    .contact-info-title {
        font-size: 1rem;
    }

    .contact-map-frame iframe {
        min-height: 300px;
    }

    .contact-map-meta {
        justify-content: flex-start;
    }

    /* Cross-page mobile safeguards */
    .page-hero-actions .btn {
        white-space: normal;
        line-height: 1.3;
    }

    /* Neutralize fixed inline min-width blocks that can cause horizontal scroll */
    [style*="min-width: 300px"],
    [style*="min-width:300px"] {
        min-width: 0 !important;
        width: 100%;
    }

    .hero-legal-meta {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    .contact-form-card,
    .contact-info-card,
    .contact-support-copy {
        padding: 14px;
        border-radius: 14px;

    .contact-map-pill {
        width: 100%;
        justify-content: center;
    }

    .contact-form-head {
        margin: 0 0 18px;
    }

    .contact-chip {
        width: 100%;
        justify-content: flex-start;
    }
    }

    .contact-ticket-frame,
    .contact-ticket-frame iframe,
    .contact-ticket-fallback {
        min-height: 320px;
    }

    .page-hero-actions .btn {
        width: 100%;
    }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease;
}

/* ============================================================================
   CRITICAL OVERRIDES - Must override old template styles
   ============================================================================ */

/* Reset body and html completely */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow-x: hidden !important;
    background: #fff !important;
}

/* Force modern navbar styling */
.navbar {
    display: block !important;
    position: sticky !important;
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar ul, .navbar li {
    list-style: none !important;
    list-style-type: none !important;
}

/* Force section display */
.section {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    overflow: visible !important;
}

/* Force hero section */
.hero {
    display: block !important;
    width: 100% !important;
    position: relative !important;
}

/* Force card display */
.card {
    position: relative !important;
}

/* Keep Bootstrap row behavior for col-* layout */
.row {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Override any float layouts */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Force container centering */
.container {
    display: block !important;
    position: relative !important;
}

/* Remove any conflicting positioning - desktop only;
   mobile media query at the top of this file sets position:absolute for the dropdown */
@media (min-width: 769px) {
    .navbar-nav {
        position: relative !important;
    }
}

/* Force footer at bottom */
.footer-modern {
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

/* Reset any weird margins/padding from old template */
main, article, section, div {
    box-sizing: border-box !important;
}

/* Fix button styling */
.btn {
    display: inline-block !important;
    line-height: normal !important;
}

/* Ensure links work */
a {
    cursor: pointer !important;
}

/* Fix image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu fix */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ============================================================================
   TYPOGRAPHY NORMALIZATION - Industry standard sizing and contrast
   ============================================================================ */

/* Keep text readable inside white cards even if parent containers use white text */
.card {
    color: var(--dark-gray) !important;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: var(--dark-gray) !important;
}

.card p,
.card li,
.card span {
    color: var(--medium-gray);
}

/* Normalize oversized inline display values used across templates */
div[style*="font-size: 48px"] {
    font-size: 2rem !important;
}

div[style*="font-size: 40px"] {
    font-size: 1.75rem !important;
}

div[style*="font-size: 36px"] {
    font-size: 1.5rem !important;
}

div[style*="font-size: 3rem"] {
    font-size: 2rem !important;
}

h3[style*="font-size: 2.5rem"] {
    font-size: 2rem !important;
}

/* Mobile-friendly scaling for display numbers and icon blocks */
@media (max-width: 768px) {
    div[style*="font-size: 48px"],
    div[style*="font-size: 40px"],
    div[style*="font-size: 36px"],
    div[style*="font-size: 3rem"],
    h3[style*="font-size: 2.5rem"] {
        font-size: 1.6rem !important;
    }
}

/* ============================================================================
   FAQ MODERN LAYOUT
   ============================================================================ */
.faq-toolbar {
    background: #ffffff;
    border: 1px solid #dce8ff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.faq-toolbar h2 {
    margin-bottom: 6px;
}

.faq-toolbar p {
    margin-bottom: 14px;
}

.faq-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.faq-chip {
    border: 1px solid #c8d8fb;
    background: #f5f9ff;
    color: #169fda;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.faq-chip:hover {
    background: #ebf2ff;
}

.faq-chip.active {
    background: #169fda;
    border-color: #169fda;
    color: #ffffff;
}

/* FAQ search */
.faq-search-row {
    margin-bottom: 14px;
}
.faq-search-input {
    width: 100%;
    max-width: 480px;
    padding: 10px 16px;
    border: 1px solid #c8d8fb;
    border-radius: 999px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    background: #f5f9ff;
}
.faq-search-input:focus {
    border-color: #2053c5;
    background: #fff;
}

/* FAQ category headings */
.faq-cat-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2053c5;
    border-bottom: 2px solid #dce8ff;
    padding-bottom: 6px;
    margin: 24px 0 8px;
}
.faq-cat-heading:first-child { margin-top: 0; }

/* FAQ chevron */
.faq-chevron {
    font-size: 1.3rem;
    color: #2053c5;
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.3s ease;
    line-height: 1;
}
.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

/* FAQ no-results */
.faq-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f5f9ff;
    border-radius: 10px;
    border: 1px dashed #c8d8fb;
}

/* FAQ page background */
.faq-page-bg { background: #f6f8ff; }

.faq-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.75fr;
    gap: 20px;
    align-items: start;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #dce8ff;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(29, 53, 87, 0.05);
}

.faq-question {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    padding: 18px;
    font-size: 1rem;
    font-weight: 700;
    color: #2f3233;
    cursor: pointer;
}

.faq-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: #e9f2ff;
    color: #169fda;
    flex-shrink: 0;
}

.faq-answer {
    display: none;
    padding: 0 18px 18px;
}

.faq-answer.open {
    display: block;
}

.faq-answer p {
    margin: 0;
    color: #4d4d4d;
}

.faq-side-panel {
    display: grid;
    gap: 12px;
}

.faq-side-card {
    background: #ffffff;
    border: 1px solid #dce8ff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 18px rgba(29, 53, 87, 0.05);
}

.faq-side-card h3,
.faq-side-card h4 {
    margin-bottom: 8px;
}

.faq-side-card p {
    margin-bottom: 10px;
}

.faq-stat-card p {
    margin: 0 0 8px 0;
}

@media (max-width: 992px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   GLOBAL BUTTON MODERNIZATION - Professional and consistent system
   ============================================================================ */

:root {
    --btn-height: 46px;
    --btn-height-sm: 40px;
    --btn-height-lg: 54px;
    --btn-radius: 12px;
    --btn-gap: 0.5rem;
    --btn-shadow: 0 10px 24px rgba(22, 159, 218, 0.24);
    --btn-shadow-hover: 0 16px 34px rgba(22, 159, 218, 0.32);
}

.btn,
.button,
.cta-button,
.home-cta-button,
.read-more-btn,
.show-click-btn,
.newsletter-btn,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: var(--btn-gap);
    min-height: var(--btn-height);
    padding: 0.7rem 1.35rem !important;
    border-radius: var(--btn-radius) !important;
    border: 1px solid transparent;
    font-family: var(--font-family);
    font-size: 0.95rem !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn:focus-visible,
.button:focus-visible,
.cta-button:focus-visible,
.home-cta-button:focus-visible,
.read-more-btn:focus-visible,
.show-click-btn:focus-visible,
.newsletter-btn:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
input[type="reset"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(32, 83, 197, 0.22), 0 0 0 6px rgba(95, 168, 255, 0.22);
}

.btn:hover,
.button:hover,
.cta-button:hover,
.home-cta-button:hover,
.read-more-btn:hover,
.show-click-btn:hover,
.newsletter-btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
}

.btn:active,
.button:active,
.cta-button:active,
.home-cta-button:active,
.read-more-btn:active,
.show-click-btn:active,
.newsletter-btn:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active {
    transform: translateY(0);
}

.btn.btn-primary,
.btn-primary,
.button,
.cta-button,
.home-cta-button,
.read-more-btn,
.show-click-btn,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    color: #ffffff !important;
    background: linear-gradient(135deg, #169fda 0%, #2f3233 100%) !important;
    border-color: #169fda !important;
    box-shadow: var(--btn-shadow);
}

.btn.btn-primary:hover,
.btn-primary:hover,
.button:hover,
.cta-button:hover,
.home-cta-button:hover,
.read-more-btn:hover,
.show-click-btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1f4ab1 0%, #183152 100%) !important;
    border-color: #1f4ab1 !important;
}

.btn.btn-outline,
.btn-outline,
.btn.btn-secondary,
.btn-secondary {
    background: #ffffff !important;
    color: #1f4ab1 !important;
    border: 1px solid #bcd0f8 !important;
    box-shadow: 0 8px 18px rgba(29, 53, 87, 0.08);
}

.btn.btn-outline:hover,
.btn-outline:hover,
.btn.btn-secondary:hover,
.btn-secondary:hover {
    background: #f2f7ff !important;
    color: #17386b !important;
    border-color: #8eb0ee !important;
}

.btn.btn-light-solid,
.btn-light-solid,
.newsletter-btn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2f3233 0%, #169fda 100%) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 10px 22px rgba(0, 132, 239, 0.28);
}

.btn.btn-light-solid:hover,
.btn-light-solid:hover,
.newsletter-btn:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0076d5 0%, #1a47ab 100%) !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
}

.btn.btn-sm,
.btn-sm {
    min-height: var(--btn-height-sm);
    padding: 0.58rem 1rem !important;
    font-size: 0.86rem !important;
    border-radius: 10px !important;
}

.btn.btn-lg,
.btn-lg {
    min-height: var(--btn-height-lg);
    padding: 0.85rem 1.7rem !important;
    font-size: 1rem !important;
    border-radius: 14px !important;
}

/* Keep FAQ and navbar interaction controls untouched by the global button look */
.faq-chip,
.faq-question,
.navbar-toggle {
    box-shadow: none !important;
    letter-spacing: normal;
}

/* Normalize pricing interval toggle buttons that currently use inline styling */
#monthlyBtnNexus,
#annualBtnNexus,
#monthlyBtnSales,
#annualBtnSales {
    min-height: var(--btn-height);
    min-width: 132px;
    padding: 0.7rem 1.35rem !important;
    text-align: center;
    border-radius: 999px !important;
    font-size: 0.94rem !important;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#monthlyBtnNexus:hover,
#annualBtnNexus:hover,
#monthlyBtnSales:hover,
#annualBtnSales:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(32, 83, 197, 0.2);
}

@media (max-width: 768px) {
    .btn,
    .button,
    .cta-button,
    .home-cta-button,
    .read-more-btn,
    .show-click-btn,
    .newsletter-btn,
    input[type="submit"],
    input[type="button"],
    input[type="reset"] {
        min-height: 44px;
        padding: 0.65rem 1.1rem !important;
        font-size: 0.9rem !important;
    }

    .btn.btn-lg,
    .btn-lg {
        min-height: 48px;
        padding: 0.72rem 1.25rem !important;
        font-size: 0.94rem !important;
    }
}

/* Careers page role cards: keep action buttons usable on mobile */
#open-positions .career-role-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.career-openings-section {
    background: linear-gradient(180deg, #f7f9ff 0%, #eef4ff 100%);
}

.career-benefit-col {
    margin-bottom: 24px;
}

.career-benefit-card {
    background: #f6f8ff;
    border: 1px solid #e3ecff;
    border-radius: 14px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 4px 14px rgba(18, 47, 96, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.career-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(18, 47, 96, 0.12);
}

.career-benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #fff;
    font-size: 20px;
}

.career-icon-blue {
    background: #169fda;
}

.career-icon-green {
    background: #2f3233;
}

.career-icon-amber {
    background: #727d83;
}

.career-benefit-card h5 {
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 8px;
}

.career-benefit-card p {
    color: #555;
    font-size: 0.92rem;
    margin: 0;
}

.career-role-info h4 {
    color: #1a2a4a;
    font-weight: 700;
    margin-bottom: 4px;
}

.career-role-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.career-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.career-tag-blue {
    background: #e8f0fe;
    color: #169fda;
}

.career-tag-green {
    background: #edf1f3;
    color: #2f3233;
}

.career-role-info p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

#open-positions .career-role-card {
    border: 1px solid #e4ecfb;
    box-shadow: 0 6px 20px rgba(18, 47, 96, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#open-positions .career-role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(18, 47, 96, 0.13);
}

.career-apply-note {
    text-align: center;
    margin-top: 24px;
}

.career-apply-note p {
    color: #666;
    margin-bottom: 10px;
}

.career-apply-note a[href^="mailto:"] {
    color: #169fda;
    font-weight: 600;
}

.career-intern-row {
    margin-bottom: 40px;
    background: #ffffff;
    border: 1px solid #e4ebf9;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(18, 47, 96, 0.07);
    padding: 22px;
}

.career-intern-col {
    margin-bottom: 24px;
}

.career-intern-title {
    color: #1a2a4a;
    font-weight: 700;
    margin-bottom: 16px;
}

.career-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.career-checklist li {
    padding: 8px 0;
    border-bottom: 1px solid #e8eef8;
    color: #444;
}

.career-checklist li:last-child {
    border-bottom: 0;
}

.career-checklist li i {
    color: #169fda;
    margin-right: 8px;
}

.career-intern-action {
    margin-top: 24px;
}

.career-intern-photo-col {
    margin-bottom: 12px;
}

.career-intern-photo {
    width: 100%;
    height: 190px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

#open-positions .career-role-action {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .contact-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #open-positions .career-role-card {
        flex-direction: column;
        align-items: flex-start;
    }

    #open-positions .career-role-action {
        width: 100%;
        justify-content: center;
    }

    .career-intern-photo {
        height: 165px;
    }
}

@media (max-width: 576px) {
    .contact-quick-grid {
        grid-template-columns: 1fr;
    }
}

/* Integration API snippet: keep code readable and non-overflowing on small screens */
@media (max-width: 768px) {
    .section pre {
        font-size: 11px !important;
        line-height: 1.45;
        white-space: pre-wrap;
        word-break: break-word;
    }
}

/* Pricing page responsive hardening */
.pricing-page-shell .pricing-card-cta {
    width: 100%;
}

.pricing-page-shell .pricing-card-cta-highlight {
    background: linear-gradient(135deg, #2f3233 0%, #169fda 100%) !important;
    border-color: #2f3233 !important;
}

.pricing-toggle-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pricing-toggle-row > button {
    margin: 0 !important;
    flex: 0 0 132px;
}

.pricing-save-label {
    flex-basis: 100%;
    text-align: center;
    margin-left: 0 !important;
}

.pricing-save-label {
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

/* Services page responsive hardening */
.services-modules-section .services-card-cta {
    width: 100%;
}

.services-highlight-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: flex-start !important;
}

.services-highlight-col {
    min-width: 0 !important;
}

/* Tablet optimization for multi-column sections */
@media (max-width: 992px) {
    .pricing-page-shell .row.cols-4.pricing-plan-grid,
    .hero-catalog ~ .section .row.cols-4,
    .hero-pricing ~ .section .row.cols-4,
    .hero-story ~ .section .row.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-highlight-row {
        grid-template-columns: 1fr;
    }
}

/* Phone-specific fixes */
@media (max-width: 768px) {
    .pricing-toggle-row {
        justify-content: center;
    }

    .pricing-save-label {
        width: 100%;
        text-align: center;
        margin-left: 0 !important;
        margin-top: 4px;
    }

    .pricing-page-shell .row.cols-4.pricing-plan-grid,
    .hero-catalog ~ .section .row.cols-4,
    .hero-pricing ~ .section .row.cols-4,
    .hero-story ~ .section .row.cols-4 {
        grid-template-columns: 1fr;
    }

    .contact-map-meta {
        justify-content: center;
    }
}

/* Extra-small phones (390px and below): tighten layout and keep actions easy to tap */
@media (max-width: 390px) {
    .container {
        padding: 0 14px;
    }

    .navbar-brand img {
        max-width: 168px;
        width: auto !important;
        height: auto !important;
    }

    .page-hero {
        padding: 1.9rem 0 1rem;
    }

    .page-hero-content {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .page-hero-title,
    .page-hero-content h1 {
        font-size: clamp(1.55rem, 8vw, 1.9rem) !important;
        line-height: 1.14;
    }

    .page-hero-subtitle,
    .page-hero-content p {
        font-size: 0.95rem !important;
    }

    .page-hero-actions,
    .home-cta-row {
        gap: 10px;
    }

    .page-hero-actions .btn,
    .home-cta-row .btn,
    .contact-submit,
    .pricing-card-cta,
    .services-card-cta {
        width: 100%;
        justify-content: center;
    }

    #monthlyBtnNexus,
    #annualBtnNexus,
    #monthlyBtnSales,
    #annualBtnSales {
        flex: 1 1 calc(50% - 8px);
        width: auto;
        min-width: 130px;
    }

    .card {
        border-radius: 12px;
    }

    .contact-map-pill {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================================
   PREMIUM VISUAL POLISH LAYER
   ============================================================================ */

:root {
    --premium-surface: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    --premium-border: 1px solid rgba(22, 159, 218, 0.16);
    --premium-shadow: 0 14px 34px rgba(47, 50, 51, 0.1);
    --premium-shadow-hover: 0 20px 42px rgba(47, 50, 51, 0.16);
}

body {
    background:
    radial-gradient(circle at 10% -10%, rgba(22, 159, 218, 0.14), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(114, 125, 131, 0.1), transparent 34%),
        #f7faff;
}

.navbar {
    backdrop-filter: saturate(130%) blur(10px);
    box-shadow: 0 8px 24px rgba(47, 50, 51, 0.08);
    border-bottom: 1px solid rgba(22, 159, 218, 0.12) !important;
}

.section {
    position: relative;
}

.section-light {
    background: transparent;
}

.section .container > div[style*="text-align: center; margin-bottom"] h2 {
    letter-spacing: -0.02em;
}

.section .container > div[style*="text-align: center; margin-bottom"] p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.card,
.feature-panel,
.faq-side-card,
.faq-item,
.testimonial-card {
    background: var(--premium-surface);
    border: var(--premium-border);
    box-shadow: var(--premium-shadow);
}

.card:hover,
.feature-panel:hover,
.faq-side-card:hover,
.faq-item:hover,
.testimonial-card:hover {
    box-shadow: var(--premium-shadow-hover);
    transform: translateY(-4px);
}

.page-hero-content {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    border: 1px solid rgba(32, 83, 197, 0.1);
    box-shadow: 0 18px 38px rgba(29, 53, 87, 0.12);
}

.page-final-cta,
.home-final-cta {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 0%, rgba(95, 168, 255, 0.22), transparent 36%),
        radial-gradient(circle at 100% 100%, rgba(0, 132, 239, 0.18), transparent 42%),
        #081634;
}

.page-final-cta .container,
.home-final-cta .container {
    position: relative;
    z-index: 1;
}

.page-final-cta .container::after,
.home-final-cta .container::after {
    content: "500+ active businesses  •  99.9% uptime  •  Fast onboarding";
    display: inline-flex;
    margin-top: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.83rem;
    letter-spacing: 0.01em;
}

/* Upgrade common inline white blocks without changing templates */
div[style*="background: white; padding: 30px; border-radius: 8px"],
div[style*="background: white; padding: 25px; border-radius: 8px"],
div[style*="background: white; padding: 20px; border-radius: 8px"] {
    border: var(--premium-border);
    box-shadow: 0 10px 22px rgba(20, 42, 84, 0.08);
}

/* Ensure compact devices keep premium details readable */
@media (max-width: 768px) {
    .page-final-cta .container::after,
    .home-final-cta .container::after {
        width: 100%;
        justify-content: center;
        font-size: 0.76rem;
        line-height: 1.4;
        text-align: center;
    }

    .card,
    .feature-panel,
    .faq-side-card,
    .faq-item,
    .testimonial-card {
        box-shadow: 0 10px 24px rgba(16, 40, 88, 0.1);
    }
}

/* ============================================================
   TRAINING MODULE CARDS  (tmod-*)
   ============================================================ */
.tmod-section {
    background: #f4f7fb;
}

.tmod-header {
    text-align: center;
    margin-bottom: 52px;
}

.tmod-header h2 {
    margin: 10px 0 12px;
}

.tmod-header p {
    color: #5a6681;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* Grid */
.tmod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* Card shell */
.tmod-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5ecf6;
    box-shadow: 0 4px 18px rgba(16, 40, 88, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tmod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(16, 40, 88, 0.13);
}

/* Accent stripe at top */
.tmod-card-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--bar-a), var(--bar-b));
    flex-shrink: 0;
}

/* Head row: icon + badge */
.tmod-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 24px 0;
    flex-wrap: wrap;
}

/* Icon circle */
.tmod-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ic-a), var(--ic-b));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Category badge */
.tmod-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #eff4ff;
    color: #169fda;
    border-radius: 20px;
    padding: 4px 11px;
    border: 1px solid #dbeafe;
}

/* "New" pill */
.tmod-badge-new {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: #dcfce7;
    color: #166534;
    border-radius: 20px;
    padding: 4px 10px;
    border: 1px solid #bbf7d0;
}

/* Body */
.tmod-card-body {
    padding: 16px 24px 18px;
    flex: 1;
}

.tmod-card-body h3 {
    font-size: 1.07rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.35;
}

.tmod-card-body p {
    color: #5a6681;
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0 0 14px;
}

/* Checklist */
.tmod-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tmod-list li {
    font-size: 0.88rem;
    color: #374151;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.tmod-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    flex-shrink: 0;
}

/* Footer CTA */
.tmod-card-foot {
    padding: 0 24px 22px;
}

.tmod-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 9px;
    border: 1.5px solid #bfdbfe;
    background: #f0f7ff;
    transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
}

.tmod-cta:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    transform: translateX(2px);
    text-decoration: none;
}

/* Featured card (Partner programme) */
.tmod-card-featured {
    border-color: #bfdbfe;
    background: linear-gradient(160deg, #f8faff 0%, #fff 100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .tmod-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tmod-grid {
        grid-template-columns: 1fr;
    }

    .tmod-card-head {
        padding: 18px 18px 0;
    }

    .tmod-card-body {
        padding: 14px 18px 14px;
    }

    .tmod-card-foot {
        padding: 0 18px 18px;
    }
}

/* Modern Vision Block - About Page */
.vision-block {
    background: linear-gradient(160deg, #f6f9ff 0%, #ffffff 55%, #eef3ff 100%);
    border-radius: 22px;
    box-shadow: 0 18px 36px rgba(20, 45, 104, 0.12);
    padding: 40px 36px 36px;
    max-width: 540px;
    margin-left: auto;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid rgba(32, 83, 197, 0.14);
    position: relative;
    overflow: hidden;
}
.vision-block::before {
    content: '';
    position: absolute;
    top: -90px;
    right: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(32,83,197,0.2) 0%, rgba(95,168,255,0) 68%);
    z-index: 0;
}
.vision-block::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #169fda 0%, #72c2e8 100%);
    z-index: 1;
}
.vision-icon {
    margin-bottom: 6px;
    background: linear-gradient(135deg, #1746b2 0%, #2f67dc 55%, #5fa8ff 100%);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(32,83,197,0.28);
    border: 4px solid #ffffff;
    z-index: 1;
}
.vision-icon i {
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1;
}
.vision-title {
    font-family: var(--font-heading);
    font-size: 2.05rem;
    font-weight: 700;
    color: #17386f;
    margin: 0;
    z-index: 1;
}
.vision-lead {
    font-size: 1.12rem;
    color: #169fda;
    font-weight: 700;
    margin: 6px 0 2px;
    text-align: left;
    line-height: 1.6;
    z-index: 1;
}
.vision-text {
    font-size: 1.02rem;
    color: #3b4a64;
    line-height: 1.75;
    text-align: left;
    margin: 0;
    z-index: 1;
}
@media (max-width: 900px) {
    .vision-block {
        max-width: 100%;
        padding: 32px 22px 28px;
    }
}

/* Improved alignment for Our Story & Vision blocks */
.about-story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
    min-height: 420px;
}
.about-story-row > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.vision-block {
    margin-top: 0;
    margin-bottom: 0;
    height: 100%;
    justify-content: center;
}
@media (max-width: 900px) {
    .about-story-row {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .vision-block {
        margin-top: 32px;
        height: auto;
    }

    .vision-title,
    .vision-lead,
    .vision-text {
        text-align: left;
    }
}

/* Core Values Cards - About Page */
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.core-value-card {
    background: #fff;
    padding: 34px 28px 28px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(32,83,197,0.07);
    border-top: 4px solid var(--core-value-accent, #169fda);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.22s, transform 0.22s;
}
.core-value-card:hover {
    box-shadow: 0 8px 24px rgba(32,83,197,0.13);
    transform: translateY(-3px);
}
.core-value-icon {
    font-size: 2.6rem;
    margin-bottom: 18px;
    color: var(--core-value-accent, #169fda);
    background: linear-gradient(135deg, #e5ecf6 0%, #f4f7fb 100%);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(32,83,197,0.08);
}
.core-value-title {
    margin-bottom: 10px;
    color: var(--core-value-accent, #169fda);
    font-size: 1.18rem;
    font-weight: 700;
}
.core-value-desc {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}
@media (max-width: 900px) {
    .core-values-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .core-values-grid {
        grid-template-columns: 1fr;
    }
}

/* About page alignment cleanup */
.about-page {
    overflow: hidden;
}

.about-page-hero {
    background: linear-gradient(135deg, #10213f 0%, #169fda 100%);
    padding: 72px 0 56px;
}

.about-page-hero .page-hero-title {
    color: #fff !important;
    letter-spacing: -0.02em;
    max-width: 860px;
}

.about-page-hero .page-hero-text {
    color: rgba(255, 255, 255, 0.92);
    max-width: 760px;
    font-size: 1.07rem;
}

.about-alt-bg {
    background: linear-gradient(180deg, #f5f8ff 0%, #eef4ff 100%);
}

.about-intro-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    column-gap: 32px;
    row-gap: 24px;
    margin-left: 0;
    margin-right: 0;
}

.about-intro-row > * {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
}

/* Reset generic internal-page row gap for About; use Bootstrap gutters + explicit row gaps */
.about-page .row {
    gap: 0;
}

.about-intro-copy {
    padding-right: 0;
}

.about-intro-copy p {
    font-size: 1rem;
    line-height: 1.78;
}

.about-section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 16px;
}

.about-kpi-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.about-kpi-card {
    background: linear-gradient(180deg, #f5f8ff 0%, #edf2ff 100%);
    border: 1px solid #dbe7ff;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    min-width: 120px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20, 60, 130, 0.12);
}

.about-kpi-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2053c5;
    line-height: 1.1;
}

.about-kpi-label {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.about-media-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: block;
    transition: transform 0.4s ease;
    transform: scale(1);
}

.about-media-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.about-media-frame:hover .about-media-image {
    transform: scale(1.04);
}
.about-media-frame .about-media-image {
    border-radius: 0;
    box-shadow: none;
}

.about-intro-media .about-media-image {
    min-height: 420px;
    object-fit: cover;
}

.about-panel-row {
    margin-bottom: 32px;
}

.about-panel-col {
    margin-bottom: 24px;
}

.about-panel {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 39, 84, 0.12);
}

.about-panel--vision {
    border-left: 4px solid #2053c5;
}

.about-panel--culture {
    border-left: 4px solid #22c55e;
}

.about-panel-title {
    color: #1a2a4a;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-panel-title .fa-eye {
    color: #2053c5;
    margin-right: 8px;
}

.about-panel-title .fa-users {
    color: #22c55e;
    margin-right: 8px;
}

.about-panel-text {
    color: #444;
    line-height: 1.7;
    margin: 0;
}

.about-core-image-wrap {
    margin-top: 8px;
}

.about-core-image {
    max-width: 540px;
    width: 100%;
}

.about-team-col {
    margin-bottom: 24px;
}

.about-team-card {
    background: #f6f8ff;
    border: 1px solid #e2ebff;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(18, 45, 96, 0.11);
}

.about-team-icon {
    width: 56px;
    height: 56px;
    background: #2053c5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.about-team-icon i {
    color: #fff;
    font-size: 24px;
}

.about-team-card h5 {
    font-weight: 700;
    color: #1a2a4a;
}

.about-team-card p {
    color: #555;
    font-size: 0.92rem;
    margin: 0;
}

.about-safety-heading {
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 16px;
    text-align: center;
}

.about-safety-grid {
    margin-bottom: 32px;
}

.about-safety-cell {
    margin-bottom: 16px;
}

.about-safety-cell .about-media-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.about-cta-desc {
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-cta-row {
    justify-content: center;
}

.about-cta-outline {
    border-color: #fff;
    color: #fff;
}

@media (max-width: 991px) {
    .about-intro-row {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .about-page-hero {
        padding: 56px 0 44px;
    }

    .about-page-hero .page-hero-title {
        font-size: 2.2rem;
    }

    .about-intro-copy {
        padding-right: 12px;
    }

    .about-intro-media .about-media-image {
        min-height: 340px;
    }
}

@media (max-width: 767px) {
    .about-page-hero {
        padding: 46px 0 34px;
    }

    .about-page-hero .page-hero-title {
        font-size: 1.86rem;
    }

    .about-page-hero .page-hero-text {
        font-size: 1rem;
    }

    .about-intro-copy {
        padding-right: 0;
    }

    .about-kpi-grid {
        justify-content: center;
    }

    .about-kpi-card {
        flex: 1 1 calc(50% - 8px);
        min-width: 145px;
    }

    .about-intro-media .about-media-image {
        min-height: 260px;
    }
}

/* Services page cleanup */
.services-hero .container {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.services-hero .page-hero-badge {
    margin-left: auto;
    margin-right: auto;
}

.services-hero .page-hero-title {
    margin-left: auto;
    margin-right: auto;
    max-width: 860px;
}

.services-hero .page-hero-text {
    color: #4f607b;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.services-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.services-page-shell {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.services-intro {
    margin-bottom: 28px;
}

.services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0 !important;
    row-gap: 18px;
}

.service-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    margin-bottom: 12px;
}

.service-card-clean {
    background: #fff;
    border: 1px solid #e7eef8;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(18, 47, 96, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card-clean:hover {
    transform: translateY(-4px);
    border-color: #d1def3;
    box-shadow: 0 14px 30px rgba(18, 47, 96, 0.12);
}

.service-card-clean-media {
    position: relative;
    overflow: hidden;
    background: #f3f6fb;
    aspect-ratio: 16 / 10;
}

.service-card-clean-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.service-card-clean:hover .service-card-clean-media img {
    transform: scale(1.02);
}

.service-card-clean-body {
    padding: 18px 18px 20px;
}

.service-card-clean-body h3 {
    font-size: 1.07rem;
    color: #173255;
    margin: 0 0 9px;
    line-height: 1.35;
}

.service-card-clean-body p {
    margin: 0;
    color: #536173;
    font-size: 0.93rem;
    line-height: 1.65;
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-hero-cta .btn {
        width: 100%;
    }

    .service-card-clean-media img {
        max-height: 190px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Projects page grid hardening */
.projects-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0 !important;
    row-gap: 16px;
    align-items: start;
}

.project-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
}

.project-card-clean {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9eef7;
    box-shadow: 0 4px 14px rgba(18, 47, 96, 0.06);
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card-clean:hover {
    transform: translateY(-4px);
    border-color: #d5e1f3;
    box-shadow: 0 14px 28px rgba(18, 47, 96, 0.12);
}

.project-photo {
    width: 100%;
    height: 268px;
    display: block;
    object-fit: cover;
    object-position: center center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card-clean:hover .project-photo {
    transform: scale(1.03);
}

.project-card-name {
    margin: 0;
    padding: 11px 12px 12px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #1f3f6d;
    font-weight: 600;
}

@media (min-width: 768px) and (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-photo {
        height: 240px;
    }
}

/* Gallery page grid hardening */
.gallery-intro-row {
    margin-bottom: 24px;
}

.gallery-intro-title {
    margin: 0 0 6px;
    color: #1a2a4a;
    font-weight: 700;
    font-size: 1.2rem;
}

.gallery-intro-text {
    margin: 0;
    color: #5c6472;
}

.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0 !important;
    row-gap: 16px;
}

.gallery-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
}

.gallery-card {
    display: block;
    border: 1px solid #e9eef7;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(18, 47, 96, 0.06);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: #d5e1f3;
    box-shadow: 0 14px 28px rgba(18, 47, 96, 0.12);
}

.gallery-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-photo {
    transform: scale(1.03);
}

.gallery-caption {
    display: block;
    padding: 10px 12px 12px;
    color: #1f3f6d;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

@media (min-width: 768px) and (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-photo {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-photo {
        height: 230px;
    }
}

/* Certification listing grid hardening */
.cert-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0 !important;
    row-gap: 16px;
}

.cert-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
}

.cert-section {
    margin-bottom: 56px;
    padding-bottom: 6px;
}

.cert-heading {
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 8px;
    padding-left: 14px;
    border-left: 4px solid #169fda;
    font-size: 1.22rem;
    line-height: 1.35;
}

.cert-accent-blue {
    border-left-color: #169fda;
}

.cert-accent-green {
    border-left-color: #2f3233;
}

.cert-accent-amber {
    border-left-color: #727d83;
}

.cert-accent-violet {
    border-left-color: #2f3233;
}

.cert-accent-red {
    border-left-color: #169fda;
}

.cert-text {
    color: #5c6472;
    margin-bottom: 22px;
    max-width: 980px;
}

.cert-feature-card,
.cert-thumb-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9eef7;
    box-shadow: 0 4px 14px rgba(18, 47, 96, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cert-feature-card:hover,
.cert-thumb-card:hover {
    transform: translateY(-4px);
    border-color: #d5e1f3;
    box-shadow: 0 14px 28px rgba(18, 47, 96, 0.12);
}

.cert-thumb-name {
    font-size: 0.78rem;
    color: #4a5e80;
    text-align: center;
    padding: 8px 8px 10px;
    margin: 0;
    line-height: 1.4;
}

.cert-feature-image {
    width: 100%;
    height: 430px;
    object-fit: contain;
    background: #f7f9fc;
    display: block;
}

.cert-thumb-image {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #f7f9fc;
    display: block;
}

.cert-note-card {
    background: linear-gradient(180deg, #f0f8ff 0%, #e8f4ff 100%);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 40px;
    border: 1px solid #d0e4ff;
    box-shadow: 0 8px 24px rgba(18, 47, 96, 0.08);
}

.cert-note-card h4 {
    color: #1a2a4a;
    font-weight: 700;
    margin-bottom: 8px;
}

.cert-note-card h4 i {
    color: #169fda;
    margin-right: 8px;
}

.cert-note-card p {
    color: #444;
    margin: 0;
}

.cert-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 768px) and (max-width: 991px) {
    .cert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cert-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cert-feature-image {
        height: 360px;
    }

    .cert-thumb-image {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid-4 {
        grid-template-columns: 1fr;
    }

    .cert-feature-image {
        height: 300px;
    }

    .cert-thumb-image {
        height: 220px;
    }

    .cert-note-card {
        padding: 20px;
    }
}

/* Premium internal-page visual pass */
.page-hero {
    position: relative;
    isolation: isolate;
    border-bottom: 1px solid rgba(144, 167, 210, 0.24);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-badge {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 700;
    letter-spacing: 0.09em;
}

.page-hero-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.page-hero-text {
    font-size: 1.07rem;
    line-height: 1.72;
}

.page-hero ~ .section .section-title {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 34px;
}

.page-hero ~ .section .section-title h2 {
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.page-hero ~ .section .section-title p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: #5a6880;
}

/* Standard internal-page heroes: keep copy centered and readable */
.page-hero:not(.about-page-hero):not(.hero-legal):not(.hero-people) .container {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.page-hero:not(.about-page-hero):not(.hero-legal):not(.hero-people) .page-hero-badge,
.page-hero:not(.about-page-hero):not(.hero-legal):not(.hero-people) .page-hero-title,
.page-hero:not(.about-page-hero):not(.hero-legal):not(.hero-people) .page-hero-text {
    margin-left: auto;
    margin-right: auto;
}

.page-hero:not(.about-page-hero):not(.hero-legal):not(.hero-people) .page-hero-text {
    color: #4f607b;
}

.about-panel,
.about-team-card,
.career-benefit-card,
#open-positions .career-role-card,
.project-card-clean,
.gallery-card,
.cert-feature-card,
.cert-thumb-card,
.contact-form-card,
.contact-info-card,
.contact-support-copy {
    border-radius: 16px;
    border: 1px solid #e2eaf8;
    box-shadow: 0 10px 26px rgba(15, 41, 86, 0.08);
}

.about-panel:hover,
.about-team-card:hover,
.career-benefit-card:hover,
#open-positions .career-role-card:hover,
.project-card-clean:hover,
.gallery-card:hover,
.cert-feature-card:hover,
.cert-thumb-card:hover,
.contact-info-card:hover,
.contact-support-copy:hover {
    box-shadow: 0 18px 36px rgba(15, 41, 86, 0.14);
}

@media (max-width: 767px) {
    .page-hero-title {
        letter-spacing: -0.015em;
    }

    .page-hero ~ .section .section-title {
        margin-bottom: 24px;
    }
}

/* Unified premium accent system */
:root {
    --premium-accent: #1d57d2;
    --premium-accent-dark: #123b8f;
    --premium-accent-soft: #e9f1ff;
    --premium-ink: #142746;
    --premium-border: #d6e3fb;
}

.page-hero-badge {
    background: linear-gradient(135deg, rgba(196, 218, 248, 0.9) 0%, rgba(183, 211, 245, 0.82) 100%);
    border: 1px solid rgba(24, 74, 156, 0.24);
    color: #163a71;
    text-shadow: none;
}

.page-hero ~ .section .section-title h2,
.about-section-heading,
.cert-heading,
.career-intern-title,
.contact-block-title,
.contact-info-title {
    color: var(--premium-ink);
}

.page-hero ~ .section .section-title h2::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--premium-accent) 0%, #28b1e0 100%);
}

.btn.btn-primary,
.btn-primary,
.contact-submit,
.career-role-action {
    background: linear-gradient(135deg, var(--premium-accent) 0%, #187fc5 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(18, 66, 154, 0.24);
}

.btn.btn-primary:hover,
.btn-primary:hover,
.contact-submit:hover,
.career-role-action:hover {
    background: linear-gradient(135deg, var(--premium-accent-dark) 0%, #115f9b 100%) !important;
    box-shadow: 0 16px 30px rgba(18, 66, 154, 0.3);
}

.btn.btn-outline,
.btn-outline,
.btn.btn-secondary,
.btn-secondary {
    color: var(--premium-accent) !important;
    border-color: var(--premium-border) !important;
    background: #ffffff !important;
}

.btn.btn-outline:hover,
.btn-outline:hover,
.btn.btn-secondary:hover,
.btn-secondary:hover {
    color: var(--premium-accent-dark) !important;
    border-color: #9cb7f0 !important;
    background: var(--premium-accent-soft) !important;
}

.page-hero ~ .section a:not(.btn):not(.gallery-card):not(.project-card-clean):not(.contact-quick-card) {
    color: var(--premium-accent);
}

.page-hero ~ .section a:not(.btn):not(.gallery-card):not(.project-card-clean):not(.contact-quick-card):hover {
    color: var(--premium-accent-dark);
}

.career-tag-blue,
.contact-map-pill,
.contact-chip {
    background: var(--premium-accent-soft);
    border-color: var(--premium-border);
    color: var(--premium-accent-dark);
}

.career-tag-green {
    background: #edf4ff;
    color: #2352a8;
}

.cert-heading,
.project-card-name {
    color: var(--premium-ink);
}

.cert-accent-blue,
.cert-accent-green,
.cert-accent-amber,
.cert-accent-violet,
.cert-accent-red {
    border-left-color: var(--premium-accent);
}

.cert-note-card h4 i,
.about-kpi-value,
.about-team-icon,
.career-checklist li i,
.contact-info-title i {
    color: var(--premium-accent);
}

.about-team-icon {
    background: linear-gradient(135deg, var(--premium-accent) 0%, #1792d4 100%);
}

/* ============================================================================
   MOBILE RESPONSIVENESS AUDIT FIXES
   ============================================================================ */

/* 1. Hide blue topbar on phones — Call Us button in nav handles tap-to-call */
@media (max-width: 767px) {
    .header-top {
        display: none !important;
    }
}

/* 2. Reduce hero shell padding on mobile */
@media (max-width: 767px) {
    .home-shell-hero {
        padding: 36px 0 32px;
    }
}

@media (max-width: 480px) {
    .home-shell-hero {
        padding: 28px 0 24px;
    }
}

/* 3. Ensure home hero image container doesn't dominate on small screens */
@media (max-width: 767px) {
    .photo-slot-xl {
        min-height: 220px;
    }
}

/* 4. Stack home cert grid items on small phones */
@media (max-width: 480px) {
    .home-cert-grid {
        gap: 24px;
    }
    .home-cert-item {
        min-width: 100%;
    }
}


/* 5. Services intro guide buttons: stack on mobile */
@media (max-width: 576px) {
    .services-intro .btn {
        display: block;
        width: 100%;
        margin-bottom: 8px;
        text-align: center;
    }
}

/* 6. Section padding reduction on phones */
@media (max-width: 767px) {
    .section {
        padding: 2.5rem 0;
    }
    .section-sm {
        padding: 1.5rem 0;
    }
}

/* Gallery Lightbox */
.gallery-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.gallery-card:hover .gallery-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.amp-lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,10,25,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.amp-lb-overlay.amp-lb-open { display: flex; }
.amp-lb-content {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.amp-lb-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    object-fit: contain;
    display: block;
}
.amp-lb-caption {
    color: #c8d6f0;
    font-size: 0.9rem;
    margin-top: 12px;
    text-align: center;
    max-width: 80vw;
}
.amp-lb-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.amp-lb-close:hover { opacity: 1; }
.amp-lb-prev, .amp-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 6px;
    z-index: 10000;
    transition: background 0.2s;
}
.amp-lb-prev { left: 14px; }
.amp-lb-next { right: 14px; }
.amp-lb-prev:hover, .amp-lb-next:hover { background: rgba(255,255,255,0.28); }

/* Hero Slideshow */
.hero-slideshow { position: relative; }
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.4s ease;
    object-fit: cover;
    display: block;
    transform: scale(1);
}
.hero-slide.hero-slide-active { opacity: 1; }
.hero-slideshow:hover .hero-slide.hero-slide-active {
    transform: scale(1.03);
}
.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.hero-dot.hero-dot-active { background: #fff; }
