/* 
   향상 예술 중학교 홈페이지 스타일시트
   주요 색상: 그레이 (#333333, #666666, #999999, #f5f5f5) & 레드 (#dc143c, #c81333)
*/

/* ===== 전역 스타일 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 색상 변수 */
    --primary-red: #dc143c;
    --dark-red: #c81333;
    --light-red: #ff1744;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #999999;
    --bg-gray: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
    
    /* 타이포그래피 */
    --font-main: 'Noto Sans KR', sans-serif;
    
    /* 간격 */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    
    /* 애니메이션 */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== 헤더 & 네비게이션 ===== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.logo i {
    color: var(--primary-red);
    font-size: 2rem;
}

.school-name {
    color: var(--dark-gray);
}

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

.nav-link {
    text-decoration: none;
    color: var(--medium-gray);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
    background: rgba(220, 20, 60, 0.05);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
}

/* ===== 히어로 섹션 ===== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23dc143c" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(220, 20, 60, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

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

/* ===== 섹션 공통 스타일 ===== */
.section {
    padding: var(--section-padding);
}

.section-gray {
    background: var(--bg-gray);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-red);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-top: 20px;
}

/* ===== 학교 소개 섹션 ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--medium-gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 25px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.feature-item h4 {
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.15);
}

.stat-icon i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--medium-gray);
    font-size: 1rem;
}

/* ===== 학과 안내 섹션 ===== */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.department-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.15);
    border-top-color: var(--primary-red);
}

.department-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.department-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.department-card h3 {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.department-card > p {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.department-features {
    list-style: none;
    margin-top: 20px;
}

.department-features li {
    padding: 10px 0;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.department-features li i {
    color: var(--primary-red);
}

/* ===== 입학 안내 섹션 ===== */
.admissions-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.admission-process h3 {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 40px;
    text-align: center;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--bg-gray);
    z-index: 0;
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.3);
}

.timeline-content h4 {
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.admission-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-box {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.info-box h3 {
    color: var(--dark-gray);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box h3 i {
    color: var(--primary-red);
}

.info-box ul {
    list-style: none;
}

.info-box ul li {
    padding: 8px 0;
    color: var(--medium-gray);
    border-bottom: 1px solid var(--bg-gray);
}

.info-box ul li:last-child {
    border-bottom: none;
}

/* ===== 갤러리 섹션 ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.placeholder-image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item:hover .placeholder-image {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== 공지사항 섹션 ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.news-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-red);
    transform: translateX(5px);
}

.news-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--bg-gray);
    color: var(--medium-gray);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.news-badge.important {
    background: var(--primary-red);
    color: var(--white);
}

.news-item h4 {
    margin-bottom: 10px;
}

.news-item h4 a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--transition);
}

.news-item h4 a:hover {
    color: var(--primary-red);
}

.news-item > p {
    color: var(--medium-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    gap: 20px;
    color: var(--light-gray);
    font-size: 0.9rem;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== 오시는 길 섹션 ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contact-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--white);
    font-size: 1.3rem;
}

.contact-text h4 {
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.contact-text p {
    color: var(--medium-gray);
    line-height: 1.6;
}

.map-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, var(--bg-gray) 0%, #e0e0e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
}

.map-placeholder i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.map-placeholder p {
    font-size: 1.3rem;
    font-weight: 600;
}

.map-placeholder small {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* ===== 푸터 ===== */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--light-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--medium-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-section ul li i {
    color: var(--primary-red);
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--medium-gray);
    color: var(--light-gray);
}

.footer-bottom p {
    margin: 5px 0;
}

/* ===== 맨 위로 버튼 ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top:hover {
    background: var(--dark-red);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.5);
}

.scroll-to-top.show {
    display: flex;
}

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

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

/* ===== 반응형 디자인 ===== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* 네비게이션 */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        gap: 10px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    /* 히어로 */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    /* 섹션 */
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* 학교 소개 */
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    /* 학과 안내 */
    .departments-grid {
        grid-template-columns: 1fr;
    }
    
    /* 입학 안내 */
    .process-timeline {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .admission-info {
        grid-template-columns: 1fr;
    }
    
    /* 갤러리 */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* 푸터 */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* 맨 위로 버튼 */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-card {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}