@charset "utf-8";

/* Reset & Base - Scoped to LMS components to prevent breaking default Gnuboard/YoungCart styling */
body { font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif; color: #222; }

/* Apply layout commons and resets only to our elements */
.header, .footer, .mobile-drawer, .lms-content,
.hero, .sub-banner, .courses, .instructors, .books, .boards, 
.bottom-banner, .consult-sec, .tail-consult, .tail-banner {
    line-height: 1.5;
    letter-spacing: -0.5px;
}

.header *, .footer *, .mobile-drawer *, .lms-content *,
.hero *, .sub-banner *, .courses *, .instructors *, .books *, .boards *, 
.bottom-banner *, .consult-sec *, .tail-consult *, .tail-banner * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header ul, .header li, .footer ul, .footer li, .mobile-drawer ul, .mobile-drawer li, .lms-content ul, .lms-content li,
.hero ul, .hero li, .courses ul, .courses li, .instructors ul, .instructors li, .books ul, .books li, .boards ul, .boards li,
.bottom-banner ul, .bottom-banner li, .consult-sec ul, .consult-sec li, .tail-consult ul, .tail-consult li, .tail-banner ul, .tail-banner li {
    list-style: none;
}

.header a, .footer a, .mobile-drawer a, .lms-content a,
.hero a, .sub-banner a, .courses a, .instructors a, .books a, .boards a,
.bottom-banner a, .consult-sec a, .tail-consult a, .tail-banner a {
    text-decoration: none;
    color: inherit;
}

.header img, .footer img, .mobile-drawer img, .lms-content img,
.hero img, .sub-banner img, .courses img, .instructors img, .books img, .boards img,
.bottom-banner img, .consult-sec img, .tail-consult img, .tail-banner img {
    max-width: 100%;
    vertical-align: top;
    display: block;
}

.header button, .footer button, .mobile-drawer button, .lms-content button,
.hero button, .sub-banner button, .courses button, .instructors button, .books button, .boards button,
.bottom-banner button, .consult-sec button, .tail-consult button, .tail-banner button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

/* Layout Commons */
.inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { border-bottom: 1px solid #e5e5e5; background: #fff; position: relative; z-index: 100; }
.header-inner { max-width: 1400px; margin: 0 auto; height: 120px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.logo img { height: auto; max-width: 260px; }

.header-right-wrap { flex: 1; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; height: 100%; padding: 20px 0; }
.top-utils { display: flex; align-items: center; gap: 30px; position: absolute; top: 10px; right: 0; }
.top-utils a { font-size: 13px; color: #444; font-weight: 500; }
.top-utils a:hover { color: #111; }
.btn-menu { font-size: 14px; font-weight: 700; color: #111; display: flex; align-items: center; gap: 6px; }
.btn-menu i { font-size: 18px; }
.btn-menu-mo { display: none; }



/* Hero */
.hero { background: #e1aba9 url('../../../image/main_vs1.jpg') no-repeat center top; position: relative; height: 532px; overflow: hidden; }
.hero-inner { max-width: 1400px; width: 100%; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; position: relative; z-index: 2; }

.hero-left { padding-top: 360px; /* Push the controls down to where they should be since the text is gone */ }
.hero-left h2 { font-size: 46px; font-weight: 800; color: #fff; line-height: 1.3; letter-spacing: -2px; text-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }
.hero-left h2 .txt-red { color: #e31b23; }

.hero-player-controls { display: inline-flex; align-items: center; background: rgba(0,0,0,0.4); border-radius: 20px; padding: 6px 16px; gap: 12px; }
.hero-player-controls button { color: #fff; font-size: 14px; opacity: 0.8; transition: 0.2s; }
.hero-player-controls button:hover { opacity: 1; color: #ffe600; }

.hero-center { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 50px; }
.hero-center-dots .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #222; margin: 0 4px; opacity: 0.3; }
.hero-center-dots .dot.active { opacity: 1; background: #fff; }

.hero-right { width: 320px; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding-top: 40px; margin-left: auto; margin-right: 0; }

/* Widgets Matching Target Design */
.h-widget { border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); width: 100%; height: 110px; display: flex; box-sizing: border-box; position: relative; overflow: hidden; }
.h-widget.dday { background: #313131; color: #fff; flex-direction: column; justify-content: center; padding-left: 30px; }
.h-widget.dday .sub { font-size: 14px; color: #fff; font-weight: 500; margin-bottom: 2px; }
.h-widget.dday .tit { font-size: 16px; font-weight: 700; color: #6db3e6; margin-bottom: 5px; }
.h-widget.dday .d-box { color: #ffe600; font-size: 22px; font-weight: 900; }
.h-widget.dday .w-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.h-widget.dday .w-dots .dot { width: 6px; height: 6px; background: rgba(255,255,255,0.3); border-radius: 50%; }
.h-widget.dday .w-dots .dot.active { background: #6db3e6; }

.h-widget.sample { background: #d9f0d3; justify-content: space-between; align-items: center; padding: 0 25px; cursor: pointer; transition: 0.2s; }
.h-widget.sample:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0,0,0,0.15); }
.h-widget.sample .w-text { font-size: 17px; font-weight: 800; color: #1e6b52; line-height: 1.3; }
.h-widget.sample .w-link { font-size: 13px; font-weight: 500; color: #555; margin-top: 8px; display: inline-block; text-decoration: none; }
.h-widget.sample .w-icon img { width: 70px; height: auto; box-shadow: 0 5px 15px rgba(0,102,51,0.2); border-radius: 12px; }

.h-widget.cs { background: #ffdf00; color: #111; flex-direction: column; justify-content: center; padding-left: 30px; }
.h-widget.cs .sub { font-size: 15px; font-weight: 800; color: #333; margin-bottom: 4px; }
.h-widget.cs .tel { font-size: 28px; font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; line-height: 1; }
.h-widget.cs .desc { font-size: 12px; color: #555; line-height: 1.4; font-weight: 500; }

/* Sub Banner */
.sub-banner { padding-top: 40px; }
.sub-banner-inner { max-width: 1400px; margin: 0 auto; height: 130px; border-radius: 16px; background: #1c1c1c url('../../../image/main_sub_banner1.jpg') no-repeat center/cover; display: flex; align-items: center; padding: 0 50px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.banner-content { color: #fff; z-index: 2; position: relative; }
.banner-content h3 { font-size: 32px; font-weight: 300; letter-spacing: -1px; }
.banner-content h3 strong { font-weight: 800; color: #ffd800; }
.banner-content p { font-size: 17px; color: #ddd; margin-top: 8px; font-weight: 300; }
.btn-banner { position: absolute; right: 50px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 14px 28px; border-radius: 40px; font-size: 15px; font-weight: 500; transition: all 0.3s; }
.btn-banner:hover { background: #fff; color: #111; }

/* Courses Section */
.courses { padding: 80px 0; }
.tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 50px; }
.tabs button { padding: 14px 30px; border: 1px solid #ddd; border-radius: 40px; font-size: 16px; color: #555; background: #fff; font-weight: 500; transition: all 0.2s; }
.tabs button.active { background: #1e56a0; color: #fff; border-color: #1e56a0; font-weight: 700; box-shadow: 0 6px 15px rgba(30,86,160,0.3); }

.course-list { display: flex; gap: 24px; }
.course-card { flex: 1; border: 1px solid #e5e5e5; border-radius: 16px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; background: #fff; }
.course-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: #1e56a0; }
.course-card .card-img img { width: 100%; border-bottom: 1px solid #f0f0f0; }
.course-card .card-info { padding: 30px; }
.course-card h4 { font-size: 26px; font-weight: 800; margin-bottom: 12px; color: #111; letter-spacing: -1px; }
.course-card .subtitle { font-size: 15px; color: #666; margin-bottom: 20px; font-weight: 500; }
.course-card .desc { font-size: 16px; color: #222; font-weight: 700; }

/* Instructors Section */
.instructors { padding: 80px 0; background: #f8f9fa; }
.sec-title { font-size: 38px; font-weight: 800; color: #111; margin-bottom: 50px; text-align: center; letter-spacing: -1px; }

.inst-list { display: flex; gap: 30px; }
.inst-card { flex: 1; text-align: center; }
.inst-img { width: 180px; height: 180px; margin: 0 auto 25px; border-radius: 50%; overflow: hidden; border: 1px solid #e5e5e5; background: #fff; padding: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.inst-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.inst-card h4 { font-size: 24px; font-weight: 800; color: #111; margin-bottom: 8px; }
.inst-card p { font-size: 16px; color: #666; font-weight: 500; }

/* Footer */
.footer { background: #1a1a1a; padding: 60px 0; color: #999; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; }
.footer-left { max-width: 600px; }
.footer-logo { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 20px; }
.footer-info { font-size: 14px; line-height: 1.8; }
.footer-info span { display: inline-block; margin-right: 15px; }
.footer-right { text-align: right; }
.footer-cs h4 { font-size: 16px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-cs p { font-size: 32px; font-weight: 800; color: #ffe600; line-height: 1; margin-bottom: 10px; }
.footer-cs span { font-size: 14px; }

/* Sitemap Modal Styling */
.sitemap-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}
.sitemap-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.sitemap-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 40px rgba(0, 0, 0, 0.03);
    padding: 50px;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    animation: sitemapFadeIn 0.3s ease-out;
}
@keyframes sitemapFadeIn {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.sitemap-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 36px;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}
.sitemap-close-btn:hover {
    color: #0f172a;
    transform: rotate(90deg);
}
.sitemap-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    letter-spacing: -1.5px;
}
.sitemap-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #2563eb;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
}
.sitemap-group h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}
.sitemap-group h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}
.sitemap-group h3 a:hover {
    color: #2563eb;
}
.sitemap-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sitemap-group ul li {
    margin-bottom: 10px;
}
.sitemap-group ul li a {
    font-size: 13.5px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}
.sitemap-group ul li a:hover {
    color: #2563eb;
    padding-left: 4px;
    font-weight: 600;
}

/* 모바일/태블릿 반응형 */
@media (max-width: 768px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
    .sitemap-modal-content {
        padding: 30px;
    }
    .sitemap-title {
        font-size: 22px;
        margin-bottom: 30px;
    }
}
@media (max-width: 480px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
}

/* Common Header/Navigation/Dropdown Styles */
.header {
    border-bottom: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    position: relative !important;
    z-index: 999 !important;
    width: 100% !important;
    display: block !important;
    float: none !important;
}
.header-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0px 0 !important;
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
    height: auto !important;
}
.header-top .logo {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.header-top .logo img {
    max-height: 80px !important;
    width: auto !important;
    display: block !important;
    max-width: 100% !important;
}
.header-right-links {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    font-size: 14px !important;
    color: #334155 !important;
    font-weight: 700 !important;
    float: none !important;
    position: static !important;
    height: auto !important;
}
.header-right-links a {
    color: #334155 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
    display: inline-block !important;
    float: none !important;
}
.header-right-links a:hover {
    color: #ef4444 !important;
}
.header-right-links .btn-all-menu {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    cursor: pointer !important;
}
.user-welcome {
    margin-right: 10px !important;
    font-size: 13.5px !important;
    color: #475569 !important;
    font-weight: 600 !important;
    display: inline-block !important;
}
.btn-admin-link {
    color: #ef4444 !important;
    font-weight: 800 !important;
}

/* Header Navigation Row */
.main-nav-container {
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 0 !important;
    background: #ffffff !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
}
.main-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    height: 58px !important;
    float: none !important;
    list-style: none !important;
}
.main-nav .gnb-li {
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
    position: relative !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.main-nav .gnb-li a.gnb-a {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
}
.main-nav .gnb-li a.gnb-a:hover {
    color: #ef4444 !important;
}

/* Hover Dropdown Menu */
.main-nav .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    min-width: 170px !important;
    display: none !important;
    flex-direction: column !important;
    padding: 8px 0 !important;
    z-index: 9999 !important;
    margin-top: 1px !important;
    list-style: none !important;
    float: none !important;
}
.main-nav .gnb-li:hover .dropdown-menu {
    display: flex !important;
}
.main-nav .dropdown-menu li {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.main-nav .dropdown-menu a {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    padding: 9px 18px !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    float: none !important;
    background: transparent !important;
}
.main-nav .dropdown-menu a:hover {
    background: #f8fafc !important;
    color: #ef4444 !important;
    font-weight: 700 !important;
}

/* Kakao Counsel Bar & Footer Banner */
.counsel-banner-container {
    background: #111d35 !important;
    padding: 24px 0 !important;
    width: 100% !important;
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}
.counsel-banner-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    max-width: 1400px !important;
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}
.counsel-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.05em !important;
}
.counsel-phone {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    margin-right: 15px !important;
}
.btn-kakao-talk {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #fee500 !important;
    color: #000000 !important;
    padding: 10px 24px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    transition: background-color 0.2s !important;
}
.btn-kakao-talk:hover {
    background: #e6ce00 !important;
    color: #000000 !important;
}
.kakao-icon {
    font-size: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Consultation Form */
.consult-section {
    background: #f4f6fa !important;
    padding: 40px 0 !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
}
.consult-box {
    background: #ffffff !important;
    width: 95% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 65px 85px !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04) !important;
    border: none !important;
    float: none !important;
    box-sizing: border-box !important;
}
.consult-box .form-group {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 28px !important;
    float: none !important;
}
.consult-box .form-group label {
    width: 160px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    font-size: 22px !important;
    display: inline-block !important;
    float: none !important;
    text-align: left !important;
    letter-spacing: -0.03em !important;
}
.consult-box .form-group input.input-text, 
.consult-box .form-group select.input-select {
    flex: 1 !important;
    padding: 17px 22px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    color: #334155 !important;
    outline: none !important;
    background: #ffffff !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
}
.consult-box .form-group input.input-text:focus, 
.consult-box .form-group select.input-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}
.consult-box .form-group .phone-inputs {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    gap: 10px !important;
}
.consult-box .form-group .phone-inputs select,
.consult-box .form-group .phone-inputs input {
    flex: 1 !important;
    width: auto !important;
}
.phone-sep {
    color: #94a3b8 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 0 10px !important;
}
.consult-box .form-agree {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 35px 0 !important;
    font-size: 15px !important;
    color: #64748b !important;
    flex-wrap: wrap !important;
}
.agree-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
}
.agree-label input[type="checkbox"] {
    width: 19px !important;
    height: 19px !important;
    accent-color: #3b82f6 !important;
}
.btn-agree-detail {
    color: #2563eb !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}
.consult-box .btn-submit {
    width: 100% !important;
    background: #111d35 !important;
    color: #ffffff !important;
    padding: 21px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
}
.consult-box .btn-submit:hover {
    background: #192d52 !important;
}
.consult-box .btn-submit i {
    font-size: 16px !important;
}

/* Blue Visual Banner with CSS Diagonals */
.footer-banner {
    position: relative !important;
    background: linear-gradient(115deg, #229bff 50%, #0a91ff 50.1%) !important;
    padding: 90px 20px !important;
    text-align: center !important;
    color: #ffffff !important;
    width: 100% !important;
    float: none !important;
    overflow: hidden !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
}
.footer-banner::before,
.footer-banner::after {
    display: none !important;
}
.footer-banner h2 {
    font-size: 34px !important;
    font-weight: 700 !important;
    margin: 0 0 30px 0 !important;
    line-height: 1.45 !important;
    color: #ffffff !important;
    letter-spacing: -0.04em !important;
}
.footer-banner .btn-wrap {
    position: static !important;
    display: inline-block !important;
}
.btn-outline-white {
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    background: transparent !important;
    color: #ffffff !important;
    padding: 15px 48px !important;
    border-radius: 6px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}
.btn-outline-white:hover {
    background: #ffffff !important;
    color: #0084ff !important;
    border-color: #ffffff !important;
}

/* Footer layout */
.footer {
    background: #171f2c !important;
    color: #94a3b8 !important;
    padding: 40px 20px !important;
    font-size: 13px !important;
    text-align: center !important;
    line-height: 1.8 !important;
    border-top: 1px solid #243044 !important;
    width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
}
.footer .container {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
.footer-links {
    margin-bottom: 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}
.footer-links a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    transition: color 0.15s !important;
}
.footer-links a:hover {
    color: #ffffff !important;
}
.link-sep {
    color: #2e3c54 !important;
}
.footer-info {
    font-size: 12px !important;
    color: #64748b !important;
    margin-bottom: 18px !important;
}
.info-sep {
    color: #2e3c54 !important;
    margin: 0 8px !important;
}
.copyright {
    font-size: 12px !important;
    color: #475569 !important;
    font-weight: 500 !important;
}

/* Instructor Slider styles */
.inst-slider-container {
    width: 100% !important;
    overflow: hidden !important;
    margin-bottom: 40px !important;
    padding: 10px 0 !important;
}
.inst-slider-track {
    display: flex !important;
    gap: 20px !important;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: transform !important;
}
.inst-slide-card {
    position: relative !important;
    width: calc((100% - 60px) / 4) !important; /* Default 4 items in PC */
    height: 185px !important;
    background: #f0f0f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    cursor: pointer !important;
}

@media (max-width: 1200px) {
    .inst-slide-card {
        width: calc((100% - 40px) / 3) !important; /* 3 items for tablets */
    }
}

@media (max-width: 900px) {
    .inst-slide-card {
        width: calc((100% - 20px) / 2) !important; /* 2 items for smaller tablets/mobiles */
    }
}

@media (max-width: 550px) {
    .inst-slide-card {
        width: 100% !important; /* 1 item for mobile portrait */
    }
}
.inst-slide-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}
.inst-card-top-icon {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    color: #cbd5e1 !important;
    font-size: 14px !important;
    z-index: 10 !important;
    opacity: 0.6 !important;
}
.inst-card-content {
    position: relative !important;
    z-index: 3 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}
.inst-card-text {
    width: 60% !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 0 5px !important;
}
.inst-card-name {
    font-size: 22px !important;
    font-weight: 850 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
}
.inst-card-memo {
    font-size: 13px !important;
    color: #1e293b !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    font-weight: 500 !important;
    word-break: keep-all !important;
}
.inst-card-diagonal {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 140px !important;
    height: 185px !important;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%) !important;
    z-index: 1 !important;
}
.inst-card-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    width: 100% !important;
    background-size: contain !important;
    background-position: bottom right !important;
    background-repeat: no-repeat !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* Instructor title arrow controls */
.inst-controls-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.inst-controls-wrap button {
    width: 28px !important;
    height: 28px !important;
    border-radius: 4px !important;
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 12px !important;
    transition: all 0.2s !important;
    outline: none !important;
}
.inst-controls-wrap button:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
}
.btn-inst-more {
    font-size: 14px !important;
    color: #718096 !important;
    font-weight: 500 !important;
    margin-left: 10px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 28px !important;
}
.btn-inst-more:hover {
    color: #1e293b !important;
}

/* Mobile Hamburger Button & Drawer Default Hide for PC */
.btn-menu-mo,
.mobile-drawer,
.drawer-overlay {
    display: none !important;
}

/* Mobile Media Query (<= 768px) */
@media (max-width: 768px) {
    /* Header & GNB Override */
    .header-right-links,
    .main-nav-container {
        display: none !important;
    }
    .header-top {
        padding: 12px 10px !important;
        height: 60px !important;
        position: relative !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .header-top .logo {
        margin: 0 !important;
    }
    .header-top .logo img {
        height: 50px !important;
    }
    .btn-menu-mo {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        font-size: 24px;
        color: #1e293b;
        background: transparent;
        border: none;
        cursor: pointer;
        outline: none;
        padding: 0;
        position: absolute;
        right: 10px;
        top: 12px;
    }

    /* Mobile Drawer Layout */
    .mobile-drawer {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 280px !important;
        height: 100% !important;
        background: #ffffff !important;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1) !important;
        z-index: 10000 !important;
        transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }
    .mobile-drawer.active {
        left: 0 !important;
    }
    .drawer-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(15, 23, 42, 0.4) !important;
        backdrop-filter: blur(2px) !important;
        z-index: 9999 !important;
        display: none !important;
    }
    .drawer-overlay.active {
        display: block !important;
    }

    /* Drawer Header */
    .drawer-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 18px 20px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    .drawer-title {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }
    .btn-close-drawer {
        background: none !important;
        border: none !important;
        font-size: 28px !important;
        color: #94a3b8 !important;
        cursor: pointer !important;
        line-height: 1 !important;
        padding: 0 !important;
    }

    /* Drawer User Info */
    .drawer-user-info {
        background: #f8fafc !important;
        padding: 20px !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    .drawer-user-info .user-name {
        display: block !important;
        font-size: 14px !important;
        color: #475569 !important;
        margin-bottom: 12px !important;
    }
    .drawer-user-info .user-name strong {
        color: #0f172a !important;
    }
    .drawer-user-links {
        display: flex !important;
        gap: 10px !important;
    }
    .drawer-user-links a {
        flex: 1 !important;
        text-align: center !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 6px !important;
        padding: 8px 0 !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        color: #475569 !important;
        text-decoration: none !important;
    }

    /* Drawer Menu Lists & Accordion */
    .drawer-menu {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .drawer-li {
        border-bottom: 1px solid #f1f5f9 !important;
    }
    .drawer-a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 16px 20px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        text-decoration: none !important;
        transition: background 0.2s !important;
    }
    .drawer-a i {
        font-size: 12px !important;
        color: #94a3b8 !important;
        transition: transform 0.2s !important;
    }
    .drawer-li.open > .drawer-a {
        background: #f8fafc !important;
        color: #1f3d68 !important;
    }
    .drawer-submenu {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #f8fafc !important;
        border-top: 1px solid #f1f5f9 !important;
    }
    .drawer-submenu li a {
        display: block !important;
        padding: 12px 35px !important;
        font-size: 13.5px !important;
        font-weight: 500 !important;
        color: #475569 !important;
        text-decoration: none !important;
    }
    .drawer-submenu li a:hover {
        color: #1f3d68 !important;
    }

    /* Sub Visual & LNB Mobile Overrides */
    .sub-visual-wrap {
        height: 140px !important;
        padding: 15px 0 !important;
    }
    .sub-visual-container {
        padding: 0 10px !important;
        justify-content: center !important;
    }
    .visual-text {
        text-align: center !important;
    }
    .visual-text h2 {
        font-size: 22px !important;
        margin-bottom: 6px !important;
    }
    .visual-text p {
        font-size: 12px !important;
    }
    .visual-image {
        display: none !important;
    }
    
    .sub-lnb-wrap {
        margin-bottom: 20px !important;
    }
    .sub-lnb-container {
        padding: 0 !important;
        height: auto !important;
    }
    .lnb-home {
        display: none !important;
    }
    .sub-lnb-menu {
        width: 100% !important;
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }
    .sub-lnb-menu::-webkit-scrollbar {
        display: none !important;
    }
    .sub-lnb-menu li {
        display: inline-flex !important;
        flex-shrink: 0 !important;
    }
    .sub-lnb-menu li a {
        padding: 12px 20px !important;
        font-size: 13.5px !important;
        border-right: none !important;
    }
}

/* Hide Board SNS Share Container globally */
#bo_v_share {
    display: none !important;
}


@media (max-width: 768px) {
    .drawer-a-with-toggle {
        padding: 0 !important;
        gap: 0 !important;
    }
    .drawer-a-with-toggle .drawer-link-text {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 16px 20px !important;
        color: inherit !important;
        text-decoration: none !important;
    }
    .drawer-toggle-sub {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 52px !important;
        width: 52px !important;
        height: 52px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-left: 1px solid #f1f5f9 !important;
        background: transparent !important;
        color: #94a3b8 !important;
        cursor: pointer !important;
    }
    .drawer-toggle-sub i {
        font-size: 12px !important;
        transition: transform 0.2s !important;
    }
    .drawer-li.open > .drawer-a-with-toggle .drawer-toggle-sub {
        color: #1f3d68 !important;
        background: #eef5ff !important;
    }
}
