/**
 * PRIME 학원 관리시스템 - 기본 스타일
 */

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

body {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

@media (max-width: 768px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* 헤더 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    color: #0f172a;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(79, 70, 229, 0.12);
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.05);
    transition: background-color 220ms ease,
                box-shadow 220ms ease,
                backdrop-filter 220ms ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

/* PC용 네비게이션 */
.desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .desktop-nav {
        display: block;
        flex: 1;
        margin: 0 2rem;
    }
    
    .desktop-nav ul {
        display: flex;
        list-style: none;
        gap: 2rem;
        margin: 0;
        padding: 0;
        justify-content: center;
        align-items: center;
    }
    
    .desktop-nav li {
        margin: 0;
    }
    
    .desktop-nav a {
        color: #0f172a;
        text-decoration: none;
        transition: color 0.3s;
        font-size: 1.05rem;
        font-weight: 500;
    }
    
    .desktop-nav a:hover {
        color: #4F46E5;
    }
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.logo a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
}

/* 햄버거 메뉴 버튼 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #0f172a;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* 모바일용 네비게이션 (기본) */
.main-nav {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.main-nav a:hover {
    color: #4F46E5;
}

/* 데스크톱에서 모바일 전용 요소 숨기기 */
.mobile-login-item,
.mobile-user-section {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: #0f172a;
    font-weight: 500;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    /* PC용 네비게이션 숨기기 */
    .desktop-nav {
        display: none !important;
    }
    
    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
        z-index: 101;
    }
    
    .logo {
        order: 1;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        z-index: 100;
        text-align: center;
    }
    
    .logo h1 {
        text-align: center;
    }
    
    .header-actions {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-end;
    }
    
    /* 모바일에서 데스크톱 버튼들 숨기기 */
    .header-actions .desktop-login-btn,
    .header-actions .desktop-user-name,
    .header-actions .desktop-user-btn {
        display: none;
    }
    
    /* 헤더 액션 영역 자체를 숨기기 (모든 요소가 숨겨졌을 때) */
    .header-actions:empty {
        display: none;
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(79, 70, 229, 0.08);
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        border-left: 1px solid rgba(79, 70, 229, 0.1);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    /* 모바일 메뉴 안의 사용자 정보 섹션 */
    .mobile-user-section {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-user-name {
        padding: 1rem 20px;
        color: #fff;
        font-weight: 600;
        font-size: 1.1rem;
        border-bottom: 1px solid #2c3e50;
        margin-bottom: 1rem;
    }
    
    .mobile-user-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0 20px 1rem;
    }
    
    .mobile-user-actions .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* 모바일 메뉴 안의 로그인 섹션 */
    .mobile-login-section {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 1rem 20px;
    }
    
    .mobile-login-section .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .main-nav ul {
        flex: 1;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        display: flex;
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid #2c3e50;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 20px;
    }
    
    /* 메뉴 오버레이 */
    .main-nav-overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .main-nav-overlay.active {
        display: block;
    }
}

/* 데스크톱에서 모바일 메뉴 항목 숨기기 */
@media (min-width: 769px) {
    .mobile-login-section,
    .mobile-user-section,
    .mobile-user-name,
    .mobile-user-actions {
        display: none !important;
    }
    
    /* 모바일용 네비게이션 숨기기 */
    .main-nav.mobile-nav {
        display: none !important;
    }
    
    .main-nav-overlay {
        display: none !important;
    }
}

/* 버튼 */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #A78BFA;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 500;
}

.btn:hover {
    background-color: #8B5CF6;
    transform: translateY(-1px);
    color: #fff !important;
}

.btn-primary {
    background-color: #A78BFA;
}

.btn-primary:hover {
    background-color: #8B5CF6;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* 메인 컨텐츠 */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* 히어로 섹션 */
/*.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 8rem 0;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}*/

.hero-section {
    background: #F9FAFB;
    color: #1E293B;
    padding: 8rem 0;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

/* 미세하게 움직이는 배경 수정 효과 */
.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-crystal {
    position: absolute;
}

.hero-crystal::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(79, 70, 229, 0.4) 0%,
        rgba(99, 102, 241, 0.35) 25%,
        rgba(79, 70, 229, 0.5) 50%,
        rgba(49, 46, 129, 0.35) 75%,
        rgba(99, 102, 241, 0.4) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(45deg);
    animation: crystalRotate 20s linear infinite;
}

.hero-crystal::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.3) 0%,
        transparent 70%);
    border-radius: 50%;
}

.hero-crystal1 {
    width: 50px;
    height: 50px;
    top: 10%;
    left: 10%;
    animation: moveCrystal1 12s ease-in-out infinite;
}

.hero-crystal2 {
    width: 42px;
    height: 42px;
    top: 20%;
    right: 45%;
    animation: moveCrystal2 15s ease-in-out infinite;
}

.hero-crystal3 {
    width: 33px;
    height: 33px;
    top: 70%;
    left: 45%;
    animation: moveCrystal3 18s ease-in-out infinite;
}

.hero-crystal4 {
    width: 58px;
    height: 58px;
    bottom: 15%;
    left: 20%;
    animation: moveCrystal4 10s ease-in-out infinite;
}

.hero-crystal5 {
    width: 30px;
    height: 30px;
    top: 5%;
    right: 10%;
    animation: moveCrystal5 20s ease-in-out infinite;
}

.hero-crystal6 {
    width: 47px;
    height: 47px;
    bottom: 25%;
    right: 25%;
    animation: moveCrystal6 14s ease-in-out infinite;
}

@keyframes moveCrystal1 {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, 50px) scale(1.1); }
    50% { transform: translate(50px, 100px) scale(0.9); }
    75% { transform: translate(-40px, 70px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes moveCrystal2 {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-60px, 80px) scale(1.15); }
    50% { transform: translate(-100px, 40px) scale(0.85); }
    75% { transform: translate(-30px, -50px) scale(1.08); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes moveCrystal3 {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(70px, -40px) scale(0.95); }
    50% { transform: translate(40px, 60px) scale(1.2); }
    75% { transform: translate(-50px, 30px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes moveCrystal4 {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -60px) scale(1.2); }
    50% { transform: translate(60px, 80px) scale(0.8); }
    75% { transform: translate(-80px, 50px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes moveCrystal5 {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-50px, 90px) scale(1.25); }
    50% { transform: translate(90px, -30px) scale(0.75); }
    75% { transform: translate(30px, 70px) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes moveCrystal6 {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-70px, -80px) scale(0.9); }
    50% { transform: translate(50px, 100px) scale(1.3); }
    75% { transform: translate(80px, -50px) scale(0.85); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes crystalRotate {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

/* 블러 동그라미 효과 */
.hero-blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.6;
    animation: blurCircleFloat 20s ease-in-out infinite;
}

.hero-blur-circle1 {
    width: 400px;
    height: 400px;
    top: -10%;
    left: -5%;
    background: radial-gradient(circle, 
        rgba(79, 70, 229, 0.8) 0%,
        rgba(99, 102, 241, 0.6) 50%,
        transparent 100%);
    animation: blurCircleFloat1 25s ease-in-out infinite;
}

.hero-blur-circle2 {
    width: 350px;
    height: 350px;
    top: 30%;
    right: -8%;
    background: radial-gradient(circle, 
        rgba(99, 102, 241, 0.75) 0%,
        rgba(79, 70, 229, 0.5) 50%,
        transparent 100%);
    animation: blurCircleFloat2 30s ease-in-out infinite;
}

.hero-blur-circle3 {
    width: 450px;
    height: 450px;
    bottom: -15%;
    left: 20%;
    background: radial-gradient(circle, 
        rgba(49, 46, 129, 0.7) 0%,
        rgba(79, 70, 229, 0.5) 50%,
        transparent 100%);
    animation: blurCircleFloat3 28s ease-in-out infinite;
}

.hero-blur-circle4 {
    width: 380px;
    height: 380px;
    top: 50%;
    right: 15%;
    background: radial-gradient(circle, 
        rgba(99, 102, 241, 0.7) 0%,
        rgba(49, 46, 129, 0.4) 50%,
        transparent 100%);
    animation: blurCircleFloat4 22s ease-in-out infinite;
}

@keyframes blurCircleFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, 80px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

@keyframes blurCircleFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-60px, -40px) scale(1.15);
    }
    66% {
        transform: translate(40px, -70px) scale(0.85);
    }
}

@keyframes blurCircleFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(70px, -50px) scale(1.2);
    }
    66% {
        transform: translate(-50px, 60px) scale(0.9);
    }
}

@keyframes blurCircleFloat4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-40px, 60px) scale(1.1);
    }
    66% {
        transform: translate(50px, -30px) scale(0.95);
    }
}


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

.hero-section .hero-text {
    position: relative;
    z-index: 3;
}

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

.hero-section h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: #0f172a !important;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    animation: heroTitleFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-section p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: #475569 !important;
    font-weight: 400;
    line-height: 1.6;
    animation: heroSubtitleFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-section .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: heroButtonFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

/* 히어로 섹션 애니메이션 */
@keyframes heroTitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroSubtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroButtonFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 스크롤 애니메이션을 위한 클래스 */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 카드 순차 애니메이션 */
.about-card,
.notice-item,
.stats-item,
.timeline-item,
.facility-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-card.visible,
.notice-item.visible,
.stats-item.visible,
.timeline-item.visible,
.facility-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 섹션 헤더 애니메이션 */
.section-header,
.content-section,
.form-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.visible,
.content-section.visible,
.form-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 페이지 히어로 애니메이션 */
.page-hero {
    animation: pageHeroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-hero h1 {
    animation: pageHeroTitleFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-hero-subtitle {
    animation: pageHeroSubtitleFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes pageHeroFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pageHeroTitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageHeroSubtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 호버 효과 강화 */
.about-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        min-height: 100vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .notice-card a {
        padding: 1.25rem 1.5rem;
    }
    
    .notice-card-title {
        font-size: 1.1rem;
    }
    
    .about-cards {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .about-card {
        width: 100% !important;
        max-width: 100%;
        padding: 2.5rem 2rem;
        min-height: 200px;
    }
    
    .about-card h3 {
        font-size: 1.15rem;
    }
    
    .about-card h3::before {
        margin-bottom: 1.5rem !important;
    }
    
    .about-card p {
        padding-left: 0;
        font-size: 0.9rem;
    }
    
    .about-card-icon {
        display: none;
    }
    
    .consultation-form {
        padding: 2rem 1.5rem;
    }
    
    .form-section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .form-section-icon {
        width: 45px;
        height: 45px;
        font-size: 1.75rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
}

/* 강좌 섹션 */
.courses-section {
    padding: 3rem 0;
}

.courses-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.course-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.course-card .subject {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.course-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 1rem 0;
}

/* 학원 소개 */
.about-section {
    padding: 5rem 0;
    background: #fff;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 4rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 3rem;
}

.about-card {
    position: relative;
    padding: 3.5rem 2.5rem;
    min-height: 220px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(79, 70, 229, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #A78BFA 0%, #8B5CF6 50%, #7C3AED 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

/* 카드 1: 방사형 선 패턴 (starburst) */
.about-card:nth-child(1) h3 {
    position: relative;
}

.about-card:nth-child(1) h3::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    margin-bottom: 120px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: 
        repeating-conic-gradient(from 0deg at 50% 50%, 
            transparent 0deg 5deg, 
            rgba(167, 139, 250, 0.9) 5deg 6deg,
            transparent 6deg 10deg);
    border-radius: 50%;
    mask: radial-gradient(circle at center, transparent 30%, black 35%, black 65%, transparent 70%);
    -webkit-mask: radial-gradient(circle at center, transparent 30%, black 35%, black 65%, transparent 70%);
}

.about-card:nth-child(1) h3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* 카드 2: 세모들이 층층히 겹친 패턴 */
.about-card:nth-child(2) h3 {
    position: relative;
}

.about-card:nth-child(2) h3::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    margin-bottom: 120px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: 
        linear-gradient(135deg, rgba(167, 139, 250, 0.9) 0%, transparent 60%),
        linear-gradient(225deg, rgba(139, 92, 246, 0.8) 0%, transparent 60%),
        linear-gradient(315deg, rgba(124, 58, 237, 0.7) 0%, transparent 60%),
        linear-gradient(45deg, rgba(167, 139, 250, 0.6) 0%, transparent 60%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    transform: rotate(0deg);
}

.about-card:nth-child(2) h3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    background: 
        linear-gradient(180deg, rgba(139, 92, 246, 0.7) 0%, transparent 65%),
        linear-gradient(270deg, rgba(124, 58, 237, 0.6) 0%, transparent 65%),
        linear-gradient(0deg, rgba(167, 139, 250, 0.5) 0%, transparent 65%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    transform: rotate(60deg) scale(0.85);
    z-index: -1;
}

/* 카드 3: 대각선 격자와 원이 조합된 복잡한 패턴 */
.about-card:nth-child(3) h3 {
    position: relative;
}

.about-card:nth-child(3) h3::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    margin-bottom: 120px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: 
        radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.4) 0%, transparent 50%),
        repeating-linear-gradient(45deg,
            transparent 0px,
            transparent 6px,
            rgba(167, 139, 250, 0.9) 6px,
            rgba(167, 139, 250, 0.9) 7px,
            transparent 7px,
            transparent 13px),
        repeating-linear-gradient(-45deg,
            transparent 0px,
            transparent 6px,
            rgba(139, 92, 246, 0.8) 6px,
            rgba(139, 92, 246, 0.8) 7px,
            transparent 7px,
            transparent 13px);
    clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
    transform: rotate(0deg);
}

.about-card:nth-child(3) h3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    background: 
        repeating-linear-gradient(45deg,
            transparent 0px,
            transparent 8px,
            rgba(124, 58, 237, 0.5) 8px,
            rgba(124, 58, 237, 0.5) 9px,
            transparent 9px,
            transparent 17px);
    clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
    transform: rotate(22.5deg);
    z-index: -1;
}

/* 카드 4: 잘려진 원들이 층층히 쌓인 원기둥 패턴 */
.about-card:nth-child(4) h3 {
    position: relative;
}

.about-card:nth-child(4) h3::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    margin-bottom: 120px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: 
        radial-gradient(ellipse 100% 35% at 50% 20%, rgba(167, 139, 250, 0.9) 0%, rgba(167, 139, 250, 0.9) 48%, transparent 48%),
        radial-gradient(ellipse 100% 35% at 50% 40%, rgba(139, 92, 246, 0.8) 0%, rgba(139, 92, 246, 0.8) 48%, transparent 48%),
        radial-gradient(ellipse 100% 35% at 50% 60%, rgba(124, 58, 237, 0.7) 0%, rgba(124, 58, 237, 0.7) 48%, transparent 48%),
        radial-gradient(ellipse 100% 35% at 50% 80%, rgba(167, 139, 250, 0.6) 0%, rgba(167, 139, 250, 0.6) 48%, transparent 48%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    transform: rotate(0deg);
}

.about-card:nth-child(4) h3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    background: 
        radial-gradient(ellipse 100% 30% at 50% 15%, rgba(139, 92, 246, 0.5) 0%, rgba(139, 92, 246, 0.5) 45%, transparent 45%),
        radial-gradient(ellipse 100% 30% at 50% 35%, rgba(124, 58, 237, 0.4) 0%, rgba(124, 58, 237, 0.4) 45%, transparent 45%),
        radial-gradient(ellipse 100% 30% at 50% 55%, rgba(167, 139, 250, 0.3) 0%, rgba(167, 139, 250, 0.3) 45%, transparent 45%),
        radial-gradient(ellipse 100% 30% at 50% 75%, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 45%, transparent 45%),
        radial-gradient(ellipse 100% 30% at 50% 95%, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.1) 45%, transparent 45%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    transform: translateX(2px);
    z-index: -1;
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.about-card.visible::before {
    transform: scaleX(1);
}

.about-card:nth-child(1).visible {
    transition-delay: 0.1s;
}

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

.about-card:nth-child(3).visible {
    transition-delay: 0.3s;
}

.about-card:nth-child(4).visible {
    transition-delay: 0.4s;
}

.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.16),
                0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(167, 139, 250, 0.3);
}

.about-card:hover::before {
    height: 4px;
    background: linear-gradient(90deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%);
}

.about-card:nth-child(1):hover h3::before {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.about-card:nth-child(1):hover h3::after {
    transform: rotate(-15deg) scale(1.15);
}

.about-card:nth-child(2):hover h3::before {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.about-card:nth-child(2):hover h3::after {
    transform: rotate(75deg) scale(0.9);
}

.about-card:nth-child(3):hover h3::before {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.about-card:nth-child(3):hover h3::after {
    transform: rotate(37.5deg) scale(1.15);
}

.about-card:nth-child(4):hover h3::before {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.about-card:nth-child(4):hover h3::after {
    transform: translateX(4px) scale(1.05);
}

.about-card-icon {
    display: none;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.3;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-card:hover h3 {
    color: #4F46E5;
    transform: translateX(4px);
}

.about-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 1;
    transform: translateY(0);
    max-height: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 3;
}

.about-card:hover p {
    color: #475569;
    transform: translateX(4px);
}

.about-card-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.about-card-link:hover {
    color: #2980b9;
    transform: translateX(5px);
}

.about-more {
    margin-top: 2rem;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 0 2rem;
    }
}

/* 공지사항 */
.notices-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.notice-cards {
    max-width: 900px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.notice-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.notice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.notice-card a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: inherit;
}

.notice-card-content {
    flex: 1;
}

.notice-card-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.notice-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.notice-author {
    position: relative;
    padding-right: 1rem;
}

.notice-author::after {
    content: '•';
    position: absolute;
    right: 0.3rem;
}

.notice-card-arrow {
    font-size: 1.5rem;
    color: #3498db;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.notice-card:hover .notice-card-arrow {
    transform: translateX(5px);
}

.notice-more {
    margin-top: 2rem;
}

.btn-outline {
    background-color: #A78BFA;
    border: 2px solid #A78BFA;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #8B5CF6;
    border-color: #8B5CF6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* 푸터 */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

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

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

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
}

/* 로그인 페이지 */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-box h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-box h2 {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.login-links {
    text-align: center;
    margin-top: 1rem;
}

.login-links a {
    color: #3498db;
    text-decoration: none;
}

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

/* 페이지 히어로 */
.page-hero {
    position: relative;
    background: #ffffff;
    color: #0f172a;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    overflow: hidden;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.page-hero-subtitle {
    font-size: 1.3rem;
    color: #475569;
}

/* 컨텐츠 섹션 */
.content-section {
    margin: 4rem 0;
    padding: 3rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.content-section:first-of-type {
    margin-top: 0;
}

.section-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.content-section h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
}

.content-text {
    line-height: 1.9;
    color: #444;
}

.content-text .lead {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

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

.feature-list li {
    padding: 1rem 0 1rem 2.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-list li strong {
    color: #2c3e50;
}

/* 타임라인 */
.timeline {
    margin: 2.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3498db, #2980b9);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #3498db;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #3498db;
}

.timeline-year {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.timeline-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: #555;
    margin: 0;
}

/* 시설 그리드 */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.facility-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.facility-item:hover {
    transform: translateY(-5px);
    border-color: #3498db;
    box-shadow: 0 8px 16px rgba(52, 152, 219, 0.15);
}

.facility-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.facility-item h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.facility-item p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* 강사진 소개 */
.teacher-intro {
    margin-top: 2rem;
}

.teacher-intro h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .content-section {
        padding: 1.5rem 1rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        border-radius: 8px;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .section-icon {
        font-size: 3rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .facility-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* 필터 박스 */
.filter-box {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.filter-box form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-box select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 상세 테이블 */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detail-table th {
    width: 150px;
    padding: 1.25rem 1rem;
    text-align: left;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #dee2e6;
}

.detail-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.detail-table tr:last-child th,
.detail-table tr:last-child td {
    border-bottom: none;
}

/* 공지사항 상세 */
.notice-detail-container {
    padding-top: 2rem;
}

.notice-detail {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .notice-detail-container {
        padding-top: 1rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        max-width: 100%;
    }
    
    .notice-detail {
        margin: 1rem 0;
        padding: 1.5rem 1rem;
        border-radius: 4px;
    }
}

.notice-detail h1 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.notice-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.notice-meta span {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .notice-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .notice-meta span {
        white-space: normal;
        padding: 0.25rem 0;
    }
}

.notice-content {
    line-height: 1.8;
    white-space: normal;
    word-wrap: break-word;
}

.notice-content br {
    display: block;
    margin: 0.5em 0;
    content: "";
}

.notice-list .notice-category {
    color: #3498db;
    margin-left: 0.5rem;
}

.notice-card .notice-category {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.notice-views {
    color: #95a5a6;
    font-size: 0.85rem;
}

.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* 상담 신청 폼 */
.consultation-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.consultation-form {
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-section-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.form-section h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.required {
    color: #e74c3c;
    font-weight: 600;
}

.form-help-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #7f8c8d;
    line-height: 1.5;
}

/* 폼 스타일 */
.form-container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.form-container h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    color: #2c3e50;
}

.form-container h2:first-of-type {
    margin-top: 0;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    appearance: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid #f8f9fa;
    justify-content: center;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-primary.btn-lg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary.btn-lg:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.btn-outline.btn-lg {
    background-color: #A78BFA;
    border: 2px solid #A78BFA;
    color: #fff;
}

.btn-outline.btn-lg:hover {
    background-color: #8B5CF6;
    border-color: #8B5CF6;
    color: #fff;
}

/* 페이지네이션 */
.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin: 3rem auto 2rem auto !important;
    flex-wrap: wrap;
    padding: 1.5rem 0 !important;
    width: 100%;
    max-width: 100%;
    clear: both;
}

.page-link {
    min-width: 44px !important;
    height: 44px !important;
    padding: 0.6rem 0.9rem !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #555 !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    background-color: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    margin: 0 !important;
    white-space: nowrap;
}

.page-link:hover {
    background-color: #f5f5f5 !important;
    border-color: #3498db !important;
    color: #3498db !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2) !important;
}

.page-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border-color: #667eea !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
    transform: translateY(-1px) !important;
}

.page-link.active:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    border-color: #764ba2 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5) !important;
}

/* 첫/마지막 페이지 버튼 스타일 */
.page-link.first-page,
.page-link.last-page {
    font-weight: 600 !important;
    padding: 0.6rem 1rem !important;
}

.page-link.prev-page,
.page-link.next-page {
    font-weight: 600 !important;
    padding: 0.6rem 1rem !important;
}

/* 테이블 다음 페이지네이션 여백 추가 */
.data-table + .pagination,
table + .pagination {
    margin-top: 3rem !important;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .pagination {
        gap: 0.5rem !important;
        margin: 2.5rem auto 1.5rem auto !important;
        padding: 1rem 0 !important;
    }
    
    .page-link {
        min-width: 40px !important;
        height: 40px !important;
        padding: 0.5rem 0.7rem !important;
        font-size: 0.9rem !important;
    }
    
    .page-link.first-page,
    .page-link.last-page,
    .page-link.prev-page,
    .page-link.next-page {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.85rem !important;
    }
}

/* 마이페이지 */
.main-content h1 {
    margin-bottom: 2.5rem;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    padding-top: 2rem;
}

.mypage-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* 테이블 래퍼 (모바일 스크롤용) */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .table-wrapper {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .table-wrapper .data-table {
        min-width: 600px;
        width: 100%;
    }
    
    /* 청구서 목록 테이블은 더 넓게 (7개 컬럼) */
    .invoices-table-wrapper .invoices-table {
        min-width: 800px;
    }
    
    /* content-section이 넘치지 않도록 */
    .content-section {
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* 유틸리티 */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===== Header Glass Effect for Home Hero ===== */

/* 기본 헤더 */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 220ms ease,
              box-shadow 220ms ease,
              backdrop-filter 220ms ease;
}

/* 홈 + 히어로 구간 (초기 상태) */
body.is-home .site-header{
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

/* 스크롤 이후 상태 */
body.is-home .site-header.scrolled{
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(15,23,42,0.08);
}

/* 헤더 텍스트 컬러 조정 */
body.is-home .site-header a,
body.is-home .site-header .user-name{
  color: #0f172a;
}

/* 헤더 버튼은 흰색 글씨 유지 */
body.is-home .site-header .btn {
  color: #fff !important;
}

/* 히어로 위에서는 로고/메뉴 살짝 강조 */
body.is-home .site-header:not(.scrolled){
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

/* ===== End Header Glass Effect ===== */

/* 출석 달력 스타일 */
.attendance-calendar {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-day {
    aspect-ratio: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    min-height: 60px;
}

.calendar-day[data-status="present"] {
    background-color: #90EE90 !important; /* 연두색 */
}

.calendar-day[data-status="absent"] {
    background-color: #FF6B6B !important; /* 빨간색 */
}

.calendar-day[data-status="late"] {
    background-color: #FFD700 !important; /* 노란색 */
}

.calendar-day[data-status="leave"] {
    background-color: #FFA500 !important; /* 주황색 */
}

.calendar-day[data-status="unprocessed"] {
    background-color: #FF6B6B !important; /* 미처리도 빨간색 */
}

/* 오늘 날짜 강조 */
.calendar-day.today {
    border-width: 2px !important;
    border-color: #3498db !important;
}

.calendar-day.today > div:first-child {
    font-weight: 700;
    color: #3498db;
}

/* 달력 헤더와 바디 스타일 */
.calendar-header {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.calendar-body {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 0.5rem !important;
}

.calendar-empty {
    aspect-ratio: 1;
    padding: 0.5rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f9f9f9;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .attendance-calendar {
        padding: 0.5rem !important;
        border-radius: 6px !important;
    }
    
    .calendar-header {
        gap: 0.25rem !important;
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .calendar-body {
        gap: 0.25rem !important;
    }
    
    .calendar-day {
        padding: 0.25rem !important;
        min-height: 40px !important;
        font-size: 0.8rem !important;
    }
    
    .calendar-day > div:first-child {
        font-size: 0.85rem !important;
    }
    
    .calendar-day > div:last-child {
        font-size: 0.65rem !important;
        margin-top: 0.1rem !important;
    }
}

@media (max-width: 480px) {
    .attendance-calendar {
        padding: 0.4rem !important;
    }
    
    .calendar-header {
        gap: 0.15rem !important;
        font-size: 0.75rem !important;
    }
    
    .calendar-body {
        gap: 0.15rem !important;
    }
    
    .calendar-day {
        padding: 0.2rem !important;
        min-height: 35px !important;
        font-size: 0.75rem !important;
    }
    
    .calendar-day > div:first-child {
        font-size: 0.8rem !important;
    }
    
    .calendar-day > div:last-child {
        font-size: 0.6rem !important;
        margin-top: 0.05rem !important;
    }
    
    .calendar-empty {
        padding: 0.2rem !important;
        min-height: 35px !important;
    }
}

