/* ========================================
   GB Academy - Main Stylesheet
   가람미용학원 홈페이지
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Colors */
    --primary: #c8956c;
    --primary-dark: #a87850;
    --primary-light: #e8c9a8;
    --accent: #d4a574;
    --dark: #1a1a1a;
    --dark-light: #2d2d2d;
    --gray-900: #333333;
    --gray-700: #555555;
    --gray-500: #888888;
    --gray-300: #cccccc;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --bg-cream: #faf8f5;
    --bg-warm: #f7f3ee;

    /* Typography */
    --font-main: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1240px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.16);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--gray-900);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100%;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

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

.text-center {
    text-align: center;
}

/* ========================================
   Preloader
   ======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-text {
    display: block;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 8px;
    margin-bottom: 20px;
}

.loader-bar {
    width: 60px;
    height: 2px;
    background: var(--gray-700);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: loaderSlide 1.2s ease-in-out infinite;
}

@keyframes loaderSlide {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-slow);
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 3px;
    transition: var(--transition);
}

.logo-sub {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 400;
    color: var(--primary-light);
    letter-spacing: 2px;
    transition: var(--transition);
}

.header.scrolled .logo-main {
    color: var(--dark);
}

.header.scrolled .logo-sub {
    color: var(--primary);
}

/* Navigation */
.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover {
    color: var(--white);
}

.header.scrolled .nav-link {
    color: var(--gray-700);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary-dark);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.has-dropdown .nav-link i {
    font-size: 10px;
    margin-left: 4px;
    transition: var(--transition);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 180px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown li a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: var(--gray-700);
    transition: var(--transition);
}

.dropdown li a:hover {
    color: var(--primary-dark);
    background: var(--bg-warm);
    padding-left: 28px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    transition: var(--transition);
}

@media (min-width: 1024px) {
    .header-phone {
        display: flex;
    }
}

.header-phone:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header.scrolled .header-phone {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.header.scrolled .header-phone:hover {
    background: var(--primary);
    color: var(--white);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 100;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.header.scrolled .menu-toggle span {
    background: var(--dark);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--dark);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-inner {
    padding: 24px 32px;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header .logo-main {
    font-size: 28px;
}

.mobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.mobile-nav-list {
    padding: 24px 0;
}

.mobile-nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-list > li > a:hover {
    color: var(--primary);
}

.mobile-dropdown {
    display: none;
    padding: 0 0 12px 16px;
}

.mobile-has-dropdown.open .mobile-dropdown {
    display: block;
}

.mobile-has-dropdown.open > a i {
    transform: rotate(180deg);
}

.mobile-dropdown li a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.mobile-dropdown li a:hover {
    color: var(--primary);
}

.mobile-menu-contact {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-contact p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 8px;
}

.mobile-menu-contact p i {
    margin-right: 8px;
    color: var(--primary);
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(26, 26, 26, 0.5) 50%,
        rgba(26, 26, 26, 0.3) 100%
    );
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 24px;
    max-width: var(--container-width);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
    font-size: clamp(32px, 5vw, 60px);
    color: var(--white);
}

.hero-title-line.accent {
    color: var(--primary);
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(36px, 5.5vw, 68px);
}

.hero-desc {
    font-size: clamp(15px, 1.8vw, 18px);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 3;
}

.hero-prev, .hero-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
}

.hero-prev:hover, .hero-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.hero-scroll span {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--primary);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 149, 108, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.btn-outline.light:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-lg {
    padding: 18px 44px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Section Shared Styles
   ======================================== */
.section {
    padding: var(--section-padding) 0;
}

.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-label.light {
    color: var(--primary-light);
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-title.light {
    color: var(--white);
}

.section-title .accent {
    color: var(--primary);
}

.section-desc {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--bg-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--dark);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-300);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: inline;
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-unit {
    display: inline;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 8px;
}

/* About Visual */
.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ========================================
   Courses Section
   ======================================== */
.courses {
    background: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 640px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.08);
}

.course-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.course-info {
    padding: 28px;
}

.course-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-warm);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.course-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.course-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

.course-meta {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.course-meta span {
    font-size: 13px;
    color: var(--gray-500);
}

.course-meta span i {
    margin-right: 4px;
    color: var(--primary);
}

/* ========================================
   Features Section
   ======================================== */
.features {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.features-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.features-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.88);
}

.features .container {
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-item {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(200, 149, 108, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

/* ========================================
   Instructors Section
   ======================================== */
.instructors {
    background: var(--bg-cream);
}

.instructors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 640px) {
    .instructors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .instructors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.instructor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
}

.instructor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.instructor-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.instructor-card:hover .instructor-image img {
    transform: scale(1.05);
}

.instructor-social {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.instructor-card:hover .instructor-social {
    opacity: 1;
    transform: translateY(0);
}

.instructor-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-md);
}

.instructor-info {
    padding: 24px;
}

.instructor-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.instructor-role {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.instructor-career {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.8;
}

/* ========================================
   Facility Section
   ======================================== */
.facility {
    background: var(--white);
}

.facility-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .facility-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
    }
    .facility-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.facility-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.facility-item.large {
    aspect-ratio: auto;
}

.facility-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.facility-item:hover img {
    transform: scale(1.06);
}

.facility-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    background: var(--bg-cream);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(26, 26, 26, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 6px;
    width: fit-content;
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200, 149, 108, 0.9), rgba(168, 120, 80, 0.95));
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 16px;
}

.cta-title .accent {
    color: var(--dark);
}

.cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: var(--dark);
    color: var(--white);
}

.cta .btn-primary:hover {
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Notice Section
   ======================================== */
.notice {
    background: var(--white);
    padding: 80px 0;
}

.notice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .notice-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.notice-box {
    background: var(--bg-cream);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.notice-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.notice-header h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.notice-more {
    font-size: 13px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.notice-more:hover {
    color: var(--primary);
}

.notice-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.notice-list li a:hover {
    padding-left: 8px;
}

.notice-list li a:hover .notice-title {
    color: var(--primary-dark);
}

.notice-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    background: var(--gray-100);
    color: var(--gray-500);
    flex-shrink: 0;
}

.notice-badge.new {
    background: var(--primary);
    color: var(--white);
}

.notice-title {
    flex: 1;
    font-size: 14px;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}

.notice-date {
    font-size: 12px;
    color: var(--gray-500);
    flex-shrink: 0;
}

/* Schedule List */
.notice-list.schedule li a {
    gap: 16px;
}

.schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    padding: 8px 10px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    flex-shrink: 0;
}

.schedule-month {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.schedule-day {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--bg-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

.contact-detail a {
    color: var(--primary-dark);
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-sns {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.sns-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.sns-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Map */
.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
}

.map-address-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.88);
    backdrop-filter: blur(10px);
    padding: 14px 20px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.map-address-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    flex-wrap: wrap;
}

.map-address-inner i:first-child {
    color: var(--primary);
}

.map-naver-link {
    margin-left: auto;
    font-size: 12px;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.map-naver-link:hover {
    color: var(--white);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-inner {
    text-align: center;
    color: var(--gray-500);
}

.map-inner i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 12px;
}

.map-inner p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.map-inner small {
    font-size: 12px;
    color: var(--gray-300);
}

/* ========================================
   Inquiry Form (Floating)
   ======================================== */
.inquiry-form {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
}

.inquiry-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(200, 149, 108, 0.4);
    transition: var(--transition);
}

.inquiry-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200, 149, 108, 0.5);
}

.inquiry-toggle i {
    font-size: 18px;
}

.inquiry-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 340px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.inquiry-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.inquiry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--primary);
    color: var(--white);
}

.inquiry-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.inquiry-close {
    color: var(--white);
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inquiry-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--dark);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.form-notice {
    font-size: 11px;
    color: var(--gray-500);
    text-align: center;
    margin-top: 12px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

.footer-logo .logo-main {
    font-size: 28px;
    color: var(--white);
}

.footer-logo .logo-sub {
    font-size: 12px;
    color: var(--primary-light);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-sns {
    display: flex;
    gap: 10px;
}

.footer-sns a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-sns a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 14px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-contact p i {
    margin-right: 8px;
    color: var(--primary);
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

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

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 800;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ========================================
   Scroll Animations
   ======================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 767px) {
    :root {
        --section-padding: 80px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-controls {
        bottom: 30px;
    }

    .hero-scroll {
        display: none;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 32px;
    }

    .about-badge {
        left: auto;
        right: 16px;
        bottom: 16px;
    }

    .about-image-accent {
        display: none;
    }

    .facility-item {
        aspect-ratio: 16/9;
    }

    .inquiry-panel {
        width: calc(100vw - 48px);
        right: -12px;
    }
}

@media (max-width: 480px) {
    .hero-prev, .hero-next {
        width: 40px;
        height: 40px;
    }

    .hero-controls {
        gap: 16px;
    }

    .course-info {
        padding: 20px;
    }
}

/* ========================================
   Lightbox (Gallery)
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--primary);
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* ========================================
   Utility - Smooth Reveal
   ======================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
/* ============================================================
   모바일 notice/schedule 좌우 균형 보정 (2026-05-21)
   ============================================================ */
@media (max-width: 768px) {
    .notice {
        padding-left: 20px;
        padding-right: 20px;
        overflow-x: hidden;
    }
    .notice-grid {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
        grid-template-columns: 1fr !important;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    .notice-box {
        width: 100% !important;
        max-width: 100%;
        margin: 0;
        padding: 20px;
        box-sizing: border-box;
    }
    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
}
