/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-user-drag: none !important;
    -khtml-user-select: none !important;
    -o-user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
    -moz-user-drag: none !important;
    -ms-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* 기본 폰트 및 색상 */
:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* 텍스트 선택 방지 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
    -moz-user-drag: none !important;
    -ms-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* 링크와 버튼은 선택 가능하도록 예외 처리 */
a, button, input, textarea, select {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    -webkit-touch-callout: default !important;
    -webkit-user-drag: auto !important;
    -moz-user-drag: auto !important;
    -ms-user-drag: auto !important;
    -o-user-drag: auto !important;
    user-drag: auto !important;
}

/* 이미지 드래그 방지 */
img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* 텍스트 선택 방지 강화 */
::selection {
    background: transparent !important;
    color: inherit !important;
}

::-moz-selection {
    background: transparent !important;
    color: inherit !important;
}

/* 모든 텍스트 요소에 추가 보안 */
h1, h2, h3, h4, h5, h6, p, span, div, li, td, th {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
    -moz-user-drag: none !important;
    -ms-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 네비게이션 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 2rem;
}

.nav-logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 드롭다운 메뉴 스타일 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    transform: none;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    min-width: 160px;
    padding: 0.5rem;
    z-index: 1001;
    border: 1px solid var(--border-color);
    margin-top: 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInUp 0.3s ease forwards;
}

.dropdown-menu li {
    margin: 0;
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.dropdown-menu a::after {
    display: none; /* 드롭다운 링크에는 밑줄 효과 제거 */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* 히어로 섹션 */
.hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px; /* 네비게이션 높이만큼 여백 추가 */
}

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

.hero-image {
    width: 100%;
    height: 100%;
    background-image: url('images/hero-class.jpg'); /* CSS에서 직접 이미지 지정 */
    background-color: #1e40af; /* 이미지 로드 실패 시 폴백 색상 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 64, 175, 0.25);
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    opacity: 1 !important; /* 초기에는 보이도록 설정 */
    transform: translateY(0) !important; /* 초기 위치 설정 */
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-color);
    border: 2px solid rgba(30, 64, 175, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(30, 64, 175, 0.2);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

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

/* 섹션 공통 스타일 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e3a8a;
    background: none;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 학원소개 섹션 특별 스타일 */
.about .section-header h2 {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}

.about .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

/* 소개 섹션 */
.about {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 17.32v34.64L30 69.28 0 52V17.32z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='60' height='52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 17.32v34.64L30 69.28 0 52V17.32z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #1e3a8a, #1e40af);
    background-size: 60px 52px, 60px 52px, 100% 100%;
    background-position: 0 0, 30px 26px, 0 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

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

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 서비스 섹션 */
.services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* 교육과정 카드 세련되게 */
.service-card {
    background: linear-gradient(135deg, #f8fafc 60%, #e0e7ff 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(30,58,138,0.08), 0 1.5px 6px rgba(30,58,138,0.06);
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s;
    border: none;
    position: relative;
}
.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 32px rgba(30,58,138,0.13), 0 2px 8px rgba(30,58,138,0.09);
}
.service-image {
    background: none !important;
}
.service-content {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
}
.service-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.7rem;
}
.service-content p {
    color: #334155;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

/* 수업 과정 특징 리스트 스타일 */
.course-features {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.course-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.course-features li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* 강사진 섹션 */
.teachers {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.teacher-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.teacher-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher-card:hover .teacher-photo {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}




.teacher-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.teacher-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.teacher-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* 포트폴리오 섹션 */
.portfolio {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

/* 갤러리(포트폴리오) 세련되게 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(30,58,138,0.10);
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s;
    background: #fff;
}
.portfolio-item:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 12px 32px rgba(30,58,138,0.13), 0 2px 8px rgba(30,58,138,0.09);
    z-index: 2;
}
.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: none;
    display: block;
    transition: filter 0.3s, opacity 0.3s;
}
.portfolio-item:hover .portfolio-image {
    filter: brightness(1.08) saturate(1.1);
    opacity: 0.95;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    opacity: 0.9;
}

/* 연락처 섹션 */
.contact {
    padding: 6rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

/* 카카오톡 상담 링크 스타일 */
.kakao-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #3C1E1E !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    background: #FEE500 !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(254, 229, 0, 0.3) !important;
}

.kakao-link:hover {
    background: #3C1E1E !important;
    color: #FEE500 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.3) !important;
}

.kakao-link i {
    font-size: 1.5rem !important;
    margin: 0 !important;
    width: auto !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    display: inline-block !important;
}

.kakao-link span {
    color: inherit !important;
    font-weight: inherit !important;
}

/* Font Awesome 로드 실패 시 대체 스타일 */
.kakao-link i::before {
    content: "💬";
    font-family: inherit;
}

.kakao-link i.fa-solid.fa-comments::before {
    content: "\f086";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}



/* Font Awesome 로드 실패 시 대체 아이콘들 */
.fa-solid.fa-comments::before {
    content: "\f086" !important;
}

/* 카카오톡 링크 강제 스타일 */
a.kakao-link {
    background-color: #FEE500 !important;
    color: #3C1E1E !important;
    border: 2px solid #FEE500 !important;
}

a.kakao-link:hover {
    background-color: #3C1E1E !important;
    color: #FEE500 !important;
    border-color: #3C1E1E !important;
}

/* 아이콘 강제 표시 */
.fa-solid.fa-comments {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-style: normal !important;
    background: none !important;
    border-radius: 0 !important;
}

.fa-solid.fa-comments::before {
    content: "\f086" !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    background: none !important;
    border-radius: 0 !important;
}

.fa-solid.fa-user-graduate::before {
    content: "\f51d" !important;
}

.fa-solid.fa-chalkboard-user::before {
    content: "\f51c" !important;
}

.fa-solid.fa-book-open-reader::before {
    content: "\f5da" !important;
}

.fa-solid.fa-graduation-cap::before {
    content: "\f19d" !important;
}

.fa-solid.fa-book-open::before {
    content: "\f518" !important;
}

.fa-solid.fa-chart-line::before {
    content: "\f201" !important;
}

.fa-solid.fa-arrow-left::before {
    content: "\f060" !important;
}

.fa-solid.fa-check::before {
    content: "\f00c" !important;
}

.fa-solid.fa-star::before {
    content: "\f005" !important;
}

.fa-solid.fa-brain::before {
    content: "\f5dc" !important;
}

.fa-solid.fa-lightbulb::before {
    content: "\f0eb" !important;
}

.fa-solid.fa-clipboard-check::before {
    content: "\f46c" !important;
}

.fa-solid.fa-cogs::before {
    content: "\f085" !important;
}

.fa-solid.fa-eye::before {
    content: "\f06e" !important;
}

.fa-solid.fa-chart-bar::before {
    content: "\f080" !important;
}

.fa-solid.fa-search::before {
    content: "\f002" !important;
}

.fa-solid.fa-pen-fancy::before {
    content: "\f5ac" !important;
}

.fa-solid.fa-phone::before {
    content: "\f095" !important;
}

.fa-solid.fa-map-marker-alt::before {
    content: "\f3c5" !important;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group select {
    background-color: white;
    cursor: pointer;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 푸터 세련된 디자인 */
.footer {
    background: linear-gradient(135deg, #1e3a8a 60%, #1e40af 100%);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 17.32v34.64L30 69.28 0 52V17.32z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='60' height='52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 17.32v34.64L30 69.28 0 52V17.32z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #1e3a8a 60%, #1e40af 100%);
    background-size: 60px 52px, 60px 52px, 100% 100%;
    background-position: 0 0, 30px 26px, 0 0;
    color: #f3f4f6;
    padding: 4rem 0 2rem;
    font-size: 1rem;
}
/* 푸터 3단 정렬 개선 */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    justify-items: center;
}
.footer-section {
    margin-bottom: 1.5rem;
    text-align: center;
}
.footer-section h3,
.footer-section p,
.footer-section ul,
.footer-section ul li {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.footer-section ul {
    display: inline-block;
    padding: 0;
}
.footer-section ul li {
    display: block;
}
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-logo i {
    font-size: 2rem;
}
.footer-desc {
    color: #e0e7ff;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}
.footer-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #a5b4fc;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #e0e7ff;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-section ul li a {
    color: #e0e7ff;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-section ul li a:hover {
    color: #fbbf24;
}
.footer-contact ul li i {
    color: #fbbf24;
    font-size: 1.1rem;
}
.footer-social .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
.footer-social .social-links a {
    color: #e0e7ff;
    font-size: 1.5rem;
    transition: color 0.2s, transform 0.2s;
}
.footer-social .social-links a:hover {
    color: #fbbf24;
    transform: translateY(-3px) scale(1.15);
}
.footer-bottom {
    text-align: center;
    color: #c7d2fe;
    font-size: 0.98rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-section {
        margin-bottom: 2rem;
    }
}

/* 모바일 메뉴 */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.nav-menu.active li {
    margin: 1rem 0;
}

/* 모바일에서 드롭다운 처리 */
@media (max-width: 768px) {
    .nav-menu.active {
        max-height: 80vh;
        overflow-y: auto;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
        background: transparent;
        display: none; /* JS로 토글하거나 항상 보이게 하거나 */
        margin-top: 0;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* 모바일에서 드롭다운 항상 펼침 또는 클릭 시 펼침 */
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

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

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

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

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid,
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card,
.service-card,
.portfolio-item {
    animation: fadeInUp 0.6s ease forwards;
}

.about-card:nth-child(2) {
    animation-delay: 0.2s;
}

.about-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* 스크롤 스무스 */
html {
    scroll-behavior: smooth;
} 

/* 강사진 섹션 세련되게 */
.teachers {
    padding: 6rem 0;
    background: #ffffff;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.teacher-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(30,58,138,0.08), 0 1.5px 6px rgba(30,58,138,0.06);
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    text-align: center;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: visible;
}
.teacher-card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 12px 32px rgba(30,58,138,0.13), 0 2px 8px rgba(30,58,138,0.09);
    z-index: 2;
}
.teacher-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 1.5rem;
    border: 4px solid #1e3a8a;
    box-shadow: 0 4px 16px rgba(30,58,138,0.13);
    transition: box-shadow 0.3s, transform 0.3s;
    background-color: #fff;
}
.teacher-card:hover .teacher-photo {
    box-shadow: 0 8px 32px rgba(30,58,138,0.18);
    transform: scale(1.07) translateY(-4px);
    border-color: #1e40af;
}
.teacher-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}
.teacher-role {
    font-size: 1.02rem;
    color: #475569;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.teacher-desc {
    font-size: 0.98rem;
    color: #334155;
    opacity: 0.88;
    line-height: 1.6;
    margin-bottom: 0;
} 

/* 학교별 내신 출제경향 섹션 */
.school-trends {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trend-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(30,58,138,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.trend-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(30,58,138,0.12);
}

.trend-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.trend-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.trend-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.trend-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trend-features li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.trend-features li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* 학교별 내신 출제경향 카드 링크 스타일 */
.trend-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.trend-card:hover .trend-link {
    color: var(--primary-color);
}

.trend-card:hover .trend-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 학교별 포스트 페이지 스타일 */
.post-header {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.back-button {
    margin-bottom: 2rem;
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s ease;
}

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

.post-title h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.post-title p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.school-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
}

.post-content {
    padding: 4rem 0;
    background: var(--light-bg);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-section {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.strategy-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.strategy-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.strategy-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.strategy-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.case-studies {
    display: grid;
    gap: 1rem;
}

.case-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.case-header i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.case-header h4 {
    color: var(--text-primary);
    margin: 0;
}

.case-card p {
    color: var(--text-secondary);
    margin: 0;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 2rem;
}

.sidebar-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.sidebar-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-list i {
    color: var(--success-color);
    font-size: 1.1rem;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

/* 지도 사진 테두리 */
.contact-map img {
    border: 2px solid #1e40af;
} 

/* 히어로 애니메이션 (단순화) */
.hero-content {
    opacity: 1 !important;
    transform: none !important;
}
.hero-content.animated {
    opacity: 1 !important;
    transform: none !important;
}
.hero-title, .hero-subtitle {
    opacity: 1 !important;
    transform: none !important;
}
.hero-content.animated .hero-title {
    opacity: 1 !important;
    transform: none !important;
}
.hero-content.animated .hero-subtitle {
    opacity: 1 !important;
    transform: none !important;
}
.scroll-indicator {
    opacity: 1 !important;
    transform: none !important;
}
.hero-content.animated ~ .scroll-indicator {
    opacity: 1 !important;
    transform: none !important;
}
/* 패럴럭스 효과 제거 */
.hero-image.parallax {
    /* transition: background-position 0.3s cubic-bezier(.4,2,.6,1); */
} 

.hero-content {
    text-align: center;
}
.hero-title, .hero-subtitle {
    text-align: center;
}
@media (max-width: 768px) {
    .hero-content, .hero-title, .hero-subtitle {
        text-align: center;
    }
} 

.footer-section.footer-brand {
    text-align: left;
}
.footer-section.footer-brand .footer-desc {
    text-align: left;
}