/* 폰트 import */
@import url('https://cdn.jsdelivr.net/npm/maruburiregular@1.0.0/MaruBuri.css');

/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: #1a365d;
    color: #fff;
    border-color: #1a365d;
}

.btn-primary:hover {
    background-color: #2c5282;
    border-color: #2c5282;
}

.btn-outline {
    background-color: transparent;
    color: #1a365d;
    border-color: #1a365d;
}

.btn-outline:hover {
    background-color: #1a365d;
    color: #fff;
}

.btn-outline-white {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline-white:hover {
    background-color: #fff;
    color: #1a365d;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* 헤더 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    min-height: 70px;
}

/* 로고 */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a365d;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    width: 56px;  /* 40px * 1.4 */
    height: 56px; /* 40px * 1.4 */
    margin-right: 12px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-family: 'MaruBuri', 'Noto Sans KR', sans-serif;
    color: #1a365d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-line1,
.logo-line2 {
    display: flex;
    align-items: baseline;
}

.logo-big {
    font-size: 18px;
    font-weight: 700;
}

.logo-small {
    font-size: 10px;
    font-weight: 400;
    margin-right: 2px;
}

/* 네비게이션 */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1a365d;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #1a365d;
}

/* 인증 버튼 */
.auth-buttons {
    display: flex;
    gap: 12px;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #1a365d;
    margin: 3px 0;
    transition: 0.3s;
}

/* 히어로 섹션 */
/* 배너 슬라이드쇼 */
.hero-banner {
    position: relative;
    height: 50vh;
    min-height: 350px;
    overflow: hidden;
    margin-top: 70px; /* 헤더 높이만큼 마진 추가 */
}

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

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 54, 93, 0.4);
    z-index: 1;
}

/* 배너 콘텐츠 레이아웃 */
.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.banner-text {
    color: white;
    max-width: 80%;
    position: absolute;
    top: 30%; /* 상단으로부터 30% 위치 */
    left: 120px; /* 왼쪽으로부터 3배 띄움 (40px * 3 = 120px) */
}

.banner-title-kr {
    font-family: 'MaruBuri', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-title-en {
    font-family: 'MaruBuri', sans-serif;
    font-size: 20px;
    color: white;
    margin: 0 0 20px 0;
    font-weight: 400;
}

.banner-slogan {
    font-family: 'MaruBuri', sans-serif;
    font-size: 21px;
    color: rgb(136, 255, 230);
    margin: 21px 0 0 0; /* 슬로건 높이만큼 위쪽 마진 추가 */
    font-weight: 400;
    line-height: 1.4;
}

.banner-logo {
    position: absolute;
    top: 120px; /* 상단으로부터 3배 띄움 (40px * 3 = 120px) */
    right: 120px; /* 우측으로부터 3배 띄움 (40px * 3 = 120px) */
    display: flex;
    align-items: flex-start;
}

.banner-logo-img {
    width: 180px; /* 현재의 1.5배 (120px * 1.5 = 180px) */
    height: 180px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 배너 인디케이터 */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #fff;
}

/* 메인 카드 섹션 */
.main-cards {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 25px 25px 15px;
    border-bottom: 1px solid #eee;
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: #1a365d;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a365d;
}

.card-content {
    padding: 20px 25px;
}

.card-footer {
    padding: 15px 25px 25px;
}

.more-link {
    color: #1a365d;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #2c5282;
}

.more-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.more-link:hover::after {
    transform: translateX(4px);
}

/* 공지사항 리스트 */
.notice-list {
    list-style: none;
}

.notice-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.notice-list a {
    color: #333;
    text-decoration: none;
    flex: 1;
    margin-right: 15px;
    line-height: 1.4;
}

.notice-list a:hover {
    color: #1a365d;
}

.notice-list .date {
    color: #999;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* 이벤트 리스트 */
.event-list {
    list-style: none;
}

.event-list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.event-date {
    width: 60px;
    height: 60px;
    background-color: #1a365d;
    color: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.event-date .month {
    font-size: 0.8rem;
    font-weight: 500;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.event-info p {
    font-size: 0.9rem;
    color: #666;
}

/* 혜택 리스트 */
.benefit-list {
    list-style: none;
}

.benefit-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.benefit-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

/* 갤러리 섹션 */
.gallery {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 50px;
    color: #1a365d;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    height: 400px;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.placeholder-content h4 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* 갤러리 이미지 스타일 */
.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26,54,93,0.4), rgba(44,82,130,0.4));
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.gallery-info-overlay {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.gallery-date-badge {
    background: rgba(255,255,255,0.9);
    color: #1a365d;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.gallery-title-overlay {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.gallery-count-overlay {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* 플레이스홀더 내 날짜 배지 */
.placeholder-content .gallery-date-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

/* 로딩 스피너 */
.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.placeholder-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* 파트너 섹션 */
.partners {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.partner-logo {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.partner-placeholder {
    color: #999;
    font-weight: 500;
}

/* 푸터 */
.footer {
    background-color: #1a365d;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #d4af37;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 38.4px; /* 32px * 1.2 */
    height: 38.4px; /* 32px * 1.2 */
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-logo-text {
    font-family: 'MaruBuri', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
}

.footer-description {
    color: #b3c6d9;
    line-height: 1.6;
}

.footer-contact,
.footer-links {
    list-style: none;
}

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

.footer-contact li {
    color: #b3c6d9;
}

.footer-links a {
    color: #b3c6d9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d4af37;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2c5282;
    color: #b3c6d9;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* 헤더 모바일 */
    .logo {
        display: none; /* 모바일에서 헤더 로고 숨김 */
    }
    
    .nav {
        display: none;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* 배너 모바일 */
    .hero-banner {
        height: 35vh;
        min-height: 280px;
        margin-top: 70px; /* 모바일에서도 헤더 높이만큼 마진 유지 */
    }
    
    .banner-content {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .banner-text {
        max-width: 100%;
        position: absolute;
        top: 30%; /* 모바일에서도 상단으로부터 30% 위치 */
        left: 60px; /* 모바일에서 왼쪽으로부터 3배 띄움 (20px * 3 = 60px) */
        margin-bottom: 20px;
    }
    
    .banner-title-kr {
        font-size: 28px;
    }
    
    .banner-title-en {
        font-size: 14px;
    }
    
    .banner-slogan {
        font-size: 16px;
        margin: 16px 0 0 0; /* 모바일에서 슬로건 높이만큼 마진 */
    }
    
    .banner-logo {
        display: none; /* 모바일에서 로고 숨김 */
    }
    
    .banner-logo-img {
        width: 120px; /* 모바일에서 현재의 1.5배 (80px * 1.5 = 120px) */
        height: 120px;
    }
    
    /* 카드 모바일 */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-header {
        padding: 20px 20px 10px;
    }
    
    .card-content {
        padding: 15px 20px;
    }
    
    .card-footer {
        padding: 10px 20px 20px;
    }
    
    /* 섹션 패딩 모바일 */
    .main-cards,
    .gallery,
    .partners {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    /* 갤러리 모바일 */
    .gallery-slide {
        height: 250px;
    }
    
    .placeholder-content h4 {
        font-size: 1.3rem;
    }
    
    .placeholder-content p {
        font-size: 0.9rem;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* 푸터 모바일 */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .card-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
