/* ===================================
   엠사운드 뮤직 아카데미 - 메인 스타일시트
   =================================== */

/* ===================================
   1. 리셋 & 변수
   =================================== */

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

:root {
    /* Brand Colors */
    --primary-cyan: #00BCD4;
    --primary-yellow: #FFD700;
    --secondary-yellow: #FFC107;
    --white: #FFFFFF;
    --dark: #333333;
    --dark-bg: #1a1a1a;
    --light-gray: #f5f5f5;
    --kakao-yellow: #FEE500;
    
    /* Typography */
    --font-main: 'Noto Sans KR', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* 플로팅 네비게이션 공간 */
}

img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark);
    font-family: var(--font-accent);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

/* ===================================
   2. Hero Section (Video Background)
   =================================== */

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.floating-nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.nav-logo img {
    height: 50px;
    transition: var(--transition-smooth);
}

.nav-logo img:hover {
    transform: scale(1.05);
}

/* Nav Tools (Pen & Sound Toggle) */
.nav-tools {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu li a {
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-menu li a:hover {
    background: var(--primary-cyan);
    color: var(--white);
}

.nav-cta {
    background: var(--primary-yellow) !important;
    color: var(--dark) !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
}

.nav-cta:hover {
    background: var(--primary-cyan) !important;
    color: var(--white) !important;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   2. Hero Section (Video Background)
   =================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 비율 (9/16 = 0.5625) */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 비율 (16/9 = 1.7777) */
    transform: translate(-50%, -50%);
    object-fit: cover; /* 비율 유지하며 꽉 채우기 */
    pointer-events: none; /* 클릭 차단 (사용자가 영상 조작 못하게) */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.7) 0%, rgba(26, 26, 26, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-logo {
    max-width: 300px;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary-yellow);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===================================
   3. About Section
   =================================== */

.about-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.milestone-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 60px 0 40px;
    color: var(--dark);
    position: relative;
}

.milestone-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-yellow));
    margin: 15px auto 0;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-intro {
    font-size: 1.4rem;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--dark);
}

.about-intro strong {
    color: var(--primary-cyan);
    font-weight: 700;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

.about-description strong {
    color: var(--primary-yellow);
    font-weight: 600;
}

.about-slider {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.facilitySwiper {
    width: 100%;
    height: 100%;
}

.facilitySwiper .swiper-slide {
    position: relative;
}

.facilitySwiper .swiper-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-yellow) !important;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.3);
    border-color: var(--primary-cyan);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* ===================================
   4. Programs Section
   =================================== */

.programs-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f9fc 100%);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.program-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-yellow));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.program-card:hover::before {
    opacity: 0.9;
}

.program-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.4);
}

.program-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.program-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.program-card:hover h3 {
    color: var(--white);
}

.program-hover-text {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 3;
    transition: var(--transition-smooth);
}

.program-card:hover .program-hover-text {
    bottom: 0;
}

/* program-card 링크형 (a 태그) */
a.program-card,
.program-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.program-card:hover {
    text-decoration: none;
}

/* NEW 뱃지 — 카드 외곽선 위 floating */
.program-badge-new {
    position: absolute;
    top: -10px;
    right: 16px;
    background: linear-gradient(135deg, #FF4081, #FFD700);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    z-index: 4;
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.3);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ===================================
   5. Teachers Section
   =================================== */

.teachers-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.teacher-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 12px 30px;
    background: var(--light-gray);
    color: var(--dark);
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    background: var(--primary-cyan);
    color: var(--white);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-yellow);
    color: var(--dark);
    border-color: var(--primary-yellow);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.teacher-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    position: relative;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.teacher-card.featured {
    border: 3px solid var(--primary-yellow);
}

.teacher-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-yellow);
    color: var(--dark);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.teacher-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.1);
}

.teacher-info {
    padding: 25px;
}

.teacher-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.teacher-major {
    color: var(--primary-cyan);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.teacher-career {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.teacher-video-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #FF0000;
    color: var(--white);
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.teacher-video-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
}

/* Teacher Gallery Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 700px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10000;
}

.modal-close:hover {
    color: var(--primary-yellow);
}

.gallery-slider {
    position: relative;
}

.gallery-images {
    display: flex;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-images img {
    width: 100%;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 100;
    transition: var(--transition-smooth);
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary-yellow);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

/* ===================================
   6. Media Section
   =================================== */

.media-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #e8f9fc 0%, #f5f5f5 100%);
}

/* Juicer.io Instagram Feed 커스터마이징 */
.juicer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.juicer-feed {
    padding: 0 !important;
    margin: 0 !important;
}

.juicer-feed li.feed-item {
    margin-bottom: 20px !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
    transition: var(--transition-smooth) !important;
}

/* ===========================================================
   Instagram 프로필 카드 + 미리보기 그리드 (Juicer 대체)
   =========================================================== */
.ig-profile-card {
    max-width: 600px;
    margin: 30px auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white),
        linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.ig-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ig-profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    padding: 8px;
    object-fit: contain;
}

.ig-profile-info h3 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    color: #5A2B8E;
    font-weight: 700;
    word-break: keep-all;
}

.ig-profile-info p {
    margin: 0 0 14px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: keep-all;
}

.ig-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%);
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ig-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 29, 29, 0.4);
}

.ig-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 700px;
    margin: 30px auto 0;
}

.ig-preview-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    background: #f0f0f0;
}

.ig-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.ig-preview-card:hover img {
    transform: scale(1.08);
}

.ig-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(131,58,180,0.0), rgba(253,29,29,0.0));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
}

.ig-preview-card:hover .ig-preview-overlay {
    opacity: 1;
    background: linear-gradient(135deg, rgba(131,58,180,0.6), rgba(253,29,29,0.5), rgba(247,119,55,0.55));
}

.ig-cta-large {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%) !important;
    color: white !important;
    padding: 14px 30px !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 24px rgba(253, 29, 29, 0.3);
}

.ig-cta-large i {
    margin-right: 8px;
}

/* 모바일 */
@media (max-width: 600px) {
    .ig-profile-card {
        padding: 24px 20px;
    }
    .ig-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .ig-preview-grid {
        gap: 6px;
    }
}

.juicer-feed li.feed-item:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.juicer-feed .j-image {
    border-radius: 15px 15px 0 0 !important;
}

.juicer-feed .j-meta {
    padding: 15px !important;
    background: var(--white) !important;
}

.juicer-feed .j-text {
    color: var(--dark) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* Juicer 워터마크 스타일 조정 */
.juicer-feed .referral {
    text-align: center !important;
    padding: 10px !important;
    font-size: 0.8rem !important;
    opacity: 0.6 !important;
}

.juicer-feed .referral:hover {
    opacity: 1 !important;
}

/* Instagram 탭에서 fade 제거 */
#instagram-content .media-fade {
    display: none !important;
}

.media-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.media-tab-btn {
    padding: 15px 40px;
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--primary-cyan);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}

.media-tab-btn:hover {
    background: var(--primary-cyan);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.media-tab-btn.active {
    background: var(--primary-cyan);
    color: var(--white);
}

.media-content {
    position: relative;
}

.media-info-text {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--primary-cyan);
}

.media-tab-content {
    display: none;
}

.media-tab-content.active {
    display: block;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.media-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.media-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.media-card img {
    width: 100%;
    height: 225px;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 225px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.media-card:hover .media-overlay {
    opacity: 1;
}

.media-overlay i {
    font-size: 4rem;
    color: var(--white);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 188, 212, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.insta-card:hover .insta-overlay {
    opacity: 1;
}

.insta-overlay i {
    font-size: 4rem;
    color: var(--white);
}

.media-card h4 {
    padding: 15px;
    font-size: 1rem;
    color: var(--dark);
}

.blog-excerpt {
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: #666;
}

.blog-date {
    padding: 0 15px;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 5px;
}

.blog-card {
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.media-fade {
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--light-gray));
    pointer-events: none;
}

.media-more-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 15px 50px;
    background: var(--primary-yellow);
    color: var(--dark);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.media-more-btn:hover {
    background: var(--primary-cyan);
    color: var(--white);
    transform: scale(1.05);
}

/* Video Modal */
.video-modal {
    background: transparent;
    border-radius: 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===================================
   7. Location Section
   =================================== */

.location-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.location-content {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 50px;
    margin-top: 50px;
}

.location-map iframe {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-cyan);
    transition: var(--transition-smooth);
}

.info-card:hover {
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(10px);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    color: var(--primary-cyan);
}

.info-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.info-card a {
    color: var(--primary-cyan);
    font-weight: 600;
}

.info-card a:hover {
    color: var(--primary-yellow);
}

.bus-numbers {
    margin-top: 10px;
    padding: 10px;
    background: var(--white);
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary-cyan);
}

.naver-place-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: #03C75A;
    color: var(--white);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.naver-place-btn:hover {
    background: #02a04a;
    transform: scale(1.05);
}

/* ===================================
   8. FAQ Section
   =================================== */

.faq-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f9fc 100%);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.faq-item:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-item.active .faq-question {
    background: var(--primary-cyan);
    color: var(--white);
}

.faq-question span {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--light-gray);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer {
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    padding: 25px 30px;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* ===================================
   9. Contact Form Section
   =================================== */

.contact-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.trial-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.required {
    color: #FF0000;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
}

.radio-group,
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    background: var(--light-gray);
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.radio-label:hover,
.checkbox-label:hover {
    background: var(--primary-cyan);
    color: var(--white);
}

.radio-label input,
.checkbox-label input {
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-yellow);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 30px;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    background: var(--primary-cyan);
    color: var(--white);
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.4);
}

/* Success Modal */
.success-modal {
    background: var(--white);
    text-align: center;
    padding: 50px;
    border-radius: 20px;
    max-width: 500px;
}

.success-icon {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-modal h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.success-modal p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.modal-close-btn {
    padding: 12px 40px;
    background: var(--primary-cyan);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: var(--primary-yellow);
    color: var(--dark);
}

/* ===================================
   10. Footer
   =================================== */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #444;
}

.footer-logo img {
    max-width: 200px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #444;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--primary-cyan);
    transform: translateY(-5px);
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-yellow);
}

.footer-info-item p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #ccc;
}

.footer-info-item a {
    color: var(--primary-cyan);
}

.footer-info-item a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #999;
}

/* ===================================
   11. Floating Buttons
   =================================== */

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.floating-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.phone-btn {
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    color: var(--dark);
}

.kakao-btn {
    background: var(--kakao-yellow);
    color: var(--dark);
}

.naver-booking-btn {
    background: linear-gradient(135deg, #FF6B00, #FF8C00);
    color: var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 107, 0, 0.6);
    }
}

.tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    text-align: center;
}

.floating-btn:hover .tooltip {
    opacity: 1;
}

/* ===================================
   12. Pen Mode & Sound Toggle
   =================================== */

.pen-toggle,
.sound-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    position: relative;
}

.pen-toggle:hover,
.sound-toggle:hover {
    background: var(--primary-cyan);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.pen-toggle.active {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--dark);
}

.sound-toggle.active {
    background: var(--primary-cyan);
    color: var(--white);
}

/* Drawing Canvas */
#drawingCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none;
}

#drawingCanvas.active {
    pointer-events: auto;
}

/* Map Buttons */
.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.naver-map-btn {
    background: #03C75A;
    color: white;
}

.naver-map-btn:hover {
    background: #02b351 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 199, 90, 0.3);
}

.google-map-btn {
    background: #4285F4;
    color: white;
}

.google-map-btn:hover {
    background: #3367d6 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.naver-ticket-btn {
    background: #FF6B00;
    color: white;
}

.naver-ticket-btn:hover {
    background: #e55e00 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* ===================================
   13. Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content,
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    body {
        padding-top: 70px;
    }
    
    .nav-container {
        padding: 10px 20px;
        gap: 15px;
    }
    
    .nav-logo img {
        height: 40px;
    }
    
    .nav-tools {
        gap: 8px;
    }
    
    .pen-toggle,
    .sound-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        gap: 10px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* 모바일 히어로 영상 최적화 */
    .hero-section {
        height: 70vh; /* 모바일에서 화면 높이 70% */
        min-height: 500px; /* 최소 높이 보장 */
    }
    
    .video-background iframe {
        width: 100%;
        height: 100%;
        min-width: 100vw;
        min-height: 100%;
    }
    
    .features-grid,
    .programs-grid,
    .teachers-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .trial-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .teacher-tabs,
    .media-tabs {
        flex-direction: column;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .pen-toggle,
    .sound-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .about-intro,
    .about-description {
        font-size: 1rem;
    }
    
    /* 소형 모바일 히어로 영상 최적화 */
    .hero-section {
        height: 60vh; /* 소형 모바일에서 60% */
        min-height: 400px;
    }
    
    .hero-logo {
        max-width: 150px; /* 로고 크기 축소 */
    }
    
    .pen-toggle,
    .sound-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}