/* ==========================================================================
   EduBuddy landing page redesign (Account/Login.razor)
   Presentation only. Everything is scoped under .eb-landing, or under
   .page:has(.eb-landing) for the shared HomeLayout shell, so the other pages
   that use HomeLayout / HomeToolbar are not affected.
   !important is used where the existing markup carries inline styles.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.eb-landing {
    --eb-bg: #071329;
    --eb-bg-2: #0b1b38;
    --eb-card: rgba(255, 255, 255, 0.06);
    --eb-card-strong: rgba(255, 255, 255, 0.09);
    --eb-blue: #1769ff;
    --eb-cyan: #5ddcff;
    --eb-yellow: #ffd400;
    --eb-text: #ffffff;
    --eb-text-2: #c7d2e5;
    --eb-border: rgba(255, 255, 255, 0.16);
    --eb-radius-sm: 12px;
    --eb-radius: 18px;
    --eb-radius-lg: 24px;
    --eb-shadow: 0 18px 40px rgba(2, 8, 23, 0.45);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--eb-text-2);
}

/* ---------- Page shell (HomeLayout) ---------- */
.page:has(.eb-landing) {
    position: relative;
    isolation: isolate;
    background-color: #071329 !important;
    min-height: 100vh;
    padding: 0 !important;
}

/* background artwork stays put while the content scrolls over it */
.page:has(.eb-landing)::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(7, 19, 41, 0.15) 0%, rgba(7, 19, 41, 0.55) 70%, rgba(7, 19, 41, 0.85) 100%),
        url('/Images/Navy%20Waves,%20Golden%20Light,%20Bright%20Futures.png') center top / cover no-repeat,
        #071329;
}

@media (max-width: 767.98px) {
    /* on narrow screens keep the globe visible and add more dimming for legibility */
    .page:has(.eb-landing)::before {
        background:
            linear-gradient(180deg, rgba(7, 19, 41, 0.35) 0%, rgba(7, 19, 41, 0.75) 100%),
            url('/Images/Navy%20Waves,%20Golden%20Light,%20Bright%20Futures.png') 75% top / cover no-repeat,
            #071329;
    }
}

.page:has(.eb-landing) main,
.page:has(.eb-landing) article.content,
.page:has(.eb-landing) > .container-fluid {
    background-color: transparent !important;
}

/* top bar (email / phone / social icons): plain, same as the About page */
.page:has(.eb-landing) .top-row,
.page:has(.eb-landing) .top-row .contact-info {
    background-color: transparent !important;
    border: 0 !important;
}


/* ---------- Header / navigation ---------- */
.eb-landing .toolbar-wrapper {
    max-width: 1680px;
    margin: 4px auto 0;
    padding: 10px 8px;
    background: #020b1f;
    border: 1.5px solid #5ac8fa;
    border-radius: var(--eb-radius-lg);
    box-shadow: var(--eb-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    font-family: inherit;
}

.eb-landing .toolbar-logo {
    height: 48px;
    border-radius: 10px;
}

.eb-landing .toolbar-brand-text span {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.eb-landing .toolbar-brand-text .gold {
    color: var(--eb-yellow);
}

.eb-landing .toolbar-subtitle {
    color: var(--eb-text-2);
    font-size: 0.8rem;
}

.eb-landing .navbar-collapse {
    min-width: 0;
}

.eb-landing .toolbar-nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0;
    white-space: nowrap;
}

/* Keep desktop navigation on one row; collapse before space becomes tight. */
@media (min-width: 1400px) {
    .eb-landing .toolbar-nav {
        align-items: center;
    }

    .eb-landing .toolbar-nav .nav-link .bi,
    .eb-landing .toolbar-nav .nav-link svg,
    .eb-landing .toolbar-nav .nav-link i {
        display: none;
    }

    .eb-landing .toolbar-nav .nav-link {
        font-size: 0.85rem !important;
        padding: 0.45rem 0.4rem !important;
    }

    .eb-landing .toolbar-brand-text span {
        font-size: 1.35rem;
    }

    .eb-landing .toolbar-subtitle {
        font-size: 0.72rem;
    }

    .eb-landing .toolbar-login-btn {
        margin-left: 0.5rem !important;
        margin-right: 0 !important;
        padding: 0.5rem 1.1rem;
    }
}

@media (min-width: 1600px) {
    .eb-landing .toolbar-nav .nav-link .bi,
    .eb-landing .toolbar-nav .nav-link svg,
    .eb-landing .toolbar-nav .nav-link i {
        display: inline-block;
    }
}

.eb-landing .toolbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.7rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--eb-text) !important;
    border-radius: var(--eb-radius-sm);
}

.eb-landing .toolbar-nav .nav-link:hover,
.eb-landing .toolbar-nav .nav-link:focus-visible,
.eb-landing .toolbar-nav .nav-link.show {
    color: var(--eb-yellow) !important;
    background: rgba(255, 255, 255, 0.08);
    transform: none;
}

.eb-landing .toolbar-nav .nav-link.disabled {
    opacity: 0.5;
}

.eb-landing .toolbar-login-btn {
    background: linear-gradient(135deg, #ffe34d, var(--eb-yellow)) !important;
    border: 0;
    color: #071329 !important;
    font-family: inherit;
    font-weight: 700;
    min-height: 42px;
    padding: 0.55rem 1.4rem;
    border-radius: var(--eb-radius-sm);
    box-shadow: 0 6px 18px rgba(255, 212, 0, 0.28);
}

.eb-landing .toolbar-login-btn:hover {
    color: #071329 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(255, 212, 0, 0.42);
}

.eb-landing .dropdown-menu {
    background: rgba(11, 27, 56, 0.97);
    color: var(--eb-text-2);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-sm);
    box-shadow: var(--eb-shadow);
    padding: 6px;
}

.eb-landing .dropdown-item {
    color: var(--eb-text-2);
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
}

.eb-landing .dropdown-item:hover,
.eb-landing .dropdown-item:focus {
    background: rgba(23, 105, 255, 0.25);
}

.eb-landing .navbar-toggler {
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-sm);
    padding: 0.4rem 0.6rem;
}

@media (max-width: 1399.98px) {
    .eb-landing .toolbar-wrapper > .container-fluid {
        flex-wrap: wrap;
    }

    .eb-landing .navbar-toggler {
        display: block !important;
    }

    .eb-landing .navbar-collapse:not(.show) {
        display: none !important;
    }

    .eb-landing .navbar-collapse.show {
        display: block !important;
    }

    .eb-landing .toolbar-nav {
        flex-direction: column;
    }

    .eb-landing .navbar-collapse {
        flex-basis: 100%;
        margin-top: 10px;
        padding-top: 8px;
        border-top: 1px solid var(--eb-border);
    }

    .eb-landing .toolbar-nav {
        justify-content: flex-start;
        text-align: left;
    }

    .eb-landing .toolbar-nav .nav-link {
        padding: 0.75rem 0.6rem;
        min-height: 44px;
    }

    .eb-landing .toolbar-nav .nav-item:last-child {
        padding: 8px 0 4px;
    }

    .eb-landing .toolbar-login-btn {
        width: 100%;
        margin: 0 !important;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .eb-landing .toolbar-nav {
        text-align: left;
    }
}

/* ---------- Layout container ---------- */
.eb-landing .container {
    max-width: 1240px;
}

/* ---------- Hero ---------- */
.eb-landing .hero-section {
    position: relative;
    overflow: hidden;
    background: transparent;
    padding: 28px 8px 8px;
    border-radius: 0;
}

.eb-landing .hero-content {
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.eb-landing .hero-text {
    text-align: left;
    flex: 1 1 520px;
    min-width: 0;
}

.eb-landing .hero-text h1 {
    color: var(--eb-text);
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-align: left;
    margin-bottom: 14px;
}

.eb-landing .hero-text h1 .eb-accent {
    color: var(--eb-yellow);
}

.eb-landing .hero-text p {
    color: var(--eb-text-2);
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.65;
    max-width: 560px;
    text-align: left;
    margin-bottom: 22px;
}

.eb-landing .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0.6rem 1.7rem;
    background: linear-gradient(135deg, #ffe34d 0%, var(--eb-yellow) 55%, #f5b800 100%);
    color: #071329;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(255, 212, 0, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eb-landing .hero-btn::after {
    content: '\2192';
    font-weight: 700;
}

.eb-landing .hero-btn:hover,
.eb-landing .hero-btn:focus-visible {
    background: linear-gradient(135deg, #ffe34d 0%, var(--eb-yellow) 55%, #f5b800 100%);
    color: #071329 !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(255, 212, 0, 0.45);
}

/* decorative hero art (aria-hidden) */
.eb-landing .eb-hero-art {
    position: relative;
    flex: 0 1 320px;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eb-landing .eb-hero-art::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(93, 220, 255, 0.28), rgba(23, 105, 255, 0.12) 60%, transparent 72%);
    border: 1px solid rgba(93, 220, 255, 0.18);
}

.eb-landing .eb-hero-cap {
    position: relative;
    width: 160px;
    height: auto;
    color: var(--eb-cyan);
    filter: drop-shadow(0 0 14px rgba(93, 220, 255, 0.35));
}

.eb-landing .eb-hero-tile {
    position: absolute;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
    color: var(--eb-text);
    background: var(--eb-card-strong);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    box-shadow: var(--eb-shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.eb-landing .eb-hero-tile.t1 { top: 8%; right: 2%; }
.eb-landing .eb-hero-tile.t2 { top: 46%; right: 20%; }
.eb-landing .eb-hero-tile.t3 { bottom: 4%; right: 2%; }

@media (max-width: 991.98px) {
    .eb-landing .hero-section {
        padding-top: 36px;
    }

    .eb-landing .hero-text,
    .eb-landing .hero-text h1,
    .eb-landing .hero-text p {
        text-align: center;
    }

    .eb-landing .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .eb-landing .eb-hero-art {
        display: none;
    }
}

@media (max-width: 576px) {
    .eb-landing .hero-btn {
        width: 100%;
    }
}

/* ---------- AI agents (two cards, each flips between two agents) ---------- */
.eb-landing .ai-section-container {
    background: transparent;
    padding: 28px 0 16px;
}

.eb-landing .ai-section-title h2 {
    color: var(--eb-text);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-shadow: none;
}

.eb-landing .ai-section-title p {
    color: var(--eb-text-2);
    font-size: 1.05rem;
}

.eb-landing .ai-cards-wrapper {
    height: 270px;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1200px;
}

.eb-landing .ai-decorative-box {
    display: none;
}

.eb-landing .flip-card-container {
    width: 48%;
    max-width: 480px;
    height: 250px;
}

.eb-landing .flip-card-front,
.eb-landing .flip-card-back {
    padding: 24px 26px;
    gap: 4px;
    background: linear-gradient(160deg, rgba(60, 90, 160, 0.55), rgba(14, 30, 66, 0.92));
    border: 1px solid rgba(160, 190, 255, 0.4);
    border-radius: var(--eb-radius-lg);
    box-shadow: var(--eb-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: var(--eb-text-2);
}

.eb-landing .flip-card-back {
    background: linear-gradient(160deg, rgba(120, 100, 30, 0.45), rgba(14, 30, 66, 0.92));
    border-color: rgba(255, 212, 0, 0.55);
    box-shadow: var(--eb-shadow), 0 0 22px rgba(255, 212, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* shiny two-tone (blue + yellow) outline that slowly sweeps around the card */
.eb-landing .flip-card-front,
.eb-landing .flip-card-back {
    border: 1px solid transparent;
    box-shadow:
        var(--eb-shadow),
        0 0 18px rgba(23, 105, 255, 0.35),
        0 0 26px rgba(255, 212, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.eb-landing .flip-card-front::before,
.eb-landing .flip-card-back::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, #1769ff 0%, #5ddcff 22%, #ffd400 45%, #fff3a0 52%, #ffd400 58%, #5ddcff 78%, #1769ff 100%);
    background-size: 250% 250%;
    animation: ebShine 5s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.eb-landing .flip-card-back::before {
    animation-direction: reverse;
}

@keyframes ebShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 250% 50%; }
}

.eb-landing .flip-card-front h4,
.eb-landing .flip-card-back h4 {
    color: var(--eb-text);
    font-size: 1.3rem;
    font-weight: 700;
}

.eb-landing .flip-card-front p,
.eb-landing .flip-card-back p {
    color: var(--eb-text-2);
    font-size: 0.95rem;
    line-height: 1.5;
}

.eb-landing .ai-icon {
    font-size: 2.6rem;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .eb-landing .ai-cards-wrapper {
        flex-direction: column;
        height: auto;
        gap: 18px;
    }

    .eb-landing .flip-card-container {
        width: 100%;
        max-width: 480px;
        height: 260px;
    }
}

/* ---------- Login + media row ---------- */
.eb-landing .row {
    --bs-gutter-y: 1.5rem;
}

.eb-landing .eb-login-card {
    background: #ffffff !important;
    color: #0f1c33 !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--eb-radius-lg) !important;
    padding: 32px 28px !important;
    box-shadow: var(--eb-shadow) !important;
}

.eb-landing .eb-login-card h3 {
    color: var(--eb-blue) !important;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.25rem !important;
}

.eb-landing .eb-login-card .form-control {
    min-height: 58px;
    border: 1px solid #d3dbea;
    border-radius: var(--eb-radius-sm);
    background-color: #f6f8fc;
    color: #0f1c33;
}

.eb-landing .eb-login-card .form-control:focus {
    border-color: var(--eb-blue);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.18);
}

.eb-landing .eb-login-card .form-floating > label {
    color: #5b6a85;
}

.eb-landing .eb-login-card #togglePassword {
    color: #5b6a85;
    min-width: 44px;
    min-height: 44px;
    top: 7px !important;
    right: 4px !important;
}

.eb-landing .eb-login-card #togglePassword:focus-visible {
    outline: 2px solid var(--eb-blue);
    outline-offset: 2px;
}

.eb-landing .eb-login-card .form-check-input:checked {
    background-color: var(--eb-blue);
    border-color: var(--eb-blue);
}

.eb-landing .eb-login-card .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--eb-radius-sm);
    font-weight: 600;
    border: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eb-landing .eb-login-card .btn:hover {
    transform: translateY(-1px);
}

.eb-landing .eb-login-card .btn-primary {
    background: linear-gradient(135deg, #2b7bff, var(--eb-blue));
    color: #fff;
    box-shadow: 0 8px 20px rgba(23, 105, 255, 0.32);
}

.eb-landing .eb-login-card .btn-success {
    background: #e8f7ee;
    color: #11703a;
}

.eb-landing .eb-login-card .btn-warning {
    background: #fff4d1;
    color: #7a5a00;
}

.eb-landing .eb-login-card .btn-success:hover,
.eb-landing .eb-login-card .btn-warning:hover {
    color: inherit !important;
}

.eb-landing .eb-login-card .btn-primary:hover {
    color: #fff !important;
}

.eb-landing .eb-login-card .alert-info {
    background: #eef3ff !important;
    border: 1px solid #d5e0ff;
    border-radius: var(--eb-radius-sm);
    color: #1d2f55;
}

.eb-landing .video-card-outline {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)) !important;
    border: 1px solid var(--eb-border) !important;
    border-radius: var(--eb-radius-lg) !important;
    padding: 20px !important;
    box-shadow: var(--eb-shadow) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.eb-landing .video-card-outline > div:first-child {
    background-color: rgba(7, 19, 41, 0.6) !important;
    border-radius: var(--eb-radius) !important;
    overflow: hidden;
}

.eb-landing .video-card-outline video {
    border-radius: var(--eb-radius);
}

.eb-landing .welcome-text {
    font-family: inherit;
    font-size: 1.2rem;
    color: var(--eb-yellow);
    background: linear-gradient(135deg, rgba(23, 105, 255, 0.55), rgba(93, 220, 255, 0.25));
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-sm);
    box-shadow: none;
    text-shadow: none;
    animation: none;
}

.eb-landing .welcome-text:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(23, 105, 255, 0.7), rgba(93, 220, 255, 0.35));
    border-color: rgba(255, 212, 0, 0.6);
    box-shadow: 0 0 22px rgba(255, 212, 0, 0.2);
}

.eb-landing .welcome-icon {
    animation: none;
}

/* ---------- Workshop carousel ---------- */
.eb-landing .school-carousel-section {
    margin-top: 48px !important;
    padding: 0 16px;
    box-sizing: border-box;
}

.eb-landing .ai-workshop-heading-animated {
    background: linear-gradient(135deg, rgba(23, 105, 255, 0.55), rgba(93, 220, 255, 0.2));
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    box-shadow: 0 8px 28px rgba(23, 105, 255, 0.25);
    animation: none;
    font-family: inherit;
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    padding: 12px 28px;
}

.eb-landing .ai-workshop-desc-animated {
    max-width: 860px;
    padding: 10px 18px;
    text-align: center;
    color: var(--eb-text-2);
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    font-size: 1rem;
    line-height: 1.6;
}

.eb-landing #custom-carousel img {
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg) !important;
    box-shadow: var(--eb-shadow) !important;
}

.eb-landing #custom-carousel > div:last-child {
    gap: 20px !important;
    padding: 0 8px 24px !important;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .eb-landing #custom-carousel > div:last-child {
        gap: 10px !important;
    }

    .eb-landing #carousel-img-left,
    .eb-landing #carousel-img-right {
        width: 22vw !important;
        height: 150px !important;
    }

    .eb-landing #carousel-img-center {
        width: 52vw !important;
        height: 210px !important;
    }
}

/* ---------- Stats ---------- */
.eb-landing .eb-section-title {
    color: var(--eb-text) !important;
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2rem);
    text-align: center;
    margin-top: 48px;
    font-family: inherit !important;
}

.eb-landing .eb-section-sub {
    color: var(--eb-text-2);
    text-align: center;
}

.eb-landing .eb-stat-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)) !important;
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg) !important;
    box-shadow: var(--eb-shadow) !important;
    padding: 28px 20px !important;
    color: var(--eb-text-2);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.eb-landing .eb-stat-card i {
    color: var(--eb-cyan) !important;
}

.eb-landing .eb-stat-card h2 {
    color: var(--eb-yellow) !important;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800 !important;
    margin-top: 12px;
}

.eb-landing .eb-stat-card p {
    margin: 0;
    color: var(--eb-text-2);
}

/* ---------- Logo marquee ---------- */
.eb-landing marquee {
    padding: 14px 0;
}

.eb-landing marquee img {
    background-color: #fff !important;
    border-radius: var(--eb-radius) !important;
    box-shadow: 0 6px 18px rgba(2, 8, 23, 0.35);
    object-fit: contain;
}

/* ---------- Footer ---------- */
.eb-landing .eb-footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)) !important;
    border: 1px solid var(--eb-border) !important;
    border-radius: var(--eb-radius-lg) var(--eb-radius-lg) 0 0 !important;
    color: var(--eb-text-2);
    overflow: hidden;
    margin-top: 24px;
}

.eb-landing .eb-footer h6 {
    color: var(--eb-yellow);
    font-weight: 700;
}

.eb-landing .eb-footer a.text-dark {
    color: var(--eb-text-2) !important;
    transition: color 0.2s ease;
}

.eb-landing .eb-footer a.text-dark:hover,
.eb-landing .eb-footer a.text-dark:focus-visible {
    color: var(--eb-yellow) !important;
}

.eb-landing .eb-footer .small {
    color: var(--eb-text-2);
}

.eb-landing .eb-footer .footer-shape {
    border-radius: 0;
}

/* ---------- Focus + motion ---------- */
.eb-landing a:focus-visible,
.eb-landing button:focus-visible,
.eb-landing .form-control:focus-visible {
    outline: 2px solid var(--eb-cyan);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .eb-landing *,
    .eb-landing *::before,
    .eb-landing *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Small screens ---------- */
@media (max-width: 576px) {
    .eb-landing .hero-section {
        padding: 28px 0 12px;
    }

    .eb-landing .eb-login-card {
        padding: 24px 18px !important;
    }

    .eb-landing .container,
    .eb-landing .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }

    .eb-landing .row {
        flex-direction: row;
    }

    .eb-landing .video-card-outline > div:first-child {
        height: 240px !important;
    }
}

/* Reduced motion: no flipping, so show all four agents at once */
@media (prefers-reduced-motion: reduce) {
    .eb-landing .ai-cards-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        height: auto;
        perspective: none;
    }

    .eb-landing .flip-card-container,
    .eb-landing .flip-card-inner {
        display: contents;
    }

    .eb-landing .flip-card-front,
    .eb-landing .flip-card-back {
        position: relative;
        width: auto;
        height: auto;
        transform: none;
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
    }
}

/* Hero text centred (kept last so it wins over the earlier left-aligned rules) */
.eb-landing .hero-content {
    justify-content: center;
}

.eb-landing .hero-text,
.eb-landing .hero-text h1,
.eb-landing .hero-text p {
    text-align: center;
}

.eb-landing .hero-text {
    flex: 1 1 100%;
}

.eb-landing .hero-text p {
    margin-left: auto;
    margin-right: auto;
}

/* hero graphic: back on the right-hand side, behind the centred text */
.eb-landing .hero-section {
    position: relative;
}

.eb-landing .hero-text {
    position: relative;
    z-index: 1;
}

.eb-landing .eb-hero-art {
    display: flex;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    flex: none;
    order: 0;
    width: 190px;
    min-height: 190px;
    margin: 0;
    align-items: center;
    justify-content: center;
}

.eb-landing .eb-hero-art::before {
    display: block;
    width: 170px;
    height: 170px;
}

.eb-landing .eb-hero-cap {
    width: 110px;
}

.eb-landing .eb-hero-tile {
    position: absolute;
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
}

.eb-landing .eb-hero-tile.t1 { top: 0; right: 0; }
.eb-landing .eb-hero-tile.t2 { top: 42%; right: 38%; }
.eb-landing .eb-hero-tile.t3 { bottom: 0; right: 0; }

@media (max-width: 991.98px) {
    .eb-landing .eb-hero-art {
        display: none;
    }
}

/* tagline on a single line on larger screens */
@media (min-width: 992px) {
    .eb-landing .hero-text p {
        max-width: none;
        white-space: nowrap;
        font-size: clamp(0.8rem, 1.15vw, 1.02rem);
    }
}

/* big, wide demo button */
.eb-landing .hero-btn {
    min-width: min(100%, 440px);
    min-height: 60px;
    padding: 0.9rem 3rem;
    font-size: 1.15rem;
}

/* hero graphic moved down: sits beside the button row, below the tagline */
@media (min-width: 992px) {
    .eb-landing .hero-section {
        padding-bottom: 56px;
    }

    .eb-landing .eb-hero-art {
        top: auto;
        bottom: 0;
        transform: none;
        width: 150px;
        min-height: 130px;
        height: 130px;
    }

    .eb-landing .eb-hero-art::before {
        width: 120px;
        height: 120px;
    }

    .eb-landing .eb-hero-cap {
        width: 78px;
    }

    .eb-landing .eb-hero-tile {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
}

/* hero graphic pushed further down, clear of the tagline; agent cards always render above it */
@media (min-width: 992px) {
    .eb-landing .hero-section {
        overflow: visible;
    }

    .eb-landing .eb-hero-art {
        bottom: -70px;
    }

    .eb-landing .ai-section-container {
        position: relative;
        z-index: 1;
    }
}

/* book tile moves out to the left of the cap circle instead of sitting on the cap */
.eb-landing .eb-hero-tile.t2 {
    top: 38%;
    right: auto;
    left: -26px;
}

/* header card: shiny blue + yellow outline (same sweep as the agent cards) */
.eb-landing .toolbar-wrapper {
    position: relative;
    border-color: transparent;
    box-shadow:
        var(--eb-shadow),
        0 0 18px rgba(23, 105, 255, 0.3),
        0 0 24px rgba(255, 212, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.eb-landing .toolbar-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, #1769ff 0%, #5ddcff 22%, #ffd400 45%, #fff3a0 52%, #ffd400 58%, #5ddcff 78%, #1769ff 100%);
    background-size: 250% 250%;
    animation: ebShine 6s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ==========================================================================
   Login / video / stats cards: glass panels with a shiny blue + yellow outline
   ========================================================================== */
.eb-landing .eb-login-card,
.eb-landing .video-card-outline,
.eb-landing .eb-stat-card {
    position: relative;
    border: 1px solid transparent !important;
    box-shadow:
        var(--eb-shadow),
        0 0 20px rgba(23, 105, 255, 0.28),
        0 0 28px rgba(255, 212, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.eb-landing .eb-login-card::before,
.eb-landing .video-card-outline::before,
.eb-landing .eb-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, #1769ff 0%, #5ddcff 22%, #ffd400 45%, #fff3a0 52%, #ffd400 58%, #5ddcff 78%, #1769ff 100%);
    background-size: 250% 250%;
    animation: ebShine 6s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ---- transparent (glass) login form ---- */
.eb-landing .eb-login-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)) !important;
    color: var(--eb-text) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.eb-landing .eb-login-card h3 {
    color: var(--eb-text) !important;
    letter-spacing: -0.01em;
}

.eb-landing .eb-login-card .form-control {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--eb-text);
}

.eb-landing .eb-login-card .form-control::placeholder {
    color: transparent;
}

.eb-landing .eb-login-card .form-control:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--eb-cyan);
    color: var(--eb-text);
    box-shadow: 0 0 0 4px rgba(93, 220, 255, 0.2);
}

/* keep browser autofill from painting the field white/yellow */
.eb-landing .eb-login-card .form-control:-webkit-autofill,
.eb-landing .eb-login-card .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--eb-text);
    -webkit-box-shadow: 0 0 0 1000px #0f2347 inset;
    caret-color: var(--eb-text);
}

.eb-landing .eb-login-card .form-floating > label {
    color: var(--eb-text-2);
}

/* Bootstrap paints a white patch behind the floated label; make it transparent */
.eb-landing .eb-login-card .form-floating > .form-control:focus ~ label::after,
.eb-landing .eb-login-card .form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.eb-landing .eb-login-card .form-floating > .form-control-plaintext ~ label::after,
.eb-landing .eb-login-card .form-floating > .form-select ~ label::after {
    background-color: transparent !important;
}

.eb-landing .eb-login-card .form-floating > .form-control:focus ~ label,
.eb-landing .eb-login-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--eb-cyan);
}

.eb-landing .eb-login-card #togglePassword {
    color: var(--eb-text-2);
}

.eb-landing .eb-login-card #togglePassword:hover {
    color: var(--eb-yellow) !important;
}

.eb-landing .eb-login-card .form-check-label {
    color: var(--eb-text-2);
}

.eb-landing .eb-login-card .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.eb-landing .eb-login-card .text-danger,
.eb-landing .eb-login-card .validation-message {
    color: #ff9b9b !important;
}

.eb-landing .eb-login-card .btn-primary {
    background: linear-gradient(135deg, #2b7bff, #1769ff 60%, #0f4fd1);
    box-shadow: 0 8px 22px rgba(23, 105, 255, 0.45);
}

.eb-landing .eb-login-card .btn-success {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #8ff0b6;
}

.eb-landing .eb-login-card .btn-warning {
    background: rgba(255, 212, 0, 0.12);
    border: 1px solid rgba(255, 212, 0, 0.45);
    color: #ffe27a;
}

.eb-landing .eb-login-card .btn-success:hover {
    background: rgba(34, 197, 94, 0.24);
    color: #b9f7d1 !important;
}

.eb-landing .eb-login-card .btn-warning:hover {
    background: rgba(255, 212, 0, 0.22);
    color: #fff0a8 !important;
}

.eb-landing .eb-login-card .btn-success .badge {
    background: var(--eb-yellow) !important;
    color: #071329 !important;
}

.eb-landing .eb-login-card .alert-info {
    background: rgba(23, 105, 255, 0.14) !important;
    border: 1px solid rgba(93, 220, 255, 0.3);
    color: var(--eb-text);
}

.eb-landing .eb-login-card .alert-info .text-primary {
    color: var(--eb-cyan) !important;
}

/* ---- video card: centred content, no dead space under the welcome bar ---- */
.eb-landing .video-card-outline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.eb-landing .video-card-outline .welcome-text {
    margin-top: 0;
}

/* stat cards: keep the content above the outline layer */
.eb-landing .eb-stat-card {
    overflow: visible;
}

/* ==========================================================================
   Light/white text is bold throughout the landing page
   (icons are left alone: Font Awesome / Bootstrap Icons set their own weight)
   ========================================================================== */
.eb-landing,
.page:has(.eb-landing) .top-row {
    font-weight: 600;
}

.page:has(.eb-landing) .top-row .contact-info span,
.eb-landing p,
.eb-landing li,
.eb-landing small,
.eb-landing label,
.eb-landing .toolbar-nav .nav-link,
.eb-landing .toolbar-subtitle,
.eb-landing .dropdown-item,
.eb-landing .hero-text p,
.eb-landing .ai-section-title p,
.eb-landing .flip-card-front p,
.eb-landing .flip-card-back p,
.eb-landing .eb-section-sub,
.eb-landing .eb-stat-card p,
.eb-landing .ai-workshop-desc-animated,
.eb-landing .eb-login-card .form-floating > label,
.eb-landing .eb-login-card .form-check-label,
.eb-landing .eb-login-card .alert-info,
.eb-landing .eb-footer .small,
.eb-landing .eb-footer a {
    font-weight: 600;
}

/* headings and key labels stay a step heavier */
.eb-landing h1,
.eb-landing h2,
.eb-landing h3,
.eb-landing h4,
.eb-landing h5,
.eb-landing h6,
.eb-landing .toolbar-brand-text span,
.eb-landing .toolbar-login-btn,
.eb-landing .hero-btn,
.eb-landing .welcome-text,
.eb-landing .eb-login-card .btn {
    font-weight: 700;
}

/* login-page video is ambient and always playing: hide the native controls so it can't be paused by accident */
.eb-landing .video-card-outline video::-webkit-media-controls,
.eb-landing .video-card-outline video::-webkit-media-controls-enclosure,
.eb-landing .video-card-outline video::-webkit-media-controls-panel {
    display: none !important;
}

.eb-landing .video-card-outline video {
    pointer-events: none;
}


/* ---------- Neon sky-blue card outlines ---------- */
.eb-landing .eb-hero-tile,
.eb-landing .flip-card-front,
.eb-landing .flip-card-back,
.eb-landing .video-card-outline,
.eb-landing .welcome-text,
.eb-landing .ai-workshop-heading-animated,
.eb-landing .ai-workshop-desc-animated,
.eb-landing #custom-carousel img,
.eb-landing .eb-stat-card,
.eb-landing .toolbar-wrapper {
    border: 1.5px solid #5ac8fa !important;
    box-shadow: 0 0 6px rgba(90, 200, 250, 0.9), 0 0 16px rgba(90, 200, 250, 0.55), inset 0 0 8px rgba(90, 200, 250, 0.25) !important;
}

/* static outlines: no sweeping gradient, no motion */
.eb-landing .flip-card-front::before,
.eb-landing .flip-card-back::before,
.eb-landing .toolbar-wrapper::before,
.eb-landing .eb-login-card::before,
.eb-landing .video-card-outline::before,
.eb-landing .eb-stat-card::before {
    display: none !important;
    animation: none !important;
}

.eb-landing .eb-login-card {
    border: 1.5px solid #5ac8fa !important;
    box-shadow: 0 0 6px rgba(90, 200, 250, 0.9), 0 0 16px rgba(90, 200, 250, 0.55), inset 0 0 8px rgba(90, 200, 250, 0.25) !important;
}

.eb-landing .welcome-text:hover,
.eb-landing .eb-hero-tile:hover,
.eb-landing .eb-stat-card:hover,
.eb-landing .video-card-outline:hover {
    border-color: #5ac8fa !important;
}

/* ---------- Frosted white-glass cards: pure white outline, no glow ---------- */
.eb-landing .eb-hero-tile,
.eb-landing .flip-card-front,
.eb-landing .flip-card-back,
.eb-landing .video-card-outline,
.eb-landing .welcome-text,
.eb-landing .ai-workshop-heading-animated,
.eb-landing .ai-workshop-desc-animated,
.eb-landing .eb-stat-card,
.eb-landing .eb-login-card,
.eb-landing .toolbar-wrapper {
    background: rgba(255, 255, 255, 0.14) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1.5px solid #ffffff !important;
    box-shadow: none !important;
}

.eb-landing .welcome-text:hover,
.eb-landing .eb-hero-tile:hover,
.eb-landing .eb-stat-card:hover,
.eb-landing .video-card-outline:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
}

.eb-landing #custom-carousel img {
    border: 1.5px solid #ffffff !important;
    box-shadow: none !important;
}

/* ---------- Header: darkest navy, static sky-blue outline ---------- */
.eb-landing .toolbar-wrapper {
    background: #020b1f !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1.5px solid #5ac8fa !important;
}

/* ---------- AI agent cards: previous navy / gold look, static outline ---------- */
.eb-landing .flip-card-front,
.eb-landing .flip-card-back {
    background: linear-gradient(160deg, rgba(60, 90, 160, 0.55), rgba(14, 30, 66, 0.92)) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1.5px solid #5ac8fa !important;
    box-shadow: none !important;
}

.eb-landing .flip-card-back {
    background: linear-gradient(160deg, rgba(120, 100, 30, 0.45), rgba(14, 30, 66, 0.92)) !important;
}

/* agent card headings */
.eb-landing .flip-card-front h4,
.eb-landing .flip-card-back h4 {
    color: var(--eb-yellow) !important;
}

/* hero graphic on the left, over the navy area with the golden rays (clear of the students on the right) */
.eb-landing .eb-hero-art {
    right: auto;
    left: -10px;
}

.eb-landing .eb-hero-tile.t1 { right: auto; left: 0; }
.eb-landing .eb-hero-tile.t3 { right: auto; left: 0; }
.eb-landing .eb-hero-tile.t2 { left: auto; right: -26px; }

/* nudge the hero graphic lower, just below the brightest part of the rays */
@media (min-width: 992px) {
    .eb-landing .eb-hero-art {
        bottom: -130px;
    }
}

/* shift the hero graphic further down and further to the left */
@media (min-width: 992px) {
    .eb-landing .eb-hero-art {
        bottom: -190px;
        left: -90px;
    }
}

/* yellow section headings */
.eb-landing .ai-workshop-heading-animated,
.eb-landing .eb-section-title {
    color: var(--eb-yellow) !important;
}

/* carousel: slightly smaller images, set a little lower under the heading */
@media (min-width: 769px) {
    .eb-landing #custom-carousel > div:last-child {
        margin-top: 36px;
    }

    .eb-landing #carousel-img-left,
    .eb-landing #carousel-img-right {
        width: 24vw !important;
        max-width: 350px !important;
        height: 260px !important;
    }

    .eb-landing #carousel-img-center {
        width: 40vw !important;
        max-width: 680px !important;
        height: 320px !important;
    }
}

/* social icons: yellow, original brand colour on hover */
.page:has(.eb-landing) .top-row .nav-links a,
.page:has(.eb-landing) .top-row .nav-links a i {
    color: #ffd400 !important;
    transition: color 0.2s ease;
}

.page:has(.eb-landing) .top-row .nav-links a:nth-of-type(1):hover,
.page:has(.eb-landing) .top-row .nav-links a:nth-of-type(1):hover i {
    color: #1877f2 !important;
}

.page:has(.eb-landing) .top-row .nav-links a:nth-of-type(2):hover,
.page:has(.eb-landing) .top-row .nav-links a:nth-of-type(2):hover i {
    color: #e4405f !important;
}


/* ---------- Glowing animated aura around the centre image ---------- */
.eb-landing #carousel-img-center {
    border: 2px solid rgba(125, 211, 252, 0.85);
    animation: eb-center-glow 3.2s ease-in-out infinite;
}

@keyframes eb-center-glow {
    0%, 100% {
        box-shadow: 0 0 18px 2px rgba(93, 220, 255, 0.45), 0 0 48px 8px rgba(56, 130, 246, 0.25), 0 8px 40px rgba(0, 0, 0, 0.18);
    }
    50% {
        box-shadow: 0 0 34px 8px rgba(93, 220, 255, 0.75), 0 0 90px 22px rgba(255, 212, 0, 0.28), 0 8px 40px rgba(0, 0, 0, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .eb-landing #carousel-img-center {
        animation: none;
        box-shadow: 0 0 28px 6px rgba(93, 220, 255, 0.55);
    }
}

/* ---------- School logo carousel: whitish transparent frame, white outline and shadow ---------- */
.eb-landing marquee img {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 26px rgba(2, 8, 23, 0.55), 0 0 12px rgba(255, 255, 255, 0.25) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
