/* ==============================
   Section heading
============================== */

.section-heading {
    text-align: center;
    margin: 70px auto 30px;
}

.section-kicker {
    color: #6c63ff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 2.2rem;
    color: #10143f;
    margin: 0;
}

/* ==============================
   Student Showcase Section
============================== */

.student-showcase {
    max-width: 1100px;
    margin: 80px auto 60px;
    padding: 50px;
    border-radius: 28px;
    background: linear-gradient(135deg, #10143f 0%, #2d1b69 45%, #6c63ff 100%);
    color: white;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 25px 60px rgba(40, 45, 120, 0.25);
}

.student-showcase .section-kicker {
    color: #9ffcff;
}

.student-showcase h2 {
    font-size: 2.3rem;
    margin: 8px 0 16px;
    color: white;
}

.student-showcase p {
    color: #e7e9ff;
    line-height: 1.7;
    max-width: 620px;
}

.showcase-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.showcase-card span {
    display: inline-block;
    background: #fff;
    color: #6c63ff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.showcase-card h3 {
    color: white;
    font-size: 1.6rem;
    margin: 0 0 12px;
}

.showcase-card p {
    color: #f4f4ff;
    margin: 0;
}

/* ==============================
   Extra polish
============================== */

.learning {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px 30px;
}

.learning-grid {
    margin-top: 30px;
}

.features {
    margin-bottom: 30px;
}

/* ==============================
   Mobile Responsive
============================== */

@media (max-width: 900px) {
    .student-showcase {
        grid-template-columns: 1fr;
        padding: 40px 28px;
        margin: 60px 20px 50px;
    }

    .student-showcase h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .section-heading {
        margin: 50px auto 24px;
        padding: 0 18px;
    }

    .section-heading h2 {
        font-size: 1.7rem;
    }

    .student-showcase {
        padding: 30px 22px;
        border-radius: 22px;
        margin: 45px 16px;
    }

    .student-showcase h2 {
        font-size: 1.7rem;
    }

    .student-showcase p {
        font-size: 0.95rem;
    }

    .showcase-card {
        padding: 22px;
    }

    .showcase-card h3 {
        font-size: 1.35rem;
    }
}


/* =====================================================
   PIXEL ROBOT HERO AREA
===================================================== */

.hero-studio {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: visible;
}

.pixel-background-glow {
    position: absolute;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(224, 217, 255, 0.78) 38%,
            rgba(184, 201, 255, 0.35) 64%,
            transparent 76%
        );
    filter: blur(8px);
    z-index: -3;
    animation: pixelGlowPulse 5s ease-in-out infinite;
}

.pixel-robot-wrapper {
    position: relative;
    width: min(430px, 82vw);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    animation: pixelFloat 4.5s ease-in-out infinite;
}

.pixel-image-frame {
    position: relative;
    width: 82%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.98),
        rgba(238, 234, 255, 0.92)
    );
    border: 7px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 30px 70px rgba(87, 68, 188, 0.25),
        0 12px 30px rgba(83, 153, 255, 0.18),
        inset 0 0 30px rgba(255, 255, 255, 0.75);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.pixel-image-frame:hover {
    transform: scale(1.035) rotate(-1deg);
    box-shadow:
        0 38px 85px rgba(87, 68, 188, 0.32),
        0 16px 38px rgba(83, 153, 255, 0.24),
        inset 0 0 35px rgba(255, 255, 255, 0.85);
}

.pixel-robot-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

.pixel-image-frame:hover .pixel-robot-image {
    transform: scale(1.08);
}

.pixel-image-shine {
    position: absolute;
    top: -30%;
    left: -80%;
    width: 42%;
    height: 170%;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.48),
        transparent
    );
    transform: rotate(22deg);
    animation: pixelShine 6s ease-in-out infinite;
}

.pixel-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.pixel-ring-one {
    width: 95%;
    height: 95%;
    border: 2px solid rgba(142, 110, 255, 0.26);
    animation: ringRotate 18s linear infinite;
}

.pixel-ring-two {
    width: 108%;
    height: 108%;
    border: 1px dashed rgba(66, 177, 255, 0.28);
    animation: ringRotateReverse 24s linear infinite;
}

.pixel-ring-one::before,
.pixel-ring-two::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a879ff, #42c8ff);
    box-shadow:
        0 0 14px rgba(126, 105, 255, 0.8),
        0 0 28px rgba(66, 200, 255, 0.45);
}

.pixel-ring-one::before {
    top: 8%;
    left: 18%;
}

.pixel-ring-two::after {
    right: 7%;
    bottom: 22%;
}

.pixel-shadow {
    position: absolute;
    bottom: 5%;
    width: 48%;
    height: 30px;
    border-radius: 50%;
    background: rgba(85, 76, 180, 0.2);
    filter: blur(17px);
    z-index: -1;
    animation: pixelShadow 4.5s ease-in-out infinite;
}

/* =====================================================
   ORBITING CREATIVE ICONS
===================================================== */

.creative-orbit {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.orbit-item {
    position: absolute;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 1.35rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 14px 30px rgba(61, 49, 139, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    animation: orbitItemFloat 4s ease-in-out infinite;
}

.orbit-video {
    top: 10%;
    left: 17%;
}

.orbit-design {
    top: 19%;
    right: 11%;
    animation-delay: -1s;
}

.orbit-mobile {
    bottom: 17%;
    right: 12%;
    animation-delay: -2s;
}

.orbit-audio {
    bottom: 11%;
    left: 16%;
    animation-delay: -3s;
}

/* =====================================================
   FLOATING INFORMATION CARDS
===================================================== */

.floating-card {
    position: absolute;
    z-index: 8;
    padding: 16px 18px;
    border-radius: 20px;
    color: #24204f;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 20px 45px rgba(52, 42, 124, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.floating-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.98rem;
    color: #24204f;
}

.floating-card p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #686487;
}

.card-one {
    left: -2%;
    top: 24%;
    width: 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: cardFloatOne 5s ease-in-out infinite;
}

.floating-card-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #eee6ff, #dff6ff);
}

.card-two {
    right: -3%;
    bottom: 19%;
    width: 230px;
    animation: cardFloatTwo 5.5s ease-in-out infinite;
}

.progress-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.progress-card-heading span {
    font-size: 0.84rem;
    font-weight: 800;
    color: #7658e8;
}

.progress-track {
    width: 100%;
    height: 8px;
    margin: 11px 0 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8e6f5;
}

.progress-fill {
    width: 83%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7962ed, #42c8ff);
    box-shadow: 0 0 12px rgba(103, 103, 239, 0.4);
    animation: progressEntrance 1.5s ease both;
}

.pixel-status {
    position: absolute;
    bottom: 4%;
    left: 50%;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    color: #4f4b73;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(60, 47, 126, 0.12);
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.pixel-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #38c987;
    box-shadow: 0 0 0 5px rgba(56, 201, 135, 0.13);
    animation: statusPulse 2s ease-in-out infinite;
}

/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes pixelFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-14px) rotate(0.8deg);
    }
}

@keyframes pixelShadow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.58;
    }

    50% {
        transform: scale(0.82);
        opacity: 0.34;
    }
}

@keyframes pixelGlowPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes pixelShine {
    0%,
    65% {
        left: -80%;
    }

    85%,
    100% {
        left: 135%;
    }
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes ringRotateReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes orbitItemFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(4deg);
    }
}

@keyframes cardFloatOne {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes cardFloatTwo {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(11px);
    }
}

@keyframes progressEntrance {
    from {
        width: 0;
    }

    to {
        width: 83%;
    }
}

@keyframes statusPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.82);
        opacity: 0.7;
    }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {
    .hero-studio {
        min-height: 520px;
        width: 100%;
    }

    .pixel-robot-wrapper {
        width: min(410px, 72vw);
    }

    .card-one {
        left: 1%;
    }

    .card-two {
        right: 1%;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {
    .hero-studio {
        min-height: 500px;
        margin-top: 12px;
        overflow: hidden;
    }

    .pixel-background-glow {
        width: 380px;
        height: 380px;
    }

    .pixel-robot-wrapper {
        width: min(360px, 88vw);
        transform-origin: center;
    }

    .pixel-image-frame {
        width: 88%;
        border-width: 5px;
    }

    .orbit-item {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 1.15rem;
    }

    .orbit-video {
        top: 7%;
        left: 7%;
    }

    .orbit-design {
        top: 10%;
        right: 7%;
    }

    .orbit-mobile {
        bottom: 18%;
        right: 5%;
    }

    .orbit-audio {
        bottom: 18%;
        left: 5%;
    }

    .card-one {
        top: auto;
        bottom: 2%;
        left: 4%;
        width: 48%;
        min-width: 165px;
        padding: 12px;
    }

    .card-one .floating-card-icon {
        display: none;
    }

    .card-two {
        right: 4%;
        bottom: 2%;
        width: 43%;
        min-width: 150px;
        padding: 12px;
    }

    .floating-card strong {
        font-size: 0.82rem;
    }

    .floating-card p {
        font-size: 0.7rem;
    }

    .pixel-status {
        display: none;
    }
}

/* =====================================================
   VERY SMALL DEVICES
===================================================== */

@media (max-width: 430px) {
    .hero-studio {
        min-height: 450px;
    }

    .pixel-robot-wrapper {
        width: 340px;
        max-width: 94vw;
    }

    .pixel-ring-two {
        width: 101%;
        height: 101%;
    }

    .card-one,
    .card-two {
        bottom: 3%;
        min-width: 0;
    }

    .card-one {
        left: 3%;
        width: 46%;
    }

    .card-two {
        right: 3%;
        width: 46%;
    }

    .progress-card-heading span {
        font-size: 0.72rem;
    }
}

/* Respect accessibility preferences */
@media (prefers-reduced-motion: reduce) {
    .pixel-robot-wrapper,
    .pixel-shadow,
    .pixel-background-glow,
    .pixel-image-shine,
    .pixel-ring,
    .orbit-item,
    .floating-card,
    .pixel-status-dot {
        animation: none;
    }
}




.pixel-image {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .pixel-image {
        max-width:100%;
    }
}


/* =========================================================
   MEET PIXEL - SUPER WOW SEND-FRIENDLY ANIMATION
   Add this at the VERY BOTTOM of assets/css/home-style.css
========================================================= */

.intro-hero-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.intro-hero-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 65px rgba(45, 52, 120, 0.17);
}

.intro-hero-card .character-circle {
    position: relative;
    width: 240px !important;
    height: 240px !important;
    max-width: 240px !important;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: visible;
    z-index: 3;
    animation: introPixelFloat 4s ease-in-out infinite;
}

.intro-hero-card .character-circle::before {
    content: "";
    position: absolute;
    inset: -13px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #7768ff,
        #48c8ff,
        #59e2bb,
        #ffd166,
        #ff79c6,
        #7768ff
    );
    opacity: 0.68;
    filter: blur(1px);
    z-index: -2;
    animation: introHaloSpin 9s linear infinite;
}

.intro-hero-card .character-circle::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 18px 42px rgba(72, 82, 170, 0.22),
        0 0 0 7px rgba(255, 255, 255, 0.65);
    z-index: -1;
}

.intro-hero-card .character-circle .pixel-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    animation: introPixelPulse 4s ease-in-out infinite;
}

.pixel-speech-bubble {
    position: absolute;
    top: -28px;
    left: -52px;
    z-index: 10;
    padding: 10px 15px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6c63ff, #36bfe8);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow:
        0 12px 28px rgba(76, 88, 190, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform-origin: bottom right;
    animation: introBubbleWow 5s ease-in-out infinite;
}

.pixel-speech-bubble::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -6px;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: #43b8e6;
    transform: rotate(45deg);
    z-index: -1;
}

.pixel-intro-orbit {
    position: absolute;
    z-index: 8;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 12px 28px rgba(55, 62, 145, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    font-size: 1.18rem;
    pointer-events: none;
}

.intro-orbit-video {
    top: 12px;
    right: -24px;
    animation: introOrbitVideo 5.2s ease-in-out infinite;
}

.intro-orbit-design {
    top: 52%;
    right: -34px;
    animation: introOrbitDesign 4.7s ease-in-out infinite;
}

.intro-orbit-audio {
    bottom: 8px;
    left: -25px;
    animation: introOrbitAudio 5.4s ease-in-out infinite;
}

.intro-orbit-camera {
    bottom: -20px;
    right: 32px;
    animation: introOrbitCamera 4.9s ease-in-out infinite;
}

.intro-hero-card:hover .pixel-image {
    filter: saturate(1.08) brightness(1.02);
}

@keyframes introPixelFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(-0.8deg);
    }

    50% {
        transform: translateY(-11px) rotate(0deg);
    }

    75% {
        transform: translateY(-5px) rotate(0.8deg);
    }
}

@keyframes introPixelPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }
}

@keyframes introHaloSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes introBubbleWow {
    0%, 8%, 100% {
        opacity: 0;
        transform: translateY(8px) scale(0.75) rotate(-5deg);
    }

    14% {
        opacity: 1;
        transform: translateY(-3px) scale(1.08) rotate(2deg);
    }

    19%, 70% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }

    76% {
        opacity: 1;
        transform: translateY(-5px) scale(1.04);
    }

    84% {
        opacity: 0;
        transform: translateY(-12px) scale(0.88);
    }
}

@keyframes introOrbitVideo {
    0%, 100% {
        transform: translate(0, 0) rotate(-6deg) scale(1);
    }

    50% {
        transform: translate(7px, -12px) rotate(7deg) scale(1.10);
    }
}

@keyframes introOrbitDesign {
    0%, 100% {
        transform: translate(0, 0) rotate(5deg) scale(1);
    }

    50% {
        transform: translate(10px, 8px) rotate(-8deg) scale(1.12);
    }
}

@keyframes introOrbitAudio {
    0%, 100% {
        transform: translate(0, 0) rotate(-4deg) scale(1);
    }

    50% {
        transform: translate(-7px, 10px) rotate(8deg) scale(1.10);
    }
}

@keyframes introOrbitCamera {
    0%, 100% {
        transform: translate(0, 0) rotate(4deg) scale(1);
    }

    50% {
        transform: translate(7px, 8px) rotate(-7deg) scale(1.10);
    }
}

@media (max-width: 600px) {

    .intro-hero-card .character-circle {
        width: 190px !important;
        height: 190px !important;
        max-width: 190px !important;
        margin-bottom: 20px;
    }

    .pixel-speech-bubble {
        top: -22px;
        left: -25px;
        padding: 8px 11px;
        font-size: 0.72rem;
    }

    .pixel-intro-orbit {
        width: 35px;
        height: 35px;
        border-radius: 12px;
        font-size: 0.95rem;
    }

    .intro-orbit-video {
        right: -13px;
    }

    .intro-orbit-design {
        right: -18px;
    }

    .intro-orbit-audio {
        left: -14px;
    }

    .intro-orbit-camera {
        right: 24px;
        bottom: -16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .intro-hero-card,
    .intro-hero-card .character-circle,
    .intro-hero-card .character-circle::before,
    .intro-hero-card .character-circle .pixel-image,
    .pixel-speech-bubble,
    .pixel-intro-orbit {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .pixel-speech-bubble {
        opacity: 1;
    }
}

/* =========================================================
   STORYBOARD POSTER + FULL-SCREEN VIEWER
========================================================= */

.poster-section {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.poster-card {
    width: 100%;
    box-sizing: border-box;
}

/* Poster wrapper gives us a clean zoom target */
.poster-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 24px auto 0;
}

/* Main poster */
.storyboard-poster {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
    cursor: zoom-in;
    box-shadow:
        0 18px 45px rgba(35, 42, 100, 0.15),
        0 4px 14px rgba(35, 42, 100, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.storyboard-poster:hover,
.storyboard-poster:focus-visible {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 24px 55px rgba(35, 42, 100, 0.19),
        0 6px 18px rgba(35, 42, 100, 0.10);
    outline: none;
}


/* Clear SEND-friendly action button */
.poster-zoom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    margin: 18px auto 0;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #665cff, #26bfe3);
    box-shadow: 0 12px 28px rgba(86, 83, 218, 0.22);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.poster-zoom-button:hover,
.poster-zoom-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(86, 83, 218, 0.28);
    outline: 3px solid rgba(87, 189, 255, 0.28);
    outline-offset: 3px;
}

/* =========================================================
   LIGHTBOX
========================================================= */

.poster-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background:
        radial-gradient(circle at top, rgba(86, 78, 180, 0.28), transparent 38%),
        rgba(8, 12, 38, 0.96);
    color: #ffffff;
}

.poster-lightbox.is-open {
    display: grid;
}

body.poster-lightbox-open {
    overflow: hidden;
}

.poster-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 12px 18px;
    background: rgba(10, 15, 48, 0.90);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.poster-lightbox-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.poster-lightbox-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #7267ff, #38c5ef);
    box-shadow: 0 10px 24px rgba(67, 88, 210, 0.24);
}

.poster-lightbox-small {
    margin: 0 0 2px;
    color: #b9c5ff;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.poster-lightbox-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1rem, 3vw, 1.35rem);
    line-height: 1.15;
}

.poster-lightbox-close {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #11184f;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.poster-lightbox-close:hover,
.poster-lightbox-close:focus-visible {
    transform: scale(1.08);
    background: #eef5ff;
    outline: 3px solid rgba(87, 189, 255, 0.45);
    outline-offset: 3px;
}

/* Scrollable poster area */
.poster-lightbox-scroll {
    min-height: 0;
    width: 100%;
    overflow: auto;
    padding: 22px;
    text-align: center;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.poster-lightbox-image {
    display: block;
    width: min(900px, 100%);
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.poster-lightbox-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 16px;
    color: #e7ebff;
    background: rgba(10, 15, 48, 0.90);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

/* =========================================================
   TABLET / MOBILE POSTER
========================================================= */

@media (max-width: 700px) {

    .poster-section {
        width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }

    .poster-card {
        width: 100%;
        max-width: none;
        padding: 18px 10px 22px;
        border-radius: 22px;
        box-sizing: border-box;
    }

    .poster-image-wrapper {
        width: 100%;
        max-width: none;
        margin-top: 18px;
    }

    .storyboard-poster {
        width: 100%;
        max-width: none;
        border-radius: 12px;
    }

    .poster-hover-icon {
        right: 8px;
        bottom: 8px;
        width: 42px;
        height: 42px;
    }

    .poster-zoom-button {
        width: 100%;
        max-width: 320px;
        min-height: 52px;
        padding: 13px 16px;
        font-size: 0.95rem;
    }

    .poster-lightbox-header {
        min-height: 64px;
        padding: 9px 10px;
    }

    .poster-lightbox-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .poster-lightbox-close {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .poster-lightbox-scroll {
        padding: 14px 10px 22px;
        text-align: left;
    }

    /*
       Important:
       The poster deliberately becomes wider than the phone screen.
       Students can scroll horizontally and vertically to read
       the small text instead of having the poster squeezed.
    */
    .poster-lightbox-image {
        width: 720px;
        max-width: none;
        margin: 0;
        border-radius: 12px;
    }

    .poster-lightbox-help {
        min-height: 48px;
        padding: 8px 12px;
        font-size: 0.82rem;
    }
}

/* Very small phones */
@media (max-width: 430px) {

    .poster-section {
        padding-inline: 5px;
    }

    .poster-card {
        padding-inline: 7px;
    }

    .poster-lightbox-image {
        width: 680px;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .storyboard-poster,
    .poster-zoom-button,
    .poster-lightbox-close {
        transition: none !important;
        transform: none !important;
    }
}

/* =========================================================
   POSTER ZOOM BUTTON VISIBILITY
   Hidden on desktop / shown on tablet and mobile
========================================================= */

/* Desktop and larger screens */
@media (min-width: 769px) {
    .poster-zoom-button {
        display: none !important;
    }
}


/* =========================================
   POSTER ZOOM - DESKTOP
   Hide zoom indicators on large screens
========================================= */

@media (min-width: 769px) {

    .poster-zoom-hint,
    .poster-zoom-icon,
    .zoom-icon {
        display: none !important;
    }

    .poster-card::after {
        display: none !important;
        content: none !important;
    }

    .storyboard-poster {
        cursor: default;
    }
}

@media (max-width: 768px) {

    .poster-zoom-hint {
        display: block;
    }

    .storyboard-poster {
        cursor: zoom-in;
    }
}


/* =====================================================
   LARGE SCREEN - POSTER CLOSE / BACK BUTTON
===================================================== */

@media (min-width: 769px) {

    .poster-lightbox-close {
        position: fixed !important;

        top: 92px !important;
        right: 28px !important;

        z-index: 9999999 !important;

        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 9px;

        width: auto !important;
        height: 50px !important;

        padding: 0 18px 0 14px !important;

        border: 2px solid rgba(255,255,255,0.9) !important;
        border-radius: 999px !important;

        background: #ffffff !important;
        color: #11184f !important;

        font-size: 28px !important;
        font-weight: 800;

        cursor: pointer;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        box-shadow:
            0 12px 35px rgba(0,0,0,0.35);

        transition:
            transform 0.25s ease,
            background 0.25s ease,
            color 0.25s ease;
    }


    /* Add text beside the existing X */

    .poster-lightbox-close::after {
        content: "Back to lesson";

        font-size: 0.9rem;
        font-weight: 800;

        white-space: nowrap;
    }


    /* Hover effect */

    .poster-lightbox-close:hover {
        transform: translateY(-2px) scale(1.05);

        background: linear-gradient(
            135deg,
            #6c63ff,
            #00bfe8
        ) !important;

        color: #ffffff !important;
    }
}