/* =====================================
   DEEPMOVE DANCE ACADEMY
   ===================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#000;
    color:#fff;
    font-family:Arial, Helvetica, sans-serif;
}

header{
    width:100%;
    height:95px;
    background:transparent;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 70px;
    position:fixed;
    top:0;
    left:0;
    z-index:100;
}

.logo img{
    height:65px;
    width:auto;
    display:block;
}

nav ul{
    display:flex;
    list-style:none;
    gap:42px;
}

nav a{
    color:#fff;
    text-decoration:none;
    font-weight:600;
    font-size:16px;
    position:relative;
    transition:.3s;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    background:#d62b2b;
    transition:.3s;
}

nav a:hover{
    color:#d62b2b;
}

nav a:hover::after{
    width:100%;
}

/* HERO */

.hero{
    position:relative;
    width:100%;
    min-height:110vh;
    padding:160px 70px 100px;
    display:flex;
    align-items:center;
    overflow:hidden;
}

.hero-bg{
    position:absolute;
    inset:0;
    z-index:0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.95), rgba(0,0,0,.45), rgba(0,0,0,.9)),
        radial-gradient(circle at 70% 50%, #2b2b2b 0%, #070707 50%, #000 85%);
}

.hero-bg video{
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0.9;
}

.hero-bg::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.70) 0%,
            rgba(0,0,0,.20) 45%,
            rgba(0,0,0,.45) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0,0,0,.35) 0%,
            rgba(0,0,0,0) 45%,
            rgba(0,0,0,.55) 100%
        );
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:760px;
}

.hero-sub{
    font-size:22px;
    margin-bottom:26px;
}

.hero-content h1{
    font-size:110px;
    line-height:.9;
    letter-spacing:-4px;
}

.hero-content h2{
    font-size:38px;
    letter-spacing:14px;
    color:#c0392b;
    margin:18px 0 38px;
}

.hero-desc{
    font-size:26px;
    line-height:1.65;
    margin-bottom:42px;
}

.btn-red,
.btn-line{
    display:inline-block;
    padding:18px 42px;
    text-decoration:none;
    font-size:18px;
    font-weight:700;
    transition:.3s;
}

.btn-red{
    background:#c92020;
    color:#fff;
    margin-right:18px;
}

.btn-line{
    border:1px solid #fff;
    color:#fff;
}

.btn-red:hover,
.btn-line:hover{
    background:#fff;
    color:#000;
    border-color:#fff;
}

.scroll-down{
    position:absolute;
    left:50%;
    bottom:35px;
    transform:translateX(-50%);
    z-index:3;
    color:#fff;
    font-size:12px;
    letter-spacing:2px;
    text-align:center;
}

.scroll-down i{
    display:block;
    width:1px;
    height:45px;
    background:#fff;
    margin:12px auto 0;
    opacity:.7;
}

/* PROOF */

.proof{
    padding:70px;
    border-top:1px solid #222;
    border-bottom:1px solid #222;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
}

.proof-title p{
    color:#c0392b;
    letter-spacing:4px;
    margin-bottom:16px;
}

.proof-title h2{
    font-size:36px;
    line-height:1.4;
}

.proof-title span{
    color:#c0392b;
}

.proof-list{
    display:flex;
    gap:20px;
    flex:1;
}

.proof-list div{
    flex:1;
    border:1px solid #333;
    padding:28px 20px;
    text-align:center;
    font-size:18px;
}

/* MOBILE BASIC */

@media(max-width:900px){
    header{
        padding:0 24px;
    }

    nav{
        display:none;
    }

    .hero{
        padding:140px 24px 90px;
    }

    .hero-content h1{
        font-size:58px;
    }

    .hero-content h2{
        font-size:22px;
        letter-spacing:7px;
    }

    .hero-desc{
        font-size:21px;
    }

    .proof{
        flex-direction:column;
        align-items:flex-start;
        padding:50px 24px;
    }

    .proof-list{
        flex-direction:column;
        width:100%;
    }
}
.class-section{
    padding:110px 70px;
    background:#050505;
}

.section-label{
    color:#c0392b;
    letter-spacing:5px;
    margin-bottom:18px;
}

.class-section h2{
    font-size:48px;
    margin-bottom:50px;
}

.class-grid{
    display:flex;
    gap:22px;
}

.class-card{
    flex:1;
    height:360px;
    border:1px solid #222;
    background:linear-gradient(180deg, #191919, #050505);
    padding:32px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    transition:.3s;
}

.class-card:hover{
    transform:translateY(-10px);
    border-color:#c0392b;
}

.class-card h3{
    font-size:28px;
    margin-bottom:14px;
}

.class-card p{
    color:#aaa;
    font-size:17px;
}
.teacher-section{
    padding:110px 70px;
    background:#000;
}

.teacher-section h2{
    font-size:48px;
    margin-bottom:50px;
}

.teacher-grid{
    display:flex;
    gap:22px;
}

.teacher-card{
    flex:1;
    height:420px;
    border:1px solid #222;
    background:linear-gradient(180deg, #1b1b1b, #050505);
    padding:32px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    transition:.3s;
}

.teacher-card:hover{
    transform:translateY(-10px);
    border-color:#c0392b;
}

.teacher-card h3{
    font-size:26px;
}

.teacher-card p{
    color:#c0392b;
    margin-top:8px;
}
.teacher-section{
    padding:110px 70px;
    background:#000;
}

.teacher-section h2{
    font-size:48px;
    margin-bottom:50px;
}

.teacher-grid{
    display:flex;
    flex-wrap:wrap;
    gap:22px;
}

.teacher-card{
    width:calc(25% - 17px);
    min-height:420px;
    border:1px solid #222;
    background:#080808;
    padding:24px;
    transition:.3s;
}

.teacher-card:hover{
    transform:translateY(-10px);
    border-color:#c0392b;
}

.teacher-photo{
    width:100%;
    height:280px;
    background:linear-gradient(180deg, #222, #090909);
    margin-bottom:24px;

    background-size:cover;
    background-position:center top;
    background-repeat:no-repeat;
}

.teacher-card h3{
    font-size:26px;
    margin-bottom:8px;
}

.teacher-card p{
    color:#c0392b;
    font-size:14px;
    letter-spacing:1px;
}
.gallery-section{
    padding:110px 70px;
    background:#050505;
    overflow:hidden;
}

.gallery-section h2{
    font-size:48px;
    margin-bottom:50px;
}

.gallery-track{
    display:flex;
    gap:24px;
    overflow-x:auto;
    padding-bottom:20px;
}

.gallery-card{
    min-width:300px;
    height:420px;
    border:1px solid #222;
    background:linear-gradient(180deg, #222, #070707);
    display:flex;
    justify-content:center;
    align-items:center;
    color:#555;
    font-size:22px;
    letter-spacing:3px;
    transition:.3s;
}

.gallery-card:hover{
    transform:translateY(-10px);
    border-color:#c0392b;
    color:#fff;
}
.location-section{
    padding:110px 70px;
    background:#000;
}

.location-section h2{
    font-size:48px;
    margin-bottom:50px;
}

.location-wrap{
    display:flex;
    gap:50px;
    align-items:center;
}

.map-box{
    flex:2;
    height:450px;
    border:1px solid #222;
    background:#111;
    overflow:hidden;
}

.map-box iframe{
    display:block;
    width:100%;
    height:100%;
    border:0;
    filter:grayscale(1) invert(.9) contrast(.9);
}

.location-info{
    flex:1;
}

.location-info h3{
    font-size:34px;
    margin-bottom:24px;
}

.location-info p{
    color:#aaa;
    line-height:2;
}

.location-info a{
    display:inline-block;
    margin-top:30px;
    padding:15px 34px;
    border:1px solid #fff;
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

.location-info a:hover{
    background:#fff;
    color:#000;
}
.contact-section{
    padding:110px 70px;
    background:#050505;
    text-align:center;
}

.contact-section h2{
    font-size:48px;
    margin-bottom:50px;
}

.contact-buttons{
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}

.contact-buttons a{
    min-width:180px;
    padding:18px 34px;
    border:1px solid #333;
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

.contact-buttons a:hover{
    background:#c0392b;
    border-color:#c0392b;
}
#menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.95);
    z-index:9999;
    display:none;
    justify-content:center;
    align-items:center;
}

#menu-overlay.active{
    display:flex;
}

.overlay-content{
    width:90%;
    max-width:1400px;
    height:85vh;
    background:#111;
    border:1px solid #333;
    position:relative;
    padding:60px;
    overflow:auto;
}

#close-menu{
    position:absolute;
    right:30px;
    top:30px;
    background:none;
    border:none;
    color:#fff;
    font-size:36px;
    cursor:pointer;
}
#overlay-body h2{
    font-size:56px;
    margin-bottom:40px;
}

#overlay-body p{
    font-size:22px;
    line-height:1.8;
    color:#ccc;
}

.overlay-grid{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

.overlay-grid div{
    width:calc(25% - 15px);
    min-height:180px;
    border:1px solid #333;
    padding:30px;
    font-size:24px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
}

.overlay-grid span{
    color:#c0392b;
    font-size:14px;
    margin-top:10px;
}

.overlay-map{
    height:360px;
    border:1px solid #333;
    margin-top:30px;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#666;
    letter-spacing:4px;
}

.overlay-buttons{
    display:flex;
    gap:20px;
}

.overlay-buttons a{
    color:#fff;
    border:1px solid #333;
    padding:18px 34px;
    text-decoration:none;
}
.teacher-overlay-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:22px;
    margin-top:40px;
}

.teacher-overlay-card{
    width:100%;
    background:#080808;
    border:1px solid #222;
    padding:18px;
    transition:.3s;
}

.teacher-overlay-card:hover{
    transform:translateY(-10px);
    border-color:#c0392b;
}

.teacher-overlay-photo{
    height:260px;
    background:#181818;
    border:none;
    border-radius:8px;
    margin-bottom:16px;

    background-size:cover;
background-position:center center;
background-repeat:no-repeat;

    display:flex;
    justify-content:center;
    align-items:center;

    color:#666;
    font-size:14px;
    letter-spacing:2px;
}

.teacher-overlay-card h3{
    font-size:28px;
    margin-bottom:8px;
}

.teacher-overlay-card p{
    color:#c0392b;
    font-size:13px;
    letter-spacing:1px;
}
.teacher-feature{
    display:flex;
    align-items:center;
    gap:90px;
    margin-bottom:90px;

    margin-left:30px;   
}
.teacher-feature-info{
    margin-left:-20px;
}

.teacher-feature-photo{
    width:340px;
    height:430px;
    background:#181818;
    border:none;
    border-radius:10px;
    flex-shrink:0;
	
}

.teacher-feature-info h3{
    font-size:64px;
    font-weight:800;
    letter-spacing:1px;
    line-height:1;
    margin-bottom:22px;
}

.teacher-feature-info span{
    display:inline-block;
    color:#c0392b;
    font-size:16px;
    font-weight:700;
    letter-spacing:4px;
    margin-bottom:26px;
}

.teacher-feature-info p{
    font-size:20px;
    color:#f5f5f5;
    letter-spacing:3px;
    line-height:1.6;
    margin-top:28px;
}
.teacher-line{
    width:90px;
    height:2px;
    background:#c0392b;
    margin:14px 0 26px;
}
.teacher-feature{
    display:flex;
    align-items:center;
    gap:80px;
    margin-bottom:80px;
}

.teacher-feature-photo{
    width:360px;
    height:460px;
    background:#181818;
    border:none;
    border-radius:10px;
    flex-shrink:0;

    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
}

.teacher-feature-info{
    margin-left:-20px;
}

.teacher-feature-info h3{
    font-size:72px;
    font-weight:900;
    letter-spacing:0px;
    margin-bottom:12px;
}

.teacher-feature-info span{
    display:block;
    color:#c0392b;
    font-size:17px;
    font-weight:700;
    letter-spacing:4px;
    margin-bottom:18px;
}

.teacher-line{
    width:70px;
    margin:0 0 28px;
}

.teacher-feature-info p{
    font-size:20px;
    letter-spacing:2px;
    line-height:1.6;
}
.schedule-table{
    display:flex;
    flex-wrap:wrap;
    border-top:1px solid #333;
    border-left:1px solid #333;
}

.schedule-table div{
    width:25%;
    padding:22px;
    border-right:1px solid #333;
    border-bottom:1px solid #333;
    color:#ddd;
}

.schedule-table div:nth-child(4n+3){
    width:25%;
}

.schedule-head{
    color:#c0392b !important;
    font-weight:700;
    letter-spacing:2px;
    background:#080808;
}

.schedule-table div{
    padding:22px;
    border-right:1px solid #333;
    border-bottom:1px solid #333;
    color:#ddd;
}

.schedule-head{
    color:#c0392b !important;
    font-weight:700;
    letter-spacing:2px;
    background:#080808;
}
.visual-schedule{
    width:100%;
}

.schedule-days,
.schedule-row{
    display:flex;
    gap:14px;
    align-items:center;
}

.schedule-days span,
.schedule-time{
    width:120px;
    flex-shrink:0;
}

.schedule-days span:not(:first-child),
.lesson-card{
    flex:1;
}

.schedule-days{
    margin-bottom:18px;
    color:#fff;
    font-size:24px;
    font-weight:800;
    text-align:center;
}

.schedule-row{
    margin-bottom:22px;
}

.schedule-time{
    font-size:28px;
    font-weight:900;
    color:#fff;
}

.lesson-card{
    min-height:190px;
    border:1px solid #333;
    background:#090909;
    padding:12px;
    text-align:center;
}

.lesson-photo{
    height:95px;
    border:1px dashed #555;
    margin-bottom:10px;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#666;
    font-size:12px;

}

.lesson-card h3{
    font-size:18px;
    margin-bottom:6px;
}

.lesson-card p{
    font-size:13px !important;
    color:#aaa !important;
    line-height:1.2 !important;
}

.lesson-card span{
    display:block;
    margin-top:6px;
    color:#fff;
    font-size:12px;
    font-weight:800;
}

.lesson-card.empty{
    opacity:.15;
}
.location-overlay{
    display:flex;
    gap:60px;
    align-items:center;
}

.naver-map-box{
    flex:2;
    height:460px;
    border:1px solid #333;
    background:#101010;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#666;
    font-size:26px;
    letter-spacing:4px;
}

.location-detail{
    flex:1;
}

.location-detail h3{
    font-size:36px;
    line-height:1.2;
    margin-bottom:34px;
}

.location-detail span{
    display:block;
    color:#c0392b;
    font-size:13px;
    font-weight:800;
    letter-spacing:3px;
    margin-top:24px;
    margin-bottom:8px;
}

.location-detail p{
    color:#ddd;
    line-height:1.7;
    font-size:16px;
}

.location-buttons{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:34px;
}

.location-buttons a{
    color:#fff;
    border:1px solid #333;
    padding:14px 24px;
    text-decoration:none;
    transition:.3s;
}

.location-buttons a:hover{
    background:#c0392b;
    border-color:#c0392b;
}
.contact-overlay{
    text-align:center;
    padding:70px 0;
}

.contact-overlay h3{
    font-size:54px;
    line-height:1.15;
    margin-bottom:28px;
}

.contact-overlay p{
    font-size:20px;
    color:#aaa;
    margin-bottom:44px;
}

.contact-big-buttons{
    display:flex;
    justify-content:center;
    gap:16px;
    flex-wrap:wrap;
}

.contact-big-buttons a{
    min-width:190px;
    padding:18px 34px;
    border:1px solid #333;
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

.contact-big-buttons a:hover{
    background:#c0392b;
    border-color:#c0392b;
}
.contact-overlay{
    text-align:center;
    padding:40px 0 20px;
}

.contact-sub{
    color:#aaa;
    font-size:18px !important;
    margin-bottom:28px;
}

.contact-overlay h3{
    font-size:58px;
    line-height:1.15;
    letter-spacing:2px;
    margin-bottom:50px;
}

.contact-big-buttons{
    width:760px;
    max-width:100%;
    margin:0 auto;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:16px;
}

.contact-big-buttons a{
    padding:22px 30px;
    border:1px solid #333;
    color:#fff;
    text-decoration:none;
    font-size:17px;
    font-weight:700;
    transition:.3s;
}

.contact-big-buttons a:last-child{
    grid-column:1 / 3;
}

.contact-big-buttons a:hover{
    background:#c0392b;
    border-color:#c0392b;
}
.naver-map-box{
    text-decoration:none;
}

.naver-map-box span{
    display:block;
    margin-top:14px;
    font-size:14px;
    letter-spacing:1px;
    color:#999;
}
footer{
    padding:60px 70px;
    background:#000;
    border-top:1px solid #222;
    color:#777;
}

.footer-logo{
    font-size:28px;
    font-weight:900;
    color:#fff;
    margin-bottom:22px;
}

footer p{
    line-height:1.8;
}

.footer-copy{
    margin-top:30px;
    font-size:13px;
    color:#555;
}
.mobile-menu-btn{
    display:none;
    background:none;
    border:none;
    color:#fff;
    font-size:30px;
    cursor:pointer;
}

@media (max-width:768px){

    header{
        padding:22px;
    }

    header nav{
        display:none;
    }

    .mobile-menu-btn{
        display:block;
        position:relative;
        z-index:10000;
    }

    .hero-content h1{
        font-size:56px;
    }

    .hero-content h2{
        font-size:24px;
        letter-spacing:6px;
    }

    .hero-desc{
        font-size:18px;
    }

    .overlay-content{
        width:100%;
        height:100vh;
        padding:50px 24px;
        border:none;
    }

    #overlay-body h2{
        font-size:42px;
    }

    .teacher-feature,
    .location-overlay{
        flex-direction:column;
        align-items:flex-start;
        gap:30px;
    }

    .teacher-feature-photo,
    .teacher-main-photo{
        width:100%;
        height:420px;
    }

    .teacher-overlay-card,
    .class-card{
        width:100%;
    }

   .contact-big-buttons{
    display:grid;
    grid-template-columns:repeat(1, 1fr);
    width:100%;
}

    .contact-big-buttons a:last-child{
        grid-column:auto;
    }

    .visual-schedule{
        overflow-x:auto;
        padding-bottom:20px;
    }

    .schedule-days,
    .schedule-row{
        min-width:900px;
    }

    footer{
        padding:40px 24px;
    }
}
.mobile-menu-list{
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:24px;
}

.mobile-menu-list a{
    color:#fff;
    text-decoration:none;
    font-size:26px;
    font-weight:700;
}
@media (max-width:768px){

    .class-grid,
    .overlay-grid{
        display:flex;
        flex-direction:column;
        gap:16px;
    }

    .class-card,
    .overlay-grid div{
        width:100%;
        min-height:auto;
        padding:28px 24px;
    }

    .class-card h3,
    .overlay-grid div{
        font-size:24px;
        writing-mode:horizontal-tb;
        word-break:keep-all;
        white-space:normal;
    }

    .class-card p{
        font-size:15px;
        line-height:1.6;
        word-break:keep-all;
    }
}
@media (max-width: 768px){

    body{
        overflow-x:hidden;
    }

    header{
        left:0;
        right:0;
        width:100%;
        padding:22px 20px;
        box-sizing:border-box;
    }

    nav{
        display:none;
    }

    .mobile-menu-btn{
        display:block;
        position:relative;
        z-index:9999;
    }

    .hero-content{
        left:0;
        width:100%;
        padding:0 24px;
        box-sizing:border-box;
        text-align:left;
    }

    #menu-overlay{
        left:0;
        width:100%;
    }

    .overlay-content{
        width:100%;
        padding:90px 22px 40px;
        box-sizing:border-box;
    }

    .teacher-feature{
        flex-direction:column;
        gap:30px;
        align-items:flex-start;
    }

    .teacher-feature-photo{
        width:100%;
        height:420px;
    }

    .teacher-feature-info{
        margin-left:0;
    }

    .teacher-overlay-grid{
        grid-template-columns:1fr;
        gap:26px;
    }

    .teacher-overlay-card{
        width:100%;
        padding:18px;
        box-sizing:border-box;
    }

    .teacher-overlay-photo{
        height:360px;
    }
}
@media (max-width:768px){

    .teacher-grid{
        display:grid;
        grid-template-columns:1fr;
        gap:24px;
    }

    .teacher-card{
        width:100%;
        min-height:auto;
    }

    .teacher-photo{
        height:260px;
		background-size:cover;
background-position:center center;
background-repeat:no-repeat;
    }

    .teacher-overlay-grid{
        display:grid;
        grid-template-columns:1fr;
    }

    .overlay-content{
        width:100%;
        max-width:none;
        height:100vh;
        padding:80px 20px 40px;
    }
}
@media (max-width:768px){

    #menu-overlay{
        width:100vw;
        left:0;
        right:0;
        justify-content:flex-start;
        align-items:stretch;
    }

    .overlay-content{
        width:100vw;
        max-width:none;
        height:100vh;
        padding:80px 18px 40px;
        margin:0;
    }

    .teacher-overlay-grid{
        grid-template-columns:repeat(2, 1fr);
        gap:14px;
    }

    .teacher-overlay-card{
        padding:12px;
    }

    .teacher-overlay-photo{
        height:210px;
    }

    .teacher-overlay-card h3{
        font-size:22px;
    }

    .teacher-overlay-card p,
    .teacher-overlay-card span{
        font-size:11px;
    }

    .location-overlay{
        width:100%;
    }

    .naver-map-box{
        width:100%;
        height:240px;
        flex:none;
    }
}

/* ===== 3개 홀 시간표 탭 및 난이도 스타일 ===== */
.schedule-header-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:24px;
    margin-bottom:24px;
}
.schedule-header-row h2{margin-bottom:8px !important;}
.schedule-header-row h2 small{font-size:14px;color:#aaa;letter-spacing:1px;}
.schedule-header-row p{font-size:15px !important;color:#999 !important;}
.schedule-level-guide{display:flex;gap:14px;align-items:center;}
.schedule-level-guide span,.lesson-level{
    display:inline-block;
    padding:2px 8px;
    border:1px solid currentColor;
    border-radius:4px;
    font-size:11px;
    font-weight:900;
    line-height:1.2;
}
.schedule-level-guide .easy,.lesson-level.easy{color:#52e52f;}
.schedule-level-guide .normal,.lesson-level.normal{color:#fff;}
.schedule-level-guide .hard,.lesson-level.hard{color:#ff3636;}
.hall-tabs{display:flex;gap:8px;margin:0 0 26px;}
.hall-tab{
    min-width:150px;
    padding:13px 22px;
    border:1px solid #444;
    background:#171717;
    color:#fff;
    font-weight:800;
    cursor:pointer;
    border-radius:4px;
    transition:.2s;
}
.hall-tab:hover,.hall-tab.active{background:#d97706;border-color:#d97706;}
.lesson-card{min-height:150px;cursor:pointer;}
.lesson-photo{height:78px;border:1px solid #333;background-color:#111;background-size:cover;}
.lesson-card h3{font-size:16px;margin-bottom:4px;}
.lesson-card p{margin:0 !important;}
.lesson-card .lesson-level{margin-top:5px;}
.schedule-empty-message{padding:60px 20px;text-align:center;color:#777;border:1px solid #222;}

@media(max-width:768px){
    .schedule-header-row{display:block;}
    .schedule-level-guide{margin-top:16px;}
    .hall-tabs{overflow-x:auto;padding-bottom:6px;}
    .hall-tab{min-width:120px;padding:11px 14px;white-space:nowrap;}
    .visual-schedule{overflow-x:auto;}
    .schedule-days,.schedule-row{min-width:820px;}
    .lesson-card{min-height:135px;padding:8px;}
    .lesson-photo{height:68px;}
}


/* 관리자에서 등록한 클래스/포스터 콘텐츠 */
.class-card{
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.gallery-card.has-poster{
    cursor:zoom-in;
    color:transparent;
    background-repeat:no-repeat;
}

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

.class-overlay-item{
    min-height:260px;
    padding:24px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    background-size:cover;
    background-position:center;
    border:1px solid #222;
}

.class-overlay-item h3{font-size:28px;margin-bottom:10px;}
.class-overlay-item p{color:#bbb;}

.poster-lightbox{
    position:fixed;
    inset:0;
    z-index:20000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:30px;
    background:rgba(0,0,0,.92);
}

.poster-lightbox.active{display:flex;}
.poster-lightbox img{max-width:92vw;max-height:90vh;object-fit:contain;box-shadow:0 20px 80px rgba(0,0,0,.7);}
.poster-lightbox-close{
    position:absolute;
    top:20px;
    right:28px;
    border:0;
    background:transparent;
    color:#fff;
    font-size:48px;
    cursor:pointer;
}

@media (max-width:768px){
    .class-overlay-grid{grid-template-columns:1fr;}
    .class-overlay-item{min-height:220px;}
    .poster-lightbox{padding:16px;}
}

/* Launch fixes: working hero actions and embedded map */
html{ scroll-behavior:smooth; }
@media (max-width:768px){
    .map-box{
        width:100%;
        height:320px;
        flex:none;
    }
}

/* ===== DEEPMOVE mobile launch layout ===== */
.mobile-schedule-list{display:none;}
.mobile-menu-brand{display:none;}

@media (max-width:768px){
    header{
        height:72px;
        padding:14px 18px;
        background:linear-gradient(180deg,rgba(0,0,0,.82),rgba(0,0,0,0));
    }
    header .logo img{max-width:118px;max-height:42px;object-fit:contain;}
    .mobile-menu-btn{width:46px;height:46px;font-size:0;display:grid;place-items:center;}
    .mobile-menu-btn::before{content:"☰";font-size:25px;}

    .hero{min-height:100svh;height:100svh;}
    .hero-bg video{width:100%;height:100%;object-fit:cover;object-position:center;}
    .hero-content{top:52%;transform:translateY(-50%);padding:0 24px;text-align:left;}
    .hero-content h1{font-size:45px;line-height:.96;letter-spacing:-2px;}
    .hero-content h2{font-size:21px;letter-spacing:3px;margin-top:8px;}
    .hero-sub{font-size:12px;letter-spacing:3px;}
    .hero-desc{font-size:19px;line-height:1.65;margin:24px 0;}
    .hero-btn{display:grid;grid-template-columns:1fr;gap:10px;width:100%;}
    .hero-btn a{width:100%;min-height:58px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;font-size:17px;}
    .scroll-down{bottom:22px;}

    .proof,.class-section,.teacher-section,.gallery-section,.location-section,.contact-section{padding-left:18px;padding-right:18px;}
    .class-section h2,.teacher-section h2,.gallery-section h2,.location-section h2,.contact-section h2{font-size:35px;line-height:1.05;}

    .class-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
    .class-card{width:100%!important;min-height:245px!important;padding:16px!important;box-sizing:border-box;justify-content:flex-end;display:flex;flex-direction:column;}
    .class-card h3{font-size:20px!important;}
    .class-card p{font-size:12px!important;}

    .teacher-grid{display:grid;grid-template-columns:1fr!important;gap:14px;}
    .teacher-card{display:grid;grid-template-columns:42% 1fr;min-height:178px!important;padding:0!important;overflow:hidden;align-items:center;}
    .teacher-card .teacher-photo{height:178px!important;margin:0!important;border-radius:0!important;}
    .teacher-card h3,.teacher-card p{grid-column:2;margin-left:18px;margin-right:12px;}
    .teacher-card h3{align-self:end;font-size:27px;margin-bottom:5px;}
    .teacher-card p{align-self:start;font-size:12px;}

    .gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding-bottom:14px;-webkit-overflow-scrolling:touch;}
    .gallery-card{flex:0 0 82%;height:500px;scroll-snap-align:center;}

    .location-wrap{display:flex;flex-direction:column;gap:22px;}
    .map-box{order:2;height:300px!important;}
    .location-info{order:1;width:100%;}
    .location-info a{width:100%;min-height:52px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;}
    .contact-buttons{grid-template-columns:1fr!important;gap:10px;}
    .contact-buttons a{min-height:54px;display:flex;align-items:center;justify-content:center;}

    #menu-overlay{background:rgba(0,0,0,.98);}
    .overlay-content{padding:76px 18px 28px!important;overflow-y:auto;}
    #close-menu{position:fixed;top:18px;right:18px;z-index:30000;font-size:32px;}
    .mobile-menu-brand{display:block;text-align:center;font-size:32px;font-weight:900;letter-spacing:-1px;margin:34px 0 45px;}
    .mobile-menu-brand small{display:block;font-size:11px;letter-spacing:4px;margin-top:3px;}
    .mobile-menu-list{height:auto;gap:22px;}
    .mobile-menu-list>a{font-size:25px;letter-spacing:1px;}
    .mobile-menu-social{width:100%;border-top:1px solid #333;margin-top:18px;padding-top:28px;display:flex;justify-content:center;gap:25px;}
    .mobile-menu-social a{font-size:13px;color:#fff;text-decoration:none;}

    .schedule-header-row,.hall-tabs,.visual-schedule{display:none!important;}
    .mobile-schedule-list{display:block;}
    .mobile-hall{border:1px solid #3a3a3a;border-radius:10px;margin-bottom:12px;background:#0d0d0d;overflow:hidden;}
    .mobile-hall summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:18px;font-size:17px;font-weight:900;cursor:pointer;}
    .mobile-hall summary::-webkit-details-marker{display:none;}
    .mobile-hall[open] summary b{transform:rotate(180deg);}
    .mobile-hall-lessons{padding:0 10px 10px;display:grid;gap:9px;}
    .mobile-lesson-card{min-height:155px;border:1px solid #333;border-radius:8px;display:grid;grid-template-columns:1fr 42%;overflow:hidden;background:#111;}
    .mobile-lesson-copy{padding:15px;display:flex;flex-direction:column;align-items:flex-start;}
    .mobile-lesson-copy time{font-size:15px;color:#ff8a00;font-weight:900;}
    .mobile-lesson-copy small{color:#777;margin:3px 0 12px;}
    .mobile-lesson-copy h3{font-size:23px;margin:0 0 4px!important;}
    .mobile-lesson-copy p{font-size:13px!important;margin:0 0 8px!important;color:#bbb!important;}
    .mobile-lesson-photo{min-height:155px;background-repeat:no-repeat;background-color:#171717;}
    .mobile-no-class{padding:25px 10px;color:#777;text-align:center;}

    .class-overlay-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
    .class-overlay-item{min-height:240px;padding:14px;}
    .teacher-feature-photo{height:410px;}
    .teacher-overlay-grid{grid-template-columns:1fr!important;}
    .teacher-overlay-card{display:grid;grid-template-columns:42% 1fr;min-height:180px;align-items:center;}
    .teacher-overlay-photo{height:180px!important;margin:0;}

    footer{text-align:center;padding:42px 20px 55px;}
}

/* ===== Mobile readability hotfix: teachers + timetable ===== */
@media (max-width:768px){
    /* Main teacher cards: stop long genre text from colliding */
    .teacher-card{
        grid-template-columns:38% minmax(0,1fr)!important;
        min-height:158px!important;
        align-items:stretch!important;
    }
    .teacher-card .teacher-photo{
        height:158px!important;
    }
    .teacher-card h3,
    .teacher-card p{
        grid-column:2!important;
        min-width:0;
        overflow-wrap:anywhere;
        word-break:keep-all;
        line-height:1.15;
    }
    .teacher-card h3{
        align-self:end!important;
        font-size:24px!important;
        margin:0 14px 7px 16px!important;
    }
    .teacher-card p{
        align-self:start!important;
        font-size:14px!important;
        margin:0 14px 0 16px!important;
        max-width:100%;
    }

    /* Teacher overlay cards: put name/genre/role in a clean text column */
    .teacher-overlay-card{
        grid-template-columns:38% minmax(0,1fr)!important;
        grid-template-rows:auto auto auto!important;
        min-height:164px!important;
        padding:0!important;
        overflow:hidden;
        align-items:center!important;
    }
    .teacher-overlay-photo{
        grid-column:1!important;
        grid-row:1 / 4!important;
        width:100%!important;
        height:164px!important;
        margin:0!important;
        border-radius:0!important;
    }
    .teacher-overlay-card h3,
    .teacher-overlay-card p,
    .teacher-overlay-card span{
        grid-column:2!important;
        min-width:0;
        margin-left:16px!important;
        margin-right:12px!important;
        overflow-wrap:anywhere;
        word-break:keep-all;
        line-height:1.15;
    }
    .teacher-overlay-card h3{
        grid-row:1!important;
        align-self:end!important;
        font-size:24px!important;
        margin-bottom:6px!important;
    }
    .teacher-overlay-card p{
        grid-row:2!important;
        align-self:center!important;
        font-size:14px!important;
        margin-top:0!important;
        margin-bottom:6px!important;
    }
    .teacher-overlay-card span{
        grid-row:3!important;
        align-self:start!important;
        font-size:12px!important;
        color:#aaa!important;
        margin-top:0!important;
    }

    /* Mobile timetable: shorter cards and clearer hierarchy */
    .mobile-hall summary{
        padding:15px 16px!important;
    }
    .mobile-hall-lessons{
        padding:0 8px 9px!important;
        gap:7px!important;
    }
    .mobile-lesson-card{
        min-height:118px!important;
        grid-template-columns:minmax(0,1fr) 34%!important;
        border-radius:9px!important;
    }
    .mobile-lesson-copy{
        padding:12px 13px!important;
        justify-content:center;
    }
    .mobile-lesson-copy time{
        font-size:16px!important;
        line-height:1;
    }
    .mobile-lesson-copy small{
        font-size:11px!important;
        margin:4px 0 8px!important;
    }
    .mobile-lesson-copy h3{
        font-size:20px!important;
        line-height:1.05!important;
        margin:0 0 4px!important;
    }
    .mobile-lesson-copy p{
        font-size:12px!important;
        line-height:1.2!important;
        margin:0 0 7px!important;
    }
    .mobile-lesson-photo{
        min-height:118px!important;
        background-size:cover!important;
    }
    .mobile-lesson-copy .lesson-level{
        font-size:10px!important;
        padding:3px 8px!important;
    }
}

/* ===== Mobile timetable: hall tabs + day tabs + time rows ===== */
@media (max-width:768px){
    .mobile-schedule-list{
        display:block;
        width:100%;
    }
    .mobile-schedule-heading{
        margin-bottom:18px;
    }
    .mobile-schedule-heading h2{
        font-size:34px;
        margin:0 0 6px;
    }
    .mobile-schedule-heading p{
        margin:0;
        color:#888;
        font-size:13px;
    }
    .mobile-hall-tabs{
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:6px;
        margin-bottom:12px;
    }
    .mobile-hall-tab{
        min-width:0;
        min-height:45px;
        padding:8px 5px;
        border:1px solid #333;
        border-radius:7px;
        background:#151515;
        color:#aaa;
        font-size:12px;
        font-weight:800;
        word-break:keep-all;
    }
    .mobile-hall-tab.active{
        background:#d97706;
        border-color:#d97706;
        color:#fff;
    }
    .mobile-day-tabs{
        display:grid;
        grid-template-columns:repeat(7,minmax(0,1fr));
        gap:5px;
        margin-bottom:18px;
    }
    .mobile-day-tab{
        min-width:0;
        height:42px;
        padding:0;
        border:1px solid #292929;
        border-radius:6px;
        background:#101010;
        color:#777;
        font-size:14px;
        font-weight:900;
    }
    .mobile-day-tab.active{
        background:#c0392b;
        border-color:#c0392b;
        color:#fff;
    }
    .mobile-day-schedule{
        border-top:1px solid #292929;
    }
    .mobile-time-row{
        display:grid;
        grid-template-columns:92px minmax(0,1fr);
        gap:10px;
        padding:13px 0;
        border-bottom:1px solid #242424;
        align-items:stretch;
    }
    .mobile-time-cell{
        display:flex;
        align-items:flex-start;
        padding-top:12px;
    }
    .mobile-time-cell time{
        color:#ff8a00;
        font-size:16px;
        font-weight:900;
        line-height:1.15;
        overflow-wrap:anywhere;
    }
    .mobile-class-cell{
        min-width:0;
        display:grid;
        grid-template-columns:88px minmax(0,1fr);
        gap:13px;
        align-items:center;
        min-height:104px;
        padding:8px;
        border:1px solid #333;
        border-radius:9px;
        background:#111;
    }
    .mobile-class-photo{
        width:88px;
        height:88px;
        border-radius:7px;
        background-color:#181818;
        background-repeat:no-repeat;
    }
    .mobile-class-info{
        min-width:0;
    }
    .mobile-class-info h3{
        margin:0 0 6px!important;
        color:#fff;
        font-size:19px!important;
        line-height:1.15;
        overflow-wrap:anywhere;
        word-break:keep-all;
    }
    .mobile-class-info p{
        margin:0 0 9px!important;
        color:#aaa!important;
        font-size:13px!important;
        font-weight:700;
    }
    .mobile-class-info .lesson-level{
        font-size:10px!important;
        padding:3px 8px!important;
    }
    .mobile-no-class{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:7px;
        min-height:170px;
        padding:25px 10px;
        border:1px solid #272727;
        border-radius:9px;
        color:#777;
        text-align:center;
    }
    .mobile-no-class strong{
        color:#fff;
        font-size:18px;
    }
    .mobile-no-class span{
        font-size:13px;
    }

    /* Previous accordion/list timetable is no longer used */
    .mobile-hall,
    .mobile-hall-lessons,
    .mobile-lesson-card{
        display:none!important;
    }
}

@media (max-width:390px){
    .mobile-hall-tab{font-size:11px;}
    .mobile-time-row{grid-template-columns:76px minmax(0,1fr);}
    .mobile-time-cell time{font-size:14px;}
    .mobile-class-cell{grid-template-columns:76px minmax(0,1fr);gap:10px;}
    .mobile-class-photo{width:76px;height:82px;}
    .mobile-class-info h3{font-size:17px!important;}
}

/* ===== ABOUT DEEPMOVE ===== */
.about-intro{display:flex;flex-direction:column;gap:24px;}
.about-title-row{display:flex;justify-content:space-between;align-items:flex-end;}
.about-intro #overlay-body h2,.about-intro h2{margin-bottom:8px;}
.about-eyebrow{color:#e33434;font-size:15px;font-weight:800;letter-spacing:6px;}
.about-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:38px;align-items:stretch;}
.about-main-photo{min-height:390px;border:1px solid #2a2a2a;background:#0b0b0b;display:flex;align-items:center;justify-content:center;color:#666;font-size:15px;letter-spacing:1px;background-size:cover;background-position:center;position:relative;overflow:hidden;}
.about-main-photo.has-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.20));pointer-events:none;}
.about-copy{display:flex;flex-direction:column;justify-content:center;padding:14px 4px;}
.about-copy h3{font-size:38px;line-height:1.22;margin:0;font-weight:900;letter-spacing:-1px;}
.about-copy h3.accent{color:#e33434;margin-top:4px;}
.about-red-line{width:58px;height:3px;background:#e33434;margin:26px 0 22px;}
#overlay-body .about-copy p{font-size:17px;line-height:1.75;color:#c9c9c9;margin:0 0 16px;}
.about-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.about-feature-card{border:1px solid #303030;background:linear-gradient(180deg,#151515,#101010);padding:22px;min-height:145px;position:relative;}
.about-feature-no{display:block;color:#e33434;font-size:12px;font-weight:800;letter-spacing:2px;margin-bottom:15px;}
.about-feature-card h4{font-size:21px;margin:0 0 10px;color:#fff;}
#overlay-body .about-feature-card p{font-size:14px;line-height:1.6;color:#aaa;margin:0;}

@media (max-width:900px){
    .about-hero-grid{grid-template-columns:1fr;gap:20px;}
    .about-main-photo{min-height:300px;}
    .about-copy h3{font-size:30px;}
    .about-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:520px){
    .about-intro{gap:18px;}
    .about-eyebrow{font-size:11px;letter-spacing:4px;}
    .about-main-photo{min-height:220px;border-radius:2px;}
    .about-copy{padding:0;}
    .about-copy h3{font-size:27px;}
    .about-red-line{margin:18px 0 16px;}
    #overlay-body .about-copy p{font-size:15px;line-height:1.7;}
    .about-feature-grid{grid-template-columns:1fr;gap:8px;}
    .about-feature-card{min-height:0;padding:17px;}
    .about-feature-card h4{font-size:18px;}
}

/* ===== ABOUT DEEPMOVE ===== */
.about-intro{display:flex;flex-direction:column;gap:24px;}
.about-title-row{display:flex;justify-content:space-between;align-items:flex-end;}
.about-intro h2{margin-bottom:8px!important;}
.about-eyebrow{color:#e33434;font-size:15px;font-weight:800;letter-spacing:6px;}
.about-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:38px;align-items:stretch;}
.about-main-photo{min-height:390px;border:1px solid #2a2a2a;background:#0b0b0b;display:flex;align-items:center;justify-content:center;color:#666;font-size:15px;letter-spacing:1px;background-size:cover;background-position:center;position:relative;overflow:hidden;}
.about-main-photo.has-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.20));pointer-events:none;}
.about-copy{display:flex;flex-direction:column;justify-content:center;padding:14px 4px;}
.about-copy h3{font-size:38px;line-height:1.22;margin:0;font-weight:900;letter-spacing:-1px;}
.about-copy h3.accent{color:#e33434;margin-top:4px;}
.about-red-line{width:58px;height:3px;background:#e33434;margin:26px 0 22px;}
#overlay-body .about-copy p{font-size:17px;line-height:1.75;color:#c9c9c9;margin:0 0 16px;}
.about-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.about-feature-card{border:1px solid #303030;background:linear-gradient(180deg,#151515,#101010);padding:22px;min-height:145px;position:relative;}
.about-feature-no{display:block;color:#e33434;font-size:12px;font-weight:800;letter-spacing:2px;margin-bottom:15px;}
.about-feature-card h4{font-size:21px;margin:0 0 10px;color:#fff;}
#overlay-body .about-feature-card p{font-size:14px;line-height:1.6;color:#aaa;margin:0;}
@media (max-width:900px){.about-hero-grid{grid-template-columns:1fr;gap:20px}.about-main-photo{min-height:300px}.about-copy h3{font-size:30px}.about-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.about-intro{gap:18px}.about-eyebrow{font-size:11px;letter-spacing:4px}.about-main-photo{min-height:220px}.about-copy{padding:0}.about-copy h3{font-size:27px}.about-red-line{margin:18px 0 16px}#overlay-body .about-copy p{font-size:15px;line-height:1.7}.about-feature-grid{grid-template-columns:1fr;gap:8px}.about-feature-card{min-height:0;padding:17px}.about-feature-card h4{font-size:18px}}


/* Career / business info additions */
.director-career{margin-top:28px;padding-top:22px;border-top:1px solid #2b2b2b;max-width:560px;color:#bdbdbd;font-size:14px;line-height:1.8;letter-spacing:0;}
.director-career strong{display:block;color:#fff;font-size:14px;margin-bottom:8px;letter-spacing:1px;}
.teacher-career-box{margin-top:34px;padding:28px 30px;border:1px solid #2a2a2a;background:#0c0c0c;}
.teacher-career-box h3{margin:0 0 14px;font-size:20px;color:#fff;}
.teacher-career-box p{margin:0;color:#aaa;font-size:14px;line-height:1.9;}
.footer-divider{padding:0 8px;color:#444;}
@media(max-width:768px){.director-career{margin-top:18px}.teacher-career-box{padding:22px 18px}.footer-divider{padding:0 4px}}

/* ===== 2026-08-11 MOBILE LIVE HOTFIX ===== */
@media (max-width:768px){
    /* Use the full overlay as the only vertical scroller. This prevents the
       timetable from getting trapped after changing day/hall tabs on mobile. */
    #menu-overlay.active{
        display:block!important;
        overflow-y:auto!important;
        overflow-x:hidden!important;
        -webkit-overflow-scrolling:touch;
        overscroll-behavior-y:contain;
    }
    .overlay-content{
        width:100%!important;
        max-width:none!important;
        height:auto!important;
        min-height:100dvh!important;
        margin:0!important;
        padding:76px 16px 48px!important;
        box-sizing:border-box!important;
        overflow:visible!important;
    }
    #overlay-body{
        width:100%;
        min-width:0;
        min-height:calc(100dvh - 124px);
    }
    #overlay-body > *{
        max-width:100%;
        box-sizing:border-box;
    }

    /* Timetable: always let the content determine its height. */
    .mobile-schedule-list,
    .mobile-day-schedule{
        width:100%!important;
        max-width:100%!important;
        height:auto!important;
        max-height:none!important;
        overflow:visible!important;
        min-width:0!important;
    }
    .mobile-time-row{
        width:100%!important;
        min-width:0!important;
        box-sizing:border-box!important;
    }
    .mobile-class-cell,
    .mobile-class-info{
        min-width:0!important;
    }

    /* Main instructor cards: make the photo fill its side instead of leaving
       a large empty card with a small portrait. */
    .teacher-grid{
        gap:10px!important;
    }
    .teacher-card{
        grid-template-columns:48% minmax(0,1fr)!important;
        min-height:172px!important;
        height:172px!important;
        padding:0!important;
        align-items:stretch!important;
        overflow:hidden!important;
    }
    .teacher-card .teacher-photo{
        width:100%!important;
        height:100%!important;
        min-height:172px!important;
        margin:0!important;
        background-size:cover!important;
        background-repeat:no-repeat!important;
    }
    .teacher-card h3{
        font-size:23px!important;
        margin:0 12px 7px 14px!important;
    }
    .teacher-card p{
        font-size:12px!important;
        margin:0 12px 0 14px!important;
    }
}

@media (max-width:390px){
    .overlay-content{padding-left:12px!important;padding-right:12px!important;}
    .teacher-card{grid-template-columns:46% minmax(0,1fr)!important;height:164px!important;min-height:164px!important;}
    .teacher-card .teacher-photo{min-height:164px!important;}
}


/* ===== 2026-08-11 MOBILE SCROLL FIX v3 ===== */
@media (max-width:768px){
    html, body{
        min-height:100%;
        overflow-x:hidden;
    }

    /* Keep the outer layer fixed. The inner panel is the ONLY scroll area.
       This is more reliable on iOS Safari after timetable DOM re-renders. */
    #menu-overlay,
    #menu-overlay.active{
        position:fixed!important;
        inset:0!important;
        width:100vw!important;
        height:100dvh!important;
        max-height:100dvh!important;
        overflow:hidden!important;
        display:none;
        align-items:stretch!important;
        justify-content:stretch!important;
        touch-action:none;
    }
    #menu-overlay.active{
        display:block!important;
    }

    .overlay-content{
        position:absolute!important;
        inset:0!important;
        width:100vw!important;
        height:100dvh!important;
        min-height:0!important;
        max-height:none!important;
        margin:0!important;
        padding:76px 14px 96px!important;
        box-sizing:border-box!important;
        overflow-x:hidden!important;
        overflow-y:scroll!important;
        -webkit-overflow-scrolling:touch!important;
        overscroll-behavior-y:contain;
        touch-action:pan-y!important;
    }

    #overlay-body{
        width:100%!important;
        min-width:0!important;
        min-height:0!important;
        height:auto!important;
        overflow:visible!important;
        padding-bottom:28px;
    }

    .mobile-schedule-list,
    .mobile-day-schedule,
    .mobile-time-row{
        position:relative;
        width:100%!important;
        height:auto!important;
        min-height:0!important;
        max-height:none!important;
        overflow:visible!important;
        touch-action:pan-y!important;
    }

    /* Main-page teachers: compact card with image filling its column. */
    .teacher-grid{
        grid-template-columns:1fr!important;
        gap:10px!important;
    }
    .teacher-card{
        width:100%!important;
        height:156px!important;
        min-height:156px!important;
        display:grid!important;
        grid-template-columns:44% minmax(0,1fr)!important;
        grid-template-rows:1fr 1fr!important;
        padding:0!important;
        margin:0!important;
        overflow:hidden!important;
        align-items:stretch!important;
    }
    .teacher-card .teacher-photo{
        grid-column:1!important;
        grid-row:1 / 3!important;
        width:100%!important;
        height:156px!important;
        min-height:156px!important;
        margin:0!important;
        border-radius:0!important;
        background-size:cover!important;
        background-repeat:no-repeat!important;
    }
    .teacher-card h3{
        grid-column:2!important;
        grid-row:1!important;
        align-self:end!important;
        margin:0 12px 6px 14px!important;
        font-size:22px!important;
        line-height:1.05!important;
    }
    .teacher-card p{
        grid-column:2!important;
        grid-row:2!important;
        align-self:start!important;
        margin:0 12px 0 14px!important;
        font-size:12px!important;
        line-height:1.25!important;
    }
}
