/* ==========================================================================
   Albion Financial Advice — Public Design System
   Brand: Navy #06355B, Gold #D7AD3E
   Font: Inter (Google Fonts)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */

:root {
    /* Brand colours */
    --navy:         #06355B;
    --navy-dark:    #042847;
    --navy-light:   #17679A;
    --gold:         #D7AD3E;
    --gold-light:   #F8C04F;
    --gold-dark:    #B8922F;

    /* Neutrals */
    --white:        #FFFFFF;
    --gray-50:      #F9FAFB;
    --gray-100:     #F3F4F6;
    --gray-200:     #E5E7EB;
    --gray-300:     #D1D5DB;
    --gray-400:     #9CA3AF;
    --gray-500:     #6B7280;
    --gray-600:     #4B5563;
    --gray-700:     #374151;
    --gray-800:     #1F2937;
    --gray-900:     #111827;
    --black:        #0A0A0A;

    /* Semantic */
    --success:      #10B981;
    --whatsapp:     #25D366;
    --danger:       #EF4444;

    /* Typography */
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --leading:      1.8;
    --leading-tight: 1.25;

    /* Spacing */
    --section-y:    80px;
    --section-y-sm: 56px;
    --gap:          24px;
    --radius:       16px;
    --radius-sm:    10px;
    --radius-pill:  60px;

    /* Shadows */
    --shadow-sm:    0 1px 2px rgba(6,53,91,0.04), 0 1px 6px rgba(6,53,91,0.03);
    --shadow:       0 2px 8px rgba(6,53,91,0.06), 0 4px 16px rgba(6,53,91,0.04);
    --shadow-md:    0 4px 12px rgba(6,53,91,0.07), 0 8px 32px rgba(6,53,91,0.05);
    --shadow-lg:    0 8px 24px rgba(6,53,91,0.08), 0 16px 56px rgba(6,53,91,0.06);

    /* Layout */
    --max-w:        1200px;
    --topbar-h:     44px;
    --header-h:     70px;
    --total-header:  calc(var(--topbar-h) + var(--header-h));

    /* Transitions */
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}


/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: var(--leading);
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--navy-light); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }


/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 16px; }
h4 { font-size: 1.125rem; margin-bottom: 12px; }
h5 { font-size: 1rem; margin-bottom: 10px; }
h6 { font-size: 0.875rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

blockquote {
    border-left: 4px solid var(--gold);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--gray-50);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--gray-600);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}
th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}
th {
    font-weight: 600;
    color: var(--navy);
    background: var(--gray-50);
}

hr {
    border: none;
    height: 1px;
    background: var(--gray-200);
    margin: 32px 0;
}


/* --------------------------------------------------------------------------
   4. Layout Utilities
   -------------------------------------------------------------------------- */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section + .section {
    border-top: 1px solid var(--gray-100);
}

.section-title {
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 48px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 640px;
    margin: -32px auto 48px;
}


/* --------------------------------------------------------------------------
   5. Grid System
   -------------------------------------------------------------------------- */

.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: var(--gap);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-pill);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
    line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97) translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(215,173,62,0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--navy);
    box-shadow: 0 8px 24px rgba(215,173,62,0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    transition: all 0.3s var(--ease);
}
.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(6,53,91,0.25);
    transform: translateY(-2px);
}

.btn-cta {
    background: var(--navy);
    color: var(--white);
}
.btn-cta:hover {
    background: var(--navy-dark);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}
.btn-whatsapp:hover {
    background: #1EBE57;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.btn-sm {
    padding: 12px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}


/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-flat {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card-flat:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
}


/* --------------------------------------------------------------------------
   8. Badges
   -------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    background: var(--gray-100);
    color: var(--gray-600);
    letter-spacing: 0.02em;
}
.badge-gold {
    background: rgba(215,173,62,0.15);
    color: var(--gold-dark);
}
.badge-navy {
    background: rgba(6,53,91,0.1);
    color: var(--navy);
}


/* --------------------------------------------------------------------------
   9. Top Info Bar
   -------------------------------------------------------------------------- */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--topbar-h);
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
    display: flex;
    align-items: center;
    transition: transform 0.3s var(--ease);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

body.topbar-hidden .topbar {
    transform: translateY(-100%);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-left a,
.topbar-left span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.95);
    transition: color 0.2s;
    white-space: nowrap;
}
.topbar-left a:hover {
    color: var(--gold-light);
}
.topbar-left svg {
    opacity: 0.85;
    flex-shrink: 0;
}

.topbar-sep {
    color: rgba(255,255,255,0.2) !important;
    font-size: 0.7rem !important;
    margin: 0 4px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-pill);
    padding: 5px 16px;
    font-size: 0.85rem;
    margin-right: 4px;
}

.topbar-trust-label {
    font-weight: 600;
    color: var(--gold) !important;
}

.topbar-trust-value {
    color: rgba(255,255,255,0.95) !important;
    font-weight: 500;
}

.topbar-right a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}
.topbar-right a:hover {
    color: var(--white);
}
.topbar-right a svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .topbar { display: none; }
    body.has-topbar { --topbar-h: 0px; --total-header: var(--header-h); }
}


/* --------------------------------------------------------------------------
   9b. Header / Main Navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: top 0.3s var(--ease), box-shadow 0.35s var(--ease);
}

/* When topbar hides on scroll, header moves to top */
body.topbar-hidden .site-header {
    top: 0;
    box-shadow: 0 2px 16px rgba(6,53,91,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    gap: 8px;
}

.header-logo {
    flex-shrink: 0;
}
.header-logo img {
    height: 44px;
    width: auto;
}

/* Desktop nav — always navy text on white background */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}
.header-nav a {
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--navy);
    border-radius: var(--radius-sm);
    transition: color 0.3s var(--ease), background 0.3s var(--ease);
    position: relative;
    white-space: nowrap;
}
.header-nav a:hover {
    color: var(--gold-dark);
    background: var(--gray-50);
}
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}
.header-nav a:hover::after {
    transform: scaleX(1);
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-dropdown-trigger svg {
    transition: transform 0.3s var(--ease);
    opacity: 0.5;
}
.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block !important;
    padding: 9px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--gray-700) !important;
    border-radius: 0 !important;
    transition: background 0.2s var(--ease), color 0.2s var(--ease) !important;
}
.nav-dropdown-item:hover {
    background: var(--gray-50) !important;
    color: var(--navy) !important;
}
.nav-dropdown-item::after {
    display: none !important;
}

.nav-dropdown-all {
    font-weight: 600 !important;
    color: var(--navy) !important;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 4px;
    padding-bottom: 10px !important;
}

.nav-dropdown-child {
    padding-left: 36px !important;
    font-size: 0.82rem !important;
    color: var(--gray-500) !important;
}
.nav-dropdown-child::before {
    content: '·';
    margin-right: 6px;
    color: var(--gray-400);
}

/* CTA buttons in header */
.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.header-cta .btn {
    padding: 10px 18px;
    font-size: 0.8rem;
    white-space: nowrap;
    line-height: 1.2;
}
.header-cta .btn svg {
    width: 16px;
    height: 16px;
}

/* Hamburger — always navy on white header */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    z-index: 1010;
    margin-left: auto;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1005;
}
.mobile-menu.open { display: block; }

.mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4,40,71,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100%;
    background: #fff;
    box-shadow: -12px 0 48px rgba(6,53,91,0.2);
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-menu.open .mobile-drawer {
    transform: translateX(0);
}

/* Drawer header with logo */
.mobile-drawer::before {
    content: '';
    display: block;
    height: 70px;
    flex-shrink: 0;
}

/* Nav links container */
.mobile-drawer-nav {
    flex: 1;
    padding: 0 24px;
    overflow-y: auto;
}

/* All top-level nav items — same style */
.mobile-drawer-nav > a,
.mobile-drawer-nav > .mob-dropdown > .mob-dropdown-toggle > a {
    display: block;
    padding: 15px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.2s;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.mobile-drawer-nav > a:active,
.mobile-drawer-nav > .mob-dropdown > .mob-dropdown-toggle > a:active { color: #06355B; }

/* Close button */
.mobile-drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}
.mobile-drawer-close:active {
    background: #e5e7eb;
}
.mobile-drawer-close svg {
    stroke: #374151;
}

/* CTA section at bottom */
.mobile-drawer-cta {
    padding: 16px 24px 32px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    background: #fafbfc;
}

/* Mobile dropdown toggles */
.mob-dropdown {
    border-bottom: 1px solid var(--gray-100, #f3f4f6);
}
.mob-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0;
}
.mob-dropdown-toggle > a {
    flex: 1;
    border-bottom: none !important;
    padding-right: 0 !important;
}
.mob-chev-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f0f4f8;
    border: none;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.mob-chev-btn:active {
    transform: scale(0.92);
}
.mob-chev-btn svg {
    transition: transform 0.3s ease;
    stroke: #06355B;
    opacity: 0.6;
}
.mob-dropdown.open .mob-chev-btn {
    background: #06355B;
}
.mob-dropdown.open .mob-chev-btn svg {
    transform: rotate(180deg);
    stroke: #D7AD3E;
    opacity: 1;
}
.mob-dropdown-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    margin: 0 0 0 16px;
    padding: 0 0 0 16px;
    border-left: 3px solid #D7AD3E;
}
.mob-dropdown.open .mob-dropdown-children {
    max-height: 800px;
    padding-bottom: 8px;
}
.mob-dropdown-children a {
    display: block !important;
    padding: 11px 0 11px 20px !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    color: rgba(107,114,128,0.75) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    line-height: 1.3 !important;
}
.mob-dropdown-children a:last-child {
    border-bottom: none !important;
}
.mob-dropdown-children a:active {
    color: #06355B !important;
}

.mobile-drawer .btn {
    margin-top: 8px;
    width: 100%;
    text-align: center;
}
.mobile-drawer .btn-cta {
    color: var(--white);
}
.mobile-drawer .btn-cta:hover {
    color: var(--white);
}

@media (max-width: 1280px) {
    .header-inner { padding: 0 20px; gap: 6px; }
    .header-logo img { height: 40px; }
    .header-nav a { padding: 8px 8px; font-size: 0.78rem; }
    .header-cta .btn { padding: 8px 14px; font-size: 0.75rem; }
}

@media (max-width: 1100px) {
    .header-nav, .header-cta { display: none; }
    .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
    .site-header { top: 0; }
}


/* --------------------------------------------------------------------------
   10. Contact Bar (above footer)
   -------------------------------------------------------------------------- */

.contact-bar {
    background: var(--navy-dark);
    padding: 24px 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.contact-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.contact-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.contact-bar-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}
.contact-bar-item a {
    color: inherit;
    transition: color 0.2s;
}
.contact-bar-item a:hover {
    color: var(--gold-light);
}

.contact-bar .btn-whatsapp {
    padding: 12px 24px;
    font-size: 0.85rem;
}
.contact-bar .btn-whatsapp svg {
    width: 18px;
    height: 18px;
    opacity: 1;
}

@media (max-width: 640px) {
    .contact-bar-inner {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
        padding: 0 4px;
    }
}


/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 1px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color 0.2s, transform 0.2s;
}
.footer-col a:hover {
    color: var(--gold-light);
    transform: translateX(3px);
}

.footer-col p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
}
.footer-col p svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
    opacity: 0.5;
}

.footer-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.88rem;
}
.footer-contact-line svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
    margin-top: 3px;
}
.footer-contact-line a {
    display: inline;
    padding: 0;
}

/* Footer accordion on mobile */
.footer-chev { display: none; }

@media (max-width: 640px) {
    .footer-col-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .footer-chev {
        display: block;
        transition: transform 0.3s var(--ease);
        opacity: 0.5;
    }

    .footer-col.footer-open .footer-chev {
        transform: rotate(180deg);
    }

    .footer-col-links {
        display: none;
    }

    .footer-col.footer-open .footer-col-links {
        display: block;
    }
}

/* Social row */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-social a:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}
.footer-social a svg {
    width: 18px;
    height: 18px;
}

/* FCA text */
.footer-fca {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.footer-fca h4 {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.footer-fca p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 8px;
}
.footer-fca p:last-child {
    margin-bottom: 0;
}
.footer-fca a {
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-fca a:hover {
    color: var(--gold-light);
}

/* Copyright */
.footer-copy {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

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

@media (max-width: 640px) {
    .site-footer { padding: 48px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}


/* --------------------------------------------------------------------------
   12. Scroll Animations
   -------------------------------------------------------------------------- */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.fade-up-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.fade-up-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-up-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-up-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-up-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.fade-up-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}


/* --------------------------------------------------------------------------
   13. Blog Post Content Typography
   -------------------------------------------------------------------------- */

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
    max-width: 100%;
}
.post-content * {
    max-width: 100%;
    box-sizing: border-box;
}
/* Unwrapped tables: table itself is scroll container */
.post-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.post-content table thead,
.post-content table tbody,
.post-content table tfoot {
    display: table;
    width: max-content;
    min-width: 100%;
}
/* Wrapped tables: wrapper is scroll container, table can expand */
.post-content [class*="table-wrap"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.post-content [class*="table-wrap"] table {
    display: table;
    max-width: none;
    width: max-content;
    min-width: 100%;
    overflow: visible;
}

.post-content h2 {
    font-size: 1.6rem;
    margin-top: 48px;
    margin-bottom: 16px;
}
.post-content h3 {
    font-size: 1.3rem;
    margin-top: 36px;
    margin-bottom: 12px;
}
.post-content h4 {
    font-size: 1.1rem;
    margin-top: 28px;
    margin-bottom: 10px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin: 20px 0;
    padding-left: 28px;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.post-content a {
    color: var(--navy-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-content a:hover {
    color: var(--gold);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 28px 0;
    box-shadow: var(--shadow);
    display: block;
}

.post-content blockquote {
    font-size: 1.05rem;
}

.post-content table {
    font-size: 0.9rem;
}
.post-content table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre {
    background: var(--gray-900);
    color: var(--gray-200);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 24px 0;
}
.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-content hr {
    margin: 40px 0;
}

/* --- Post content: mobile responsive --- */
@media (max-width: 640px) {
    .blog-main { width: 100%; min-width: 0; }
    .post-article { max-width: 100%; }
    .post-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .post-content h2 {
        font-size: 1.3rem;
        margin-top: 32px;
        margin-bottom: 12px;
    }
    .post-content h3 {
        font-size: 1.1rem;
        margin-top: 24px;
        margin-bottom: 10px;
    }
    .post-content h4 {
        font-size: 1rem;
        margin-top: 20px;
        margin-bottom: 8px;
    }
    .post-content p {
        margin-bottom: 16px;
    }
    .post-content ul, .post-content ol {
        padding-left: 20px;
        margin: 14px 0;
    }
    .post-content li {
        margin-bottom: 6px;
    }
    .post-content img {
        margin: 16px 0;
        border-radius: 8px;
    }
    .post-content blockquote {
        font-size: 0.95rem;
        padding: 12px 16px;
        margin: 16px 0;
    }
    .post-content pre {
        padding: 14px 16px;
        margin: 16px 0;
        font-size: 0.82rem;
    }
    .post-content hr {
        margin: 24px 0;
    }
    /* Tables — mobile styling */
    .post-content table {
        border: 1px solid var(--gray-200, #e5e7eb);
        border-radius: 8px;
        margin: 16px 0;
        font-size: 0.8rem;
    }
    .post-content table th {
        font-size: 0.72rem;
        padding: 6px 10px;
        background: var(--navy, #06355B);
        color: #fff;
        white-space: nowrap;
    }
    .post-content table td {
        padding: 8px 10px;
        white-space: nowrap;
    }
    .post-content table td:last-child {
        white-space: normal;
        min-width: 100px;
    }
    .post-content table tbody tr:nth-child(even) {
        background: var(--gray-50, #f8f9fa);
    }
    .post-content table tbody td {
        border-bottom: 1px solid var(--gray-100, #f3f4f6);
    }
    /* Wrapped tables on mobile */
    .post-content [class*="table-wrap"] {
        border-radius: 8px;
        margin: 16px 0;
    }
    .post-content [class*="table-wrap"] table {
        border: none;
        border-radius: 0;
        margin: 0;
    }
    /* Reactions on mobile */
    .post-reactions {
        padding: 1rem 1.25rem;
    }
    .post-reactions-label {
        font-size: 0.9rem;
    }
    .reaction-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .reaction-emoji {
        font-size: 1rem;
    }
    .reaction-text {
        display: none;
    }
    /* Post hero on mobile */
    .post-hero-image {
        border-radius: 8px;
        aspect-ratio: 3 / 2;
    }
    .post-featured-image-section {
        margin-top: -20px;
    }
    /* Author card */
    .post-author-avatar {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 380px) {
    .post-content {
        font-size: 0.9rem;
    }
    .post-content h2 {
        font-size: 1.2rem;
    }
    .post-content h3 {
        font-size: 1.05rem;
    }
    .post-content table th,
    .post-content table td {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
}


/* --------------------------------------------------------------------------
   13b. Blog Post — Shared Components (FAQ, cards, info boxes, stat grids)
   -------------------------------------------------------------------------- */

/* --- FAQ Accordion (details/summary) --- */
.blog-faq { margin: 2rem 0; }
.blog-faq details { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 0.6rem; overflow: hidden; }
.blog-faq details[open] { border-color: var(--navy, #06355B); }
.blog-faq summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; color: var(--navy, #06355B); background: var(--gray-50, #f8f9fa); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.blog-faq summary::-webkit-details-marker { display: none; }
.blog-faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 300; color: #94a3b8; transition: transform 0.2s; flex-shrink: 0; }
.blog-faq details[open] summary::after { content: "\2212"; }
.blog-faq details[open] summary { background: var(--navy, #06355B); color: #fff; }
.blog-faq details[open] summary::after { color: rgba(255,255,255,0.6); }
.blog-faq .faq-answer { padding: 1rem 1.25rem; color: #334155; line-height: 1.7; }

/* --- Info / Tip / Warning callout boxes --- */
.blog-info {
    margin: 24px 0; padding: 18px 22px; border-radius: 12px;
    border-left: 4px solid #17679A; background: rgba(23,103,154,0.05);
    font-size: 0.95rem; line-height: 1.7; color: #374151;
}
.blog-info strong:first-child { display: block; margin-bottom: 4px; color: #06355B; }
.blog-tip {
    margin: 24px 0; padding: 18px 22px; border-radius: 12px;
    border-left: 4px solid #10B981; background: rgba(16,185,129,0.05);
    font-size: 0.95rem; line-height: 1.7; color: #374151;
}
.blog-tip strong:first-child { display: block; margin-bottom: 4px; color: #065F46; }
.blog-warn {
    margin: 24px 0; padding: 18px 22px; border-radius: 12px;
    border-left: 4px solid #F59E0B; background: rgba(245,158,11,0.06);
    font-size: 0.95rem; line-height: 1.7; color: #374151;
}
.blog-warn strong:first-child { display: block; margin-bottom: 4px; color: #92400E; }

/* --- Stat grid (2-4 columns) --- */
.blog-stat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0;
}
.blog-stat-card {
    background: linear-gradient(135deg, rgba(6,53,91,0.04) 0%, rgba(23,103,154,0.06) 100%);
    border: 1px solid rgba(6,53,91,0.1); border-radius: 14px;
    padding: 22px 18px; text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(6,53,91,0.07); }
.blog-stat-card .stat-number { display: block; font-size: 1.8rem; font-weight: 800; color: #06355B; line-height: 1.1; margin-bottom: 4px; }
.blog-stat-card .stat-label { font-size: 0.82rem; color: #6B7280; line-height: 1.4; }
.blog-stat-card.gold { background: linear-gradient(135deg, rgba(215,173,62,0.08) 0%, rgba(248,192,79,0.12) 100%); border-color: rgba(215,173,62,0.25); }
.blog-stat-card.gold .stat-number { color: #B8922F; }

/* --- Two-column card grid --- */
.blog-card-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0;
}
.blog-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 20px; transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-card:hover { border-color: #D7AD3E; box-shadow: 0 4px 16px rgba(6,53,91,0.06); }
.blog-card .card-icon { font-size: 1.5rem; margin-bottom: 8px; display: block; }
.blog-card h4 { color: #06355B; font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.blog-card p { font-size: 0.88rem; color: #6B7280; line-height: 1.6; margin: 0; }

/* --- Key points / highlight box --- */
.blog-key-points {
    margin: 28px 0; padding: 22px 24px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(6,53,91,0.03) 0%, rgba(23,103,154,0.05) 100%);
    border: 1px solid rgba(6,53,91,0.1);
}
.blog-key-points h4 { color: #06355B; font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; }
.blog-key-points ul { list-style: none; padding: 0; margin: 0; }
.blog-key-points li { position: relative; padding: 6px 0 6px 24px; font-size: 0.92rem; color: #374151; line-height: 1.6; }
.blog-key-points li::before { content: ''; position: absolute; left: 0; top: 12px; width: 8px; height: 8px; background: #D7AD3E; border-radius: 50%; }

/* --- Steps / numbered list --- */
.blog-steps { counter-reset: blog-step; margin: 24px 0; }
.blog-step-item { counter-increment: blog-step; position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid #f3f4f6; }
.blog-step-item:last-child { border-bottom: none; }
.blog-step-item::before {
    content: counter(blog-step); position: absolute; left: 0; top: 14px;
    width: 34px; height: 34px; background: linear-gradient(135deg, #06355B, #17679A);
    color: #fff; border-radius: 50%; font-size: 0.82rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.blog-step-item h4 { font-weight: 700; color: #06355B; font-size: 0.95rem; margin: 0 0 4px; }
.blog-step-item p { font-size: 0.88rem; color: #6B7280; line-height: 1.5; margin: 0; }

/* --- CTA section --- */
.blog-cta {
    background: linear-gradient(135deg, #06355B 0%, #17679A 100%);
    border-radius: 16px; padding: 40px 32px; text-align: center;
    margin: 40px 0 24px; position: relative; overflow: hidden;
}
.blog-cta::before { content: ''; position: absolute; top: -60%; right: -20%; width: 350px; height: 350px; background: rgba(215,173,62,0.08); border-radius: 50%; }
.blog-cta h3 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; position: relative; }
.blog-cta p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 20px; max-width: 560px; margin-left: auto; margin-right: auto; position: relative; }
.blog-cta .cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; font-size: 0.95rem; font-weight: 700; border-radius: 60px;
    background: linear-gradient(135deg, #D7AD3E 0%, #F8C04F 100%); color: #06355B;
    text-decoration: none; transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(215,173,62,0.3); position: relative;
}
.blog-cta .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(215,173,62,0.4); }

/* --- Responsive table wrapper --- */
.blog-table-wrap { overflow-x: auto; margin: 20px 0; border-radius: 10px; border: 1px solid #e5e7eb; }
.blog-table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 0; }
.blog-table-wrap th { background: #06355B; color: #fff; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 12px 14px; text-align: left; }
.blog-table-wrap td { padding: 10px 14px; border-bottom: 1px solid #e5e7eb; color: #374151; }
.blog-table-wrap tr:nth-child(even) { background: #f9fafb; }
.blog-table-wrap tr:hover { background: rgba(215,173,62,0.05); }

/* --- Yes/No/Maybe pills --- */
.pill-yes { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; background: rgba(16,185,129,0.12); color: #065F46; }
.pill-no { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; background: rgba(239,68,68,0.1); color: #991B1B; }
.pill-maybe { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; background: rgba(245,158,11,0.12); color: #92400E; }

/* --- Blog components: mobile responsive --- */
@media (max-width: 768px) {
    .blog-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .blog-stat-grid { grid-template-columns: 1fr; gap: 10px; margin: 18px 0; }
    .blog-stat-card { padding: 16px 14px; }
    .blog-stat-card .stat-number { font-size: 1.4rem; }
    .blog-stat-card .stat-label { font-size: 0.78rem; }

    .blog-card-grid { grid-template-columns: 1fr; gap: 10px; margin: 16px 0; }
    .blog-card { padding: 16px; }
    .blog-card h4 { font-size: 0.92rem; }
    .blog-card p { font-size: 0.85rem; }

    .blog-key-points { padding: 16px 18px; }
    .blog-key-points li { font-size: 0.88rem; padding-left: 20px; }
    .blog-key-points li::before { width: 6px; height: 6px; top: 11px; }

    .blog-step-item { padding-left: 42px; }
    .blog-step-item::before { width: 28px; height: 28px; font-size: 0.75rem; }
    .blog-step-item h4 { font-size: 0.9rem; }
    .blog-step-item p { font-size: 0.85rem; }

    .blog-cta { padding: 28px 18px; margin: 28px 0 16px; }
    .blog-cta h3 { font-size: 1.15rem; }
    .blog-cta p { font-size: 0.88rem; }
    .blog-cta .cta-btn { padding: 12px 24px; font-size: 0.88rem; }

    .blog-info, .blog-tip, .blog-warn { padding: 14px 16px; margin: 16px 0; font-size: 0.88rem; }

    .blog-faq summary { padding: 0.8rem 1rem; font-size: 0.9rem; }
    .blog-faq summary::after { font-size: 1.1rem; }
    .blog-faq .faq-answer { padding: 0.8rem 1rem; font-size: 0.88rem; line-height: 1.6; }

    .blog-table-wrap th { font-size: 0.72rem; padding: 8px 10px; white-space: normal; }
    .blog-table-wrap td { padding: 8px 10px; font-size: 0.8rem; }
}
@media (max-width: 380px) {
    .blog-cta h3 { font-size: 1.05rem; }
    .blog-cta .cta-btn { padding: 10px 20px; font-size: 0.82rem; }
    .blog-faq summary { padding: 0.7rem 0.8rem; font-size: 0.85rem; }
    .blog-step-item { padding-left: 36px; }
    .blog-step-item::before { width: 24px; height: 24px; font-size: 0.7rem; }
}


/* --------------------------------------------------------------------------
   14. Utility Classes
   -------------------------------------------------------------------------- */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--gray-500); }
.text-white { color: var(--white); }

.bg-gray { background: var(--gray-50); }
.bg-navy { background: var(--navy); }
.bg-white { background: var(--white); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 48px; }

.d-flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }

/* Body offset for fixed header + topbar */
.has-header { padding-top: var(--header-h); }
.has-header.has-topbar { padding-top: var(--total-header); }


/* --------------------------------------------------------------------------
   15. Responsive Font Adjustments
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    :root {
        --section-y: 40px;
        --gap: 16px;
    }

    body { font-size: 15px; }

    .container { padding: 0 16px; }

    .section-title { margin-bottom: 32px; }
    .section-subtitle { margin: -20px auto 32px; font-size: 1rem; }

    .card { padding: 24px; }
    .card-flat { padding: 24px; }

    .btn { padding: 14px 24px; font-size: 0.9rem; }
    .btn-lg { padding: 14px 32px; font-size: 1rem; }
}

@media (max-width: 380px) {
    :root {
        --section-y: 36px;
    }
}


/* ==========================================================================
   16. HOMEPAGE — Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: calc(-1 * var(--total-header));
    padding-top: var(--total-header);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--navy);
    opacity: 0.85;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 80px 24px 100px;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-align: center;
}

.hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero trust badges */
.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

.hero-trust-item svg {
    color: var(--gold);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .hero-trust-badges {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}


/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}
.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    display: flex;
    justify-content: center;
}
.scroll-dot {
    width: 4px;
    height: 12px;
    background: white;
    border-radius: 2px;
    margin-top: 8px;
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-pill);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    line-height: 1;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.3s var(--ease);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-outline-white:active {
    transform: scale(0.97) translateY(0);
}
.btn-outline-white.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-items: flex-start !important;
        min-height: auto !important;
        padding-top: calc(var(--total-header) + 36px) !important;
        padding-bottom: 16px;
    }
    .hero-inner {
        padding: 20px 16px 24px;
    }
}

@media (max-width: 640px) {
    .hero-inner { padding: 16px 16px 24px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn,
    .hero-actions .btn-outline-white { width: 100%; text-align: center; justify-content: center; }
    .btn-outline-white.btn-lg { padding: 14px 32px; font-size: 1rem; }
    .hero-scroll-indicator { bottom: 1rem; }
}

@media (max-height: 500px) {
    .hero {
        min-height: auto;
        padding-bottom: 32px;
    }
    .hero-inner {
        padding: 16px 16px 20px;
    }
}


/* ==========================================================================
   17. HOMEPAGE — Trust Indicators
   ========================================================================== */

.trust-section {
    padding: 56px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.trust-item {
    padding: 24px 16px;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(215,173,62,0.1);
    color: var(--gold);
    margin-bottom: 16px;
}

.trust-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.trust-label {
    font-size: 0.88rem;
    color: var(--gray-500);
}

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

@media (max-width: 640px) {
    .trust-section { padding: 40px 0; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .trust-item { padding: 16px 8px; }
    .trust-number { font-size: 1.15rem; }
}


/* ==========================================================================
   18. HOMEPAGE — Service Cards
   ========================================================================== */

.service-card {
    text-align: center;
    padding: 36px 28px;
    position: relative;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(6,53,91,0.06), rgba(6,53,91,0.12));
    color: var(--navy);
    margin-bottom: 20px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.service-card:hover .service-icon {
    background: var(--gold);
    color: var(--navy);
}

.service-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card-text {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-light);
    transition: color 0.2s var(--ease);
}
.service-card:hover .service-card-link {
    color: var(--gold-dark);
}


/* ==========================================================================
   19. HOMEPAGE — Why Albion
   ========================================================================== */

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-grid .section-title::after {
    left: 0;
    transform: none;
}

.why-lead {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.why-item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(215,173,62,0.1);
    color: var(--gold);
}

.why-item strong {
    display: block;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 2px;
}

.why-item p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

.why-visual {
    display: flex;
    justify-content: center;
}

.why-stats-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    max-width: 420px;
}

.why-stat {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.why-stat:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.why-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
}

.why-stat-label {
    font-size: 0.82rem;
    color: var(--gray-500);
}

@media (max-width: 1024px) {
    .why-grid { grid-template-columns: 1fr; gap: 48px; }
    .why-visual { justify-content: flex-start; }
    .why-stats-card { max-width: 100%; }
}

@media (max-width: 640px) {
    .why-stats-card { gap: 12px; }
    .why-stat { padding: 20px 12px; }
    .why-stat-number { font-size: 1.6rem; }
}


/* ==========================================================================
   20. HOMEPAGE — Media Section
   ========================================================================== */

.media-section {
    background: var(--gray-50);
}

/* --- Media carousel --- */
.media-carousel-wrap {
    position: relative;
    margin: 0 0 12px;
}

.media-carousel-viewport {
    overflow: hidden;
    margin: 0 44px;
}

.media-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    width: max-content;
    padding: 8px 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.media-carousel-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    text-decoration: none;
    min-width: max-content;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.media-carousel-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.media-carousel-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.media-carousel-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.media-carousel-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 0.01em;
}
.media-carousel-item:hover .media-carousel-name {
    color: var(--navy);
}

.media-carousel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.media-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.3s;
}
.media-carousel-btn:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.media-carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}
.media-carousel-prev { left: 0; }
.media-carousel-next { right: 0; }

@media (max-width: 768px) {
    .media-carousel-viewport {
        margin: 0 36px;
    }
    .media-carousel-track {
        gap: 8px;
    }
    .media-carousel-item {
        padding: 8px 14px;
        gap: 8px;
    }
    .media-carousel-name {
        font-size: 0.78rem;
    }
    .media-carousel-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .media-carousel-viewport {
        margin: 0 12px;
    }
    .media-carousel-btn {
        width: 28px;
        height: 28px;
    }
}


/* ==========================================================================
   21. HOMEPAGE — Blog Cards
   ========================================================================== */

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.blog-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-400);
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-body .badge {
    align-self: flex-start;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-light);
    transition: color 0.2s;
}
.blog-card:hover .blog-card-link {
    color: var(--gold-dark);
}


/* ==========================================================================
   22. HOMEPAGE — Team Preview
   ========================================================================== */

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

.team-card {
    padding: 16px;
}

.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--gray-200);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover .team-photo {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(215,173,62,0.2);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-400);
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
}

.team-title {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0;
}


/* ==========================================================================
   22b. HOMEPAGE — Team Carousel
   ========================================================================== */

.team-carousel {
    position: relative;
    padding: 0 52px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0 16px;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

.team-card-link {
    flex: 0 0 auto;
    width: calc((100% - 72px) / 4);
    min-width: 250px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
}
.team-card-link:hover {
    color: inherit;
}

.team-card-link .team-card {
    padding: 24px 16px;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.team-card-link:hover .team-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.team-card-link .team-photo {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--gray-200);
    transition: border-color 0.3s var(--ease);
}
.team-card-link:hover .team-photo {
    border-color: var(--gold);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s var(--ease);
}
.carousel-arrow:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    box-shadow: var(--shadow-md);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Carousel scroll-in animation */
.carousel-reveal .team-card-link {
    opacity: 0;
    transform: translateY(28px) scale(0.95);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.carousel-reveal.visible .team-card-link {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.carousel-reveal.visible .team-card-link:nth-child(1) { transition-delay: 0.05s; }
.carousel-reveal.visible .team-card-link:nth-child(2) { transition-delay: 0.12s; }
.carousel-reveal.visible .team-card-link:nth-child(3) { transition-delay: 0.19s; }
.carousel-reveal.visible .team-card-link:nth-child(4) { transition-delay: 0.26s; }
.carousel-reveal.visible .team-card-link:nth-child(5) { transition-delay: 0.33s; }
.carousel-reveal.visible .team-card-link:nth-child(6) { transition-delay: 0.40s; }
.carousel-reveal.visible .team-card-link:nth-child(7) { transition-delay: 0.47s; }
.carousel-reveal.visible .team-card-link:nth-child(8) { transition-delay: 0.54s; }

@media (max-width: 1024px) {
    .team-card-link {
        width: calc((100% - 48px) / 3);
        min-width: 160px;
    }
    .team-carousel {
        padding: 0 44px;
    }
}

@media (max-width: 768px) {
    .team-carousel {
        padding: 0 16px;
    }
    .carousel-arrow {
        display: none;
    }
    .carousel-track {
        padding: 8px 0 16px;
        gap: 12px;
    }
    .team-card-link {
        min-width: calc(50% - 12px);
        flex: 0 0 calc(50% - 12px);
        width: auto;
    }
    .team-card-link .team-photo {
        width: 130px;
        height: 130px;
    }
    .team-card-link .team-card {
        padding: 16px 12px;
    }
    .team-name {
        font-size: 0.88rem;
    }
    .team-title {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .team-carousel {
        padding: 0 12px;
    }
    .carousel-track {
        gap: 8px;
    }
    .team-card-link {
        min-width: calc(100% - 8px);
        flex: 0 0 calc(100% - 8px);
    }
    .team-card-link .team-photo {
        width: 150px;
        height: 150px;
    }
}


/* ==========================================================================
   23. HOMEPAGE — CTA Section
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #0a4a7a 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(215,173,62,0.05);
    pointer-events: none;
}
.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.015) 40px,
        rgba(255,255,255,0.015) 80px
    );
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    color: var(--white);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 12px;
}

.cta-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.cta-phone {
    margin-bottom: 32px;
}

.cta-phone a {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.cta-phone a:hover {
    color: var(--gold-light);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cta-actions .btn-secondary {
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.cta-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: var(--white);
}

@media (max-width: 640px) {
    .cta-section { padding: 56px 0; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 320px; }
}


/* ==========================================================================
   24. PAGE HERO — Interior pages
   ========================================================================== */

.page-hero {
    position: relative;
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 50%, #0a4a7a 100%);
    overflow: hidden;
    margin-top: calc(-1 * var(--total-header));
    padding-top: var(--total-header);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.page-hero-shape {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(215,173,62,0.05);
    top: -200px;
    right: -100px;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 56px 24px 48px;
    text-align: center;
}

.page-hero-title {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.page-hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .page-hero-inner { padding: 40px 16px 36px; }
}


/* ==========================================================================
   25. BREADCRUMB
   ========================================================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--gold-light);
}

.breadcrumb span {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-sep {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}


/* ==========================================================================
   26. CONTENT AREA — Article/page content
   ========================================================================== */

.content-area {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
}

.content-area h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
}
.content-area h3 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 12px;
}
.content-area h4 {
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 10px;
}

.content-area p {
    margin-bottom: 20px;
}

.content-area ul, .content-area ol {
    margin: 20px 0;
    padding-left: 28px;
}
.content-area ul { list-style: disc; }
.content-area ol { list-style: decimal; }
.content-area li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.content-area a {
    color: var(--navy-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.content-area a:hover {
    color: var(--gold);
}

.content-area img {
    border-radius: var(--radius-sm);
    margin: 28px 0;
    box-shadow: var(--shadow);
}

.content-area table {
    font-size: 0.9rem;
}
.content-area table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.empty-content {
    text-align: center;
    padding: 60px 0;
    color: var(--gray-400);
    font-style: italic;
}


/* ==========================================================================
   27. CONTACT PAGE
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.contact-form-wrap h2 {
    margin-bottom: 8px;
}

.contact-form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--danger);
}

.form-group input,
.form-group textarea,
.form-group select {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 1rem;
    color: var(--gray-800);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(23,103,154,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-info-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gold);
}

.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(6,53,91,0.06);
    color: var(--navy);
}

.contact-info-item strong {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.contact-info-item p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}
.contact-info-item p a {
    color: var(--gray-600);
    transition: color 0.2s;
}
.contact-info-item p a:hover {
    color: var(--navy-light);
}

.contact-whatsapp {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}
.contact-whatsapp .btn {
    width: 100%;
    justify-content: center;
}

/* Office section */
.contact-office-section {
    padding-top: 0;
}
.contact-office {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}
.contact-office-img {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
}
.contact-office-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.contact-office-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(6,53,91,0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.contact-office-badge svg {
    flex-shrink: 0;
}
.contact-office-text {
    padding: 40px 40px 40px 0;
}
.contact-office-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}
.contact-office-text p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 12px;
}
.contact-office-highlight {
    font-weight: 600;
    color: var(--navy) !important;
    background: rgba(6,53,91,0.05);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
    margin-top: 16px !important;
    margin-bottom: 20px !important;
}
.contact-office-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.contact-office-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-office-feature:hover {
    border-color: var(--navy-light);
    box-shadow: 0 2px 8px rgba(6,53,91,0.08);
}
.contact-office-feature svg {
    flex-shrink: 0;
    color: var(--gold);
}
.contact-office-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-500);
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}
.contact-office-address svg {
    flex-shrink: 0;
    color: var(--gray-400);
}
@media (max-width: 900px) {
    .contact-office {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-office-img {
        min-height: 220px;
        max-height: 260px;
    }
    .contact-office-text {
        padding: 28px 24px;
    }
}
@media (max-width: 640px) {
    .contact-office-features {
        grid-template-columns: 1fr;
    }
}

/* Why choose us - contact */
.contact-why-section {
    padding-top: 0;
}
.contact-why-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 36px;
}
.contact-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.contact-why-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.contact-why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(6,53,91,0.08);
    border-color: var(--gold);
}
.contact-why-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(6,53,91,0.06), rgba(23,103,154,0.1));
    color: var(--navy);
}
.contact-why-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}
.contact-why-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
}
@media (max-width: 1024px) {
    .contact-why-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .contact-why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .contact-why-card {
        padding: 24px 16px;
    }
}

/* Social media section - contact */
.contact-social-section {
    padding-top: 0;
}
.contact-social {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
}
.contact-social-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.contact-social-text p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.contact-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
}
.contact-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    filter: brightness(1.1);
    color: #fff;
}
.contact-social-btn svg {
    flex-shrink: 0;
}
.contact-social-facebook  { background: #1877f2; }
.contact-social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-social-youtube   { background: #ff0000; }
.contact-social-linkedin  { background: #0a66c2; }
.contact-social-x         { background: #000; }
.contact-social-tiktok    { background: #010101; }

@media (max-width: 768px) {
    .contact-social {
        padding: 32px 20px;
    }
    .contact-social-links {
        gap: 10px;
    }
    .contact-social-btn {
        padding: 10px 16px;
        font-size: 0.82rem;
    }
    .contact-social-btn span {
        display: none;
    }
    .contact-social-btn {
        padding: 14px;
        border-radius: 50%;
    }
}

/* Calendly booking section */
.contact-calendly-section {
    padding-top: 0;
    padding-bottom: var(--section-y);
}
.contact-calendly {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 2px solid var(--gray-200);
}
.contact-calendly h4 {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 28px;
}
.contact-calendly .calendly-inline-widget {
    border-radius: var(--radius);
    overflow: hidden;
}
@media (max-width: 768px) {
    .contact-calendly .calendly-inline-widget {
        height: 550px !important;
        min-height: 500px;
    }
}
@media (max-width: 640px) {
    .calendly-embed {
        height: 550px !important;
        min-width: 100% !important;
    }
}

/* Flash messages */
.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}
.flash-error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: var(--danger);
}
.flash-success {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    color: var(--success);
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 640px) {
    .contact-info-card {
        padding: 24px;
    }
}


/* ==========================================================================
   28. CONTACT THANKS PAGE
   ========================================================================== */

.thanks-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0;
}

.thanks-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(16,185,129,0.08);
    color: var(--success);
    margin-bottom: 28px;
}

.thanks-box h2 {
    margin-bottom: 12px;
}

.thanks-box p {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.thanks-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
    .thanks-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}


/* ==========================================================================
   29. SERVICES PAGE — Link-wrapped cards
   ========================================================================== */

a.service-card-link-wrap {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
a.service-card-link-wrap:hover {
    color: inherit;
}


/* ==========================================================================
   30. SERVICE DETAIL — Sub-services
   ========================================================================== */

.service-children {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--gray-200);
}

.service-children h2 {
    text-align: center;
    margin-bottom: 32px;
}

.service-child-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 28px;
}
.service-child-card:hover {
    color: inherit;
}
.service-child-card h4 {
    margin-bottom: 8px;
}
.service-child-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    flex: 1;
    margin-bottom: 12px;
}


/* ==========================================================================
   30b. TEAM PAGE — Intro & Stats
   ========================================================================== */

.team-intro-section {
    padding-bottom: 0;
}

.team-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.team-intro-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.3;
}

.team-intro-text {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-secondary, #4b5563);
    margin: 0;
}

.team-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.team-stat-card {
    background: var(--white);
    border-radius: var(--radius, 12px);
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(6, 53, 91, 0.08);
    border-top: 3px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(6, 53, 91, 0.14);
}

.team-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.02em;
}

.team-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary, #4b5563);
    font-weight: 500;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .team-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .team-intro-heading {
        font-size: 1.6rem;
    }
    .team-intro-text {
        font-size: 1rem;
    }
    .team-stat-number {
        font-size: 2rem;
    }
    .team-stat-card {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .team-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .team-intro {
        margin-bottom: 32px;
    }
}


/* ==========================================================================
   31. TEAM PAGE — Larger cards
   ========================================================================== */

.team-page-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 0;
    overflow: hidden;
}
.team-page-card:hover {
    color: inherit;
}

.team-page-photo {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: var(--gray-100);
}
.team-page-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s var(--ease);
}
.team-page-card:hover .team-page-photo img {
    transform: scale(1.05);
}
.team-page-photo .team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-400);
}

.team-page-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-page-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-page-title {
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-page-bio {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}


/* ==========================================================================
   32. TEAM MEMBER PROFILE PAGE — Premium 3-column layout
   ========================================================================== */

/* --- Layout: sidebar (340px) + content (fluid) --- */
.member-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* --- Sidebar --- */
.member-sidebar {
    position: sticky;
    top: 120px;
}

.member-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(6,53,91,0.04);
    transition: box-shadow 0.4s var(--ease);
}
.member-card:hover {
    box-shadow: 0 8px 32px rgba(6,53,91,0.08);
}

/* Photo */
.member-card-photo {
    overflow: hidden;
    height: 340px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}
.member-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.7s var(--ease);
}
.member-card:hover .member-card-photo img {
    transform: scale(1.05);
}
.member-card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

/* Name & Role */
.member-card-info {
    padding: 1.5rem 1.5rem 0.25rem;
    text-align: center;
}
.member-card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: var(--leading-tight);
    margin-bottom: 4px;
}
.member-card-role {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

/* Qualifications section */
.member-card-section {
    padding: 1rem 1.5rem;
}
.member-card-section h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.member-card-section h4 svg {
    flex-shrink: 0;
    color: var(--gold);
}
.member-quals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Action Buttons */
.member-card-actions {
    padding: 0.5rem 1.5rem 1rem;
}
.member-btn-full {
    width: 100%;
    justify-content: center;
}
.member-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.member-btn-row .btn {
    justify-content: center;
    font-size: 0.82rem;
    padding: 10px 12px;
}

/* Contact details box */
.member-card-contact {
    background: var(--gray-50);
    border-radius: 12px;
    margin: 0 1rem 1rem;
    padding: 1rem;
    font-size: 0.85rem;
}
.member-card-contact div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}
.member-card-contact svg {
    flex-shrink: 0;
    color: var(--gray-400);
}
.member-card-contact a {
    color: var(--gray-500);
    transition: color 0.2s var(--ease);
    word-break: break-all;
}
.member-card-contact a:hover {
    color: var(--navy-light);
}

/* Social links */
.member-card-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 1.5rem 1.25rem;
}
.member-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gray-100);
    transition: all 0.3s var(--ease);
}
.member-social-link[title="Facebook"]          { color: #1877F2; }
.member-social-link[title="LinkedIn"]          { color: #0A66C2; }
.member-social-link[title="X / Twitter"]       { color: #000000; }
.member-social-link[title="Instagram"]         { color: #E4405F; }
.member-social-link[title="YouTube"]           { color: #FF0000; }
.member-social-link[title="TikTok"]            { color: #010101; }
.member-social-link[title="LinkedIn - Albion FA"] { color: #0A66C2; }
.member-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0.8;
}
.member-social-link svg {
    width: 18px;
    height: 18px;
}

/* --- Right Content Cards --- */
.member-content {
    min-width: 0;
}

.member-content-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 2px 12px rgba(6,53,91,0.03);
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.member-content-card:hover {
    box-shadow: 0 8px 32px rgba(6,53,91,0.06);
    transform: translateY(-2px);
}

/* Accent bar at top of card */
.member-content-card-accent {
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    border-radius: 0 0 3px 3px;
}
.accent-navy  { background: var(--navy); }
.accent-gold  { background: var(--gold); }
.accent-green { background: var(--success); }

/* Card heading */
.member-content-card h3 {
    font-size: 1.25rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}
.member-content-card h3 svg {
    flex-shrink: 0;
    color: var(--navy);
}

/* Bio text */
.member-bio {
    max-width: none;
    color: var(--gray-600);
    line-height: 1.85;
    font-size: 1.05rem;
}
.member-bio p {
    margin-bottom: 1rem;
}
.member-bio p:last-child {
    margin-bottom: 0;
}
.member-bio ul, .member-bio ol {
    margin: 16px 0;
    padding-left: 24px;
}
.member-bio ul { list-style: disc; }
.member-bio ol { list-style: decimal; }
.member-bio li {
    margin-bottom: 6px;
}

/* CTA Card */
.member-cta-card {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: var(--white);
    border: none;
    overflow: hidden;
}
.member-cta-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(215,173,62,0.08);
    pointer-events: none;
}
.member-cta-card:hover {
    box-shadow: 0 12px 40px rgba(6,53,91,0.25);
}
.member-cta-card-inner {
    position: relative;
    z-index: 1;
}
.member-cta-card h3 {
    color: var(--white);
}
.member-cta-card h3 svg {
    color: var(--gold);
}
.member-cta-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
    line-height: 1.7;
}
.member-cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.member-cta-phone-btn {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}
.member-cta-phone-btn:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
    box-shadow: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .member-layout {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }
}
@media (max-width: 768px) {
    .member-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .member-sidebar {
        position: static;
        max-width: 100%;
        margin: 0 auto;
    }
    .member-card-photo {
        height: 280px;
    }
}

@media (max-width: 640px) {
    .member-card-photo {
        height: 240px;
    }
    .member-content-card {
        padding: 1.5rem;
    }
    .member-content-card h3 {
        font-size: 1.1rem;
    }
    .member-cta-buttons {
        flex-direction: column;
    }
    .member-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .member-btn-row {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   33a. MEDIA PAGE — Hero Extension
   ========================================================================== */

.page-hero--media {
    padding-bottom: 0;
}

.page-hero--media .page-hero-inner {
    padding: 56px 24px 64px;
    max-width: 820px;
    margin: 0 auto;
}

.page-hero--media .page-hero-shape--2 {
    width: 350px;
    height: 350px;
    top: auto;
    bottom: -120px;
    right: auto;
    left: -80px;
    background: rgba(215,173,62,0.04);
}

.media-hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(215,173,62,0.15);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
}

.page-hero--media .breadcrumb,
.page-hero--media .breadcrumb a,
.page-hero--media .breadcrumb span {
    color: rgba(255,255,255,0.8);
}

.page-hero--media .page-hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--white);
}

.media-hero-desc {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 720px;
    margin: 0 auto 28px;
}

.media-hero-desc strong {
    color: var(--gold);
    font-weight: 600;
}

.media-hero-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.media-hero-logo-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.2s var(--ease);
}

.media-hero-logo-pill:hover {
    background: rgba(215,173,62,0.15);
    border-color: rgba(215,173,62,0.3);
    color: var(--gold-light);
}

@media (max-width: 640px) {
    .page-hero--media .page-hero-inner {
        padding: 40px 16px 48px;
    }
    .media-hero-desc {
        font-size: 0.95rem;
    }
    .media-hero-logos {
        gap: 6px;
    }
    .media-hero-logo-pill {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
}


/* ==========================================================================
   33b. MEDIA PAGE — Sidebar + 2-column grid
   ========================================================================== */

.media-layout {
    display: flex;
    gap: 2rem;
    max-width: 100%;
    overflow: hidden;
}

.media-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.media-sidebar-inner {
    position: sticky;
    top: calc(var(--total-header) + 24px);
}

.media-count-box {
    text-align: center;
    padding: 24px 16px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), #04294a);
    border-radius: 12px;
    color: #fff;
}
.media-count-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.media-count-label {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.media-sidebar-inner h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.media-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.media-filter {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s var(--ease);
}
.media-filter:hover {
    border-color: var(--gold);
    color: var(--navy);
}
.media-filter.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.media-filter-logo {
    height: 22px;
    width: auto;
    max-width: 56px;
    object-fit: contain;
    flex-shrink: 0;
}
.media-filter.active .media-filter-logo {
    filter: brightness(0) invert(1);
}

.media-cta {
    margin-top: 1.5rem;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.media-cta h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 8px;
}
.media-cta p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 14px;
}
.media-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.media-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-content: start;
}

/* Featured first card - spans full width */
.media-grid .media-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}
.media-grid .media-card:first-child .media-card-image {
    aspect-ratio: 3 / 2;
    min-height: 100%;
}
.media-grid .media-card:first-child .media-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.media-grid .media-card:first-child .media-card-body h3 {
    font-size: 1.2rem;
}
.media-grid .media-card:first-child .media-quote {
    -webkit-line-clamp: 5;
}

.media-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
}
.media-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.media-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.media-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.media-card:hover .media-card-image img {
    transform: scale(1.04);
}

.media-card-body {
    padding: 24px 28px 28px;
}

.media-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.media-outlet-logo {
    height: 32px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.media-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 10px;
}

.media-quote {
    font-style: italic;
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.media-date {
    font-size: 0.75rem;
    color: var(--gray-500);
    background: var(--gray-50);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.media-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-light);
    transition: color 0.2s;
}
.media-link:hover {
    color: var(--gold-dark);
}

/* Media page responsive */
@media (max-width: 1024px) {
    .media-layout {
        flex-direction: column;
    }
    .media-sidebar {
        width: 100%;
    }
    .media-sidebar-inner {
        position: static;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
    }
    .media-count-box {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
        margin-bottom: 0;
    }
    .media-count-number {
        font-size: 1.8rem;
    }
    .media-count-label {
        margin-top: 0;
        font-size: 0.8rem;
    }
    .media-sidebar-inner h3 {
        display: none;
    }
    .media-filters {
        flex: 1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .media-filter {
        width: auto;
        padding: 8px 14px;
        font-size: 0.82rem;
    }
    .media-cta {
        display: none;
    }
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .media-grid .media-card:first-child {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .media-grid .media-card:first-child {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
    .media-grid .media-card:first-child .media-card-image {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
    .media-card-body {
        padding: 16px 20px 20px;
    }
    .media-sidebar {
        overflow: hidden;
    }
    .media-sidebar-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .media-count-box {
        justify-content: center;
    }
    /* Wrapped filter pills - 3 rows with overflow scroll */
    .media-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        max-height: 120px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 4px 0 8px;
        max-width: 100%;
        scrollbar-width: thin;
    }
    .media-filter {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 6px 12px;
        border-radius: 24px;
        font-size: 0.75rem;
    }
    .media-filter-logo {
        height: 14px;
        max-width: 36px;
    }
}


/* ==========================================================================
   33b. MEDIA DETAIL PAGE
   ========================================================================== */

.media-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
    margin-top: 6px;
}
.media-back-link:hover {
    color: var(--white);
}

.page-hero--compact .page-hero-inner {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

a.media-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.media-detail {
    flex: 1;
    min-width: 0;
}

.media-detail-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.media-detail-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.media-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-detail-body {
    padding: 2rem 2.5rem 2.5rem;
}

.media-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.media-outlet-logo--lg {
    height: 36px;
    width: auto;
    max-width: 160px;
}

.media-detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy);
    margin-bottom: 2rem;
}

.media-detail-section {
    margin-bottom: 2rem;
}

.media-detail-lang-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}
.media-detail-lang-label svg {
    opacity: 0.6;
}

.media-detail-quote {
    position: relative;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--gray-700);
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    border-left: 4px solid var(--gray-200);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    white-space: pre-line;
}

.media-detail-quote--pl {
    background: rgba(6,53,91,0.03);
    border-left-color: var(--navy);
}

.media-detail-translate-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    font-size: 0.9rem;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.media-detail-translate-error {
    padding: 1rem 1.5rem;
    background: rgba(239,68,68,0.05);
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: var(--radius-sm);
    color: #b91c1c;
    font-size: 0.88rem;
}

.media-detail-cta {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-100);
}

.media-detail-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(6,53,91,0.04), rgba(215,173,62,0.06));
    border-radius: var(--radius);
}

.media-detail-cta h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.media-detail-cta p {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin: 0;
}

.media-detail-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.media-detail-back {
    margin-top: 2rem;
    text-align: center;
}

.media-detail-back .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .media-detail-body {
        padding: 1.5rem;
    }
    .media-detail-title {
        font-size: 1.25rem;
    }
    .media-detail-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }
}


/* ==========================================================================
   34. HERO STAT CARDS — Overlapping hero bottom
   ========================================================================== */

.hero-with-stats {
    padding-bottom: 0;
}

.hero-with-stats .hero-inner {
    padding-bottom: 60px;
}

.hero-stats-row {
    position: relative;
    z-index: 2;
    transform: translateY(50%);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--gold);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hero-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(6,53,91,0.18);
}

.hero-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(215,173,62,0.12);
    color: var(--gold);
    margin-bottom: 16px;
}

.hero-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    /* No overlap — cards flow inside hero */
    .hero-stats-row {
        transform: none;
        position: static;
        padding: 0 16px 32px;
    }
    .hero-stats-row.container {
        max-width: 100%;
        padding: 0 16px 32px;
    }
    .hero-with-stats .hero-inner {
        padding-bottom: 24px;
    }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: none;
    }
    .hero-stat-card {
        background: rgba(255,255,255,0.12);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255,255,255,0.15);
        border-top: 2px solid var(--gold);
        padding: 14px 10px;
        box-shadow: none;
    }
    .hero-stat-card:hover {
        transform: none;
        box-shadow: none;
    }
    .hero-stat-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 6px;
        border-radius: 10px;
        background: rgba(215,173,62,0.2);
    }
    .hero-stat-icon svg {
        width: 16px;
        height: 16px;
    }
    .hero-stat-number {
        font-size: 1.2rem;
        margin-bottom: 2px;
        color: var(--white);
    }
    .hero-stat-label {
        font-size: 0.7rem;
        line-height: 1.25;
        color: rgba(255,255,255,0.7);
    }
    /* No extra padding needed on next section */
    .trusted-section {
        padding-top: var(--section-y);
    }
}

@media (max-width: 640px) {
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .hero-stat-card {
        padding: 16px 12px;
    }
}


/* ==========================================================================
   35. TRUSTED NAME SECTION
   ========================================================================== */

.trusted-section {
    padding-top: calc(var(--section-y) + 80px);
    /* Extra top padding to account for overlapping stat cards */
}

.trusted-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.trusted-grid .section-title {
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.trusted-grid .section-title::after {
    left: 0;
    transform: none;
}

.trusted-lead {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.trusted-text {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 28px;
}

.trusted-checks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}

.trusted-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
}

.trusted-check-item svg {
    flex-shrink: 0;
    color: var(--success);
}

.trusted-image {
    position: relative;
}

.trusted-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 1024px) {
    .trusted-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .trusted-image {
        max-width: 500px;
    }
}

/* trusted-section mobile padding handled in hero-stats 768px block */


/* ==========================================================================
   36. TRUST CARDS — "Built on Trust" Section
   ========================================================================== */

.trust-card {
    text-align: center;
    padding: 36px 28px;
}

.trust-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(6,53,91,0.06);
    color: var(--navy);
    margin-bottom: 20px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.trust-card:hover .trust-card-icon {
    background: var(--gold);
    color: var(--navy);
}

.trust-card-text {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}


/* ==========================================================================
   37. SERVICES SIDEBAR LAYOUT
   ========================================================================== */

.services-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: flex-start;
}

/* Sidebar */
.services-sidebar {
    position: sticky;
    top: calc(var(--total-header) + 24px);
}

.sidebar-mobile-toggle {
    display: none;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.sidebar-nav {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
}

.sidebar-group {
    margin-bottom: 4px;
}
.sidebar-group:last-child {
    margin-bottom: 0;
}

.sidebar-link {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: all 0.2s var(--ease);
    text-decoration: none;
    line-height: 1.4;
}
.sidebar-link:hover {
    color: var(--navy);
    background: var(--gray-50);
    border-left-color: var(--gray-300);
}

.sidebar-link-parent {
    font-weight: 600;
    color: var(--navy);
}

.sidebar-link-child {
    font-weight: 400;
    font-size: 0.85rem;
    padding-left: 28px;
    color: var(--gray-500);
}

.sidebar-link.active {
    color: var(--navy);
    background: rgba(215,173,62,0.08);
    border-left-color: var(--gold);
    font-weight: 600;
}

.sidebar-link.parent-active {
    color: var(--navy);
    font-weight: 700;
}

.sidebar-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}

.sidebar-children-open,
.sidebar-group:has(.sidebar-link-parent.active) .sidebar-children,
.sidebar-group:has(.sidebar-link-parent.parent-active) .sidebar-children {
    max-height: 500px;
}

.sidebar-show-all .sidebar-group .sidebar-children {
    max-height: 500px !important;
    overflow: visible;
}

/* Content area within sidebar layout */
.services-content {
    min-width: 0;
}

.services-content .content-area {
    max-width: none;
}

/* Responsive sidebar */
@media (max-width: 1200px) {
    .services-layout {
        grid-template-columns: 240px 1fr;
        gap: 32px;
    }
}
@media (max-width: 1024px) {
    .services-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .services-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 32px;
    }

    .sidebar-mobile-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 20px;
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-sm);
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--navy);
        width: 100%;
        transition: border-color 0.2s var(--ease);
    }
    .sidebar-mobile-toggle:hover {
        border-color: var(--gold);
    }
    .sidebar-mobile-toggle span {
        flex: 1;
    }

    .sidebar-chevron {
        transition: transform 0.3s var(--ease);
    }
    .services-sidebar.sidebar-open .sidebar-chevron {
        transform: rotate(180deg);
    }

    .sidebar-nav {
        display: none;
        margin-top: 8px;
    }
    .services-sidebar.sidebar-open .sidebar-nav {
        display: block;
    }

    .sidebar-children,
    .sidebar-children-open {
        max-height: 500px;
    }
}

@media (min-width: 1025px) {
    .sidebar-mobile-toggle {
        display: none;
    }
    .sidebar-nav {
        display: block !important;
    }
}


/* ==========================================================================
   38. BLOG LAYOUT — Listing + Sidebar
   ========================================================================== */

.blog-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}
.blog-main {
    flex: 1;
    min-width: 0;
}
.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
}
.blog-sidebar-inner {
    position: sticky;
    top: calc(var(--total-header) + 24px);
}

/* -- Featured Post Card (top of listing) -- */
.blog-featured-card {
    display: flex;
    flex-direction: row;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    margin-bottom: 2rem;
}
.blog-featured-img {
    width: 420px;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--gray-100);
}
.blog-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.blog-featured-card:hover .blog-featured-img img {
    transform: scale(1.05);
}
.blog-featured-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-featured-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

/* -- Blog Grid -- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* -- Pagination -- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all 0.2s var(--ease);
    text-decoration: none;
}
a.pagination-link:hover {
    color: var(--navy);
    border-color: var(--navy);
    background: rgba(6,53,91,0.04);
}
.pagination-link.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    font-weight: 600;
}
.pagination-dots {
    padding: 8px 4px;
    color: var(--gray-400);
    font-size: 0.9rem;
}
/* -- Google-style pagination ------------------------------------------------ */

.pg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 3rem;
}

.pg-numbers {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pg-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

a.pg-num:hover {
    background: var(--gray-100);
    color: var(--navy);
}

.pg-active {
    background: var(--navy);
    color: var(--white) !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(6,53,91,0.25);
}

.pg-dots {
    width: 32px;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    letter-spacing: 1px;
    user-select: none;
}

.pg-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--navy);
    text-decoration: none;
    transition: background 0.15s ease;
}

.pg-arrow:hover {
    background: var(--gray-100);
}

.pg-disabled {
    color: var(--gray-300);
    pointer-events: none;
}

.pg-info {
    text-align: center;
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--gray-400);
    letter-spacing: 0.01em;
}

@media (max-width: 480px) {
    .pg-num, .pg-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }
}


/* ==========================================================================
   39. BLOG SIDEBAR — Widgets
   ========================================================================== */

.blog-sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}
.blog-sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Search */
.blog-search {
    display: flex;
    gap: 8px;
}
.blog-search input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    transition: border-color 0.2s var(--ease);
    outline: none;
    background: var(--white);
}
.blog-search input:focus {
    border-color: var(--navy);
}
.blog-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s var(--ease);
}
.blog-search button:hover {
    background: var(--navy-dark);
}

/* Categories list */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-categories li {
    margin-bottom: 2px;
}
.sidebar-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--gray-600);
    transition: all 0.2s var(--ease);
    text-decoration: none;
}
.sidebar-cat-link:hover {
    color: var(--navy);
    background: var(--gray-50);
}
.sidebar-cat-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    min-width: 24px;
    text-align: center;
}

/* Recent posts */
.sidebar-recent {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-recent li {
    margin-bottom: 12px;
}
.sidebar-recent li:last-child {
    margin-bottom: 0;
}
.sidebar-recent-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}
.sidebar-recent-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}
.sidebar-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-recent-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
}
.sidebar-recent-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-recent-item:hover .sidebar-recent-title {
    color: var(--navy-light);
}
.sidebar-recent-date {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 2px;
}

/* Tags cloud */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sidebar-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius-pill);
    transition: all 0.2s var(--ease);
    text-decoration: none;
}
.sidebar-tag:hover {
    color: var(--navy);
    background: rgba(6,53,91,0.1);
}


/* ==========================================================================
   40. SINGLE POST — Article styles
   ========================================================================== */

/* Hero meta */
.post-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.post-hero-date,
.post-hero-author {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
}
.post-hero-date::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    margin-right: 8px;
    vertical-align: middle;
}
.post-hero-meta .badge {
    font-size: 0.7rem;
}

/* Featured image below hero */
.post-featured-image-section {
    margin-top: -40px;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}
.post-hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Post article area */
.post-article {
    max-width: 780px;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2.5rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}
.post-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius-pill);
    transition: all 0.2s var(--ease);
    text-decoration: none;
}
.post-tag:hover {
    color: var(--navy);
    background: rgba(6,53,91,0.1);
}

/* Share buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2rem 0;
}
.post-share-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-500);
}
.post-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.post-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.post-share-facebook {
    background: #1877f2;
    color: var(--white);
}
.post-share-linkedin {
    background: #0a66c2;
    color: var(--white);
}
.post-share-twitter {
    background: var(--gray-800);
    color: var(--white);
}
.post-share-whatsapp {
    background: #25D366;
    color: var(--white);
}

/* Author card */
.post-author-card {
    background: var(--gray-50);
    border-radius: 16px;
    margin: 2.5rem 0;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.3s ease;
}
.post-author-card:hover {
    box-shadow: 0 4px 20px rgba(6, 53, 91, 0.1);
}
.post-author-main {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}
.post-author-main:hover {
    text-decoration: none;
}
.post-author-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.post-author-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 4px;
}
.post-author-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.post-author-bio {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.post-author-socials {
    display: flex;
    gap: 6px;
    padding: 0.75rem 2rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    flex-wrap: wrap;
}
.post-author-socials .member-social-link {
    width: 38px;
    height: 38px;
}

/* Post reactions */
.post-reactions {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    text-align: center;
}
.post-reactions-label {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1rem;
}
.post-reactions-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.reaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 100px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--gray-600);
    transition: all 0.2s ease;
    font-family: inherit;
}
.reaction-btn:hover {
    border-color: var(--gold);
    background: #fffdf5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(215,173,62,0.15);
}
.reaction-btn.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, #fffdf5, #fef9e7);
    color: var(--navy);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(215,173,62,0.2);
}
.reaction-emoji {
    font-size: 1.2rem;
    line-height: 1;
}
.reaction-count {
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 100px;
    min-width: 20px;
    text-align: center;
}
.reaction-btn.active .reaction-count {
    background: var(--gold);
    color: var(--white);
}

/* Related posts */
.post-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}
.post-related-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}
.related-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}


/* ==========================================================================
   41. SEARCH PAGE
   ========================================================================== */

.search-page {
    max-width: 800px;
    margin: 0 auto;
}

.search-form-big {
    display: flex;
    gap: 12px;
    margin-bottom: 2.5rem;
}
.search-input-wrap {
    flex: 1;
    position: relative;
}
.search-input-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}
.search-input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s var(--ease);
    outline: none;
}
.search-input-wrap input:focus {
    border-color: var(--navy);
}

.search-results {
    margin-top: 1rem;
}
.search-result {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.search-result:last-child {
    border-bottom: none;
}
.search-result-type {
    margin-bottom: 8px;
}
.search-result-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.search-result-title a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
}
.search-result-title a:hover {
    color: var(--navy-light);
}
.search-result-snippet {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.search-result-snippet b {
    color: var(--navy);
    font-weight: 600;
}


/* ==========================================================================
   42. BLOG — Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .blog-sidebar {
        width: 240px;
    }
    .blog-featured-card {
        flex-direction: column;
    }
    .blog-featured-img {
        width: 100%;
        aspect-ratio: 4 / 3;
    }
    .related-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-layout {
        gap: 1.25rem;
    }
    .blog-sidebar {
        width: 200px;
        font-size: 0.85rem;
    }
    .blog-sidebar-inner {
        position: static;
    }
}

@media (max-width: 640px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-sidebar {
        width: 100%;
        order: -1;
    }
    .blog-sidebar-inner {
        position: static;
    }
    /* Compact mobile sidebar: only show categories as horizontal pills */
    .blog-sidebar .blog-sidebar-section {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }
    /* Hide search, most read, recent posts, tags on mobile sidebar */
    .blog-sidebar .blog-search,
    .blog-sidebar .sidebar-recent,
    .blog-sidebar .sidebar-tags {
        display: none;
    }
    /* Also hide headings for hidden sections (keep only Kategorie) */
    .blog-sidebar .blog-sidebar-section:first-child,
    .blog-sidebar .blog-sidebar-section:nth-child(n+3) {
        display: none;
    }
    /* Categories as horizontal scrollable pills */
    .blog-sidebar .sidebar-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .blog-sidebar .sidebar-cat-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 5px 12px;
        background: var(--gray-100, #f3f4f6);
        border-radius: 20px;
        font-size: 0.8rem;
        white-space: nowrap;
        text-decoration: none;
        color: var(--gray-700, #374151);
    }
    .blog-sidebar .sidebar-cat-count {
        font-size: 0.7rem;
        background: var(--gold, #D7AD3E);
        color: var(--navy, #06355B);
        border-radius: 10px;
        padding: 1px 6px;
        font-weight: 700;
    }
    .blog-sidebar .sidebar-heading {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    /* Mobile bottom sidebar — show below post on mobile only */
    .blog-sidebar-mobile-bottom {
        display: block;
        order: 99;
        width: 100%;
    }
}

/* Mobile bottom sidebar — hidden on desktop */
.blog-sidebar-mobile-bottom {
    display: none;
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .related-posts {
        grid-template-columns: 1fr;
    }
    .blog-featured-body {
        padding: 20px;
    }
    .blog-featured-title {
        font-size: 1.2rem;
    }
    .post-author-main {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
        align-items: center;
    }
    .post-author-socials {
        justify-content: center;
        padding: 0.75rem 1.25rem;
    }
    .post-share {
        flex-wrap: wrap;
    }
    .search-form-big {
        flex-direction: column;
    }
}


/* ==========================================================================
   40. CALCULATORS
   ========================================================================== */

.calc-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 720px;
}

.calc-form,
.calc-results {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.calc-form h2,
.calc-results h2 {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
}

/* Input groups */
.calc-group {
    margin-bottom: 1.25rem;
}

.calc-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 6px;
    font-weight: 500;
}

.calc-group input,
.calc-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    background: var(--white);
    color: var(--gray-800);
}

.calc-group input:focus,
.calc-group select:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(215,173,62,0.15);
}

.calc-group input::placeholder {
    color: var(--gray-400);
}

.calc-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.calc-group .calc-hint {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 4px;
}

/* Inline computed field */
.calc-computed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--gray-200);
}

.calc-computed-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.calc-computed-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
}

/* Result items */
.calc-result-item {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: transform 0.2s var(--ease);
}

.calc-result-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.calc-result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    transition: opacity 0.15s;
}

/* Primary result highlight */
.calc-result-highlight {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #0a4a7a 100%);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.calc-result-highlight::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(215,173,62,0.08);
}

.calc-result-highlight .calc-result-label {
    color: rgba(255,255,255,0.7);
}

.calc-result-highlight .calc-result-value {
    color: var(--gold);
    font-size: 2rem;
}

/* Stamp duty / comparison table */
.calc-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.calc-table th {
    background: var(--navy);
    color: var(--white);
    padding: 10px 12px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
}

.calc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.calc-table tr:last-child td {
    font-weight: 700;
    background: var(--gray-50);
    color: var(--navy);
    border-bottom: none;
}

.calc-table tr:nth-child(even) td {
    background: var(--gray-50);
}

.calc-table tr:last-child td {
    background: rgba(215,173,62,0.08);
}

/* Checkbox / Radio in calcs */
.calc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    cursor: pointer;
}

.calc-check input[type="checkbox"],
.calc-check input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--navy);
    cursor: pointer;
    flex-shrink: 0;
}

.calc-check label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.calc-radio-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.calc-radio-group .calc-check {
    margin: 0;
}

/* LTV badge */
.calc-ltv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.calc-ltv-badge.ltv-green {
    background: rgba(16,185,129,0.1);
    color: #059669;
}

.calc-ltv-badge.ltv-amber {
    background: rgba(245,158,11,0.1);
    color: #D97706;
}

.calc-ltv-badge.ltv-red {
    background: rgba(239,68,68,0.1);
    color: #DC2626;
}

/* Feasibility indicator */
.calc-feasibility {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.calc-feasibility.feasible {
    background: rgba(16,185,129,0.1);
    color: #059669;
}

.calc-feasibility.not-feasible {
    background: rgba(239,68,68,0.08);
    color: #DC2626;
}

.calc-feasibility-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feasible .calc-feasibility-icon {
    background: rgba(16,185,129,0.15);
}

.not-feasible .calc-feasibility-icon {
    background: rgba(239,68,68,0.12);
}

/* Scheme cards */
.calc-schemes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.calc-scheme-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--gray-200);
}

.calc-scheme-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.calc-scheme-card p {
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Print button */
.calc-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
    float: right;
    margin-top: -3rem;
    margin-bottom: 1rem;
}

.calc-print-btn:hover {
    background: var(--gray-200);
    color: var(--navy);
}

/* CTA section */
.calc-cta {
    background: var(--gray-50);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 2rem;
    border: 1px solid var(--gray-200);
}

.calc-cta h3 {
    color: var(--navy);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.calc-cta p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.calc-cta .btn {
    margin: 0 8px 10px;
}

/* SEO info section */
.calc-info {
    max-width: 800px;
    margin: 3rem auto 0;
}

.calc-info h2 {
    color: var(--navy);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.calc-info h3 {
    color: var(--navy);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.calc-info p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.calc-info ul {
    margin: 0 0 1rem 1.5rem;
    list-style: disc;
}

.calc-info ul li {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

/* Results empty / placeholder */
.calc-results-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--gray-400);
}

.calc-results-empty svg {
    margin-bottom: 1rem;
    opacity: 0.3;
}

.calc-results-empty p {
    font-size: 0.9rem;
}

/* ==========================================================================
   43. SERVICE PAGE — Rich Content Components
   Reusable blocks for service page HTML stored in the database.
   ========================================================================== */

/* --- Intro paragraph --- */
.svc-intro {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--gray-700);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

/* --- Grid layouts --- */
.svc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.svc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

/* --- Generic card --- */
.svc-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.svc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.svc-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 0;
    margin-bottom: 12px;
}

.svc-card + .svc-card {
    margin-top: 20px;
}

/* --- Feature cards grid --- */
.svc-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.svc-feature {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.svc-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.svc-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.svc-feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    fill: none;
}

.svc-feature h3,
.svc-feature h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    margin-top: 0;
}

.svc-feature p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin-bottom: 0;
}

/* --- Process / steps section --- */
.svc-process {
    margin: 40px 0;
    counter-reset: svc-step;
}

.svc-process > h2,
.svc-process > h3 {
    margin-bottom: 28px;
}

.svc-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.svc-step:last-child {
    margin-bottom: 0;
}

.svc-step-num {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(215, 173, 62, 0.35);
}

.svc-step h3,
.svc-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    margin-top: 0;
}

.svc-step p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin-bottom: 0;
}

.svc-step-content {
    flex: 1;
}

/* --- Info / Warning / Tip callout boxes --- */
.svc-info-box,
.svc-warn-box,
.svc-tip-box {
    margin: 28px 0;
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 4px solid;
    background: var(--gray-50);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.svc-info-box {
    border-left-color: var(--navy-light);
    background: rgba(23, 103, 154, 0.05);
}

.svc-warn-box {
    border-left-color: #F59E0B;
    background: rgba(245, 158, 11, 0.05);
}

.svc-tip-box {
    border-left-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.svc-info-box h4,
.svc-warn-box h4,
.svc-tip-box h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 0;
    margin-bottom: 10px;
}

.svc-warn-box h4 {
    color: #92400E;
}

.svc-tip-box h4 {
    color: #065F46;
}

.svc-info-box strong,
.svc-warn-box strong,
.svc-tip-box strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 0.95rem;
}

.svc-warn-box strong {
    color: #92400E;
}

.svc-tip-box strong {
    color: #065F46;
}

.svc-info-box p,
.svc-warn-box p,
.svc-tip-box p {
    margin-bottom: 8px;
}

.svc-info-box p:last-child,
.svc-warn-box p:last-child,
.svc-tip-box p:last-child {
    margin-bottom: 0;
}

.svc-info-box ul,
.svc-warn-box ul,
.svc-tip-box ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.svc-info-box li,
.svc-warn-box li,
.svc-tip-box li {
    margin-bottom: 6px;
    font-size: 0.93rem;
    line-height: 1.65;
}

/* --- Benefits / checkmark list --- */
.svc-benefits {
    margin: 28px 0;
    list-style: none;
    padding: 0;
}

.svc-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.svc-benefit:last-child {
    border-bottom: none;
}

.svc-benefit::before {
    content: '';
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #34D399);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

/* --- CTA box within content --- */
.svc-cta-box {
    margin: 36px 0;
    padding: 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: var(--white);
    text-align: center;
}

.svc-cta-box h3,
.svc-cta-box h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 0;
}

.svc-cta-box p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.svc-cta-box a,
.svc-cta-box .btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}

.svc-cta-box a:hover,
.svc-cta-box .btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    color: var(--navy-dark);
}

/* --- Trust badges strip --- */
.svc-trust-strip {
    display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap;
    margin: 32px 0; padding: 24px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(6,53,91,0.03) 0%, rgba(23,103,154,0.05) 100%);
    border: 1px solid rgba(6,53,91,0.08);
}
.svc-trust-badge {
    display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--gray-600);
}
.svc-trust-badge-icon {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.svc-trust-badge-icon.navy { background: linear-gradient(135deg, #06355B, #17679A); }
.svc-trust-badge-icon.gold { background: linear-gradient(135deg, #D7AD3E, #F8C04F); }
.svc-trust-badge-icon.green { background: linear-gradient(135deg, #10B981, #34D399); }
.svc-trust-badge-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; }
.svc-trust-badge strong { display: block; color: var(--navy); font-size: 0.95rem; }
.svc-trust-badge span { font-size: 0.78rem; color: var(--gray-500); }

/* --- Enhanced lender card with colored header --- */
.svc-lender-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.svc-lender-card:hover {
    transform: translateY(-3px); box-shadow: 0 8px 28px rgba(6,53,91,0.1); border-color: #D7AD3E;
}
.svc-lender-header {
    background: linear-gradient(135deg, #06355B 0%, #17679A 100%);
    color: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
}
.svc-lender-header h3 { color: #fff; margin: 0; font-size: 1rem; font-weight: 700; }
.svc-lender-badge {
    background: rgba(215,173,62,0.2); color: #F8C04F; padding: 3px 12px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 600; white-space: nowrap;
}
.svc-lender-body { padding: 18px 20px; }
.svc-lender-body p { margin: 0 0 10px; font-size: 0.88rem; color: #6B7280; line-height: 1.6; }
.svc-lender-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-lender-tag {
    display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600;
    background: rgba(16,185,129,0.1); color: #065F46;
}
.svc-lender-tag.warn { background: rgba(245,158,11,0.1); color: #92400E; }

/* --- Why choose us / icon row --- */
.svc-why-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0; text-align: center;
}
.svc-why-item { padding: 24px 16px; }
.svc-why-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(6,53,91,0.06) 0%, rgba(23,103,154,0.08) 100%);
    border: 2px solid rgba(6,53,91,0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}
.svc-why-item:hover .svc-why-icon {
    transform: scale(1.1); background: linear-gradient(135deg, #D7AD3E, #F8C04F);
    border-color: #D7AD3E;
}
.svc-why-item:hover .svc-why-icon svg { stroke: #fff; }
.svc-why-icon svg { width: 28px; height: 28px; stroke: #06355B; fill: none; }
.svc-why-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.svc-why-item p { font-size: 0.8rem; color: var(--gray-500); line-height: 1.5; margin: 0; }

/* --- Success metric banner --- */
.svc-metric-banner {
    display: flex; align-items: stretch; border-radius: 16px; overflow: hidden; margin: 36px 0;
    box-shadow: 0 4px 20px rgba(6,53,91,0.08);
}
.svc-metric {
    flex: 1; padding: 28px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1);
}
.svc-metric:last-child { border-right: none; }
.svc-metric.navy { background: linear-gradient(135deg, #06355B, #0a4a7a); color: #fff; }
.svc-metric.gold { background: linear-gradient(135deg, #D7AD3E, #F8C04F); color: #06355B; }
.svc-metric .metric-icon { font-size: 1.5rem; margin-bottom: 6px; }
.svc-metric .metric-value { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.svc-metric .metric-label { font-size: 0.78rem; opacity: 0.8; margin-top: 4px; }

/* --- Responsive: trust/lender enhancements --- */
@media (max-width: 768px) {
    .svc-trust-strip { gap: 20px; padding: 18px; }
    .svc-why-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-metric-banner { flex-wrap: wrap; }
    .svc-metric { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 640px) {
    .svc-trust-strip { flex-direction: column; gap: 14px; align-items: flex-start; padding: 16px; }
    .svc-trust-badge-icon { width: 36px; height: 36px; }
    .svc-trust-badge-icon svg { width: 16px; height: 16px; }
    .svc-why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .svc-why-icon { width: 48px; height: 48px; }
    .svc-why-icon svg { width: 22px; height: 22px; }
    .svc-metric-banner { flex-direction: column; }
    .svc-metric { padding: 18px 16px; }
    .svc-metric .metric-value { font-size: 1.5rem; }
    .svc-lender-header { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 16px; }
    .svc-lender-body { padding: 14px 16px; }
}

.svc-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 8px;
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s var(--ease), transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
    box-shadow: 0 4px 12px rgba(215, 173, 62, 0.3);
}

.svc-cta-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(215, 173, 62, 0.4);
    color: var(--navy-dark);
}

/* --- Stats row --- */
.svc-stats {
    display: flex;
    gap: 24px;
    margin: 36px 0;
    flex-wrap: wrap;
}

.svc-stat {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 28px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.svc-stat strong,
.svc-stat .svc-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 6px;
}

.svc-stat span,
.svc-stat .svc-stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* --- FAQ accordion --- */
.svc-faq {
    margin: 36px 0;
}

.svc-faq > h2,
.svc-faq > h3 {
    margin-bottom: 20px;
}

.svc-faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.3s var(--ease);
}

.svc-faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.svc-faq-item:last-child {
    margin-bottom: 0;
}

.svc-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--navy);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s var(--ease);
    user-select: none;
}

.svc-faq-q:hover {
    background: var(--gray-50);
}

.svc-faq-q svg,
.svc-faq-q .svc-faq-chevron {
    width: 20px;
    height: 20px;
    min-width: 20px;
    stroke: var(--gray-400);
    transition: transform 0.3s var(--ease), stroke 0.3s var(--ease);
}

.svc-faq-item.open .svc-faq-q svg,
.svc-faq-item.open .svc-faq-q .svc-faq-chevron {
    transform: rotate(180deg);
    stroke: var(--gold);
}

.svc-faq-item.open .svc-faq-q {
    color: var(--navy);
    border-bottom: 1px solid var(--gray-100);
}

.svc-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
    padding: 0 24px;
}

.svc-faq-item.open .svc-faq-a {
    max-height: 600px;
    padding: 20px 24px;
}

.svc-faq-a p {
    font-size: 0.93rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 12px;
}

.svc-faq-a p:last-child {
    margin-bottom: 0;
}

/* --- Highlight box --- */
.svc-highlight {
    margin: 28px 0;
    padding: 24px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(215, 173, 62, 0.08), rgba(248, 192, 79, 0.12));
    border: 1px solid rgba(215, 173, 62, 0.25);
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--gray-800);
}

.svc-highlight strong {
    color: var(--navy);
}

/* --- Legal notice box --- */
.svc-legal {
    margin: 28px 0;
    padding: 20px 24px;
    border-radius: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--gray-500);
}

.svc-legal strong {
    display: block;
    font-size: 0.82rem;
    color: var(--gray-600);
    margin-bottom: 4px;
}

/* --- Scroll reveal for service components --- */
.svc-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.svc-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animation */
.svc-features .svc-feature,
.svc-grid-2 > *,
.svc-grid-3 > * {
    opacity: 0;
    transform: translateY(16px);
    animation: svcFadeUp 0.5s var(--ease) forwards;
}

.svc-features .svc-feature:nth-child(1),
.svc-grid-2 > *:nth-child(1),
.svc-grid-3 > *:nth-child(1) { animation-delay: 0.05s; }

.svc-features .svc-feature:nth-child(2),
.svc-grid-2 > *:nth-child(2),
.svc-grid-3 > *:nth-child(2) { animation-delay: 0.1s; }

.svc-features .svc-feature:nth-child(3),
.svc-grid-3 > *:nth-child(3) { animation-delay: 0.15s; }

.svc-features .svc-feature:nth-child(4) { animation-delay: 0.2s; }
.svc-features .svc-feature:nth-child(5) { animation-delay: 0.25s; }
.svc-features .svc-feature:nth-child(6) { animation-delay: 0.3s; }
.svc-features .svc-feature:nth-child(7) { animation-delay: 0.35s; }
.svc-features .svc-feature:nth-child(8) { animation-delay: 0.4s; }

@keyframes svcFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive: Service rich components --- */
@media (max-width: 1024px) {
    .svc-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .svc-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .svc-features,
    .svc-grid-2,
    .svc-grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .svc-feature,
    .svc-card {
        padding: 22px;
    }

    .svc-step {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }

    .svc-step-num {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1rem;
    }

    .svc-stats {
        flex-direction: column;
        gap: 16px;
    }

    .svc-stat {
        min-width: unset;
        padding: 22px 16px;
    }

    .svc-stat strong,
    .svc-stat .svc-stat-num {
        font-size: 1.6rem;
    }

    .svc-cta-box {
        padding: 24px 20px;
    }

    .svc-faq-q {
        padding: 16px 18px;
        font-size: 0.92rem;
    }

    .svc-faq-a {
        padding: 0 18px;
    }

    .svc-faq-item.open .svc-faq-a {
        padding: 16px 18px;
    }

    .svc-info-box,
    .svc-warn-box,
    .svc-tip-box {
        padding: 16px 18px;
    }

    .svc-highlight {
        padding: 18px 20px;
    }

    .svc-intro {
        font-size: 1.05rem;
    }
}

/* --- Responsive iframes (YouTube embeds etc.) --- */
.content-area iframe[src*="youtube"],
.blog-content iframe[src*="youtube"],
.page-content iframe[src*="youtube"],
.post-content iframe[src*="youtube"],
.content-area iframe[src*="vimeo"],
.blog-content iframe[src*="vimeo"],
.page-content iframe[src*="vimeo"],
.post-content iframe[src*="vimeo"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: none;
    display: block;
}


/* --------------------------------------------------------------------------
   Mobile Sticky CTA Bar
   -------------------------------------------------------------------------- */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 998;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 -2px 12px rgba(6,53,91,0.08);
        padding: 5px 10px;
        gap: 6px;
        padding-bottom: max(5px, env(safe-area-inset-bottom));
    }

    .mobile-sticky-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 8px 6px;
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        min-height: 36px;
    }

    .mobile-sticky-phone {
        background: var(--navy);
        color: var(--white);
    }

    .mobile-sticky-cta-main {
        background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
        color: var(--navy);
        flex: 1.5;
    }

    .mobile-sticky-whatsapp {
        background: #25D366;
        color: var(--white);
    }

    /* Add bottom padding to body so footer content isn't hidden behind sticky bar */
    .site-footer {
        padding-bottom: 56px;
    }
}


/* Print styles */
@media print {
    .site-header,
    .topbar,
    .contact-bar,
    .site-footer,
    .calc-cta,
    .calc-info,
    .breadcrumb,
    .calc-print-btn,
    .page-hero-bg,
    .page-hero-shape,
    .mobile-menu { display: none !important; }

    .page-hero { background: var(--navy) !important; }
    .calc-layout { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .calc-form, .calc-results { box-shadow: none !important; border: 1px solid #ccc !important; }
    .section { padding: 1rem 0 !important; }
    body { font-size: 12pt; }
}

@media (max-width: 768px) {
    .calc-layout { grid-template-columns: 1fr; }
    .calc-group-row { grid-template-columns: 1fr; }
    .calc-result-highlight .calc-result-value { font-size: 1.5rem; }
    .calc-print-btn { float: none; margin-top: 0; margin-bottom: 1rem; }
    .calc-schemes { grid-template-columns: 1fr; }
    .calc-radio-group { flex-direction: column; gap: 0.5rem; }

    /* Calculator tables → card layout on mobile */
    .calc-table,
    .calc-table thead,
    .calc-table tbody,
    .calc-table th,
    .calc-table td,
    .calc-table tr {
        display: block;
    }
    .calc-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        border: 0;
    }
    .calc-table tr {
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .calc-table tr:last-child {
        border: 2px solid var(--gold);
        background: rgba(215,173,62,0.04);
    }
    .calc-table td {
        padding: 0;
        border-bottom: none;
        font-size: 0.9rem;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        line-height: 1.5;
    }
    .calc-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--navy);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        flex-shrink: 0;
        min-width: 40%;
    }
    .calc-table td:first-child {
        font-weight: 700;
        font-size: 1rem;
        color: var(--navy);
        padding-bottom: 6px;
        margin-bottom: 4px;
        border-bottom: 2px solid var(--gold);
        display: block;
    }
    .calc-table td:first-child::before {
        display: none;
    }
    .calc-table tr:nth-child(even) td {
        background: transparent;
    }
    .calc-table tr:last-child td {
        background: transparent;
    }

    /* Calculator result items — stack nicely */
    .calc-result-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .calc-result-item {
        padding: 14px;
    }
    .calc-result-value {
        font-size: 1.25rem;
    }

    /* Info sections on mobile */
    .calc-info {
        margin-top: 2rem;
    }
    .calc-info h2 {
        font-size: 1.2rem;
    }
    .calc-info h3 {
        font-size: 1rem;
    }
    /* Lender detail cards */
    .calc-info > div[style*="border:1px"] {
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    .calc-form, .calc-results { padding: 1.25rem; }
    .calc-cta { padding: 1.5rem; }
    .calc-cta .btn { display: block; margin: 0 0 10px; }
    .calc-result-highlight .calc-result-value { font-size: 1.3rem; }
    .calc-result-highlight { padding: 1rem; }
}


/* ==========================================================================
   RESPONSIVE — Tables horizontal scroll on mobile
   ========================================================================== */

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-scroll table {
    min-width: 600px;
    width: 100%;
}

@media (max-width: 640px) {
    .content-area table,
    .page-content table,
    .service-content table { font-size: 0.85rem; }
    .content-area th, .content-area td,
    .page-content th, .page-content td,
    .service-content th, .service-content td { padding: 10px 12px; }
}


/* ==========================================================================
   RESPONSIVE — Team carousel mobile improvements
   ========================================================================== */

@media (max-width: 640px) {
    .team-carousel .team-card .team-name {
        font-size: 0.85rem;
    }
    .team-carousel .team-card .team-title {
        font-size: 0.75rem;
    }
}


/* ==========================================================================
   RESPONSIVE — Blog typography on small screens
   ========================================================================== */

@media (max-width: 640px) {
    .blog-card .blog-card-title { font-size: 1.05rem; }
    .blog-card .blog-card-excerpt { font-size: 0.85rem; }
    .blog-sidebar { padding: 16px; }
    .blog-sidebar h3 { font-size: 1.1rem; }
}


/* ==========================================================================
   RESPONSIVE — Form labels on mobile
   ========================================================================== */

@media (max-width: 640px) {
    .form-group label, label { font-size: 0.95rem; }
}

/* ==========================================================================
   RESPONSIVE — Embedded calculators in service page content
   ========================================================================== */

@media (max-width: 768px) {
    /* Force multi-col grids to 2 columns on tablet (overrides inline 4-col) */
    .content-area div[style*="repeat(4"],
    .services-content div[style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Force 2-col grids to single column on tablet */
    .content-area div[style*="1fr 1fr"],
    .services-content div[style*="1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    /* Force all grids to single column on mobile (overrides inline style) */
    .content-area div[style*="grid-template-columns"],
    .services-content div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Make embedded tables horizontally scrollable */
    .content-area table,
    .services-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.8rem;
    }

    /* Tighter padding on embedded calculator cards (exclude video/iframe wrappers) */
    .content-area div[style*="border-radius:16px"]:not(:has(iframe)):not(:has(video)):not([style*="padding-bottom"]),
    .services-content div[style*="border-radius:16px"]:not(:has(iframe)):not(:has(video)):not([style*="padding-bottom"]) {
        padding: 1rem !important;
    }
}


/* ==========================================================================
   RESPONSIVE — Mobile drawer on very small screens
   ========================================================================== */

@media (max-width: 380px) {
    .mobile-drawer { padding: 80px 16px 24px; }
}


/* ==========================================================================
   RESPONSIVE — 480px breakpoints for under-covered sections
   ========================================================================== */

@media (max-width: 480px) {
    .container { padding: 0 12px; }

    .hero { min-height: 70vh; padding: 48px 12px 60px; }
    .hero-title { font-size: 1.8rem; }

    .section-title h2 { font-size: 1.4rem; }

    .footer { padding: 36px 0 24px; }
    .footer-grid { gap: 24px; }

    .contact-form { padding: 20px; }

    .btn { padding: 12px 20px; font-size: 0.9rem; }
    .btn-lg { padding: 14px 24px; }

    body { font-size: 14px; }

    .card { padding: 20px; }
}


/* ==========================================================================
   ACCESSIBILITY — Reduced motion preference
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
