/* ── Reset & Variables ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --sky:        #daeeff;
    --sky-mid:    #b8dcf5;
    --blue:       #5dd1e3;
    --blue-dark:  #2d6a9f;
    --teal-dark:  #1a7a8a;
    --text:       #1c3a55;
    --text-muted: #5b85a8;
    --white:      #ffffff;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    overflow-x: hidden;
    background-color: #ffffff;
}

/* ── Fixed Banner ──────────────────────────────── */
.top-banner {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: var(--blue);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.top-banner h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: white;
}

/* NEW: right side group */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* NEW: bear in header */
.nav-bear {
    height: 34px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

/* ── Nav Buttons ───────────────────────────────── */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-login {
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.75);
    color: white;
    transition: 0.2s ease;
}

.btn-login:hover {
    background: rgba(255,255,255,0.18);
}

.btn-signup {
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    background: white;
    color: var(--blue-dark);
    border: 1.5px solid white;
    transition: 0.2s ease;
}

.btn-signup:hover {
    transform: translateY(-1px);
}

/* ── Triangle ──────────────────────────────────── */
.triangle {
    position: fixed;
    top: 60px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 350px solid var(--teal-dark);
    border-bottom: 60px solid transparent;
    z-index: 1001;
    transition: border-left 0.1s ease-out;
}

/* ── Animations ───────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero Section ──────────────────────────────── */
.hero {
    margin-top: 60px;
    padding: 80px 3rem 40px;
}

/* NEW: hero background via <img>, not CSS background-image */
.hero-bg {
    position: relative;
    overflow: hidden;
}

/* The actual image behind everything */
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Soft overlay so text stays readable */
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(218, 238, 255, 0.88),
        rgba(218, 238, 255, 0.70)
    );
    z-index: 1;
}

/* Center the main hero content */
.hero-grid {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero-inner {
    max-width: 860px;
    width: 100%;
    animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) both;

    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(93,209,227,0.25);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 55px rgba(30, 90, 120, 0.12);
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--blue-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* ── Mini Stats ────────────────────────────────── */
.mini-stats {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.mstat { display: flex; flex-direction: column; }
.mstat strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}
.mstat span {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.35rem;
}
.mstat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0.7;
}

/* ── Search Bar ────────────────────────────────── */
.search-bar {
    display: flex;
    align-items: stretch;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(93,209,227,0.35);
    border-radius: 14px;
    box-shadow: 0 18px 55px rgba(30, 90, 120, 0.14);
    overflow: hidden;
    max-width: 760px;
    width: 100%;
}

.search-field {
    padding: 0.85rem 1rem;
    flex: 1;
    min-width: 140px;
}

.search-field label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.search-field input,
.search-field select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--text);
    font-family: var(--font-body);
}

.search-divider {
    width: 1px;
    background: rgba(93,209,227,0.25);
    margin: 0.75rem 0;
}

.search-btn {
    border: none;
    background: var(--teal-dark);
    color: white;
    padding: 0 1.15rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
}

.search-btn:hover {
    filter: brightness(1.05);
}

/* ── Modal ─────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(180,215,240,0.45);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: min(520px, 92vw);
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(93,209,227,0.25);
    border-radius: 18px;
    padding: 18px 18px 22px;
    box-shadow: 0 20px 80px rgba(30, 90, 120, 0.22);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
}

.modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab {
    flex: 1;
    border: 1px solid rgba(93,209,227,0.30);
    background: rgba(255,255,255,0.65);
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}

.tab.active {
    background: var(--teal-dark);
    color: white;
    border-color: var(--teal-dark);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.modal-sub {
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.field { margin-bottom: 12px; }
.field label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.field input {
    width: 100%;
    border: 1px solid rgba(93,209,227,0.35);
    border-radius: 12px;
    padding: 10px 12px;
    outline: none;
    font-size: 0.95rem;
}

.forgot {
    display: inline-block;
    margin: 2px 0 12px;
    color: var(--blue-dark);
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--teal-dark);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.switch-text {
    margin-top: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.switch-text a {
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 700;
}

.hidden { display: none; }

/* ── Student Feature Section ───────────────────── */
.student-features {
    padding: 70px 3rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    background: var(--sky);
}

.feature {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(30,90,120,0.08);
}

.feature h3 {
    font-family: var(--font-display);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    color: var(--text);
}

.feature p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        padding: 80px 1.25rem 40px;
    }

    .hero-inner {
        max-width: 100%;
        padding: 18px;
    }

    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .search-btn {
        width: 100%;
        min-height: 48px;
    }

    .student-features {
        padding: 50px 1.25rem;
        flex-direction: column;
    }

    .feature {
        padding: 1.5rem;
    }
}
