/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-purple: #7B5AA6;
    --primary-blue: #4D9ED9;
    --primary-yellow: #F4C542;
    --primary-green: #86C649;
    --primary-orange: #E47B50;
    --primary-brown: #A67C52;

    /* Neutral Colors */
    --dark: #1a1a1a;
    --dark-light: #2d2d2d;
    --gray: #6b6b6b;
    --light-gray: #e5e5e5;
    --white: #ffffff;
    --off-white: #f9f9f9;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7B5AA6 0%, #4D9ED9 50%, #F4C542 100%);
    --gradient-hero: linear-gradient(135deg, rgba(123, 90, 166, 0.1) 0%, rgba(77, 158, 217, 0.1) 50%, rgba(244, 197, 66, 0.1) 100%);
    --gradient-gold: linear-gradient(135deg, #F4C542 0%, #E5A91C 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.85rem;
    --spacing-md: 1.75rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4.5rem;

    /* Typography */
    --font-heading: 'Playfair Display', 'Noto Serif SC', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Actuarial Recruiting Palette (navy / financial-services) */
    --navy-deep: #0B1C33;
    --navy: #16304F;
    --navy-light: #1F4066;
    --navy-accent: #2C6FB2;
    --ice-blue: #EEF3F9;
    --navy-border: #D8E1EC;

    /* Sand / Champagne Accent (private advisory) */
    --sand: #A67C52;
    --sand-light: #D9BF95;
    --sand-wash: rgba(166, 124, 82, 0.08);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-base);
}

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

.nav-link:hover {
    color: var(--primary-purple);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-primary-nav {
    padding: 0.75rem 1.5rem !important;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.btn-primary-nav::after {
    display: none;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all var(--transition-base);
}

/* ========================================
   NAV DROPDOWN (精算专区 / 关于 Lighthouse)
   ======================================== */
.nav-item.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-caret {
    font-size: 0.65em;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.nav-item.has-dropdown:hover .dropdown-caret,
.nav-item.has-dropdown:focus-within .dropdown-caret,
.nav-item.has-dropdown.open .dropdown-caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    min-width: 180px;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 1001;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu,
.nav-item.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: block;
    padding: 0.65rem 1.25rem !important;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-link::after {
    display: none;
}

.dropdown-link:hover {
    background: var(--off-white);
    color: var(--primary-purple);
}

.dropdown-link-featured {
    font-weight: 600;
}

.dropdown-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: rgba(77, 158, 217, 0.08);
    border: 1px solid rgba(77, 158, 217, 0.25);
    border-radius: 999px;
    vertical-align: middle;
}

/* ========================================
   LANGUAGE SWITCHER (中文 / EN)
   ======================================== */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
}

.lang-option {
    background: none;
    border: none;
    padding: 0.3rem 0.6rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-option:hover {
    color: var(--primary-purple);
}

.lang-option.active {
    background: var(--off-white);
    color: var(--primary-purple);
}

.lang-divider {
    color: var(--light-gray);
    font-size: 0.75rem;
}

/* Once the page is fully English, the inline English glosses that used to
   accompany Chinese labels become redundant with the translated text. */
html[data-lang="en"] .en-title,
html[data-lang="en"] .btn-sub {
    display: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6.5rem 0 3rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f9f7ff 0%, #fff9f0 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 90, 166, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(77, 158, 217, 0.3) 0%, transparent 70%);
    top: 20%;
    right: -15%;
    animation-delay: 7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 197, 66, 0.3) 0%, transparent 70%);
    bottom: 10%;
    left: 30%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.hero-title .title-line:nth-child(1) {
    font-size: clamp(2.4rem, 5.5vw, 5rem);
}

.hero-title .title-line:nth-child(2) {
    font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.title-line {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out backwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-tagline {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--gray);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
}

.plus {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease-out 0.8s backwards;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary-outline {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: transparent;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    border: 2px solid var(--light-gray);
    transition: all var(--transition-base);
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

.btn-secondary-outline:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-4px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.5s backwards;
}

.brand-visual {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatCard 7s ease-in-out infinite;
}

.brand-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.brand-glow-cool {
    width: 68%;
    height: 68%;
    top: 4%;
    left: 2%;
    background: radial-gradient(circle, rgba(123, 90, 166, 0.32) 0%, rgba(77, 158, 217, 0.18) 55%, transparent 75%);
}

.brand-glow-warm {
    width: 52%;
    height: 52%;
    bottom: 6%;
    right: 6%;
    background: radial-gradient(circle, var(--sand-wash) 0%, transparent 75%);
}

.brand-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.brand-line {
    fill: none;
    stroke: var(--navy-light);
    stroke-width: 0.6;
    opacity: 0.22;
}

.brand-line-faint {
    opacity: 0.12;
}

.brand-network-line {
    fill: none;
    stroke: var(--sand);
    stroke-width: 0.75;
    opacity: 0.4;
}

.brand-city-label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--navy-light);
    opacity: 0.55;
    white-space: nowrap;
    pointer-events: none;
}

.brand-city-london { left: 50%; top: 5%; }
.brand-city-hongkong { left: 92%; top: 36%; }
.brand-city-shanghai { left: 76%; top: 87%; }
.brand-city-toronto { left: 24%; top: 87%; }
.brand-city-newyork { left: 8%; top: 36%; }

.brand-mark {
    position: relative;
    z-index: 1;
    width: 46%;
    aspect-ratio: 1 / 0.8;
    background-image: url('网站头像.jpg');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.92) 52%, transparent 80%);
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.92) 52%, transparent 80%);
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease-out 1.5s backwards;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-purple);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    margin: 0 auto 0.5rem;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-purple);
    border-radius: 2px;
    margin-top: 8px;
    animation: scroll 2s ease-out infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

.scroll-indicator p {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-gold);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h3 {
    color: var(--primary-purple);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    line-height: 2;
}

.about-tagline {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--primary-purple);
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
}

.mission-values {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1.1rem;
    margin-top: var(--spacing-lg);
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--light-gray);
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* Timeline connector: a short line + arrowhead in the gap after each
   item except the last, linking Service 1 -> ... -> Service 6. */
.value-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -0.9rem;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 2px;
    background: var(--light-gray);
    z-index: 1;
}

.value-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.05rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 3.5px solid transparent;
    border-bottom: 3.5px solid transparent;
    border-left: 5px solid var(--light-gray);
    z-index: 1;
}

.value-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.value-content h4 {
    margin-bottom: 0.3rem;
    color: var(--dark);
    font-size: 0.95rem;
}

.value-content p {
    font-size: 0.78rem;
    line-height: 1.45;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.service-category {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.category-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
}

.en-title {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
    letter-spacing: 2px;
}

.category-desc {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.category-destinations {
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 2px solid var(--light-gray);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--card-color);
}

.service-card.premium {
    background: linear-gradient(135deg, rgba(22, 48, 79, 0.04) 0%, rgba(22, 48, 79, 0.08) 100%);
    border: 2px solid var(--navy);
}

.card-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--card-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.premium-badge {
    background: var(--navy);
}

.service-card h4 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.25rem;
}

.card-subline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-accent);
    margin: -0.5rem 0 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-features span {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--gray);
}

/* ========================================
   SUCCESS SECTION
   ======================================== */
.success {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.metrics-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.75rem;
}

.metric-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 0 1.5rem;
}

.metric-item:not(:first-child) {
    border-left: 1px solid var(--light-gray);
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
}

.metric-note {
    font-size: 0.78rem;
    color: var(--primary-brown);
    font-style: italic;
    margin-top: 0.3rem;
}

.success-bottom-line {
    text-align: center;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.cta-banner {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-banner h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
    color: var(--white);
    position: relative;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.cta-subtext {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}

.btn-secondary {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: var(--white);
    color: var(--primary-purple);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}

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

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

.contact-info > p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.25rem;
}

.contact-item p {
    font-size: 1rem;
    color: var(--gray);
}

.contact-qr {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-purple);
    transition: all var(--transition-base);
}

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

.qr-code {
    width: 280px;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.qr-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.qr-name {
    font-size: 1rem;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.qr-note {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ========================================
   CONTACT / FOOTER (premium boutique, homepage only)
   ======================================== */
.contact-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    scroll-margin-top: 90px;
}

.contact-footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.2fr;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.contact-footer-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.contact-footer-brand h3 {
    color: var(--white);
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.contact-footer-tagline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.25rem;
}

.contact-footer-pillars {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
}

.contact-footer-cities {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.3px;
}

.contact-footer-social {
    margin-top: 1.1rem;
}

.contact-footer-social-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.6rem;
}

.contact-footer-social-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.contact-footer-social-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-footer-social-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
}

.contact-footer-center,
.contact-footer-right {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: var(--spacing-lg);
}

.contact-footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.contact-footer-service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.contact-footer-service-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.contact-footer-service-list a:hover {
    color: var(--white);
}

.contact-footer-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    margin: 0;
}

.contact-footer-right-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.7;
    letter-spacing: normal;
    margin-bottom: 1.5rem;
}

/* Consultation form */
.consult-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.consult-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.consult-form-row label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.consult-form-row input,
.consult-form-row select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 100%;
}

.consult-form-row input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.consult-form-row input:focus,
.consult-form-row select:focus {
    outline: none;
    border-color: var(--navy-accent);
}

.consult-form-row select option {
    color: var(--dark);
}

.consult-form-error {
    font-size: 0.82rem;
    color: #f2a5a5;
    margin: -0.25rem 0 0;
}

.consult-form-success {
    font-size: 0.85rem;
    color: #9fe3b8;
    margin: -0.25rem 0 0;
}

.consult-form-submit {
    align-self: flex-start;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.consult-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.contact-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.contact-footer-legal {
    display: flex;
    gap: 1.5rem;
}

.contact-footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.contact-footer-legal a:hover {
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
    .contact-footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contact-footer-center,
    .contact-footer-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .contact-footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }

    .contact-footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .contact-footer-legal {
        gap: 1rem;
    }

    .consult-form-submit {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark);
    color: var(--light-gray);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    width: 80px;
    height: auto;
}

.footer-brand h4 {
    color: var(--white);
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--light-gray);
    font-size: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.footer-column h5 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color var(--transition-base);
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: var(--light-gray);
    font-size: 0.875rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

/* Tablet Landscape - 1024px */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    /* Mission Values timeline: 3 + 3 on tablet */
    .mission-values {
        flex-wrap: wrap;
        row-gap: 1.5rem;
    }

    .value-item {
        flex: 1 1 calc(33.333% - 0.75rem);
    }

    .value-item:nth-child(3n)::after,
    .value-item:nth-child(3n)::before {
        display: none;
    }
}

/* Tablet Portrait - 768px */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: left var(--transition-base);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.125rem;
    }

    .btn-primary-nav {
        width: 100%;
        display: block;
        margin-top: 1rem;
    }

    /* Nav Dropdown -> mobile accordion */
    .nav-item.has-dropdown {
        position: static;
    }

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

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        min-width: 0;
        padding: 0;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .nav-item.has-dropdown.open .dropdown-menu {
        max-height: 320px;
        padding: 0.25rem 0 0.5rem;
    }

    .dropdown-link {
        text-align: center;
        padding: 0.65rem 1rem !important;
        font-size: 1rem;
        color: var(--gray);
    }

    .nav-menu li.lang-switch-item {
        display: flex;
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Typography */
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    p {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        padding: 5rem 0 1.75rem;
        min-height: auto;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .brand-visual {
        max-width: 300px;
    }

    .brand-city-label,
    .brand-network-line {
        display: none;
    }

    /* Sections */
    .about, .services, .success, .contact {
        padding: var(--spacing-lg) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-md);
    }

    /* Service Cards */
    .service-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-category {
        padding: var(--spacing-md);
    }

    /* Mission Values */
    .mission-values {
        column-gap: 0.85rem;
        row-gap: 1.25rem;
    }

    .value-item {
        padding: 1rem 0.6rem;
    }

    /* Success Section: 2x2 metrics on tablet/mobile */
    .metrics-row {
        flex-wrap: wrap;
        row-gap: 1.5rem;
    }

    .metric-item {
        flex: 1 1 50%;
        padding: 0 1rem;
    }

    .metric-item:nth-child(2n+1) {
        border-left: none;
    }

    .metric-item:nth-child(n+3) {
        border-top: 1px solid var(--light-gray);
        padding-top: 1.25rem;
    }

    .cta-banner {
        padding: var(--spacing-md);
    }

    .cta-banner h3 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

/* Mobile - 480px */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Navigation */
    .nav-container {
        padding: 1rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1rem;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Buttons */
    .btn-primary, .btn-secondary, .btn-secondary-outline {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    /* Hero Section */
    .hero {
        padding: 4.25rem 0 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .brand-visual {
        max-width: 230px;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .scroll-indicator p {
        font-size: 0.75rem;
    }

    /* Sections */
    .about, .services, .success, .contact {
        padding: 2.25rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        letter-spacing: 1px;
    }

    /* About Section */
    .about-text h3 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }

    .about-text p {
        margin-bottom: 1rem;
    }

    /* Mission Values timeline: compact 3 + 3 on mobile */
    .mission-values {
        column-gap: 0.5rem;
        row-gap: 1rem;
    }

    .value-item {
        padding: 0.75rem 0.4rem;
        gap: 0.35rem;
    }

    .value-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .value-content h4 {
        font-size: 0.72rem;
        margin-bottom: 0.2rem;
    }

    .value-content p {
        font-size: 0.62rem;
        line-height: 1.3;
    }

    .value-item:not(:last-child)::after {
        right: -0.4rem;
        width: 0.5rem;
    }

    .value-item:not(:last-child)::before {
        right: -0.5rem;
        border-top-width: 3px;
        border-bottom-width: 3px;
        border-left-width: 4px;
    }

    /* Service Section */
    .service-category {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }

    .category-title {
        font-size: 1.5rem;
    }

    .en-title {
        font-size: 0.75rem;
        display: block;
        margin-top: 0.25rem;
    }

    .category-desc {
        font-size: 1rem;
    }

    .category-destinations {
        font-size: 0.875rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h4 {
        font-size: 1.125rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .card-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .card-features span {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    /* Success Section */
    .metrics-row {
        column-gap: 0.5rem;
        row-gap: 1.25rem;
    }

    .metric-item {
        padding: 0 0.6rem;
    }

    .metric-number {
        font-size: 1.5rem;
    }

    .metric-label {
        font-size: 0.78rem;
    }

    .success-bottom-line {
        font-size: 0.95rem;
    }

    .cta-banner {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-md);
    }

    .cta-banner h3 {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }

    .cta-subtext {
        font-size: 1rem;
    }

    /* Contact Section */
    .contact-info h3 {
        font-size: 1.75rem;
    }

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

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .contact-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .contact-item h4 {
        font-size: 1.125rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .qr-card {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-md);
    }

    .qr-code {
        width: 200px;
    }

    .qr-label {
        font-size: 1rem;
    }

    .qr-name {
        font-size: 0.9rem;
    }

    .qr-note {
        font-size: 0.8rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-logo {
        width: 60px;
    }

    .footer-brand h4 {
        font-size: 1.25rem;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-column h5 {
        font-size: 1rem;
    }

    .footer-column a,
    .footer-column li {
        font-size: 0.85rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Extra Small Mobile - 360px */
@media (max-width: 360px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .brand-visual {
        max-width: 190px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .qr-code {
        width: 180px;
    }

    .cta-banner h3 {
        font-size: 1.15rem;
    }

    .service-card,
    .contact-item {
        padding: 1rem;
    }

    .mission-values {
        column-gap: 0.35rem;
    }

    .value-item {
        padding: 0.6rem 0.3rem;
    }

    .value-icon {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav-link {
        padding: 1rem;
        min-height: 44px;
    }

    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 1rem 2rem;
    }

    .service-card,
    .value-item {
        /* Disable hover effects on touch devices */
        transform: none !important;
    }

    .service-card:active,
    .value-item:active {
        transform: scale(0.98);
    }

    /* Improve scroll performance */
    * {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 8rem 0 3rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .scroll-indicator {
        display: none;
    }

    .nav-menu {
        height: calc(100vh - 70px);
        top: 70px;
    }
}

/* ========================================
   ACTUARY ZONE
   ======================================== */
.actuary-banner {
    position: relative;
    padding: 7.5rem 0 3rem;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    text-align: center;
    overflow: hidden;
}

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

.section-tag-light {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.actuary-banner-title {
    margin: 1rem 0;
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.actuary-banner-headline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 0.5rem;
}

.actuary-banner-tagline {
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1rem;
}

.actuary-banner-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.actuary-quick-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.actuary-quick-nav a {
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all var(--transition-base);
}

.actuary-quick-nav a:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* OFFER Board */
.offer-board {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.offer-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--ice-blue);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--navy-border);
    border-radius: 6px;
    background: var(--white);
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    min-width: 180px;
    transition: border-color var(--transition-fast);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--navy-accent);
}

.filter-search input {
    min-width: 220px;
}

.filter-reset {
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--navy);
    background: transparent;
    color: var(--navy);
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    height: fit-content;
}

.filter-reset:hover {
    background: var(--navy);
    color: var(--white);
}

.offer-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-sm);
}

.offer-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    background: var(--white);
}

.offer-table thead th {
    background: var(--navy);
    color: var(--white);
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.offer-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--navy-border);
    font-size: 0.95rem;
    color: var(--dark);
}

.offer-table tbody tr:last-child td {
    border-bottom: none;
}

.offer-table tbody tr:hover {
    background: var(--ice-blue);
}

.offer-table tbody td:nth-child(2) {
    font-weight: 600;
    color: var(--navy);
}

/* #fd-table has Company as the third column, not the second */
#fd-table tbody td:nth-child(2) {
    font-weight: 400;
    color: var(--dark);
}

#fd-table tbody td:nth-child(3) {
    font-weight: 600;
    color: var(--navy);
}

.company-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-logo {
    width: auto;
    max-width: 36px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.company-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.company-name {
    white-space: nowrap;
}

.review-btn {
    padding: 0.5rem 1.1rem;
    background: transparent;
    color: var(--navy-accent);
    border: 1px solid var(--navy-accent);
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.review-btn:hover {
    background: var(--navy-accent);
    color: var(--white);
}

.offer-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--gray);
    font-size: 1rem;
}

/* Top Actuarial Employers */
.employers {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}

.employer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.employer-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    background: var(--white);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.employer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--navy-accent);
}

.employer-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--navy);
    text-align: center;
    padding: 0 1rem;
}

/* Actuarial Career Paths */
.career-paths {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.path-card {
    background: var(--white);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-sm);
    padding: 1.75rem;
    transition: all var(--transition-base);
}

.path-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--navy-accent);
}

.path-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.path-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--dark);
}

.path-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* Actuarial Exams & Credentials */
.exams {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.exam-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-sm);
    padding: 2rem 1.75rem;
    text-align: center;
    transition: all var(--transition-base);
}

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

.exam-org {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.exam-fullname {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.exam-region {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.exam-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.exam-path-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--navy-accent);
    font-size: 1.05rem;
}

.exam-arrow {
    color: var(--gray);
}

.exam-desc {
    font-size: 0.95rem;
    margin: 0;
}

/* How Lighthouse Helps You */
.helps {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.helps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.helps-card {
    background: var(--ice-blue);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-sm);
    padding: 1.75rem;
    text-align: center;
    transition: all var(--transition-base);
}

.helps-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    background: var(--white);
    border-color: var(--navy-accent);
}

.helps-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 auto 1.25rem;
}

.helps-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.helps-card p {
    font-size: 0.9rem;
    margin: 0;
}

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

.btn-sub {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 0.25rem;
}

/* Mentors */
.mentors {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}

.mentor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    align-items: stretch;
}

.mentor-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    text-align: center;
    border: 1px solid var(--navy-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.mentor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--navy-accent);
}

.mentor-avatar-placeholder,
.mentor-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    flex-shrink: 0;
}

.mentor-avatar-placeholder {
    background: var(--off-white);
    border: 1px solid var(--navy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--navy);
}

.mentor-avatar {
    object-fit: cover;
    border: 1px solid var(--navy-border);
}

.mentor-name {
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
    color: var(--navy-deep);
}

.mentor-title-zh {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.mentor-title-en {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 0;
}

.mentor-divider {
    width: 40px;
    height: 1px;
    background: var(--navy-border);
    margin: 1.1rem auto;
}

.mentor-highlights {
    list-style: none;
    text-align: left;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.mentor-highlights li {
    position: relative;
    padding-left: 0.9rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--dark);
}

.mentor-highlights li:not(:last-child) {
    margin-bottom: 0.5rem;
}

.mentor-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--sand);
}

.mentor-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: auto;
}

.mentor-tag {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: var(--sand-wash);
    color: var(--sand);
    border: 1px solid rgba(166, 124, 82, 0.25);
    font-size: 0.72rem;
    font-weight: 600;
}

/* ========================================
   REVIEW MODAL
   ======================================== */
.review-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.review-modal[hidden] {
    display: none;
}

.review-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 28, 51, 0.6);
    animation: fadeIn 0.25s ease-out;
}

.review-modal-content {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: var(--radius-sm);
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.3s ease-out;
}

.review-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--ice-blue);
    color: var(--navy);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.review-modal-close:hover {
    background: var(--navy);
    color: var(--white);
}

.review-modal-header {
    border-bottom: 1px solid var(--navy-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.review-modal-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.review-modal-header h3 {
    margin-bottom: 0.35rem;
    font-size: 1.75rem;
}

.review-modal-meta {
    color: var(--gray);
    font-size: 1rem;
    margin: 0;
}

.review-block {
    margin-bottom: 1.5rem;
}

.review-block:last-child {
    margin-bottom: 0;
}

.review-block h4 {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.review-block h4 span {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.15rem;
}

.review-block p {
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   ACTUARY ZONE RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .path-grid,
    .exam-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .actuary-banner {
        padding: 5.75rem 0 2.25rem;
    }

    .actuary-banner-headline {
        font-size: 1.25rem;
    }

    .actuary-banner-tagline {
        font-size: 1rem;
    }

    .actuary-banner-subtitle {
        font-size: 1rem;
    }

    .offer-board, .employers, .career-paths, .exams, .helps, .mentors {
        padding: var(--spacing-lg) 0;
    }

    .offer-filters {
        gap: 1rem;
    }

    .filter-group select,
    .filter-group input,
    .filter-search input {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .offer-table-wrapper {
        overflow-x: visible;
        border: none;
    }

    .offer-table,
    .offer-table thead,
    .offer-table tbody,
    .offer-table tr,
    .offer-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .offer-table thead {
        display: none;
    }

    .offer-table tbody tr {
        border: 1px solid var(--navy-border);
        border-radius: var(--radius-sm);
        margin-bottom: 1rem;
        padding: 0.5rem 1rem;
    }

    .offer-table tbody tr:hover {
        background: var(--white);
    }

    .offer-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--off-white);
        text-align: right;
    }

    .offer-table tbody td:last-child {
        border-bottom: none;
    }

    .offer-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--navy);
        text-align: left;
    }
}

@media (max-width: 480px) {
    .actuary-banner {
        padding: 4.5rem 0 1.5rem;
    }

    .actuary-quick-nav a {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    .offer-board, .employers, .career-paths, .exams, .helps, .mentors {
        padding: 2.25rem 0;
    }

    .employer-grid, .path-grid, .exam-grid, .helps-grid, .mentor-grid {
        grid-template-columns: 1fr;
    }

    .offer-filters {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
    }

    .filter-reset {
        width: 100%;
    }

    .review-modal-content {
        padding: 1.75rem;
    }
}

/* ========================================
   PRIVATE FAMILY ADVISORY PAGE
   ======================================== */
.family-hero {
    position: relative;
    padding: 8.5rem 0 4.5rem;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    text-align: center;
    overflow: hidden;
}

.family-hero-content {
    max-width: 840px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.family-hero-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--sand-light);
    text-transform: uppercase;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(217, 191, 149, 0.35);
    margin-bottom: var(--spacing-md);
}

.family-hero-title {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    font-size: clamp(1.5rem, 2.9vw, 2.3rem);
    line-height: 1.55;
    margin-bottom: var(--spacing-md);
}

.family-hero-text {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 640px;
    margin: 0 auto var(--spacing-sm);
}

.family-hero-text:last-of-type {
    margin-bottom: 0;
}

.family-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.family-section .section-header {
    margin-bottom: var(--spacing-lg);
}

.family-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--sand);
    text-transform: uppercase;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(166, 124, 82, 0.35);
    margin-bottom: var(--spacing-md);
}

/* Minimal timeline */
.mini-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0;
    max-width: 1100px;
    margin: 0 auto;
}

.mini-timeline-step {
    padding: 0.9rem 1.4rem;
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-sm);
    color: var(--navy);
    font-weight: 500;
    font-size: 0.98rem;
    background: var(--white);
    white-space: nowrap;
}

.mini-timeline-arrow {
    color: var(--sand);
    font-size: 1.1rem;
    margin: 0 0.65rem;
    flex-shrink: 0;
}

/* Student / Family / Advisor loop */
.loop-section {
    background: var(--ice-blue);
}

.loop-diagram {
    position: relative;
    width: 100%;
    max-width: 620px;
    aspect-ratio: 100 / 74;
    margin: 0 auto;
}

.loop-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.loop-path {
    fill: none;
    stroke: var(--sand);
    stroke-width: 0.6;
    opacity: 0.7;
}

.loop-node {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 190px;
}

.loop-node-top { left: 50%; top: 12%; }
.loop-node-left { left: 14%; top: 82%; }
.loop-node-right { left: 86%; top: 82%; }

.loop-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--sand);
    margin-bottom: 0.6rem;
}

.loop-node h4 {
    font-size: 1.05rem;
    color: var(--navy-deep);
    margin-bottom: 0.3rem;
}

.loop-node p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

.loop-bottom-line {
    text-align: center;
    font-size: 1rem;
    font-style: italic;
    color: var(--navy);
    max-width: 620px;
    margin: var(--spacing-lg) auto 0;
}

/* Four advisory pillars */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 0 auto;
}

.pillar-item {
    padding: var(--spacing-lg) var(--spacing-lg);
    border-top: 1px solid var(--navy-border);
}

.pillar-item:nth-child(1),
.pillar-item:nth-child(2) {
    border-top: none;
}

.pillar-item:nth-child(odd) {
    border-right: 1px solid var(--navy-border);
}

.pillar-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--sand);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.pillar-title-en {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 0.2rem;
}

.pillar-title-zh {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 0.85rem;
}

.pillar-item p:last-child {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 0;
}

/* Final CTA */
.family-cta {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    text-align: center;
}

.family-cta h3 {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
}

.family-cta-btn {
    display: inline-block;
    padding: 1.1rem 2.75rem;
    background: var(--sand-light);
    color: var(--navy-deep);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all var(--transition-base);
}

.family-cta-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .family-hero {
        padding: 6.5rem 0 3rem;
    }

    .mini-timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        max-width: 320px;
    }

    .mini-timeline-step {
        text-align: center;
    }

    .mini-timeline-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .loop-diagram {
        max-width: 400px;
        aspect-ratio: 100 / 96;
    }

    .loop-node {
        width: 140px;
    }

    .loop-node-top { top: 10%; }
    .loop-node-left { left: 20%; top: 86%; }
    .loop-node-right { left: 80%; top: 86%; }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .pillar-item {
        padding: var(--spacing-md) 0;
        border-top: 1px solid var(--navy-border);
    }

    .pillar-item:nth-child(1) {
        border-top: none;
    }

    .pillar-item:nth-child(odd) {
        border-right: none;
    }
}

@media (max-width: 480px) {
    .family-hero-title {
        font-size: 1.4rem;
    }

    .family-hero-text {
        font-size: 0.95rem;
    }

    .loop-node {
        width: 118px;
    }

    .loop-node h4 {
        font-size: 0.92rem;
    }

    .loop-node p {
        font-size: 0.78rem;
    }
}

/* ========================================
   QUANT HUB - CANDIDATE OUTCOMES
   ======================================== */
.quant-outcomes {
    margin-top: var(--spacing-lg);
}

.outcomes-heading {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--navy-deep);
}

.pill-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: var(--spacing-md);
}

.pill-filter {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--navy-border);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pill-filter:hover {
    border-color: var(--navy-accent);
    color: var(--navy-accent);
}

.pill-filter.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.progress-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.progress-interview {
    background: var(--sand-wash);
    color: var(--sand);
    border: 1px solid rgba(166, 124, 82, 0.3);
}

.progress-final {
    background: rgba(22, 48, 79, 0.08);
    color: var(--navy);
    border: 1px solid var(--navy-border);
}

.progress-offer {
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--sand) 100%);
    color: var(--white);
    border: 1px solid transparent;
}

/* Keep the Quant outcomes table horizontally scrollable on mobile instead
   of the stacked-card transform used for the Actuarial offer table. */
@media (max-width: 600px) {
    .offer-table-wrapper.keep-scroll {
        overflow-x: auto;
        border: 1px solid var(--navy-border);
    }

    .offer-table-wrapper.keep-scroll .offer-table {
        display: table;
        width: max-content;
        min-width: 100%;
    }

    .offer-table-wrapper.keep-scroll .offer-table thead {
        display: table-header-group;
    }

    .offer-table-wrapper.keep-scroll .offer-table tbody {
        display: table-row-group;
    }

    .offer-table-wrapper.keep-scroll .offer-table tr {
        display: table-row;
        border: none;
        margin-bottom: 0;
        padding: 0;
    }

    .offer-table-wrapper.keep-scroll .offer-table td {
        display: table-cell;
        text-align: left;
        border-bottom: 1px solid var(--navy-border);
    }

    .offer-table-wrapper.keep-scroll .offer-table td::before {
        content: none;
    }
}

/* Real evidence / screenshot gallery */
.fd-view-more-wrap {
    text-align: center;
    margin-top: var(--spacing-md);
}

.fd-view-more-btn {
    padding: 0.65rem 1.75rem;
    border: 1px solid var(--navy);
    background: transparent;
    color: var(--navy);
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fd-view-more-btn:hover {
    background: var(--navy);
    color: var(--white);
}

.fd-view-more-btn[hidden] {
    display: none;
}

.evidence-gallery {
    margin-top: var(--spacing-xl);
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.evidence-item {
    background: var(--off-white);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.evidence-image-placeholder {
    aspect-ratio: 16 / 10;
    border: 1px dashed var(--navy-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.85rem;
    background: var(--white);
    margin-bottom: 0.85rem;
}

.evidence-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.85rem;
    cursor: zoom-in;
    transition: opacity var(--transition-fast);
}

.evidence-image:hover {
    opacity: 0.9;
}

.evidence-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.evidence-company {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}

.evidence-role {
    font-size: 0.83rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.evidence-status-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.evidence-status-badge.status-interview {
    background: var(--sand-wash);
    color: var(--sand);
    border: 1px solid rgba(166, 124, 82, 0.3);
}

.evidence-status-badge.status-offer {
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--sand) 100%);
    color: var(--white);
}

.evidence-caption {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 28, 51, 0.85);
    animation: fadeIn 0.25s ease-out;
}

.image-lightbox-figure {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 88vh;
    animation: fadeInUp 0.3s ease-out;
}

.image-lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
}

.image-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--white);
    color: var(--navy);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.image-lightbox-close:hover {
    background: var(--navy);
    color: var(--white);
}

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

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