/* ---------- Hero ---------- */
  .hero{
    position:relative;
    padding:88px 0 64px;
    overflow:hidden;
    border-bottom:1px solid var(--line);
  }
  .hero::before{
    content:"";
    position:absolute; inset:0;
    background:
      radial-gradient(600px 300px at 85% -10%, rgba(255,77,141,0.18), transparent 60%),
      radial-gradient(500px 260px at 10% 110%, rgba(52,228,234,0.14), transparent 60%);
    pointer-events:none;
  }
  .hero-grid{
    position:relative;
    display:grid;
    grid-template-columns:1.15fr 0.85fr;
    gap:48px;
    align-items:center;
  }
  .eyebrow-line{
    display:flex; align-items:center; gap:10px;
    color:var(--cyan); font-size:0.85rem; font-weight:600; margin-bottom:18px;
  }
  .eyebrow-line .dot{width:7px; height:7px; border-radius:50%; background:var(--cyan); box-shadow:0 0 10px var(--cyan);}
  .hero h1{
    font-size:clamp(3rem,7vw,5.4rem);
    color:var(--text-primary);
  }
  .hero h1 .accent{color:var(--magenta);}
  .hero p.lede{
    color:var(--text-muted);
    font-size:1.12rem;
    max-width:46ch;
    margin:22px 0 30px;
  }
  .hero-cta-row{display:flex; gap:16px; align-items:center; flex-wrap:wrap;}
  .hero-link-quiet{color:var(--text-muted); font-size:0.92rem; border-bottom:1px solid var(--line); padding-bottom:2px;}
  .hero-link-quiet:hover{color:var(--text-primary); border-color:var(--text-primary);}

  .hero-art{position:relative; aspect-ratio:1/1;}
  .hero-art svg{width:100%; height:100%;}

  .jump-tabs{
    border-bottom:1px solid var(--line);
    background:var(--bg-surface);
  }
  .jump-tabs .wrap{display:flex; gap:32px; overflow-x:auto; padding-top:0; padding-bottom:0;}
  .jump-tabs a{
    display:inline-block; padding:16px 2px; font-size:0.92rem; color:var(--text-muted);
    border-bottom:2px solid transparent; white-space:nowrap;
  }
  .jump-tabs a:hover{color:var(--text-primary); border-color:var(--line);}

   @media (max-width:900px){
    .navlinks{display:none;}
    .hero-grid{grid-template-columns:1fr;}
    .hero-art{max-width:340px; margin:0 auto;}
    .overview-grid{grid-template-columns:1fr;}
    .course-grid{grid-template-columns:1fr 1fr;}
    .testi-grid{grid-template-columns:1fr;}
    .enroll-wrap{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:1fr 1fr;}
  }
  @media (max-width:560px){
    .course-grid{grid-template-columns:1fr;}
    .form-row{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:1fr;}
    .footer-bottom{flex-direction:column;}
  }

  /* ---------- Overview ---------- */
  section{padding:84px 0;}
  .section-head{max-width:640px; margin-bottom:44px;}
  .section-head h2{font-size:clamp(2.2rem,4vw,3rem); margin-bottom:14px;}
  .section-head p{color:var(--text-muted); font-size:1.05rem;}

  .overview-grid{
    display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start;
  }
  .overview-grid p{color:var(--text-muted); margin-bottom:18px; font-size:1.02rem;}
  .overview-grid p:last-child{margin-bottom:0;}
  .overview-stats{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
  .stat-card{
    background:var(--bg-surface);
    border:1px solid var(--line);
    border-radius:14px;
    padding:22px 20px;
  }
  .stat-card .num{font-family:'Bebas Neue'; font-size:2.4rem; color:var(--amber);}
  .stat-card .lbl{color:var(--text-muted); font-size:0.88rem; margin-top:4px;}

  /* ---------- Courses ---------- */
  #courses{background:var(--bg-surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
  .course-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
  .course-card{
    background:var(--bg-base);
    border:1px solid var(--line);
    border-radius:16px;
    padding:26px 22px 24px;
    display:flex; flex-direction:column;
    transition:transform 0.18s ease, border-color 0.18s ease;
  }
  .course-card:hover{transform:translateY(-4px); border-color:var(--magenta);}
  .course-icon{
    width:56px; height:56px; margin-bottom:20px;
  }
  .course-duration{
    display:inline-block; align-self:flex-start;
    font-size:0.76rem; font-weight:700; letter-spacing:0.02em;
    color:var(--bg-base); background:var(--cyan);
    padding:4px 11px; border-radius:999px; margin-bottom:14px;
  }
  .course-card h3{font-family:'Inter'; font-weight:700; font-size:1.12rem; letter-spacing:0; margin-bottom:10px; line-height:1.3;}
  .course-card p{color:var(--text-muted); font-size:0.92rem; margin-bottom:20px; flex-grow:1;}
  .course-card .view{
    font-size:0.88rem; font-weight:600; color:var(--magenta);
    display:inline-flex; align-items:center; gap:6px;
  }
  .course-card .view svg{width:14px; height:14px;}

  /* ---------- FAQ ---------- */
  .faq-list{max-width:820px;}
  .faq-item{border-bottom:1px solid var(--line);}
  .faq-item summary{
    list-style:none; cursor:pointer;
    display:flex; align-items:center; justify-content:space-between; gap:20px;
    padding:22px 4px; font-size:1.05rem; font-weight:600;
  }
  .faq-item summary::-webkit-details-marker{display:none;}
  .faq-item summary .plus{
    flex-shrink:0; width:28px; height:28px; border-radius:50%;
    border:1px solid var(--line); display:flex; align-items:center; justify-content:center;
    font-size:1.1rem; color:var(--cyan); transition:transform 0.2s ease;
  }
  .faq-item[open] summary .plus{transform:rotate(45deg); border-color:var(--cyan);}
  .faq-item .faq-body{padding:0 34px 24px 4px; color:var(--text-muted);}
  .faq-item .faq-body ul{margin:10px 0 0 20px;}
  .faq-item .faq-body li{margin-bottom:6px;}

  /* ---------- Testimonials ---------- */
  #testimonials{background:var(--bg-surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
  .testi-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
  .testi-card{
    background:var(--bg-base); border:1px solid var(--line); border-radius:16px; padding:26px;
    display:flex; flex-direction:column;
  }
  .testi-quote{color:var(--amber); font-family:'Bebas Neue'; font-size:2.2rem; line-height:1; margin-bottom:6px;}
  .testi-card p.msg{color:var(--text-muted); font-size:0.96rem; margin-bottom:20px; flex-grow:1;}
  .testi-person{display:flex; align-items:center; gap:12px;}
  .testi-avatar{
    width:40px; height:40px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-weight:700; font-size:0.85rem; color:#0F0D14;
    background:linear-gradient(135deg,var(--cyan),var(--magenta));
  }
  .testi-person .name{font-weight:700; font-size:0.94rem;}
  .testi-person .role{color:var(--text-dim); font-size:0.82rem;}

  /* =========================================================
   MOBILE RESPONSIVE FIX
   Animation & Gaming Page
   ========================================================= */

/* ---------- Prevent horizontal overflow ---------- */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video {
    max-width: 100%;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1180px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    width: 100%;
}

.site-header .nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    width: 74px;
    height: auto;
    display: block;
}


/* Desktop navigation */

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    white-space: nowrap;
}


/* Desktop actions */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}


/* Hamburger */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line, #332c41);
    border-radius: 8px;
    background: var(--surface, #1a1723);
    color: var(--text, #f7f4ff);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}


/* =========================================================
   PAGE HERO
   ========================================================= */

.page-hero {
    width: 100%;
    overflow: hidden;
}

.page-hero h1 {
    overflow-wrap: break-word;
}

.page-hero p {
    max-width: 760px;
}


/* =========================================================
   JUMP TABS
   ========================================================= */

.jump-tabs {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.jump-tabs::-webkit-scrollbar {
    display: none;
}

.jump-tabs .wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.jump-tabs a {
    white-space: nowrap;
}


/* =========================================================
   OVERVIEW
   ========================================================= */

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.overview-grid > div {
    min-width: 0;
}

.overview-grid p {
    overflow-wrap: break-word;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.stat-card {
    min-width: 0;
}

.stat-card .lbl {
    overflow-wrap: break-word;
}


/* =========================================================
   COURSE GRID
   ========================================================= */

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.course-card {
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.course-card h3,
.course-card p {
    overflow-wrap: break-word;
}

.course-card .view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.course-card .view svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
    width: 100%;
}

.faq-item {
    width: 100%;
    min-width: 0;
}

.faq-item summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.faq-item summary::marker {
    display: none;
}

.faq-item summary {
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item .plus {
    flex-shrink: 0;
}

.faq-body {
    overflow-wrap: break-word;
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.test-card {
    min-width: 0;
    height: 100%;
}

.test-card .msg {
    overflow-wrap: break-word;
}

.test-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.test-person > div:last-child {
    min-width: 0;
}

.test-person h4,
.test-person span {
    overflow-wrap: break-word;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta > div {
    min-width: 0;
}

.cta h2,
.cta p {
    overflow-wrap: break-word;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    width: 100%;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 40px;
}

.footer-grid > div {
    min-width: 0;
}

.footer-logo {
    max-width: 180px;
    height: auto;
}

.foot-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.foot-contact-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}


/* =========================================================
   MODAL
   ========================================================= */

.modal {
    width: 100%;
    padding: 20px;
}

.modal-box {
    width: min(600px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.modal-head > div {
    min-width: 0;
}

.popup-form {
    width: 100%;
}

.popup-form input,
.popup-form select,
.popup-form textarea {
    width: 100%;
    max-width: 100%;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .container {
        width: min(100% - 36px, 1000px);
    }

    .nav-links {
        gap: 18px;
    }

    .nav-actions {
        gap: 7px;
    }

    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET / MOBILE NAV
   ========================================================= */

@media (max-width: 900px) {

    .site-header .nav {
        min-height: 72px;
        position: relative;
    }

    /*
       Hide desktop menu.
       Hamburger becomes visible.
    */

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;

        width: 100%;
        padding: 12px;

        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        background: var(--bg2, #1a1723);
        border: 1px solid var(--line, #332c41);
        border-radius: 12px;

        z-index: 9999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 13px 14px;
        border-radius: 8px;
    }

    .nav-links > li > a:hover {
        background: rgba(255,255,255,.05);
    }


    /* Mobile dropdown */

    .nav-links .dropdown {
        position: static !important;
        width: 100% !important;

        display: none;
        margin: 0 0 5px 0;

        padding: 8px;

        background: rgba(255,255,255,.03);
        border: 1px solid var(--line, #332c41);
        border-radius: 8px;

        box-shadow: none;
    }

    .nav-links .has-dropdown.open .dropdown {
        display: block;
    }

    .nav-links .dropdown a {
        display: block;
        width: 100%;
        padding: 11px 12px;
    }

    .dropdown-title {
        padding: 8px 12px;
    }


    /* Hide desktop buttons */

    .nav-actions .btn {
        display: none;
    }


    /* Show hamburger */

    .menu-toggle {
        display: flex;
        margin-left: auto;
        flex-shrink: 0;
    }


    /* Overview */

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }


    /* Testimonials */

    .testi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* CTA */

    .cta {
        flex-direction: column;
        align-items: flex-start;
    }


    /* Footer */

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .container {
        width: calc(100% - 30px);
    }


    /* ---------- Header ---------- */

    .site-header .nav {
        min-height: 68px;
        gap: 220px;
    }

    .logo img {
        width: 62px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }


    /* ---------- Page Hero ---------- */

    .page-hero {
        padding-left: 0;
        padding-right: 0;
    }

    .page-hero h1 {
        font-size: clamp(2.4rem, 11vw, 4rem);
        line-height: 1;
    }

    .page-hero p {
        font-size: 15px;
        line-height: 1.65;
    }


    /* ---------- Sections ---------- */

    section {
        overflow: hidden;
    }

    .section-head {
        margin-bottom: 28px;
    }

    .section-head h2 {
        font-size: clamp(2rem, 9vw, 2.7rem);
        line-height: 1.05;
    }

    .section-head p {
        font-size: 15px;
        line-height: 1.6;
    }


    /* ---------- Jump tabs ---------- */

    .jump-tabs {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        padding-left: 15px;
        padding-right: 15px;
    }

    .jump-tabs .wrap {
        gap: 8px;
    }

    .jump-tabs a {
        padding: 9px 13px;
        font-size: 13px;
    }


    /* ---------- Overview ---------- */

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .overview-grid p {
        font-size: 15px;
        line-height: 1.75;
    }

    .overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-card .num {
        font-size: 28px;
    }

    .stat-card .lbl {
        font-size: 13px;
        line-height: 1.5;
    }


    /* ---------- Courses ---------- */

    .course-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .course-card {
        width: 100%;
        min-height: 0;
    }

    .course-card h3 {
        font-size: 21px;
        line-height: 1.25;
    }

    .course-card p {
        font-size: 14px;
        line-height: 1.65;
    }

    .course-icon {
        width: 48px;
        height: 48px;
    }


    /* ---------- FAQ ---------- */

    .faq-item summary {
        font-size: 15px;
        line-height: 1.5;
        gap: 12px;
    }

    .faq-item .plus {
        width: 28px;
        height: 28px;
        min-width: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .faq-body {
        font-size: 14px;
        line-height: 1.7;
    }


    /* ---------- Testimonials ---------- */

    .testi-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .test-card {
        width: 100%;
    }

    .test-card .msg {
        font-size: 14px;
        line-height: 1.7;
    }


    /* ---------- CTA ---------- */

    .cta {
        padding: 28px 20px;
        gap: 22px;
    }

    .cta h2 {
        font-size: 28px !important;
        line-height: 1.15;
    }

    .cta p {
        font-size: 14px;
        line-height: 1.6;
    }

    .cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }


    /* ---------- Footer ---------- */

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid h4 {
        font-size: 16px;
    }

    .footer-grid p {
        font-size: 14px;
        line-height: 1.65;
    }

    .foot-contact-item {
        font-size: 13px;
        line-height: 1.6;
    }

    .foot-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 12px;
        line-height: 1.5;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 24px);
    }

    .site-header .nav {
        min-height: 64px;
        gap: 220px;
    }

    .logo img {
        width: 56px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }


    /* Hero */

    .page-hero h1 {
        font-size: 2.45rem;
    }


    /* Stats */

    .overview-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 16px;
    }


    /* FAQ */

    .faq-item summary {
        font-size: 14px;
    }


    /* Modal */

    .modal {
        padding: 12px;
    }

    .modal-box {
        max-height: calc(100vh - 24px);
        border-radius: 14px;
    }

    .modal-head {
        gap: 12px;
    }

    .modal-head h3 {
        font-size: 24px;
    }

    .modal-head p {
        font-size: 13px;
        line-height: 1.5;
    }

    .modal-close {
        flex-shrink: 0;
    }

    .popup-form {
        gap: 10px;
    }

    .popup-form input,
    .popup-form select,
    .popup-form textarea {
        font-size: 14px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .container {
        width: calc(100% - 20px);
    }

    .logo img {
        width: 52px;
    }

    .page-hero h1 {
        font-size: 2.15rem;
    }

    .section-head h2 {
        font-size: 1.9rem;
    }

    .course-card {
        padding: 20px;
    }

    .course-card h3 {
        font-size: 19px;
    }

    .stat-card .num {
        font-size: 25px;
    }

}