/* ═══════════════════════════════════════════════════════════════
   ITEP Admission Portal — Landing Page Premium Skin (D7)
   Loads AFTER portal.css. Overrides hero + adds new sections.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --maroon-deep: #3d0d04;
    --maroon-darker: #2a0902;
    --gold-bright: #ffc352;
    --cream: #faf6ee;
    --ink: #0e0a09;
}

body.landing { background: var(--white); }


/* ── Top bar refinements ─────────────────────────────────────── */
.top-bar {
    background: linear-gradient(90deg, var(--ink) 0%, #1a0e0a 100%);
}


/* ── Navbar tweaks (slightly compact, gold underline on scroll) ── */
.landing .navbar {
    transition: padding .25s ease, box-shadow .25s ease, background .25s ease;
}
.landing .navbar.is-scrolled {
    padding: 8px 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}


/* ═══════════════════════════════════════════════════════════════
   HERO — Premium Editorial
   ═══════════════════════════════════════════════════════════════ */
.landing .hero {
    position: relative;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(246, 170, 28, 0.22), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(246, 170, 28, 0.10), transparent 55%),
        linear-gradient(160deg, var(--maroon) 0%, var(--maroon-deep) 55%, var(--maroon-darker) 100%);
    color: var(--white);
    padding: 80px 0 96px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

/* Decorative dot grid */
.landing .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: 0 0;
    mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Gold corner accent */
.landing .hero::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 170, 28, 0.28) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.landing .hero > .container {
    position: relative;
    z-index: 1;
}

/* Eyebrow tag */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(246, 170, 28, 0.16);
    color: var(--gold-bright);
    border: 1px solid rgba(246, 170, 28, 0.35);
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
}

.hero-eyebrow .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 0 0 rgba(246, 170, 28, 0.7);
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(246, 170, 28, 0.7); }
    50%      { box-shadow: 0 0 0 8px rgba(246, 170, 28, 0); }
}

.landing .hero-title {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    text-wrap: balance;
}

.landing .hero-title .accent {
    color: var(--white);
    background: none;
    -webkit-text-fill-color: var(--white);
}

.landing .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 36px;
    font-weight: 400;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.landing .hero-subtitle .sep {
    color: var(--gold-bright);
    margin: 0 10px;
    font-weight: 700;
}

/* Programme highlight strip */
.landing .programme-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto 32px;
    max-width: 760px;
}

.landing .programme-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.landing .programme-card:hover {
    transform: translateY(-3px);
    border-color: rgba(246, 170, 28, 0.45);
    background: rgba(246, 170, 28, 0.08);
}
.landing .programme-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.landing .programme-card-seats {
    font-size: 0.78rem;
    color: var(--gold-bright);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Chips */
.landing .hero-chips {
    margin-bottom: 34px;
}
.landing .chip {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    padding: 7px 16px;
}

/* Hero CTA stack */
.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--gold);
    color: var(--maroon-deep);
    font-weight: 800;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.96rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(246, 170, 28, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1.5px solid var(--gold);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-hero-primary:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(246, 170, 28, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: var(--maroon-deep);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
    color: var(--white);
    text-decoration: none;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}
.hero-scroll .arrow {
    width: 14px;
    height: 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: scrollBob 1.6s ease-in-out infinite;
}
@keyframes scrollBob {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
    50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}


/* ═══════════════════════════════════════════════════════════════
   STATS BAND
   ═══════════════════════════════════════════════════════════════ */
.stats-band {
    background: var(--white);
    padding: 36px 0;
    border-bottom: 1px solid var(--border-light);
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

.stats-band-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    background: var(--white);
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 18px 50px rgba(98, 23, 8, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
}

.stat-item {
    text-align: center;
    padding: 6px 8px;
    border-right: 1px solid var(--border-light);
}
.stat-item:last-child { border-right: none; }

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--maroon);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-num .unit {
    font-size: 1.15rem;
    color: var(--gold);
    margin-left: 2px;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════════════
   APPLY SECTION — two-column (instructions + auth)
   ═══════════════════════════════════════════════════════════════ */
.apply-section {
    padding: 64px 0 36px;
    background: var(--light);
    position: relative;
}

.apply-section .container {
    max-width: 1180px;
}

.apply-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 40px;
    align-items: start;
}

.apply-section-header {
    margin-bottom: 32px;
    text-align: center;
}
.apply-eyebrow {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.apply-heading {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.apply-heading .accent { color: var(--maroon); }

/* ── Instructions column (numbered step cards) ── */
.steps-card {
    background: var(--white);
    border-radius: 18px;
    padding: 32px 36px;
    box-shadow: 0 8px 30px rgba(98, 23, 8, 0.06);
    border: 1px solid var(--border-light);
}

.steps-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 2px dashed var(--border-light);
}
.steps-card-header .icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--maroon-light);
    color: var(--maroon);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.steps-card-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}
.steps-card-header p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 2px;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.step-list li {
    counter-increment: step;
    position: relative;
    padding: 14px 0 14px 50px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--sub);
}
.step-list li:last-child { border-bottom: none; }

.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--maroon);
    color: var(--gold);
    font-weight: 800;
    font-size: 0.85rem;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(98, 23, 8, 0.25);
    transition: transform .25s ease, background .25s ease;
}
.step-list li:hover::before {
    background: var(--gold);
    color: var(--maroon);
    transform: scale(1.06);
}

.step-list strong { color: var(--text); font-weight: 700; }
.step-list a {
    color: var(--maroon);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--gold);
}
.step-list a:hover { color: var(--maroon-hover); text-decoration-color: var(--maroon); }

/* ── Auth column (sticky on desktop) ── */
.apply-aside {
    position: sticky;
    top: 92px;
}

.landing .auth-card {
    border-radius: 18px;
    box-shadow: 0 16px 50px rgba(98, 23, 8, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
}
.landing .auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--maroon) 0%, var(--gold) 50%, var(--maroon) 100%);
}

.landing .auth-card-header {
    padding: 36px 32px 0;
}
.landing .auth-card-title {
    font-size: 1.55rem;
    color: var(--maroon);
}
.landing .auth-card-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 4px;
}

/* Sit beneath auth-card */
.aside-trust {
    margin-top: 18px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--muted);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.aside-trust svg { color: var(--gold); flex-shrink: 0; }


/* ═══════════════════════════════════════════════════════════════
   PROGRAMMES DETAIL
   ═══════════════════════════════════════════════════════════════ */
.programmes-section {
    padding: 56px 0 64px;
    background: var(--white);
}

.section-head {
    text-align: center;
    margin-bottom: 44px;
}
.section-eyebrow {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.025em;
    margin-bottom: 10px;
}
.section-sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
}

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

.programme-detail {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 28px 26px 26px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    overflow: hidden;
    isolation: isolate;
}
.programme-detail::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon) 0%, var(--gold) 100%);
}
.programme-detail::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity .3s ease;
}
.programme-detail:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(98, 23, 8, 0.14);
    border-color: rgba(246, 170, 28, 0.35);
}
.programme-detail:hover::after { opacity: 1; }

.programme-detail-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--maroon) 0%, #4a1206 100%);
    color: var(--gold);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(98, 23, 8, 0.25);
}
.programme-detail-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.015em;
    margin-bottom: 4px;
}
.programme-detail-stream {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.programme-detail-stream .seats-pill {
    display: inline-block;
    background: var(--gold-light);
    color: var(--maroon);
    padding: 3px 10px;
    border-radius: 100px;
    margin-left: 8px;
    font-weight: 800;
}

.programme-detail-majors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-light);
}
.major-tag {
    font-size: 0.78rem;
    background: var(--lighter);
    color: var(--sub);
    border: 1px solid var(--border-light);
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 600;
}
.major-tag .seats { color: var(--maroon); font-weight: 800; margin-left: 4px; }


/* ═══════════════════════════════════════════════════════════════
   INFO SECTION POLISH (overrides for portal.css .info-card)
   ═══════════════════════════════════════════════════════════════ */
.landing .info-section {
    padding: 48px 0 80px;
    background: var(--light);
}

.landing .info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.landing .info-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 26px 22px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
}
.landing .info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(246, 170, 28, 0.4);
    box-shadow: 0 14px 36px rgba(98, 23, 8, 0.10);
}

.landing .info-card-title {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--maroon);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    width: fit-content;
}
.landing .info-card-title svg {
    width: 18px; height: 18px;
}

.landing .info-list li {
    font-size: 0.84rem;
    padding: 7px 0;
    line-height: 1.55;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER REFINEMENTS
   ═══════════════════════════════════════════════════════════════ */
.landing .footer {
    background: linear-gradient(180deg, var(--ink) 0%, #1c0e0a 100%);
    color: rgba(255, 255, 255, 0.75);
}
.landing .footer-brand strong {
    color: var(--gold);
    font-size: 1.05rem;
}


/* ═══════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-up[data-delay="100"] { transition-delay: .1s; }
.fade-up[data-delay="200"] { transition-delay: .2s; }
.fade-up[data-delay="300"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
    .fade-up { opacity: 1; transform: none; transition: none; }
    .pulse-dot, .hero-scroll .arrow, .scroll-teaser .arrow { animation: none; }
}


/* ── Helpers ───────────────────────────────────────────────── */
.nowrap { white-space: nowrap; }


/* ── Scroll teaser between Apply and Info ──────────────────── */
.scroll-teaser {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 0 0;
    color: var(--maroon);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    user-select: none;
}
.scroll-teaser .arrow {
    width: 14px;
    height: 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: teaserBob 1.6s ease-in-out infinite;
    opacity: 0.7;
}
@keyframes teaserBob {
    0%, 100% { transform: rotate(45deg) translate(0, 0);    opacity: 0.5; }
    50%      { transform: rotate(45deg) translate(2px, 2px); opacity: 1;   }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .apply-grid { grid-template-columns: 1fr; gap: 32px; }
    .apply-aside { position: static; }
    .landing .info-grid { grid-template-columns: repeat(2, 1fr); }
    .programme-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
    .stats-band-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 720px) {
    .landing .hero { padding: 56px 0 80px; }
    .landing .programme-cards { grid-template-columns: 1fr; max-width: 320px; }
    .landing .info-grid { grid-template-columns: 1fr; }
    .stats-band { padding: 24px 0; margin-top: -22px; }
    .stats-band-inner { padding: 22px 16px; gap: 14px; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border-light); padding-bottom: 14px; }
    .stat-item:last-child { border-bottom: none; }
    .stat-num { font-size: 1.7rem; }
    .steps-card { padding: 24px 22px; }
    .step-list li { padding-left: 44px; font-size: 0.9rem; }
    .step-list li::before { width: 28px; height: 28px; font-size: 0.78rem; }
    .programmes-section { padding: 56px 0; }
    .landing .info-section { padding: 56px 0 72px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn-hero-primary, .btn-hero-secondary { justify-content: center; }
}
