﻿@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* ========================================
   LANDING + POLICY THEME
   ======================================== */
:root {
    --landing-ink-900: #10233b;
    --landing-ink-700: #2a4667;
    --landing-ink-500: #5d7490;
    --landing-surface-0: #ffffff;
    --landing-surface-1: #f2f6fb;
    --landing-surface-2: #e8eff8;
    --landing-brand-700: #123f74;
    --landing-brand-600: #1a4f90;
    --landing-brand-500: #2766b8;
    --landing-accent: #1f4f90;
    --landing-cta: #0c66d4;
    --landing-cta-dark: #094da0;
    --landing-border: rgba(18, 36, 58, 0.12);
    --landing-shadow-soft: 0 12px 28px rgba(12, 28, 46, 0.08);
    --landing-shadow-strong: 0 20px 44px rgba(12, 28, 46, 0.14);
    --landing-radius-md: 14px;
    --landing-radius-lg: 22px;
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--landing-ink-900);
    background:
        radial-gradient(circle at 10% 12%, rgba(39, 102, 184, 0.08), transparent 42%),
        radial-gradient(circle at 88% 12%, rgba(18, 63, 116, 0.08), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--landing-ink-900);
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(249, 252, 255, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(18, 36, 58, 0.08);
    box-shadow: 0 8px 22px rgba(12, 28, 46, 0.06);
}

.header-content {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    height: 78px !important;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    color: var(--landing-ink-900);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.15;
}

.logo-subtitle {
    color: var(--landing-ink-500);
    font-size: 0.73rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-menu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(18, 36, 58, 0.1);
}

.nav-link {
    color: var(--landing-ink-700);
    font-weight: 600;
    font-size: 0.93rem;
    padding: 8px 14px;
    border-radius: 999px;
    transition: all 0.18s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: linear-gradient(120deg, var(--landing-brand-700), var(--landing-brand-500));
    box-shadow: 0 8px 18px rgba(18, 63, 116, 0.3);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header-actions .btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 10px 18px;
}

.header-actions .btn-primary {
    background: linear-gradient(120deg, var(--landing-brand-700), var(--landing-brand-500));
    border: none;
    color: #ffffff;
}

.header-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(18, 63, 116, 0.34);
}

.header-actions .btn-outline {
    border: 1px solid rgba(18, 36, 58, 0.24);
    color: var(--landing-ink-900);
    background: rgba(255, 255, 255, 0.9);
}

.header-actions .btn-outline:hover {
    color: #ffffff;
    border-color: transparent;
    background: #24405f;
}

.landing-user-menu {
    position: relative;
}

.landing-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(18, 36, 58, 0.18);
    background: rgba(255, 255, 255, 0.94);
    color: var(--landing-ink-900);
    font-family: inherit;
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.landing-user-trigger:hover {
    background: #ffffff;
    border-color: rgba(18, 36, 58, 0.32);
}

.landing-user-trigger:focus-visible {
    outline: none;
    border-color: var(--landing-brand-700);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.landing-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(120deg, #1d4f91, #2f78cf);
    font-size: 0.82rem;
}

.landing-user-name {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-user-icon {
    color: var(--landing-ink-500);
    font-size: 0.74rem;
    transition: transform 0.18s ease;
}

.landing-user-menu.is-open .landing-user-icon {
    transform: rotate(180deg);
}

.landing-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 192px;
    border-radius: 12px;
    border: 1px solid rgba(18, 36, 58, 0.12);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(12, 28, 46, 0.16);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: all 0.16s ease;
    z-index: 1002;
}

.landing-user-menu.is-open .landing-user-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.landing-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--landing-ink-700);
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.16s ease;
}

.landing-dropdown-item i {
    width: 16px;
    color: var(--landing-brand-700);
}

.landing-dropdown-item:hover {
    color: var(--landing-ink-900);
    background: var(--landing-surface-1);
}

.mobile-menu-btn {
    display: none;
    border: none;
    background: transparent;
    color: var(--landing-ink-900);
    font-size: 1.35rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 84px;
    left: 16px;
    right: 16px;
    z-index: 999;
    border-radius: 16px;
    border: 1px solid rgba(18, 36, 58, 0.1);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 38px rgba(12, 28, 46, 0.15);
    padding: 14px;
}

.mobile-menu.show {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav .nav-link {
    border-radius: 10px;
    background: transparent;
}

.mobile-nav .nav-link:hover {
    color: var(--landing-ink-900);
    background: var(--landing-surface-1);
    box-shadow: none;
}

.mobile-nav .btn {
    margin-top: 6px;
}

@media (max-width: 1060px) {
    .nav-menu,
    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    padding: 30px 0 18px;
    overflow: hidden;
    background:
    linear-gradient(130deg, rgba(16, 35, 59, 0.98) 0%, rgba(21, 49, 82, 0.96) 62%, rgba(22, 63, 111, 0.92) 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 560px;
    height: 560px;
    top: -220px;
    right: -170px;
    background: radial-gradient(circle, rgba(92, 164, 255, 0.22), rgba(92, 164, 255, 0));
    animation: driftA 10s ease-in-out infinite alternate;
}

.hero::after {
    width: 620px;
    height: 620px;
    left: -260px;
    bottom: -300px;
    background: radial-gradient(circle, rgba(106, 181, 255, 0.18), rgba(106, 181, 255, 0));
    animation: driftB 8s ease-in-out infinite alternate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle at 56% 42%, #000 34%, transparent 95%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
    align-items: end;
    gap: 44px;
}

.hero-figure {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    animation: floatIn 0.9s ease 0.08s both;
}

.hero-figure img {
    width: 100%;
    max-width: 430px;
    max-height: 520px;
    margin-left: 80px;
    object-fit: contain;
    filter: drop-shadow(0 30px 45px rgba(6, 18, 35, 0.45));
    transform: translateY(20px);
}

.hero-content {
    color: #ffffff;
    max-width: 780px;
    animation: fadeUp 0.75s ease both;
    margin-left: 40px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-family: "Merriweather", serif;
    color: #ffffff;
    font-size: clamp(2rem, 4.4vw, 3.18rem);
    line-height: 1.22;
    margin-bottom: 18px;
}

.hero-title .highlight {
    color: #d7ebff;
    text-shadow: 0 6px 18px rgba(86, 162, 255, 0.28);
}

.hero-title .hero-line {
    color: #ecf7ff;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2.7vw, 1.44rem);
}

.hero-description {
    max-width: 680px;
    color: rgba(236, 247, 255, 0.9);
    font-size: 1.04rem;
    line-height: 1.72;
    margin-bottom: 20px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.84rem;
    font-weight: 600;
}

.hero-trust i {
    color: #8cc3ff;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-buttons .btn {
    min-width: 174px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 14px 24px;
}

.hero-buttons .btn-success {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--landing-cta), #1580ff);
    border: 1px solid var(--landing-cta-dark);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(12, 102, 212, 0.36);
    animation: ctaPulse 2.7s ease-in-out infinite;
}

.hero-buttons .btn-success::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    transform: skewX(-26deg);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
    animation: ctaShine 3.1s ease-in-out infinite;
}

.hero-buttons .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(12, 102, 212, 0.42);
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.hero-buttons .btn-secondary:hover {
    background: #ffffff;
    color: #1b3553;
    border-color: #ffffff;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 460px;
}

.stat-item {
    padding: 14px 16px;
    border-radius: var(--landing-radius-md);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(3px);
}

.stat-number {
    display: block;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.15;
}

.stat-label {
    display: block;
    color: rgba(238, 248, 255, 0.9);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ========================================
   COMMON SECTIONS
   ======================================== */
section {
    padding: 86px 0;
}

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

.section-header h2 {
    font-family: "Merriweather", serif;
    font-size: clamp(1.65rem, 2.9vw, 2.35rem);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--landing-ink-500);
    font-size: 1rem;
}

/* ========================================
   FEATURES
   ======================================== */
.features {
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
}

.features-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    border-radius: var(--landing-radius-lg);
    background: #ffffff;
    border: 1px solid var(--landing-border);
    box-shadow: var(--landing-shadow-soft);
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: cardRise 0.8s ease both;
}

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

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-strong);
}

.feature-icon {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.66rem;
    margin-bottom: 16px;
}

.feature-icon.admin-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.feature-icon.student-icon {
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    color: #0f766e;
}

.feature-card h3 {
    font-size: 1.24rem;
    margin-bottom: 12px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 7px 0;
    color: var(--landing-ink-700);
    font-weight: 500;
}

.feature-list li i {
    color: var(--landing-brand-700);
}

/* ========================================
   QUESTION TYPES
   ======================================== */
.exam-types {
    background: #ffffff;
}

.types-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.type-card {
    border-radius: 16px;
    background: linear-gradient(160deg, #ffffff 0%, #f4f8fc 100%);
    border: 1px solid rgba(18, 36, 58, 0.1);
    min-height: 132px;
    padding: 18px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    animation: cardRise 0.75s ease both;
}

.type-card:nth-child(even) {
    animation-delay: 0.1s;
}

.type-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 118, 110, 0.44);
    box-shadow: 0 14px 26px rgba(12, 28, 46, 0.12);
}

.type-card i {
    color: var(--landing-brand-700);
    font-size: 1.68rem;
}

.type-card span {
    color: var(--landing-ink-700);
    font-weight: 600;
    font-size: 0.92rem;
}

/* ========================================
   EXAMS
   ======================================== */
.exams-section {
    background:
        radial-gradient(circle at 78% 20%, rgba(21, 128, 119, 0.08), transparent 34%),
        linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
}

.exams-cards {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.landing-exam-card {
    border-radius: 18px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid rgba(18, 36, 58, 0.12);
    box-shadow: var(--landing-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    animation: cardRise 0.82s ease both;
}

.landing-exam-card:nth-child(2) {
    animation-delay: 0.1s;
}

.landing-exam-card:nth-child(3) {
    animation-delay: 0.18s;
}

.landing-exam-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--landing-shadow-strong);
}

.landing-exam-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.landing-exam-grade {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
}

.landing-exam-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.landing-exam-card h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.45;
}

.landing-exam-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.landing-exam-info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--landing-ink-700);
    font-size: 0.9rem;
}

.landing-exam-info-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--landing-ink-500);
    font-weight: 600;
}

.landing-exam-info-value {
    text-align: right;
    font-weight: 700;
    color: var(--landing-ink-900);
}

.landing-exam-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.landing-exam-actions .btn.btn-sm {
    border-radius: 999px;
    padding: 9px 15px;
    font-weight: 700;
}

.landing-exam-pagination {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-exam-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.landing-exam-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 13px;
    border: 1px solid rgba(18, 36, 58, 0.18);
    background: #ffffff;
    color: var(--landing-ink-700);
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.16s ease;
}

.landing-exam-pagination .page-btn:hover {
    transform: translateY(-1px);
    color: var(--landing-ink-900);
    box-shadow: 0 8px 16px rgba(12, 28, 46, 0.14);
}

.landing-exam-pagination .page-btn.active {
    color: #ffffff;
    border-color: var(--landing-brand-700);
    background: linear-gradient(120deg, var(--landing-brand-700), var(--landing-brand-500));
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.32);
}

.landing-exam-pagination .page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.empty-state {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(18, 36, 58, 0.1);
    background: #ffffff;
    box-shadow: var(--landing-shadow-soft);
    padding: 36px 24px;
}

.empty-state i {
    font-size: 2.1rem;
    color: var(--landing-brand-700);
    margin-bottom: 12px;
}

/* ========================================
   GUIDE
   ======================================== */
.guide-section {
    background: #ffffff;
}

.steps-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    position: relative;
    text-align: center;
    padding: 24px 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(18, 36, 58, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: 0 10px 22px rgba(12, 28, 46, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    animation: cardRise 0.8s ease both;
}

.step-card:nth-child(even) {
    animation-delay: 0.1s;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(12, 28, 46, 0.13);
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    background: linear-gradient(120deg, var(--landing-brand-700), var(--landing-brand-500));
    box-shadow: 0 8px 14px rgba(15, 118, 110, 0.34);
}

.step-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--landing-surface-1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(18, 36, 58, 0.12);
    transition: all 0.18s ease;
}

.step-card:hover .step-icon {
    background: linear-gradient(140deg, #dbeafe, #ccfbf1);
    transform: scale(1.06);
}

.step-icon i {
    font-size: 1.5rem;
    color: var(--landing-brand-700);
}

.step-card h3 {
    font-size: 1.04rem;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--landing-ink-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background:
        radial-gradient(circle at 14% 8%, rgba(87, 127, 255, 0.2), transparent 34%),
        radial-gradient(circle at 88% -4%, rgba(77, 184, 255, 0.12), transparent 38%),
        linear-gradient(180deg, #081a3f 0%, #071534 58%, #06122b 100%);
    color: #ffffff;
    padding: 64px 0 24px;
}

.footer .container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 72px;
    padding-right: 72px;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(270px, 1.8fr) repeat(3, minmax(170px, 1fr));
    gap: 28px;
    max-width: 1160px;
    margin: 0 auto 44px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    text-decoration: none;
}

.footer-brand-logo {
    width: auto;
    height: 42px;
    display: block;
    object-fit: contain;
}

.footer-brand-name {
    color: #ffffff;
    font-size: 1.78rem;
    font-weight: 800;
}

.footer-description {
    color: rgba(207, 223, 255, 0.86);
    font-size: 0.96rem;
    line-height: 1.72;
    max-width: 360px;
    margin-bottom: 22px;
}

.footer-links h4,
.footer-contact h4,
.footer-legal h4 {
    color: #ffffff;
    margin-bottom: 14px;
    font-size: 1.3rem;
    font-weight: 800;
}

.footer-links a,
.footer-legal a,
.footer-contact a {
    display: block;
    color: rgba(191, 212, 255, 0.86);
    padding: 7px 0;
    font-size: 0.98rem;
    line-height: 1.45;
    text-decoration: none;
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

.footer-contact p {
    color: rgba(191, 212, 255, 0.86);
    padding-top: 7px;
    font-size: 0.98rem;
    line-height: 1.45;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-socials .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-socials a.social-icon:hover {
    transform: translateY(-2px);
    background: rgba(79, 103, 255, 0.3);
    border-color: rgba(146, 165, 255, 0.54);
}

.footer-socials .social-icon.is-fallback {
    opacity: 0.82;
}

.footer-bottom {
    border-top: 1px solid rgba(176, 200, 255, 0.18);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 1160px;
    margin: 0 auto;
}

.footer-bottom p {
    color: rgba(191, 212, 255, 0.82);
    font-size: 0.9rem;
}

.footer-heart {
    color: #ff4f8b;
}

.footer-bottom-links {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.footer-bottom-links a {
    color: rgba(191, 212, 255, 0.86);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-dot {
    color: rgba(176, 200, 255, 0.52);
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: linear-gradient(135deg, #16417a, #0f2c57);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(6, 18, 35, 0.32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    z-index: 1100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #1e4f92, #133568);
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: 2px solid rgba(148, 191, 255, 0.95);
    outline-offset: 2px;
}

/* ========================================
   POLICY PAGES
   ======================================== */
.policy-page {
    padding: 132px 0 78px;
    background:
        radial-gradient(circle at 18% 8%, rgba(191, 219, 254, 0.36), transparent 46%),
        linear-gradient(180deg, #f6f9fd 0%, #eef4fa 100%);
}

.policy-hero {
    max-width: 920px;
    margin: 0 auto 30px;
    text-align: center;
}

.policy-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 6px 12px;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.policy-hero h1 {
    font-family: "Merriweather", serif;
    font-size: clamp(2rem, 4vw, 2.45rem);
    margin-bottom: 10px;
}

.policy-hero p {
    color: var(--landing-ink-700);
    line-height: 1.7;
}

.policy-content {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.policy-section {
    border-radius: 16px;
    border: 1px solid rgba(18, 36, 58, 0.12);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(12, 28, 46, 0.07);
    padding: 22px 24px;
}

.policy-section h2 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.policy-section h3 {
    color: #1d4ed8;
    margin-top: 10px;
    margin-bottom: 7px;
    font-size: 0.98rem;
}

.policy-section p,
.policy-section li {
    color: var(--landing-ink-700);
    line-height: 1.7;
}

.policy-section ul {
    padding-left: 20px;
    margin-bottom: 8px;
}

.policy-sublist {
    margin-top: -4px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
        gap: 28px;
    }

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

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

@media (max-width: 860px) {
    .hero {
        padding: 132px 0 20px;
    }

    .hero-figure img {
        transform: translateY(12px);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        align-items: center;
    }

    .hero-figure {
        order: 2;
    }

    .hero-content {
        order: 1;
        text-align: center;
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-trust,
    .hero-buttons,
    .hero-stats {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        width: min(100%, 430px);
    }

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

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

    .footer .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .footer-info {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    section {
        padding: 66px 0;
    }

    .header-content {
        min-height: 76px;
    }

    .logo img {
        height: 62px !important;
    }

    .logo-title {
        font-size: 0.95rem;
    }

    .logo-subtitle {
        display: none;
    }

    .hero {
        padding: 120px 0 14px;
    }

    .hero-figure img {
        transform: translateY(8px);
    }

    .hero-eyebrow {
        font-size: 0.7rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

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

    .features-grid,
    .exams-cards,
    .steps-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer-info {
        grid-column: auto;
    }

    .footer-brand-name {
        font-size: 1.45rem;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        width: 100%;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
    }

    .policy-page {
        padding: 114px 0 60px;
    }

    .policy-section {
        padding: 18px;
    }
}

/* ========================================
   ANIMATION
   ======================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

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

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

@keyframes driftA {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-18px, 22px, 0) scale(1.05);
    }
}

@keyframes driftB {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(22px, -14px, 0) scale(1.04);
    }
}

@keyframes ctaPulse {
    0%,
    100% {
        box-shadow: 0 14px 28px rgba(12, 102, 212, 0.36);
    }

    50% {
        box-shadow: 0 18px 34px rgba(12, 102, 212, 0.48);
    }
}

@keyframes ctaShine {
    0% {
        left: -120%;
    }

    45%,
    100% {
        left: 130%;
    }
}

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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