.live-sessions-page,
.main-footer {
    flex-shrink: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.live-sessions-page {
    flex: 1 0 auto;
    min-height: auto;
    padding: 28px 0 72px;
    background: #0b0b0b;
    color: #ffffff;
}

.live-hero,
.live-section,
.cta-band,
.final-cta,
.portal-login-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.live-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    gap: 32px;
    align-items: center;
    padding: 34px 0 28px;
}

.page-badge,
.section-intro span,
.cta-band span,
.final-cta span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #f97316;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.26);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 16px;
}

.hero-copy h1,
.section-intro h2,
.cta-band h2,
.final-cta h2,
.portal-login-section h2 {
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: 0;
    margin: 0 0 14px;
}

.hero-copy h1 {
    font-size: clamp(34px, 5vw, 62px);
}

.section-intro h2,
.cta-band h2,
.final-cta h2,
.portal-login-section h2 {
    font-size: clamp(26px, 3vw, 42px);
}

.hero-copy p,
.section-intro p,
.feature-grid p,
.process-grid p,
.cta-band p,
.final-cta p,
.live-card p,
.faq-list p {
    color: #b8b8b8;
    line-height: 1.65;
}

.hero-copy p {
    max-width: 720px;
    font-size: 17px;
    margin-bottom: 24px;
}

.hero-copy .hero-demo-note {
    margin-top: 14px;
    margin-bottom: 0;
    color: #ffffff;
    font-weight: 700;
}

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

.hero-actions.centered {
    justify-content: center;
}

.primary-btn,
.secondary-btn,
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 20px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.22);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.secondary-btn:hover,
.whatsapp-btn:hover {
    transform: translateY(-2px);
}

.hero-panel,
.feature-grid article,
.process-grid article,
.cta-band,
.faq-list details,
.final-cta,
.trust-stats article,
.portal-login-section {
    background: rgba(20, 20, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.hero-panel {
    padding: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.live-card {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    padding: 17px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-card i,
.live-dot {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #f97316;
    background: rgba(249, 115, 22, 0.14);
}

.live-dot::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 8px rgba(255, 59, 48, 0.14);
}

.live-card strong {
    display: block;
    color: #ffffff;
    margin-bottom: 5px;
}

.live-card p {
    margin: 0;
}

.live-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.live-stats div {
    padding: 16px 10px;
    text-align: center;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.22);
}

.live-stats strong,
.live-stats span {
    display: block;
}

.live-stats strong {
    color: #f97316;
    font-size: 24px;
    line-height: 1;
}

.live-stats span {
    color: #b8b8b8;
    margin-top: 6px;
    font-size: 13px;
}

.live-section {
    padding: 54px 0;
}

.section-intro {
    max-width: 760px;
    margin-bottom: 28px;
}

.feature-grid,
.process-grid,
.subject-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-grid article,
.process-grid article {
    padding: 22px;
}

.feature-grid i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #f97316;
    background: rgba(249, 115, 22, 0.14);
    margin-bottom: 16px;
}

.feature-grid h3,
.process-grid h3 {
    color: #ffffff;
    margin: 0 0 9px;
    font-size: 18px;
}

.feature-grid p,
.process-grid p {
    margin: 0;
}

.scroll-dots {
    display: none;
}

.scroll-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
}

.scroll-dots button.active {
    width: 22px;
    background: #f97316;
}

.subjects-panel,
.process-panel {
    padding-top: 24px;
    padding-bottom: 24px;
}

.subjects-card {
    display: block;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(255, 255, 255, 0.035)),
        rgba(20, 20, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.subjects-card .section-intro {
    max-width: 820px;
    margin: 0 auto 24px;
    text-align: center;
}

.subjects-card .section-intro span {
    margin-left: auto;
    margin-right: auto;
}

.subject-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 26px;
}

.subject-actions .primary-btn,
.subject-actions .secondary-btn {
    width: auto;
    min-width: 230px;
}

.subjects-list-wrap {
    min-width: 0;
}

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

.subject-grid div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 16px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    min-width: 0;
}

.subject-grid i {
    color: #f97316;
    width: 20px;
    text-align: center;
}

.grade-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.grade-strip span,
.grade-strip strong {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.grade-strip strong {
    color: #f97316;
    background: rgba(249, 115, 22, 0.14);
}

.trust-section {
    text-align: center;
}

.trust-section .section-intro {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.trust-section .section-intro span {
    margin-left: auto;
    margin-right: auto;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.trust-stats article {
    padding: 24px 18px;
}

.trust-stats strong,
.trust-stats span {
    display: block;
}

.trust-stats strong {
    color: #f97316;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
}

.trust-stats span {
    color: #ffffff;
    margin-top: 10px;
    font-weight: 900;
    font-size: 18px;
}

.trust-stats p {
    color: #b8b8b8;
    line-height: 1.55;
    margin: 8px 0 0;
}

.school-logo-slider {
    position: relative;
    overflow: hidden;
    padding: 16px 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.school-logo-slider::before,
.school-logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 90px;
    pointer-events: none;
}

.school-logo-slider::before {
    left: 0;
    background: linear-gradient(90deg, #111111, rgba(17, 17, 17, 0));
}

.school-logo-slider::after {
    right: 0;
    background: linear-gradient(270deg, #111111, rgba(17, 17, 17, 0));
}

.school-logo-track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    animation: schoolLogoSlide 34s linear infinite;
}

.school-logo-slider:hover .school-logo-track {
    animation-play-state: paused;
}

.school-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 156px;
    height: 86px;
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.school-logo img {
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
}

@keyframes schoolLogoSlide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 9px));
    }
}

.process-grid article strong {
    display: inline-block;
    color: #f97316;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 16px;
}

.cta-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.call-band {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(255, 255, 255, 0.04));
}

.faq-list {
    max-width: 860px;
}

.faq-section {
    text-align: center;
}

.faq-section .section-intro {
    margin-left: auto;
    margin-right: auto;
}

.faq-section .section-intro span {
    margin-left: auto;
    margin-right: auto;
}

.faq-section .faq-list {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.faq-list details {
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    color: #f97316;
    font-size: 22px;
}

.faq-list details[open] summary::after {
    content: "-";
}

.faq-list p {
    padding: 0 20px 18px;
    margin: 0;
}

.final-cta {
    text-align: center;
    padding: 38px 28px 44px;
    margin-bottom: 24px;
}

.final-cta p {
    max-width: 680px;
    margin: 0 auto 22px;
}

.portal-login-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
    margin-bottom: 30px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(255, 255, 255, 0.04)),
        rgba(20, 20, 20, 0.78);
}

.portal-login-section h2 {
    margin: 0;
}

.portal-login-section .primary-btn {
    min-width: 150px;
}

.demo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
}

.demo-modal.active {
    display: flex;
}

.demo-dialog {
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #111111;
    border: 1px solid rgba(249, 115, 22, 0.32);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.modal-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    background: #111111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.demo-form {
    padding: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-grid label {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.form-grid input,
.form-grid select {
    width: 100%;
    min-height: 46px;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    outline: none;
}

.form-grid option {
    background: #111111;
    color: #ffffff;
}

.full-width {
    grid-column: 1 / -1;
}

.whatsapp-btn {
    width: 100%;
    margin-top: 18px;
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.form-status {
    min-height: 22px;
    margin: 12px 0 0;
    color: #f97316;
}

.login-dialog {
    width: min(440px, 100%);
}

.login-form-grid {
    grid-template-columns: 1fr;
}

.login-submit-btn {
    width: 100%;
    margin-top: 18px;
}

@media (max-width: 1050px) {
    .live-hero {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        display: none;
    }

    .subjects-card {
        padding: 24px;
    }

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

    .feature-grid.card-scroller {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 2px;
        padding: 2px 0 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .feature-grid.card-scroller::-webkit-scrollbar {
        display: none;
    }

    .feature-grid.card-scroller article {
        flex: 0 0 64%;
        scroll-snap-align: start;
        min-height: 220px;
    }

    .scroll-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 14px;
    }

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

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

@media (max-width: 760px) {
    .live-hero,
    .live-section,
    .cta-band,
    .final-cta,
    .portal-login-section {
        width: min(100% - 28px, 1180px);
    }

    .hero-copy,
    .section-intro,
    .subjects-card .section-intro,
    .final-cta,
    .portal-login-section {
        text-align: center;
    }

    .page-badge,
    .section-intro span,
    .final-cta span {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-copy p,
    .section-intro p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .cta-band,
    .portal-login-section {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .feature-grid,
    .process-grid,
    .subject-grid,
    .live-stats,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid.card-scroller {
        display: flex;
    }

    .feature-grid.card-scroller article {
        flex-basis: 67%;
        min-height: 238px;
        text-align: left;
    }

    .subjects-card {
        padding: 20px;
        border-radius: 14px;
    }

    .subject-actions {
        flex-direction: column;
    }

    .subject-actions .primary-btn,
    .subject-actions .secondary-btn {
        width: 100%;
        min-width: 0;
    }

    .grade-strip span,
    .grade-strip strong {
        display: none;
    }

    .school-logo {
        flex-basis: 132px;
        height: 74px;
    }

    .school-logo img {
        max-height: 48px;
    }

    .live-section {
        padding: 38px 0;
    }
}

@media (max-width: 420px) {
    .live-hero,
    .live-section,
    .cta-band,
    .final-cta,
    .portal-login-section {
        width: min(100% - 20px, 1180px);
    }

    .hero-copy h1 {
        font-size: 24px;
        line-height: 1.16;
    }

    .section-intro h2,
    .final-cta h2 {
        font-size: 24px;
    }

    .subject-grid div {
        min-height: 52px;
        padding: 14px;
    }

    .feature-grid.card-scroller article {
        flex-basis: 72%;
    }

    .grade-strip span,
    .grade-strip strong {
        flex-basis: 100%;
    }

    .demo-dialog {
        max-height: 88vh;
    }
}
