@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #059669;
    /* Rich Emerald / Mint Green */
    --primary-hover: #047857;
    --primary-light: #ecfdf5;
    --secondary: #f59e0b;
    /* Warm Amber */
    --secondary-hover: #d97706;
    --accent: #8b5cf6;
    /* Soft Purple for AI */
    --accent-light: #f3e8ff;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: rgba(255, 255, 255, 0.6);
    --border-dark: #e2e8f0;

    --font-sans: "Be Vietnam Pro", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background: linear-gradient(135deg, #e6fcf5 0%, #ebfbee 50%, #dcfce7 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

button,
input,
textarea,
select {
    font-family: var(--font-sans);
}

/* Background Animated Blobs */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    left: -150px;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    top: 40%;
    right: -200px;
    z-index: -1;
    pointer-events: none;
}

/* --- NAVIGATION HEADER --- */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 80px;
    background: transparent;
    border-bottom: 1px solid transparent;
    z-index: 100;
    display: flex;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.85rem;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.logo img {
    height: 48px;
    width: auto;
    border-radius: 10px;
    object-fit: contain;
}

.logo span {
    background: linear-gradient(135deg, rgb(4, 120, 87) 0%, rgb(16, 185, 129) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

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

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1f2937;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.72rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #065f46;
    border-color: rgba(5, 150, 105, 0.38);
    background: rgba(255, 255, 255, 0.92);
}

.nav-links a.active {
    color: var(--primary);
    border-color: rgba(5, 150, 105, 0.55);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.16);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.97);
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.04);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

/* ===== GLOBAL AUTHENTICATED NAVBAR CONTROLS ===== */
.navbar-user-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-bell-trigger {
    position: relative;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    transition: all 0.2s ease;
}

.nav-bell-trigger:hover {
    color: var(--primary);
    background: #e2e8f0;
    transform: scale(1.05);
}

.nav-bell-trigger .badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.nav-avatar-dropdown {
    position: relative;
    display: inline-block;
}

.nav-avatar-frame {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    padding: 2px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-avatar-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.nav-avatar-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.nav-avatar-initials {
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
}

.dropdown-menu-popup {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid var(--border-dark);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    min-width: 180px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

/* Thêm cầu nối gap bridge để chuột di chuyển từ Avatar xuống menu không bị mất hover */
.dropdown-menu-popup::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.nav-avatar-dropdown:hover .dropdown-menu-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-popup a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu-popup a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-menu-popup a.danger-link {
    color: #ef4444;
}

.dropdown-menu-popup a.danger-link:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* ===== DANH SÁCH THÔNG BÁO POPUP (LIGHT MODE MỚI SÁNG SỦA HƠN) ===== */
.nav-bell-dropdown {
    position: relative;
    display: inline-block;
}

.notification-popup-menu {
    position: absolute;
    right: -10px;
    top: calc(100% + 25px);
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
    overflow: hidden;
}

/* Thêm cầu nối gap bridge cho menu thông báo */
.notification-popup-menu::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    height: 25px;
}

.notification-popup-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.noti-popup-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.noti-popup-header span {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.noti-popup-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.noti-popup-list::-webkit-scrollbar {
    width: 4px;
}
.noti-popup-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.noti-popup-item {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.noti-popup-item:hover {
    background: #f1f5f9;
}

.noti-icon-round {
    width: 36px;
    height: 36px;
    border-radius: 0.75rem;
    background: #ecfdf5;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.noti-info-col {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow: hidden;
    width: 100%;
}

.noti-title {
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.noti-desc {
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.noti-date {
    color: #94a3b8;
    font-size: 0.72rem;
    margin-top: 0.1rem;
}

.noti-popup-footer {
    padding: 0.85rem;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.noti-popup-footer a {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    display: block;
}

.noti-popup-footer a:hover {
    color: var(--primary-hover);
}

.btn-accent {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
}

.btn-accent:hover {
    background: #e9d5ff;
}

/* --- HERO SECTION V2 (UPGRADED) --- */
.hero-v2 {
    padding: 8rem 2rem 6rem 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-v2 .hero-content h1 {
    font-size: 4.5rem;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 2rem;
}

.hero-v2 .badge-ai {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}

/* --- HERO SECTION (LEGACY COMPATIBILITY) --- */
.hero {
    padding: 6rem 2rem 4rem 2rem;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 640px;
}

.badge-ai {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    animation: floatAnim 6s ease-in-out infinite;
}

.hero-img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

/* Floating feature cards around hero graphic */
.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.float-card-1 {
    top: 10%;
    left: -5%;
    animation: floatAnim 5s ease-in-out infinite 0.5s;
}

.float-card-2 {
    bottom: 15%;
    right: -5%;
    animation: floatAnim 5.5s ease-in-out infinite 1s;
}

/* --- HERO MODERN (SAAS STYLE) --- */
.hero-modern {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin-top: -80px;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
    overflow: hidden;
}

.hero-modern-content {
    max-width: 800px;
    padding: 0 2rem;
    margin-bottom: 2rem;
    z-index: 10;
}

.hero-modern-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
}

.hero-modern-desc {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
}

.hero-modern-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
}

.btn-hero-primary {
    background: var(--primary);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(5,150,105,0.25);
    transition: all 0.2s ease;
}

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

.btn-hero-ghost {
    background: transparent;
    color: var(--primary);
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    border: 1px solid rgba(5,150,105,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-hero-ghost:hover {
    background: rgba(5,150,105,0.05);
    border-color: var(--primary);
}

.hero-modern-graphic {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.hero-modern-graphic img {
    width: 100%;
    max-width: 1400px;
    height: auto;
    object-fit: contain;
}

/* --- FEATURES SECTION --- */
.features {
    padding: 5rem 2rem;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.scroll-letter-title .scroll-letter-title-char,
.ecosystem-title .ecosystem-title-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-18px);
    filter: blur(10px);
    will-change: opacity, transform, filter;
}

.scroll-letter-title.animate .scroll-letter-title-char,
.ecosystem-title.animate .ecosystem-title-char {
    animation: ecosystemTitleFadeDown 460ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--letter-delay, 0ms);
}

.scroll-letter-title .scroll-letter-title-char.space,
.ecosystem-title .ecosystem-title-char.space {
    width: 0.32em;
}

.scroll-letter-title .scroll-letter-title-char.accent {
    color: #f59e0b;
}

.ai-roadmap-header .scroll-letter-title-char.accent {
    color: #059669;
}

.ai-roadmap-title {
    overflow: visible;
}

.ai-title-brand-stage {
    position: relative;
    display: inline-block;
    width: 6.55rem;
    height: 1.08em;
    margin-left: 0.05em;
    vertical-align: baseline;
}

.ai-title-brand-text {
    position: absolute;
    left: 0;
    bottom: -0.23em;
    display: inline-block;
    color: #059669;
    opacity: 0;
    white-space: nowrap;
    will-change: transform, opacity;
}

.ai-title-brand-text::after {
    content: attr(data-shine-text);
    position: absolute;
    inset: 0;
    color: transparent;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0%, transparent 47.5%, rgba(255, 255, 255, 0.8) 50%, transparent 52.5%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 220% 100%;
    background-position: 130% 0;
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
}

.ai-roadmap-title.animate .ai-title-brand-text {
    animation: aiBrandDropIn 820ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--brand-delay, 900ms);
}

.ai-roadmap-title.animate .ai-title-brand-text::after {
    animation: highlightMirrorShine 2s linear infinite;
    animation-delay: calc(var(--brand-delay, 900ms) + 900ms);
}

.ecosystem-title .ecosystem-title-char.highlight {
    color: #123485;
}

.ecosystem-title-highlight-group {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.ecosystem-title.animate .ecosystem-title-highlight-group::after {
    content: attr(data-highlight-text);
    position: absolute;
    inset: 0;
    color: transparent;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0%, transparent 47.5%, rgba(255, 255, 255, 0.78) 50%, transparent 52.5%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 220% 100%;
    background-position: 130% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: highlightMirrorShine 2s linear infinite;
    animation-delay: 900ms;
}

.typewriter-text {
    min-height: calc(1.1rem * 1.6 * 2);
}

.typewriter-text.animate::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 3px;
    vertical-align: -0.12em;
    background: currentColor;
    animation: typewriterCaretBlink 720ms steps(1, end) infinite;
}

.typewriter-text.typed::after {
    animation-iteration-count: 2;
}

@keyframes ecosystemTitleFadeDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
        filter: blur(10px);
    }
    58% {
        opacity: 1;
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes highlightMirrorShine {
    0% {
        background-position: 130% 0;
        opacity: 0;
    }
    8% {
        background-position: 130% 0;
        opacity: 0.95;
    }
    96% {
        background-position: -130% 0;
        opacity: 0.95;
    }
    100% {
        background-position: -130% 0;
        opacity: 0;
    }
}

@keyframes typewriterCaretBlink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

@keyframes aiBrandDropIn {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translate3d(0, -42px, 0);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.feature-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 3rem;
    padding: 2.5rem 2rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px);
}

.feature-card.animate {
    animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.5s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.icon-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.icon-secondary {
    background: #fef3c7;
    color: var(--secondary);
}

.icon-accent {
    background: var(--accent-light);
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
}

.feature-list li svg {
    flex-shrink: 0;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    color: #2563eb;
    text-decoration: none;
    font-size: 1.05rem;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.feature-link:hover {
    gap: 0.75rem;
}

/* --- SUBJECTS SECTION --- */
.subjects-section {
    position: relative;
    padding: 4.5rem 2rem 7.5rem;
    background: transparent;
    isolation: isolate;
}

.subjects-section::before {
    content: none;
}

.subjects-section-header {
    max-width: 760px;
    margin: 0 auto 3.25rem;
    text-align: center;
}

.subjects-section-header .section-title {
    color: #123485;
    margin-bottom: 1rem;
}

.subjects-section-description {
    max-width: 720px;
    min-height: 3.7em;
    margin: 0 auto;
    color: #475569;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.75;
}

.subjects-frame {
    position: relative;
    max-width: 1280px;
    min-height: 650px;
    margin: 0 auto;
    border: 1px solid rgba(5, 150, 105, 0.18);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(241, 253, 249, 0.88));
    box-shadow:
        -22px 0 42px -26px rgba(15, 23, 42, 0.26),
        22px 0 42px -26px rgba(15, 23, 42, 0.26),
        inset 14px 0 28px -22px rgba(15, 23, 42, 0.22),
        inset -14px 0 28px -22px rgba(15, 23, 42, 0.22);
    backdrop-filter: none;
    overflow: visible;
    perspective: 1600px;
    animation: subjectsFrameIn 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.subjects-frame .subjects-section-header {
    position: relative;
    z-index: 4;
    margin: 0 auto;
    padding: 3.05rem 2rem 0;
    transform: translateY(1.15rem);
}

.subjects-mascot {
    position: absolute;
    top: calc(0.95rem + 32px);
    right: calc(1.5rem + 18px);
    z-index: 3;
    width: clamp(130px, 13vw, 190px);
    pointer-events: none;
    animation: subjectsMascotFloat 5.8s ease-in-out infinite;
    transform-origin: 60% 100%;
}

.subjects-mascot::before {
    content: "";
    position: absolute;
    inset: 18% 6% 5% 16%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.16), rgba(5, 150, 105, 0));
    filter: blur(14px);
    transform: translateY(18px);
}

.subjects-mascot img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter:
        drop-shadow(0 18px 22px rgba(15, 23, 42, 0.14))
        saturate(1.06);
    animation: subjectsMascotTilt 6.6s ease-in-out infinite;
}

.mascot-subject-icon {
    position: absolute;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #123485;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(5, 150, 105, 0.18);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
    animation: mascotSubjectIconDrift 4.8s ease-in-out infinite;
}

.mascot-subject-icon--math {
    top: 18%;
    left: 1%;
    color: #047857;
    animation-delay: -0.8s;
}

.mascot-subject-icon--chem {
    right: 6%;
    bottom: 7%;
    color: #d97706;
    animation-delay: -2.1s;
}

.mascot-subject-icon--eng {
    top: 42%;
    left: -7%;
    color: #8b5cf6;
    animation-delay: -3.2s;
}

.mascot-subject-icon--code {
    top: 28%;
    right: -5%;
    color: #2563eb;
    animation-delay: -1.5s;
}

.subjects-frame::before {
    content: none;
}

.subjects-panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 650px;
    padding: 0.35rem 2rem 4.35rem;
    opacity: 0;
    translate: 0 34px;
    transition: opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1), translate 1100ms cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
}

.subjects-panel::before {
    content: none;
}

.subjects-panel.is-switching .subjects-panel-copy,
.subjects-panel.is-switching .subjects-insight {
    animation: subjectPanelRefresh 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.subjects-panel.is-page-flipping .subjects-book-turning-page {
    z-index: 8;
}

.subjects-panel.is-page-flipping.is-flip-forward .subjects-book-turning-page {
    animation: subjectBookPageTurnOut 1320ms linear both;
}

.subjects-panel.is-page-flipping.is-flip-backward .subjects-book-turning-page {
    left: 3%;
    right: auto;
    border-radius: 18px 10px 10px 18px;
    background:
        linear-gradient(270deg, rgba(15, 23, 42, 0.10), rgba(255, 255, 255, 0) 14%),
        radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 22%),
        repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.018) 0 1px, transparent 1px 9px),
        linear-gradient(90deg, rgba(18, 52, 133, 0.09), rgba(18, 52, 133, 0) 18%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    transform-origin: right center;
    animation: subjectBookPageTurnBack 1320ms linear both;
}

.subjects-panel.is-page-flipping .subjects-insight,
.subjects-panel.is-page-flipping .subjects-panel-copy {
    opacity: 0;
    transition: opacity 170ms ease-out;
}

.subjects-panel.is-page-flipping.is-metric-ready .subjects-insight,
.subjects-panel.is-page-flipping.is-text-ready .subjects-panel-copy {
    opacity: 1;
    transition: opacity 240ms ease-out;
}

.subjects-panel.is-page-flipping .subjects-book {
    filter: drop-shadow(0 0 0 rgba(15, 23, 42, 0));
}

.subjects-book-stage {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 0.25rem), 1060px);
    min-width: 780px;
    aspect-ratio: 1.6;
    pointer-events: auto;
    perspective: 1500px;
    transform: none;
}

.subjects-book {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateZ(0deg);
    filter: drop-shadow(0 0 0 rgba(15, 23, 42, 0));
    transition: filter 320ms ease;
}

.subjects-book::before {
    content: none;
}

.subjects-book::after {
    content: "";
    position: absolute;
    top: 15%;
    left: calc(50% - 14px);
    width: 28px;
    height: 77%;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.16), rgba(255, 255, 255, 0.72) 48%, rgba(15, 23, 42, 0.10)),
        linear-gradient(180deg, rgba(5, 150, 105, 0.06), rgba(18, 52, 133, 0.08));
    filter: blur(0.2px);
    opacity: 0.72;
    pointer-events: none;
    transform: translateZ(9px);
}

.subjects-book-cover,
.subjects-book-page,
.subjects-book-turning-page {
    position: absolute;
    top: 14%;
    width: 48%;
    height: 76%;
    border-radius: 18px 10px 10px 18px;
}

.subjects-book-cover {
    top: 16%;
    height: 76%;
    background: linear-gradient(145deg, #0f766e, #123485);
    opacity: 0.18;
    filter: blur(0.1px);
}

.subjects-book-cover--left {
    left: 2%;
    transform: skewY(-2deg) translateZ(-10px);
}

.subjects-book-cover--right {
    right: 2%;
    border-radius: 10px 18px 18px 10px;
    transform: skewY(2deg) translateZ(-10px);
}

.subjects-book-page {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 24%),
        repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.018) 0 1px, transparent 1px 9px),
        linear-gradient(90deg, rgba(18, 52, 133, 0.08), rgba(18, 52, 133, 0) 16%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -10px 24px rgba(15, 23, 42, 0.035),
        0 16px 28px rgba(15, 23, 42, 0.08);
}

.subjects-book-page::after,
.subjects-book-turning-page::after {
    content: "";
    position: absolute;
    inset: 8% 12%;
    border-radius: 14px;
    background:
        repeating-linear-gradient(180deg, rgba(15, 23, 42, 0.045) 0 1px, transparent 1px 20px);
    opacity: 0;
}

.subjects-book-page--left {
    left: 3%;
    transform: rotateY(8deg) translateZ(2px);
}

.subjects-book-page--right {
    right: 3%;
    border-radius: 10px 18px 18px 10px;
    background:
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 24%),
        repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.018) 0 1px, transparent 1px 9px),
        linear-gradient(270deg, rgba(18, 52, 133, 0.08), rgba(18, 52, 133, 0) 16%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    transform: rotateY(-8deg) translateZ(2px);
}

.subjects-book-spine {
    position: absolute;
    top: 14%;
    left: 50%;
    z-index: 12;
    width: 12px;
    height: 78%;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.12), rgba(255, 255, 255, 0.82) 50%, rgba(15, 23, 42, 0.10)),
        linear-gradient(180deg, #e2e8f0, #ffffff 38%, #cbd5e1);
    box-shadow:
        inset 0 0 12px rgba(15, 23, 42, 0.13),
        -10px 0 20px rgba(15, 23, 42, 0.065),
        10px 0 20px rgba(15, 23, 42, 0.065),
        0 0 18px rgba(15, 23, 42, 0.10);
    transform: translateX(-50%) translateZ(36px);
    pointer-events: none;
}

.subjects-book-turning-page {
    right: 3%;
    z-index: 7;
    border-radius: 10px 18px 18px 10px;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.10), rgba(255, 255, 255, 0) 14%),
        radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 22%),
        repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.018) 0 1px, transparent 1px 9px),
        linear-gradient(270deg, rgba(18, 52, 133, 0.09), rgba(18, 52, 133, 0) 18%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 10px 0 22px rgba(15, 23, 42, 0.045),
        0 18px 30px rgba(15, 23, 42, 0.10);
    transform-origin: left center;
    opacity: 0;
    visibility: hidden;
    transform: rotateY(0deg) translate3d(0, 0, 12px);
    backface-visibility: visible;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    contain: paint;
}

.subjects-panel.is-page-flipping .subjects-book-turning-page {
    visibility: visible;
}

.subjects-book-turning-page::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 22px;
    border-radius: 0 18px 18px 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(15, 23, 42, 0.10)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(226, 232, 240, 0.28));
    box-shadow:
        -8px 0 20px rgba(15, 23, 42, 0.07),
        inset -2px 0 0 rgba(15, 23, 42, 0.055);
    opacity: 0.9;
}

.subjects-book-turning-page::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 32px;
    border-radius: 10px 0 0 10px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0));
    opacity: 0.55;
    transform-origin: left center;
}

.subjects-panel.is-flip-backward .subjects-book-turning-page::before {
    inset: 0 auto 0 0;
    border-radius: 18px 0 0 18px;
    background:
        linear-gradient(270deg, rgba(255, 255, 255, 0), rgba(15, 23, 42, 0.10)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(226, 232, 240, 0.28));
    box-shadow:
        8px 0 20px rgba(15, 23, 42, 0.07),
        inset 2px 0 0 rgba(15, 23, 42, 0.055);
}

.subjects-panel.is-flip-backward .subjects-book-turning-page::after {
    inset: 0 0 0 auto;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(270deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0));
    transform-origin: right center;
}

.subjects-panel-copy {
    position: absolute;
    z-index: 6;
    top: 15%;
    left: 7%;
    width: 34.5%;
    height: 67%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3.2rem 1.55rem 1.2rem 1.1rem;
    overflow: hidden;
    pointer-events: auto;
}

.subjects-panel-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
}

.subjects-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.44rem 0.66rem;
    color: var(--primary);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(5, 150, 105, 0.16);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.08);
}

.subjects-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: linear-gradient(135deg, #059669, #14b8a6);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.10);
}

.subjects-panel-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0.42rem 0.64rem;
    color: #123485;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(18, 52, 133, 0.10);
    border-radius: 999px;
}

.subjects-panel .section-title {
    color: #0b1f44;
    font-size: 2.35rem;
    line-height: 1.02;
    margin-bottom: 0.82rem;
    letter-spacing: 0;
}

.subjects-panel .section-subtitle {
    max-width: none;
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.65;
}

.subjects-focus-wrap {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    max-width: 675px;
    padding: 0.72rem 0.82rem;
    background: rgba(236, 253, 245, 0.62);
    border: 1px solid rgba(5, 150, 105, 0.16);
    border-left: 4px solid #059669;
    border-radius: 14px;
    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.subjects-focus-icon {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid rgba(5, 150, 105, 0.18);
    border-radius: 10px;
}

.subjects-focus {
    color: #0f3f35;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.55;
}

.subjects-action-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.subjects-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.78rem 1.1rem;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #059669, #047857);
    border: 1px solid rgba(4, 120, 87, 0.35);
    border-radius: 13px;
    box-shadow: 0 14px 28px rgba(5, 150, 105, 0.24);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.subjects-cta svg {
    transition: none;
}

.subjects-cta:hover {
    transform: none;
    box-shadow: 0 14px 28px rgba(5, 150, 105, 0.24);
}

.subjects-cta:active {
    transform: scale(0.97);
    box-shadow: 0 9px 18px rgba(5, 150, 105, 0.20);
}

.subjects-insight {
    display: flex;
    position: absolute;
    z-index: 6;
    top: 15%;
    right: 7%;
    width: 34.5%;
    height: 67%;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: 3.65rem 1.1rem 1.2rem 1.55rem;
    overflow: hidden;
    pointer-events: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.subjects-insight::before {
    content: none;
}

.subjects-insight::after {
    content: none;
}

.subjects-insight-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.05rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.subjects-insight-header strong {
    color: #059669;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

.subjects-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.72rem;
}

.subject-metric {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.9rem 1rem;
    background: rgba(248, 250, 252, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.055);
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease;
}

.subject-metric::before {
    content: "";
    position: absolute;
    inset: 14px auto 14px 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, rgba(5, 150, 105, 0.9), rgba(18, 52, 133, 0.72));
    opacity: 0.74;
}

.subject-metric:nth-child(2)::before {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.95), rgba(5, 150, 105, 0.78));
}

.subject-metric:nth-child(3)::before {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.95), rgba(18, 52, 133, 0.78));
}

.subject-metric:hover {
    transform: translateY(-4px);
    border-color: rgba(5, 150, 105, 0.18);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.10);
}

.subject-metric-value {
    color: transparent;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #123485 0%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.subject-metric-label {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.subjects-card-shell {
    position: absolute;
    left: 50%;
    bottom: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    width: calc(100% - 4rem);
    transform: translateX(-50%);
    opacity: 0;
    translate: 0 34px;
    transition: opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1) 140ms, translate 1100ms cubic-bezier(0.16, 1, 0.3, 1) 140ms;
    z-index: 4;
}

.subjects-panel.subjects-content-visible,
.subjects-card-shell.subjects-content-visible {
    opacity: 1;
    translate: 0 0;
}

.subjects-card-row {
    display: grid;
    grid-template-columns: repeat(4, 118px);
    gap: 0.78rem;
    padding: 0.8rem 0 0.62rem;
    overflow-y: visible;
}

.subjects-card-row.slide-left {
    animation: subjectsPageSlideLeft 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.subjects-card-row.slide-right {
    animation: subjectsPageSlideRight 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.subjects-page-btn {
    position: relative;
    top: 10px;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #123485;
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(5, 150, 105, 0.18);
    border-radius: 14px;
    box-shadow: none;
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms ease, background 260ms ease, opacity 260ms ease;
}

.subjects-page-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    border-color: rgba(5, 150, 105, 0.36);
    background: #ffffff;
    box-shadow: none;
}

.subjects-page-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(0.96);
}

.subjects-page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.42;
    box-shadow: none;
}

.subject-card {
    position: relative;
    height: 128px;
    --subject-a: #2f80ed;
    --subject-b: #1f6ed4;
    --subject-c: #1556b4;
    --subject-shadow: rgba(18, 52, 133, 0.18);
    --icon-a: #d9fff2;
    --icon-b: #99f6e4;
    --icon-line: #123485;
    --icon-hot: #f59e0b;
    appearance: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    color: #ffffff;
    font-family: var(--font-sans);
    padding: 3.35rem 0.72rem 0.82rem;
    text-align: center;
    background: transparent;
    border: 0;
    scroll-snap-align: center;
    overflow: visible;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease, opacity 300ms ease, border-color 300ms ease, background 300ms ease;
}

.subject-card.is-hidden {
    display: none;
}

.subject-card:not(.active) {
    opacity: 0.74;
    filter: saturate(0.68) brightness(0.96);
}

.subject-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 92px;
    border: 1px solid rgba(18, 52, 133, 0.18);
    border-radius: 28px 28px 18px 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 34%),
        linear-gradient(145deg, var(--subject-a) 0%, var(--subject-b) 52%, var(--subject-c) 100%);
    box-shadow: none;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease, background 300ms ease;
}

.subject-card::after {
    content: none;
}

.subject-card:focus-visible {
    outline: 3px solid rgba(5, 150, 105, 0.22);
    outline-offset: 6px;
}

.subject-card:hover,
.subject-card.active {
    opacity: 1;
    filter: saturate(1) brightness(1);
    transform: translateY(-4px);
}

.subject-card:hover::before {
    border-color: rgba(5, 150, 105, 0.24);
    box-shadow: none;
}

.subject-card.active::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 34%),
        linear-gradient(145deg, #059669 0%, var(--subject-b) 55%, #123485 100%);
    border-color: rgba(5, 150, 105, 0.62);
    box-shadow: none;
}

.subject-card--math {
    --subject-a: #2f80ed;
    --subject-b: #1f6ed4;
    --subject-c: #1556b4;
    --subject-shadow: rgba(47, 128, 237, 0.24);
    --icon-a: #dff7ff;
    --icon-b: #93c5fd;
    --icon-line: #123485;
}

.subject-card--physics {
    --subject-a: #f59e0b;
    --subject-b: #ea580c;
    --subject-c: #c2410c;
    --subject-shadow: rgba(245, 158, 11, 0.24);
    --icon-a: #fff7d6;
    --icon-b: #fdba74;
    --icon-line: #9a3412;
}

.subject-card--chemistry {
    --subject-a: #14b8a6;
    --subject-b: #0f8f8f;
    --subject-c: #0f766e;
    --subject-shadow: rgba(20, 184, 166, 0.24);
    --icon-a: #ccfbf1;
    --icon-b: #67e8f9;
    --icon-line: #0f766e;
    --icon-hot: #ec4899;
}

.subject-card--english {
    --subject-a: #65a30d;
    --subject-b: #4d7c0f;
    --subject-c: #3f6212;
    --subject-shadow: rgba(101, 163, 13, 0.22);
    --icon-a: #dcfce7;
    --icon-b: #86efac;
    --icon-line: #166534;
}

.subject-card--literature {
    --subject-a: #8b5cf6;
    --subject-b: #7c3aed;
    --subject-c: #5b21b6;
    --subject-shadow: rgba(139, 92, 246, 0.23);
    --icon-a: #fff7ed;
    --icon-b: #ddd6fe;
    --icon-line: #6d28d9;
}

.subject-card--biology {
    --subject-a: #db2777;
    --subject-b: #be185d;
    --subject-c: #9d174d;
    --subject-shadow: rgba(219, 39, 119, 0.22);
    --icon-a: #fce7f3;
    --icon-b: #f9a8d4;
    --icon-line: #be185d;
    --icon-hot: #f59e0b;
}

.subject-card--history {
    --subject-a: #b45309;
    --subject-b: #92400e;
    --subject-c: #78350f;
    --subject-shadow: rgba(180, 83, 9, 0.22);
    --icon-a: #fffbeb;
    --icon-b: #fcd34d;
    --icon-line: #92400e;
}

.subject-card--geography {
    --subject-a: #0ea5e9;
    --subject-b: #0284c7;
    --subject-c: #0369a1;
    --subject-shadow: rgba(14, 165, 233, 0.22);
    --icon-a: #e0f2fe;
    --icon-b: #7dd3fc;
    --icon-line: #0369a1;
    --icon-hot: #ef4444;
}

.subject-card--civics {
    --subject-a: #64748b;
    --subject-b: #475569;
    --subject-c: #334155;
    --subject-shadow: rgba(71, 85, 105, 0.22);
    --icon-a: #f8fafc;
    --icon-b: #cbd5e1;
    --icon-line: #334155;
    --icon-hot: #f59e0b;
}

.subject-card--informatics {
    --subject-a: #123485;
    --subject-b: #2563eb;
    --subject-c: #1e40af;
    --subject-shadow: rgba(37, 99, 235, 0.23);
    --icon-a: #e0f2fe;
    --icon-b: #93c5fd;
    --icon-line: #1d4ed8;
    --icon-hot: #10b981;
}

.subject-card:hover::after,
.subject-card.active::after {
    opacity: 0;
}

.subject-icon {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 67px;
    padding: 0.15rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 26%),
        linear-gradient(145deg, var(--icon-a) 0%, var(--icon-b) 100%);
    border: 3px solid rgba(255, 255, 255, 0.68);
    border-radius: 18px;
    box-shadow: none;
    transform-origin: center center;
    transform: translateX(-50%) scale(0.86);
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease, background 300ms ease;
}

.subject-icon > span {
    position: absolute;
    display: block;
}

.subject-card:hover .subject-icon,
.subject-card.active .subject-icon {
    transform: translateX(-50%) translateY(-3px) scale(0.9);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.icon-calc-screen {
    top: 11px;
    left: 14px;
    width: 58px;
    height: 16px;
    border: 2px solid rgba(18, 52, 133, 0.46);
    border-radius: 5px;
    background: linear-gradient(180deg, #d9fff2, #a7f3d0);
    box-shadow: none;
}

.subject-icon--math .icon-calc-screen {
    top: 10px;
    left: 10px;
    width: 50px;
    height: 14px;
}

.icon-calc-key {
    top: 36px;
    left: 16px;
    width: 15px;
    height: 13px;
    border-radius: 5px;
    background: #eff6ff;
    box-shadow: none;
}

.subject-icon--math .icon-calc-key {
    top: 32px;
    left: 11px;
    width: 13px;
    height: 11px;
    border-radius: 4px;
}

.subject-icon--math .icon-calc-key:nth-child(3),
.subject-icon--math .icon-calc-key:nth-child(6) {
    left: 29px;
}

.subject-icon--math .icon-calc-key:nth-child(4),
.subject-icon--math .icon-calc-key:nth-child(7) {
    left: 47px;
}

.subject-icon--math .icon-calc-key:nth-child(5),
.subject-icon--math .icon-calc-key:nth-child(6),
.subject-icon--math .icon-calc-key:nth-child(7) {
    top: 49px;
}

.icon-calc-key:nth-child(3),
.icon-calc-key:nth-child(6) {
    left: 36px;
}

.icon-calc-key:nth-child(4),
.icon-calc-key:nth-child(7) {
    left: 56px;
}

.icon-calc-key:nth-child(5),
.icon-calc-key:nth-child(6),
.icon-calc-key:nth-child(7) {
    top: 55px;
}

.icon-calc-key--hot {
    background: linear-gradient(180deg, #fbbf24, #f97316);
}

.icon-calc-key--tall {
    height: 13px;
    background: linear-gradient(180deg, #fcd34d, #f59e0b);
}

.subject-icon--math .icon-calc-screen {
    top: 10px;
    left: 10px;
    width: 50px;
    height: 14px;
}

.subject-icon--math .icon-calc-key {
    top: 32px;
    left: 11px;
    width: 13px;
    height: 11px;
    border-radius: 4px;
}

.subject-icon--math .icon-calc-key:nth-child(3),
.subject-icon--math .icon-calc-key:nth-child(6) {
    left: 29px;
}

.subject-icon--math .icon-calc-key:nth-child(4),
.subject-icon--math .icon-calc-key:nth-child(7) {
    left: 47px;
}

.subject-icon--math .icon-calc-key:nth-child(5),
.subject-icon--math .icon-calc-key:nth-child(6),
.subject-icon--math .icon-calc-key:nth-child(7) {
    top: 49px;
}

.icon-atom-orbit {
    top: 29px;
    left: 13px;
    width: 60px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    transform: rotate(0deg);
}

.subject-icon--physics .icon-atom-orbit {
    top: 27px;
    left: 12px;
    width: 54px;
    height: 18px;
}

.icon-atom-orbit:nth-child(2) {
    transform: rotate(58deg);
}

.icon-atom-orbit:nth-child(3) {
    transform: rotate(-58deg);
}

.icon-atom-core {
    top: 27px;
    left: 36px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #fecaca, #ef4444 62%, #b91c1c);
    box-shadow: none;
}

.subject-icon--physics .icon-atom-core {
    top: 26px;
    left: 32px;
    width: 13px;
    height: 13px;
}

.icon-flask-neck {
    top: 8px;
    left: 34px;
    width: 18px;
    height: 28px;
    border: 3px solid rgba(15, 118, 110, 0.48);
    border-bottom: 0;
    border-radius: 7px 7px 2px 2px;
    background: rgba(255, 255, 255, 0.38);
}

.icon-flask-body {
    left: 20px;
    bottom: 9px;
    width: 48px;
    height: 39px;
    border: 3px solid rgba(15, 118, 110, 0.5);
    border-radius: 7px 7px 22px 22px;
    background: rgba(255, 255, 255, 0.42);
    clip-path: polygon(32% 0, 68% 0, 100% 100%, 0 100%);
}

.icon-flask-liquid {
    left: 25px;
    bottom: 13px;
    width: 38px;
    height: 19px;
    border-radius: 4px 4px 18px 18px;
    background: linear-gradient(180deg, #f472b6, #db2777);
    clip-path: polygon(10% 15%, 90% 0, 100% 100%, 0 100%);
}

.icon-flask-bubble {
    top: 19px;
    right: 21px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}

.icon-chat-dot {
    top: 31px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff, #d1fae5);
    box-shadow: none;
}

.subject-icon--english .icon-chat-dot {
    top: 29px;
    width: 11px;
    height: 11px;
}

.icon-chat-dot:nth-child(1) {
    left: 20px;
}

.icon-chat-dot:nth-child(2) {
    left: 37px;
}

.icon-chat-dot:nth-child(3) {
    left: 54px;
}

.subject-icon--english .icon-chat-dot:nth-child(1) {
    left: 21px;
}

.subject-icon--english .icon-chat-dot:nth-child(2) {
    left: 36px;
}

.subject-icon--english .icon-chat-dot:nth-child(3) {
    left: 51px;
}

.subject-icon--english {
    border-radius: 999px 999px 999px 22px;
}

.subject-icon--english::after {
    content: "";
    position: absolute;
    left: 16px;
    bottom: -3px;
    width: 15px;
    height: 15px;
    background: var(--icon-b);
    border-radius: 4px 0 14px 14px;
    transform: rotate(34deg);
    box-shadow: none;
}

.icon-book-page {
    top: 12px;
    width: 31px;
    height: 44px;
    background: linear-gradient(180deg, #fffaf0, #ede9fe);
    border: 2px solid rgba(109, 40, 217, 0.38);
    box-shadow: none;
}

.icon-book-page--left {
    left: 13px;
    border-radius: 9px 2px 5px 9px;
    transform: skewY(4deg);
}

.icon-book-page--right {
    right: 13px;
    border-radius: 2px 9px 9px 5px;
    transform: skewY(-4deg);
}

.icon-book-line {
    left: 23px;
    width: 40px;
    height: 3px;
    border-radius: 999px;
    background: rgba(109, 40, 217, 0.45);
}

.icon-book-line:nth-child(3) {
    top: 24px;
}

.icon-book-line:nth-child(4) {
    top: 35px;
}

.icon-book-line:nth-child(5) {
    top: 46px;
}

.icon-dna-rail {
    top: 10px;
    width: 13px;
    height: 52px;
    border-radius: 999px;
    border: 5px solid transparent;
    border-left-color: #ec4899;
    border-right-color: #f9a8d4;
}

.icon-dna-rail--left {
    left: 26px;
    transform: rotate(22deg);
}

.icon-dna-rail--right {
    right: 26px;
    transform: rotate(22deg);
}

.icon-dna-rung {
    left: 28px;
    width: 31px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #f9a8d4);
    transform: rotate(-24deg);
}

.icon-dna-rung:nth-child(3) {
    top: 19px;
}

.icon-dna-rung:nth-child(4) {
    top: 35px;
}

.icon-dna-rung:nth-child(5) {
    top: 51px;
}

.icon-scroll-body {
    top: 14px;
    left: 21px;
    width: 45px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff7d6, #fcd34d);
    box-shadow: none;
}

.icon-scroll-rod {
    left: 16px;
    width: 55px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f59e0b, #b45309);
}

.icon-scroll-rod--top {
    top: 10px;
}

.icon-scroll-rod--bottom {
    bottom: 11px;
}

.icon-scroll-line {
    left: 30px;
    width: 27px;
    height: 3px;
    border-radius: 999px;
    background: rgba(146, 64, 14, 0.46);
}

.icon-scroll-line:nth-child(4) {
    top: 30px;
}

.icon-scroll-line:nth-child(5) {
    top: 40px;
}

.icon-globe {
    top: 11px;
    left: 18px;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(3, 105, 161, 0.5);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #ffffff, #bae6fd 42%, #38bdf8);
    box-shadow: none;
}

.icon-globe-line {
    top: 34px;
    left: 21px;
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: rgba(3, 105, 161, 0.38);
}

.icon-globe-line--lng {
    top: 15px;
    left: 41px;
    width: 3px;
    height: 42px;
}

.icon-map-pin {
    top: 18px;
    right: 19px;
    width: 14px;
    height: 14px;
    border-radius: 50% 50% 50% 2px;
    background: linear-gradient(180deg, #fb7185, #ef4444);
    transform: rotate(-45deg);
    box-shadow: none;
}

.icon-scale-beam {
    top: 20px;
    left: 20px;
    width: 47px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fbbf24, #b45309);
}

.icon-scale-post {
    top: 17px;
    left: 41px;
    width: 6px;
    height: 39px;
    border-radius: 999px;
    background: linear-gradient(180deg, #64748b, #334155);
}

.icon-scale-post::after {
    content: "";
    position: absolute;
    left: -13px;
    bottom: -5px;
    width: 32px;
    height: 6px;
    border-radius: 999px;
    background: #334155;
}

.icon-scale-pan {
    top: 36px;
    width: 24px;
    height: 12px;
    border: 3px solid #64748b;
    border-top: 0;
    border-radius: 0 0 18px 18px;
}

.icon-scale-pan--left {
    left: 15px;
}

.icon-scale-pan--right {
    right: 15px;
}

.icon-laptop-screen {
    top: 15px;
    left: 18px;
    width: 50px;
    height: 34px;
    border: 3px solid #1d4ed8;
    border-radius: 8px;
    background: linear-gradient(180deg, #eff6ff, #bfdbfe);
    box-shadow: none;
}

.icon-laptop-base {
    left: 13px;
    bottom: 13px;
    width: 60px;
    height: 10px;
    border-radius: 5px 5px 10px 10px;
    background: linear-gradient(180deg, #60a5fa, #1d4ed8);
}

.icon-code-mark {
    top: 27px;
    width: 11px;
    height: 11px;
    border-top: 3px solid var(--icon-hot);
    border-left: 3px solid var(--icon-hot);
}

.icon-code-mark--left {
    left: 31px;
    transform: rotate(-45deg);
}

.icon-code-mark--right {
    right: 31px;
    transform: rotate(135deg);
}

.subject-name {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 2.45em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.26);
}

@keyframes subjectPanelRefresh {
    from {
        opacity: 0.72;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subjectBookPageTurnOut {
    0% {
        opacity: 1;
        transform: rotateY(0deg) rotateZ(0deg) translate3d(0, 0, 12px) skewY(0deg);
    }
    12% {
        opacity: 1;
        transform: rotateY(-18deg) rotateZ(0.14deg) translate3d(-3px, 0, 24px) skewY(-0.35deg);
    }
    28% {
        opacity: 1;
        transform: rotateY(-54deg) rotateZ(0.12deg) translate3d(-8px, 0, 36px) skewY(-0.8deg);
    }
    46% {
        opacity: 1;
        transform: rotateY(-92deg) rotateZ(-0.12deg) translate3d(-13px, 0, 39px) skewY(-1.05deg);
    }
    64% {
        opacity: 0.96;
        transform: rotateY(-128deg) rotateZ(-0.34deg) translate3d(-19px, 1px, 29px) skewY(-0.72deg);
    }
    80% {
        opacity: 0.78;
        transform: rotateY(-158deg) rotateZ(-0.26deg) translate3d(-23px, 1px, 16px) skewY(-0.28deg);
    }
    92% {
        opacity: 0.36;
        transform: rotateY(-174deg) rotateZ(-0.08deg) translate3d(-24px, 0, 10px) skewY(-0.08deg);
    }
    98% {
        opacity: 0.12;
        transform: rotateY(-179deg) rotateZ(0deg) translate3d(-24px, 0, 8px) skewY(0deg);
    }
    100% {
        opacity: 0;
        transform: rotateY(-180deg) rotateZ(0deg) translate3d(-24px, 0, 8px) skewY(0deg);
    }
}

@keyframes subjectBookPageTurnBack {
    0% {
        opacity: 1;
        transform: rotateY(0deg) rotateZ(0deg) translate3d(0, 0, 12px) skewY(0deg);
    }
    12% {
        opacity: 1;
        transform: rotateY(18deg) rotateZ(-0.14deg) translate3d(3px, 0, 24px) skewY(0.35deg);
    }
    28% {
        opacity: 1;
        transform: rotateY(54deg) rotateZ(-0.12deg) translate3d(8px, 0, 36px) skewY(0.8deg);
    }
    46% {
        opacity: 1;
        transform: rotateY(92deg) rotateZ(0.12deg) translate3d(13px, 0, 39px) skewY(1.05deg);
    }
    64% {
        opacity: 0.96;
        transform: rotateY(128deg) rotateZ(0.34deg) translate3d(19px, 1px, 29px) skewY(0.72deg);
    }
    80% {
        opacity: 0.78;
        transform: rotateY(158deg) rotateZ(0.26deg) translate3d(23px, 1px, 16px) skewY(0.28deg);
    }
    92% {
        opacity: 0.36;
        transform: rotateY(174deg) rotateZ(0.08deg) translate3d(24px, 0, 10px) skewY(0.08deg);
    }
    98% {
        opacity: 0.12;
        transform: rotateY(179deg) rotateZ(0deg) translate3d(24px, 0, 8px) skewY(0deg);
    }
    100% {
        opacity: 0;
        transform: rotateY(180deg) rotateZ(0deg) translate3d(24px, 0, 8px) skewY(0deg);
    }
}

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

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

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

@keyframes subjectsMascotFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(-1deg);
    }
    50% {
        transform: translate3d(-4px, -10px, 0) rotate(1.4deg);
    }
}

@keyframes subjectsMascotTilt {
    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }
    45% {
        transform: rotate(-2.4deg) scale(1.018);
    }
    70% {
        transform: rotate(1.2deg) scale(1.006);
    }
}

@keyframes mascotSubjectIconDrift {
    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }
    50% {
        transform: translateY(-8px) rotate(4deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .subjects-panel.is-page-flipping .subjects-book-turning-page {
        animation: none;
    }

    .subjects-mascot,
    .subjects-mascot img,
    .mascot-subject-icon {
        animation: none;
    }

    .subjects-panel,
    .subjects-card-shell {
        transition: none;
    }

    .ai-title-brand-text {
        animation: none !important;
        opacity: 1;
        filter: none;
    }

    .ai-title-brand-text {
        transform: none;
    }

    .ai-roadmap-step {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* --- HIPZI HOW SECTION: CENTER MODEL + STAGGERED CARDS --- */
.hipzi-how-section {
    --model-x: 0px;
    --model-y: 0px;
    --model-rotate: 0deg;
    --model-scale: 1;
    --scene-y: 0px;
    position: relative;
    padding: 5.5rem 2rem 6rem;
    background:
        radial-gradient(circle at 18% 14%, rgba(52, 211, 153, 0.18), transparent 32%),
        radial-gradient(circle at 84% 30%, rgba(20, 59, 143, 0.11), transparent 31%),
        linear-gradient(135deg, #e9fbf5 0%, #effcf7 45%, #e6f1f6 100%);
    overflow: hidden;
}

.hipzi-how-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hipzi-how-header {
    max-width: 780px;
    margin: 0 auto 4.1rem;
    text-align: center;
}

.hipzi-how-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.42rem 0.85rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hipzi-how-title {
    color: #143B8F;
    margin-bottom: 0.9rem;
}

.hipzi-how-title .scroll-letter-title-char.accent {
    color: #009F6B;
}

.hipzi-how-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: #35506b;
    font-size: 1.08rem;
    line-height: 1.7;
    font-weight: 600;
}

.hipzi-how-stage {
    position: relative;
    min-height: 380vh;
}

.hipzi-how-scene {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: min(76vh, 680px);
    min-height: 560px;
    isolation: isolate;
    transform: translate3d(0, var(--scene-y), 0);
    will-change: transform;
}

.hipzi-how-model {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 340px;
    height: 340px;
    transform: translate3d(-50%, -50%, 0);
}

.hipzi-how-model-float {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.hipzi-how-glow {
    position: absolute;
    inset: -34px;
    border-radius: 42px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 66%);
    filter: blur(12px);
    opacity: 0.78;
}

.hipzi-how-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
    transform: rotateY(var(--carousel-angle, 0deg));
}

.hipzi-how-carousel-item {
    position: absolute;
    width: 260px;
    height: 260px;
    left: 50%;
    top: 50%;
    margin-left: -130px;
    margin-top: -130px;
    
    border-radius: 28px;
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 35px rgba(11, 31, 53, 0.12);
    overflow: hidden;
    
    transform-style: preserve-3d;
    backface-visibility: hidden;
    
    --local-angle: 0deg;
    --item-rotate-y: calc(-1 * (var(--local-angle) + var(--carousel-angle, 0deg)));
    
    transform: 
        rotateY(var(--local-angle)) 
        translateZ(180px) 
        rotateY(var(--item-rotate-y))
        scale(calc(0.72 + var(--item-opacity, 0) * 0.28));
        
    opacity: var(--item-opacity, 0);
    will-change: transform, opacity;
    
    transition: 
        border-color 300ms ease,
        box-shadow 300ms ease;
}

.hipzi-how-carousel-item.is-active {
    border-color: rgba(16, 185, 129, 0.56);
    box-shadow: 0 20px 45px rgba(16, 185, 129, 0.15), 0 15px 30px rgba(11, 31, 53, 0.08);
}

.hipzi-how-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}





.hipzi-how-card {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    --card-x: 190px;
    width: min(340px, 31vw);
    padding: 1.35rem 1.45rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 48px rgba(15, 47, 110, 0.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    --card-progress: 0;
    opacity: var(--card-progress);
    pointer-events: none;
    /* Card bắt đầu ở dưới màn hình, trượt lên tương ứng với tiến trình scroll */
    transform: translate3d(var(--card-x), calc(var(--card-final-y, -50%) + (1 - var(--card-progress)) * 180px), 0) scale(calc(0.92 + var(--card-progress) * 0.08));
    transition:
        opacity 280ms ease-out,
        transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 300ms ease,
        box-shadow 300ms ease;
    will-change: opacity, transform;
}

/* Tất cả card đã kích hoạt hiển thị đầy đủ và ở lại vị trí cuối */
.hipzi-how-card.is-visible,
.hipzi-how-card.is-previous,
.hipzi-how-card.is-active {
    pointer-events: auto;
}

/* Card đang active nổi bật hơn để chỉ step hiện tại */
.hipzi-how-card.is-active {
    z-index: 4;
    border-color: rgba(16, 185, 129, 0.56);
    box-shadow: 0 24px 58px rgba(16, 185, 129, 0.14), 0 18px 42px rgba(15, 47, 110, 0.08);
}

.hipzi-how-card span {
    display: inline-flex;
    margin-bottom: 0.65rem;
    color: #009F6B;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hipzi-how-card h3 {
    color: #0B1F35;
    font-size: 1.2rem;
    line-height: 1.32;
    margin-bottom: 0.55rem;
}

.hipzi-how-card p {
    color: #35506b;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 4.95em;
}

.hipzi-how-card--left {
    --card-x: calc(-100% - 190px);
}

.hipzi-how-card--right {
    --card-x: 190px;
}

/* Vị trí dọc cuối cùng cho từng card — xếp cân xứng ở 4 góc quanh tâm scene */
/* Cạnh trái: top-left (card 0), bottom-left (card 2) */
/* Cạnh phải: top-right (card 1), bottom-right (card 3) */
[data-hipzi-how-card="0"] { --card-final-y: calc(-50% - 150px); }
[data-hipzi-how-card="1"] { --card-final-y: calc(-50% - 150px); }
[data-hipzi-how-card="2"] { --card-final-y: calc(-50% + 150px); }
[data-hipzi-how-card="3"] { --card-final-y: calc(-50% + 150px); }


@media (max-width: 992px) {
    .hipzi-how-stage {
        min-height: 330vh;
    }

    .hipzi-how-scene {
        min-height: 520px;
    }

    .hipzi-how-model {
        width: 300px;
        height: 300px;
    }

    .hipzi-how-card {
        width: min(310px, 34vw);
    }

    .hipzi-how-card--left {
        --card-x: calc(-100% - 150px);
    }

    .hipzi-how-card--right {
        --card-x: 150px;
    }
}

@media (max-width: 768px) {
    .hipzi-how-section {
        padding: 3.5rem 1.25rem;
    }

    .hipzi-how-header {
        margin-bottom: 2rem;
    }

    .hipzi-how-title {
        font-size: 2rem;
    }

    .hipzi-how-subtitle {
        font-size: 0.98rem;
    }

    .hipzi-how-stage {
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hipzi-how-scene {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        transform: none !important;
    }

    .hipzi-how-model {
        position: relative;
        left: auto;
        top: auto;
        width: 250px;
        height: 250px;
        margin: 0 auto 1.2rem;
        transform: none !important;
    }

    .hipzi-how-carousel {
        transform: none !important;
    }

    .hipzi-how-carousel-item {
        position: absolute;
        width: 220px;
        height: 220px;
        margin-left: -110px;
        margin-top: -110px;
        transform: none !important;
        opacity: 0 !important;
        transition: opacity 400ms ease;
    }

    .hipzi-how-carousel-item.is-active {
        opacity: 1 !important;
        z-index: 2;
    }

    .hipzi-how-chip {
        display: none;
    }

    .hipzi-how-card,
    .hipzi-how-card--left,
    .hipzi-how-card--right,
    .hipzi-how-card--one,
    .hipzi-how-card--two,
    .hipzi-how-card--three,
    .hipzi-how-card--four,
    .hipzi-how-card--five {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        width: 100%;
    }

    .hipzi-how-card {
        pointer-events: auto;
        padding: 1.2rem;
        opacity: 0;
        transform: translateY(42px) scale(0.98);
    }

    .hipzi-how-card.is-visible,
    .hipzi-how-card.is-previous,
    .hipzi-how-card.is-active {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hipzi-how-model,
    .hipzi-how-model-float,
    .hipzi-how-chip,
    .hipzi-how-card,
    .hipzi-how-icon {
        transition: none;
        animation: none;
    }

    .hipzi-how-card {
        opacity: 1;
        transform: translate3d(var(--card-x), var(--card-final-y, -50%), 0) scale(1);
    }
}

/* --- AI ROADMAP SECTION --- */
.ai-roadmap-section {
    position: relative;
    padding: 5.5rem 2rem 5rem;
    background:
        radial-gradient(circle at 18% 12%, rgba(20, 184, 166, 0.20), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(245, 158, 11, 0.12), transparent 30%),
        linear-gradient(135deg, #e8f4f2 0%, #dcebe8 48%, #d7e5e8 100%);
}

.ai-roadmap-header {
    max-width: 880px;
    margin: 0 auto 3.2rem;
    text-align: center;
}

.ai-roadmap-header .section-title {
    color: #123485;
    margin-bottom: 1rem;
}

.ai-roadmap-header .section-subtitle {
    max-width: 780px;
    min-height: 3.6em;
    margin: 0 auto;
    color: #334155;
    font-weight: 600;
    line-height: 1.75;
}

.ai-roadmap-shell {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.ai-roadmap-shell::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.02), rgba(37, 99, 235, 0.62) 18%, rgba(5, 150, 105, 0.68) 82%, rgba(5, 150, 105, 0.04));
    border-radius: 999px;
    box-shadow: 0 0 22px rgba(20, 184, 166, 0.18);
    pointer-events: none;
}

.ai-roadmap-step {
    --roadmap-accent: #059669;
    --roadmap-accent-soft: rgba(5, 150, 105, 0.12);
    --roadmap-card-border: rgba(20, 184, 166, 0.22);
    position: relative;
    z-index: 1;
    min-height: 148px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 0.9rem;
    align-items: center;
    padding: 0;
    opacity: 0;
    transform: translateY(32px);
}

.ai-roadmap-step::after {
    content: "";
    grid-column: 3;
    grid-row: 1 / span 2;
    position: relative;
    z-index: 0;
    align-self: stretch;
    min-height: 108px;
    background:
        radial-gradient(circle at 14% 18%, var(--roadmap-accent-soft), rgba(255, 255, 255, 0) 42%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 253, 252, 0.76));
    border: 2px solid var(--roadmap-card-border);
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.82) inset;
    backdrop-filter: blur(10px);
}

.ai-roadmap-step.animate {
    animation: fadeUpIn 850ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ai-roadmap-step:nth-child(1) {
    --roadmap-accent: #059669;
    --roadmap-accent-soft: rgba(5, 150, 105, 0.13);
    animation-delay: 0ms;
}

.ai-roadmap-step:nth-child(2) {
    --roadmap-accent: #2563eb;
    --roadmap-accent-soft: rgba(37, 99, 235, 0.12);
    animation-delay: 90ms;
}

.ai-roadmap-step:nth-child(3) {
    --roadmap-accent: #f97316;
    --roadmap-accent-soft: rgba(249, 115, 22, 0.12);
    animation-delay: 180ms;
}

.ai-roadmap-step:nth-child(4) {
    --roadmap-accent: #14b8a6;
    --roadmap-accent-soft: rgba(20, 184, 166, 0.13);
    animation-delay: 270ms;
}

.ai-roadmap-step:nth-child(5) {
    --roadmap-accent: #059669;
    --roadmap-accent-soft: rgba(5, 150, 105, 0.13);
    animation-delay: 360ms;
}

.ai-roadmap-step:nth-child(even)::after {
    grid-column: 1;
}

.ai-roadmap-step-index {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: relative;
    z-index: 2;
    justify-self: center;
    align-self: center;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--roadmap-accent);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
    background: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    box-shadow: 0 9px 20px rgba(15, 23, 42, 0.12), 0 0 0 2px var(--roadmap-accent-soft);
}

.ai-roadmap-step-icon {
    grid-column: 3;
    grid-row: 1;
    position: relative;
    z-index: 1;
    align-self: end;
    justify-self: start;
    width: 38px;
    height: 38px;
    margin: 0 0 0.2rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--roadmap-accent);
    background: var(--roadmap-accent-soft);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.ai-roadmap-step-icon svg {
    width: 20px;
    height: 20px;
}

.ai-roadmap-step:nth-child(even) .ai-roadmap-step-icon {
    grid-column: 1;
}

.ai-roadmap-step h3 {
    grid-column: 3;
    grid-row: 1;
    position: relative;
    z-index: 1;
    align-self: end;
    color: #123485;
    font-size: 1.14rem;
    font-weight: 900;
    line-height: 1.35;
    margin: 0;
    padding: 1.2rem 1.3rem 0.35rem 4.25rem;
}

.ai-roadmap-step p {
    grid-column: 3;
    grid-row: 2;
    position: relative;
    z-index: 1;
    align-self: start;
    color: #475569;
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.78;
    margin: 0;
    padding: 0 1.3rem 1.2rem 4.25rem;
}

.ai-roadmap-step:nth-child(even) h3,
.ai-roadmap-step:nth-child(even) p {
    grid-column: 1;
}

.ai-roadmap-action {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.ai-roadmap-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    min-height: 50px;
    padding: 0.9rem 1.55rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(135deg, #123485 0%, #059669 100%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(18, 52, 133, 0.18), 0 10px 22px rgba(5, 150, 105, 0.14);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.ai-roadmap-cta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 16px;
    height: 12px;
    font-size: 0;
    line-height: 0;
}

.ai-roadmap-cta span::before,
.ai-roadmap-cta span::after {
    content: "";
    position: absolute;
    display: block;
    background: currentColor;
}

.ai-roadmap-cta span::before {
    top: 5px;
    left: 1px;
    width: 12px;
    height: 2px;
    border-radius: 999px;
}

.ai-roadmap-cta span::after {
    top: 2px;
    right: 1px;
    width: 7px;
    height: 7px;
    background: transparent;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.ai-roadmap-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(18, 52, 133, 0.22), 0 12px 26px rgba(5, 150, 105, 0.16);
}

.ai-roadmap-cta:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 9px 18px rgba(18, 52, 133, 0.18), 0 6px 14px rgba(5, 150, 105, 0.12);
}

.ai-roadmap-cta:focus-visible {
    outline: 3px solid rgba(5, 150, 105, 0.28);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .ai-roadmap-step {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    padding: 6rem 0 2rem 0;
    overflow: hidden;
    background: transparent;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 1.5rem 0;
}

/* Gradient fade masks on left and right borders */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 140px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #e6fcf5 0%, rgba(230, 252, 245, 0) 100%);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #dcfce7 0%, rgba(220, 252, 231, 0) 100%);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
}

.marquee-group {
    display: flex;
    gap: 2rem;
    flex-shrink: 0;
    animation: marqueeLoop 40s linear infinite;
}

.marquee-track:hover .marquee-group {
    animation-play-state: paused;
}

@keyframes marqueeLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(calc(-100% - 2rem), 0, 0);
    }
}

.testimonial-card {
    position: relative;
    background: #ffffff;
    border-radius: 1.75rem;
    padding: 2.25rem 2rem;
    width: 380px;
    flex-shrink: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(5, 150, 105, 0.06);
}

.testimonial-quote-mark {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 6rem;
    line-height: 1;
    font-family: var(--font-sans);
    color: #f1f5f9;
    user-select: none;
    z-index: 1;
    pointer-events: none;
}

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

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #ffffff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.author-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    text-transform: uppercase;
}

.author-role {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- CONTACT SECTION --- */
.contact-section {
    max-width: 1280px;
    width: calc(100% - 3rem);
    margin: 6rem auto 6rem auto;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.45) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(243, 232, 255, 0.45) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 3rem;
    padding: 5rem 4rem;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
    max-width: 1150px;
    margin: 0 auto;
}

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

.contact-left-col {
    display: flex;
    flex-direction: column;
    text-align: left;
    opacity: 0;
    transform: translateX(-60px);
}

.contact-left-col.animate {
    animation: fadeInLeft 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
    position: relative;
    z-index: 1;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.contact-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.5rem;
    border-radius: 1.25rem;
    transition: all 0.3s ease;
}

.contact-info-item.active {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.contact-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info-item.active .contact-icon-circle {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.contact-info-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

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

.contact-right-col {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(60px);
}

.contact-right-col.animate {
    animation: fadeInRight 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 1.75rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
}

#contactForm {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.contact-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.contact-input-icon {
    position: absolute;
    left: 1.15rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.contact-input {
    width: 100%;
    padding: 0.85rem 1.15rem 0.85rem 3rem;
    border: 1.5px solid var(--border-dark);
    border-radius: 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.contact-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.contact-textarea {
    width: 100%;
    min-height: 140px;
    padding: 1rem 1.15rem;
    border: 1.5px solid var(--border-dark);
    border-radius: 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    resize: none;
}

.contact-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.contact-submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.btn-contact {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.95rem 3rem;
    border-radius: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.25);
}

.btn-contact:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.35);
}

/* --- DONATION / SUPPORT QR CARD --- */
.contact-support-card {
    background: #ffffff;
    border-radius: 1.75rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.support-header {
    text-align: left;
    width: 100%;
}

.support-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.65rem;
    background: linear-gradient(135deg, var(--primary-hover) 0%, #10B981 58%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.support-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.support-qr-wrapper {
    width: 100%;
    max-width: 210px;
    padding: 0.65rem;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1.5px solid var(--border-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.support-qr-wrapper:hover {
    transform: scale(1.04);
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.12);
    border-color: var(--primary);
}

.support-qr-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    display: block;
}

.support-payment-details {
    width: 100%;
    background: var(--primary-light);
    border-radius: 1rem;
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid rgba(5, 150, 105, 0.1);
}

.payment-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.detail-label {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    color: var(--text-main);
    font-weight: 700;
}

.detail-value.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value.highlighted {
    color: var(--primary);
    font-size: 0.95rem;
    background: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(5, 150, 105, 0.2);
    font-family: monospace;
    letter-spacing: 0.5px;
}

.support-footer {
    width: 100%;
    margin-top: auto;
}

.thank-you-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
}

/* Responsive specific to contact section */
@media (max-width: 992px) {
    .contact-section {
        padding: 4rem 2.5rem;
        border-radius: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-left-col {
        text-align: center;
    }
    
    .contact-info-item {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1.5rem;
        border-radius: 2rem;
    }

    .contact-form-card {
        padding: 2.5rem 1.5rem;
    }
}

/* --- FOOTER --- */
.footer {
    width: 100%;
    background: #071A2F;
    padding: 0;
    margin-top: 70px;
    margin-bottom: 0;
}

.footer-card {
    max-width: 1450px;
    margin: 0 auto;
    width: calc(100% - 2rem);
    background: transparent;
    border-radius: 0;
    padding: 4rem 2rem 2.5rem;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: none;
}

/* Top Content Grid */
.footer-top-grid {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 10px;
    margin-bottom: 4rem;
}

.footer-brand-col {
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.85rem;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.footer-logo img {
    height: 48px;
    width: auto;
    border-radius: 10px;
    object-fit: contain;
}

.footer-logo span {
    background: linear-gradient(135deg, rgb(4, 120, 87) 0%, rgb(16, 185, 129) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.footer-desc {
    color: #9FB3C8;
    line-height: 1.65;
    font-size: 1rem;
    margin-bottom: 1.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Socials row */
.footer-socials {
    display: flex;
    gap: 0.85rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(16, 185, 129, 0.16);
}

.social-btn:hover {
    background: rgba(16, 185, 129, 0.28);
    color: #ffffff;
    border-color: rgba(16, 185, 129, 0.36);
    transform: translateY(-2px);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

/* Links Columns */
.footer-links-wrapper {
    display: contents;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

.footer-links-col h4 {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: #EAF4F1;
    margin-bottom: 1.5rem;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-col a {
    text-decoration: none;
    color: #9FB3C8;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links-col a:hover {
    color: #10B981;
}

.footer-student-col h4,
.footer-service-col h4 {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    column-gap: 0.9rem;
}

.footer-student-col h4::before,
.footer-service-col h4::before {
    content: '';
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: #10B981;
}

.footer-student-col ul,
.footer-service-col ul {
    gap: 1.25rem;
}

.footer-student-col a,
.footer-service-col a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 1rem;
}

.footer-student-icon,
.footer-service-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    color: #9FB3C8;
    background: rgba(159, 179, 200, 0.12);
    border: 1px solid rgba(159, 179, 200, 0.08);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-student-col a:hover .footer-student-icon,
.footer-service-col a:hover .footer-service-icon {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.34);
    border-color: rgba(96, 165, 250, 0.32);
}

.footer-dev-col {
    min-width: 260px;
}

.footer-dev-col ul {
    gap: 1.25rem;
}

.footer-dev-col li {
    display: block;
}

.footer-dev-role {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.26rem 0.62rem;
    margin-bottom: 0.55rem;
    border-radius: 8px;
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.16);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-dev-col strong {
    display: block;
    color: #EAF4F1;
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.footer-dev-col a {
    font-size: 1rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.footer-dev-email {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-dev-email svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #10B981;
}

.footer-dev-email span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer-contact-map {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer-contact-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-contact-info h3 {
    color: #10B981;
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 1.6rem;
}

.footer-contact-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.footer-contact-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 0.9rem;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.footer-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-contact-list strong {
    display: block;
    color: #EAF4F1;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.footer-contact-list span,
.footer-contact-list a {
    color: #9FB3C8;
    font-size: 0.95rem;
    line-height: 1.55;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-contact-list a {
    transition: color 0.2s ease;
}

.footer-contact-list a:hover {
    color: #10B981;
}

.footer-map-panel {
    position: relative;
    min-width: 0;
    width: min(100%, 460px);
    aspect-ratio: 1 / 1;
    justify-self: start;
    align-self: center;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.footer-map-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(7, 26, 47, 0.08);
    mix-blend-mode: multiply;
}

.footer-map-panel iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.9) contrast(1.02) brightness(0.96);
}

/* Bottom Legal Bar */
.footer-bottom-bar {
    position: relative;
    z-index: 1;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(159, 179, 200, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    color: #9FB3C8;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    text-decoration: none;
    color: #9FB3C8;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #10B981;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 3rem;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .subjects-frame {
        min-height: 570px;
        border-radius: 24px;
    }

    .subjects-frame .subjects-section-header {
        padding: 2.55rem 1.75rem 0;
        transform: translateY(0.8rem);
    }

    .subjects-mascot {
        top: calc(0.95rem + 32px);
        right: calc(1.05rem + 18px);
        width: 138px;
    }

    .mascot-subject-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 0.68rem;
    }

    .subjects-panel {
        display: flex;
        min-height: 570px;
        padding: 0.35rem 1.6rem 4.2rem;
    }

    .subjects-panel::before {
        inset: 1.5rem 1.4rem 3.2rem;
        width: auto;
        height: auto;
    }

    .subjects-book-stage {
        width: min(100%, 900px);
        min-width: 0;
    }

    .subjects-panel-copy {
        max-width: none;
        padding: 2.55rem 0.9rem 1rem 1.25rem;
    }

    .subjects-panel .section-title {
        font-size: 1.85rem;
    }

    .subjects-insight {
        padding: 2.8rem 1.25rem 1rem 0.9rem;
    }

    .subjects-metrics {
        grid-template-columns: 1fr;
    }

    .subject-metric {
        flex-direction: row;
        align-items: center;
        gap: 0.55rem;
    }

    .subjects-card-shell {
        width: calc(100% - 3rem);
        gap: 0.75rem;
        bottom: 27px;
    }

    .subjects-card-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.58rem;
        flex: 1 1 auto;
    }

    .subjects-page-btn {
        width: 40px;
        height: 40px;
    }

    .ai-roadmap-section {
        padding: 4.5rem 1.5rem 4rem;
    }

    .ai-roadmap-shell {
        max-width: 900px;
        grid-template-columns: 1fr;
        gap: 0.58rem;
    }

    .ai-roadmap-shell::before {
        display: block;
    }

    .ai-roadmap-step {
        min-height: 142px;
        grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
        column-gap: 0.75rem;
    }

    .ai-roadmap-step-index {
        width: 38px;
        height: 38px;
        font-size: 0.82rem;
    }

    .ai-roadmap-step h3 {
        font-size: 1.04rem;
        padding: 1rem 1.05rem 0.32rem 3.9rem;
    }

    .ai-roadmap-step p {
        font-size: 0.9rem;
        padding: 0 1.05rem 1rem 3.9rem;
    }

    .ai-roadmap-step-icon {
        width: 34px;
        height: 34px;
        margin-left: 1.05rem;
    }

    .ai-roadmap-step-icon svg {
        width: 18px;
        height: 18px;
    }

    .ai-roadmap-action {
        margin-top: 2.4rem;
    }

    .ai-title-brand-stage {
        width: 5.9rem;
    }

    .footer-card {
        padding: 3rem 2rem 2.25rem;
    }
    
    .footer-links-wrapper {
        gap: 3rem;
    }

    .footer-contact-map {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .footer-map-panel {
        justify-self: center;
    }
    
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .subjects-section {
        padding: 3rem 1.25rem 3.75rem;
    }

    .subjects-section-header {
        margin-bottom: 2.1rem;
    }

    .subjects-frame {
        min-height: 470px;
        border-radius: 22px;
    }

    .subjects-frame .subjects-section-header {
        padding: 1.85rem 1rem 0;
        transform: translateY(0.35rem);
    }

    .subjects-mascot {
        top: calc(0.55rem + 32px);
        right: calc(0.6rem + 18px);
        width: 82px;
        opacity: 0.9;
    }

    .mascot-subject-icon {
        display: none;
    }

    .subjects-frame::before {
        border-radius: 21px;
    }

    .subjects-panel {
        min-height: 470px;
        padding: 0.25rem 0.7rem 1.1rem;
    }

    .subjects-panel::before {
        display: block;
        inset: 1rem 0.75rem 1rem;
        border-radius: 20px;
    }

    .subjects-book-stage {
        width: 100%;
        min-width: 0;
    }

    .subjects-panel-topline {
        gap: 0.55rem;
        margin-bottom: 0.55rem;
    }

    .subjects-kicker {
        font-size: 0.55rem;
        padding: 0.34rem 0.48rem;
        letter-spacing: 0.08em;
    }

    .subjects-panel-badge {
        display: none;
    }

    .subjects-panel-copy {
        top: 13.5%;
        left: 7.2%;
        width: 34.5%;
        height: 70%;
        padding: 1.12rem 0.75rem 0.55rem 0.45rem;
    }

    .subjects-insight {
        top: 13.5%;
        right: 7.2%;
        width: 34.5%;
        height: 70%;
        padding: 1.22rem 0.45rem 0.55rem 0.75rem;
    }

    .subjects-panel .section-title {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }

    .subjects-panel .section-subtitle {
        font-size: 0.68rem;
        line-height: 1.42;
        margin-bottom: 0.52rem;
    }

    .subjects-focus-wrap {
        grid-template-columns: 1fr;
        padding: 0.46rem;
        border-radius: 10px;
    }

    .subjects-focus-icon {
        display: none;
    }

    .subjects-focus {
        font-size: 0.62rem;
        line-height: 1.35;
    }

    .subjects-action-row {
        margin-top: 0.55rem;
    }

    .subjects-cta {
        width: 100%;
        max-width: none;
        padding: 0.52rem 0.56rem;
        font-size: 0.62rem;
        border-radius: 9px;
    }

    .subjects-insight {
        border-radius: 0;
    }

    .subjects-insight-header {
        margin-bottom: 0.46rem;
        font-size: 0.52rem;
        gap: 0.35rem;
    }

    .subjects-insight-header strong {
        font-size: 0.52rem;
    }

    .subjects-metrics {
        grid-template-columns: 1fr;
        gap: 0.42rem;
    }

    .subject-metric {
        flex-direction: row;
        align-items: center;
        padding: 0.48rem 0.54rem;
        border-radius: 9px;
    }

    .subject-metric-value {
        font-size: 1.02rem;
    }

    .subject-metric-label {
        font-size: 0.52rem;
        letter-spacing: 0.02em;
    }

    .subjects-card-shell {
        position: static;
        width: auto;
        padding: 0 1.25rem 0.9rem;
        gap: 0.9rem;
        transform: none;
        align-items: center;
    }

    .subjects-card-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0;
        gap: 0.9rem;
        flex: 1 1 auto;
    }

    .subjects-page-btn {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .subject-card {
        height: 124px;
        min-height: 124px;
        border-radius: 16px;
    }

    .ai-roadmap-section {
        padding: 3.5rem 1.25rem 3.25rem;
    }

    .ai-roadmap-header {
        margin-bottom: 2.2rem;
    }

    .ai-roadmap-header .section-subtitle {
        min-height: 5.4em;
        font-size: 0.98rem;
    }

    .ai-roadmap-shell {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ai-roadmap-shell::before {
        display: block;
        left: 23px;
        top: 16px;
        bottom: 16px;
    }

    .ai-roadmap-step {
        min-height: 0;
        grid-template-columns: 48px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 0.8rem;
        padding: 0;
    }

    .ai-roadmap-step-index {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
        width: 40px;
        height: 40px;
        font-size: 0.82rem;
    }

    .ai-roadmap-step::after,
    .ai-roadmap-step:nth-child(even)::after {
        grid-column: 2;
        grid-row: 1 / span 2;
        min-height: 0;
    }

    .ai-roadmap-step-icon,
    .ai-roadmap-step:nth-child(even) .ai-roadmap-step-icon {
        grid-column: 2;
        grid-row: 1;
        width: 34px;
        height: 34px;
        margin: 0 0 0.18rem 1rem;
    }

    .ai-roadmap-step-icon svg {
        width: 18px;
        height: 18px;
    }

    .ai-roadmap-step h3 {
        grid-column: 2;
        grid-row: 1;
        font-size: 1rem;
        padding: 1rem 1rem 0.3rem 3.65rem;
    }

    .ai-roadmap-step p {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.86rem;
        font-weight: 500;
        line-height: 1.68;
        padding: 0 1rem 1rem 3.65rem;
    }

    .ai-roadmap-step:nth-child(even) h3,
    .ai-roadmap-step:nth-child(even) p {
        grid-column: 2;
    }

    .ai-roadmap-action {
        margin-top: 2rem;
    }

    .ai-roadmap-cta {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
        padding: 0.82rem 1.2rem;
    }

    .ai-title-brand-stage {
        width: 5.15rem;
    }

    .footer-card {
        width: calc(100% - 1rem);
        padding: 2.5rem 1.25rem 2rem;
    }
    
    .footer-top-grid {
        gap: 3rem;
    }

    .footer-brand-col {
        flex-basis: 100%;
        max-width: 460px;
    }
    
    .footer-links-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    .footer-student-col a,
    .footer-service-col a {
        gap: 0.75rem;
    }

    .footer-student-col h4,
    .footer-service-col h4 {
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 0.75rem;
    }

    .footer-student-icon,
    .footer-service-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .footer-contact-map {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
        padding: 1.2rem;
    }

    .footer-contact-info h3 {
        font-size: 1.16rem;
    }

    .footer-contact-list li {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.8rem;
    }

    .footer-contact-icon {
        width: 38px;
        height: 38px;
    }

    .footer-map-panel {
        width: min(100%, 320px);
    }
    
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    
    .footer-legal-links {
        justify-content: center;
        gap: 1rem;
    }
    
}
