:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #004094;
    /* Yewon Blue */
    --secondary-accent: #c4a000;
    /* Gold */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 64, 148, 0.1);
    --font-primary: 'Noto Sans KR', 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Video Background - Hero Section Only */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 105%;
    height: 105%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: brightness(0.9);
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 0.5px, transparent 0.5px),
        rgba(255, 255, 255, 0.1);
    background-size: 8px 8px;
    /* 패턴 밀도를 낮추어 노이즈 감소 */
    z-index: 1;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    /* Allow clicks to pass through */
}

#content-wrapper {
    position: relative;
    z-index: 1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: #00264d;
    /* 불투명한 남청색 */
    /* 녹색 광채 패턴 및 물결무늬 배경 조합 */
    background-image:
        radial-gradient(circle at 10% 50%, rgba(0, 255, 127, 0.1), transparent 30%),
        radial-gradient(circle at 90% 50%, rgba(50, 205, 50, 0.1), transparent 30%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,192L48,197.3C96,203,192,213,288,202.7C384,192,480,160,576,144C672,128,768,128,864,154.7C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,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'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

/* Scrolled Header Style */
header.header-scrolled {
    background: #ffffff;
    background-image: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.header-scrolled .logo-img {
    height: 42px;
    /* 48px에서 42px로 하향 조정하여 시각적 균형 맞춤 */
}

header.header-scrolled .logo-text {
    color: #1a1a1a;
}

header.header-scrolled .logo-divider {
    background: rgba(0, 0, 0, 0.1);
}

header.header-scrolled .nav-links>li>a {
    color: #333333;
}

header.header-scrolled .nav-links>li>a:hover {
    color: var(--accent-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    /* 공간 최적 분배 */
    align-items: center;
    padding: 0 5%;
    /* 위아래 패딩 제거하여 일관성 유지 */
    height: 80px;
    /* 헤더 높이 고정 */
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

nav {
    margin-left: 40px;
    /* 로고와 메뉴 사이 간격 추가 */
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 35px;
    /* 크기를 48px에서 35px로 축소 */
    width: auto;
    display: block;
    object-fit: contain;
    /* 이미지 소스 변경 시 크기 유지 보장 */
}

.logo-text {
    font-family: 'Noto Sans KR', sans-serif;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-left: 8px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 18px;
    line-height: 1;
    opacity: 0.95;
    user-select: none;
}





.nav-links li a.gseek-highlight {
    padding: 0 10px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.gseek-logo {
    height: 32px;
    /* 크기 적절히 확대 */
    width: auto;
    display: block;
    filter: drop-shadow(1px 1px 0px white) drop-shadow(-1px -1px 0px white) drop-shadow(1px -1px 0px white) drop-shadow(-1px 1px 0px white);
    /* 흰색 테두리 효과로 가독성 및 원본 색상 유지 */
    transition: all 0.3s ease;
}

.nav-links li a.gseek-highlight:hover {
    transform: scale(1.1) translateY(-2px);
}

.nav-links li a.gseek-highlight:hover .gseek-logo {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    /* 호버 시 더 밝은 광채 */
}

.nav-links li a.gseek-highlight::after {
    display: none !important;
}

.logo-divider {
    height: 18px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-left: 15px;
    margin-right: 15px;
    display: block;
}

.header-icon {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    animation: shakeIcon 2s ease-in-out infinite;
}


.header-icon:hover {
    transform: scale(1.1);
}

@keyframes shakeIcon {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-8px, -5px) rotate(-2deg);
    }

    50% {
        transform: translate(6px, 4px) rotate(1deg);
    }

    75% {
        transform: translate(8px, -3px) rotate(2deg);
    }
}

/* Mega Menu (Full-down) Style */
.header-sub-bg {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Header Navigation */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    /* 간격 살짝 축소하여 여유 확보 */
    align-items: center;
    white-space: nowrap;
}

.nav-links>li {
    position: relative;
    display: flex;
    align-items: center;
    height: 80px;
    /* 헤더 컨테이너 높이와 일치 */
}

.nav-links>li>a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.05rem;
    /* 글자 크기 최적화 */
    transition: all 0.3s;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links>li>a:hover {
    color: #FFD700;
}

.nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 0;
    height: 3px;
    background: #FFD700;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links>li>a:hover::after {
    width: 100%;
}

/* Individual Dropdown Styles */
.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 38, 77, 0.08);
    border-left: 5px solid #00264d;
    /* 굵은 남청색 테두리 추가 */
    border-radius: 4px 14px 14px 4px;
    /* 테두리에 맞게 라운딩 조정 */
    list-style: none;
    padding: 12px 0 25px 0;
    /* 하단 패딩 늘림 */
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(-15px);
    z-index: 101;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content::before {
    content: 'YEWON UNIV';
    position: absolute;
    right: 20px;
    bottom: 8px;
    font-size: 0.65rem;
    font-weight: 900;
    color: #00264d;
    /* 테두리와 동일한 진한 남청색 */
    letter-spacing: 0.1em;
    opacity: 0.8;
    /* 가독성을 위해 불투명도 높임 */
    white-space: nowrap;
    pointer-events: none;
    font-family: 'Noto Sans KR', sans-serif;
    z-index: 10;
}

.dropdown-content li {
    padding: 0;
}

.dropdown-content a {
    color: #1e293b !important;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 14px 24px;
    text-transform: none;
    text-decoration: none !important;
    /* 밑줄 제거 */
    position: relative;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 8px;
}

.dropdown-content a:hover {
    background: rgba(0, 38, 77, 0.08);
    /* 배경색 더 진하게 */
    color: #00264d !important;
    /* 글자색 남청색으로 진하게 */
    padding-left: 30px;
}

.dropdown-content a::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    width: 4px;
    height: 0;
    background: var(--accent-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateY(-50%);
    opacity: 0;
}

.dropdown-content a:hover::before {
    height: 16px;
    opacity: 1;
}

/* Duplicate hover rule removed */

/* Hero Section */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect for background */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #ffffff;
    /* 흰색으로 변경 */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    /* 가독성을 위한 그림자 추가 */
}

.hero-slogans {
    margin-bottom: 3rem;
}

.main-slogan {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    /* 흰색으로 변경 */
    margin-bottom: 1rem;
    line-height: 1.3;
    word-break: keep-all;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.main-slogan .highlight {
    color: #FFD700;
    position: relative;
    display: inline-block;
    font-weight: 900;
}

.main-slogan .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 215, 0, 0.3);
    z-index: -1;
}

.sub-slogan {
    font-size: 1.8rem;
    color: #ffffff;
    /* 흰색으로 변경 */
    font-weight: 600;
    margin-bottom: 4rem;
    /* 문구 아래 두 칸 정도의 여백 추가 */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Education TracksBox */
.education-tracks {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
    border: 2px solid var(--accent-color);
}

.track-title {
    background: var(--accent-color);
    /* 남청색(Yewon Blue)으로 변경 */
    color: white;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 800;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.track-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.track-item {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-icon {
    color: #004094;
    /* Blue check */
    background: #eef4ff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: -150px;
    /* 하단으로 약 5cm(190px) 이동 조정 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    /* 가독성을 위해 불투명도 약간 상향 */
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

.scroll-indicator .arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}

/* Quick Menu Section */
#quick-menu {
    padding: 3rem 5%;
    background-color: #f4f6f9;
    position: relative;
    z-index: 2;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-item {
    background: white;
    padding: 2rem 1rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.quick-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 64, 148, 0.1);
    color: var(--accent-color);
}

.quick-item .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.quick-item span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Notice Section */
#notice {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-color);
}

.more-btn {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.more-btn:hover {
    color: var(--accent-color);
}

.notice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.notice-card.main-notice {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 4px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border-left: 5px solid var(--accent-color);
}

.notice-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 900;
    color: var(--accent-color);
}

.notice-date .day {
    font-size: 2.5rem;
    line-height: 1;
}

.notice-date .month {
    font-size: 1.2rem;
}

.notice-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.notice-content p {
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-list li {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.notice-list a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s;
}

.notice-list a:hover {
    color: var(--accent-color);
}

.notice-list .category {
    font-weight: 700;
    color: var(--accent-color);
    width: 60px;
}

.notice-list .title {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-list .date {
    color: #999;
    font-size: 0.9rem;
}

/* PR Section */
#pr {
    padding: 5rem 5%;
    background: #f4f6f9;
}

#pr h2 {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.pr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pr-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.pr-card:hover {
    transform: translateY(-10px);
}

.pr-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.pr-content {
    padding: 1.5rem;
}

.pr-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.pr-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Main Footer Styling */
.main-footer {
    background-color: #1a1a1a;
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
}

.main-footer .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Policy Bar */
.footer-policy {
    background-color: #262626;
    border-bottom: 1px solid #333;
    padding: 12px 0;
}

.policy-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.policy-links li a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
}

.policy-links li a:hover {
    color: #fff;
}

.policy-links li a.highlight {
    color: #00d4ff;
    font-weight: 700;
}

/* Footer Body */
.footer-body {
    padding: 40px 0 50px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-info-section {
    flex: 1;
}

.footer-logo-area {
    margin-bottom: 25px;
}

.footer-logo-img {
    height: 40px;
    filter: grayscale(1) brightness(2);
    opacity: 0.6;
}

.campus-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.campus-info h4 {
    color: #ddd;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.campus-info p {
    margin: 2px 0;
}

.copyright {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

/* Footer Aside */
.footer-aside {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.family-site select {
    width: 100%;
    background: #333;
    color: #ccc;
    border: 1px solid #444;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.family-site select:hover {
    background: #444;
    color: #fff;
}

.sns-links {
    display: flex;
    gap: 12px;
}

.sns-icon {
    width: 36px;
    height: 36px;
    background-color: #333;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.sns-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.sns-icon.blog {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"%3E%3Cpath d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/%3E%3C/svg%3E');
}

.sns-icon.insta {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"%3E%3Cpath d="M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8A3.6 3.6 0 0 0 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6A3.6 3.6 0 0 0 16.4 4H7.6m4.4 3a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3m5-2.5a1.25 1.25 0 1 1-1.25 1.25A1.25 1.25 0 0 1 17 6.5z"/%3E%3C/svg%3E');
}

.sns-icon.youtube {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"%3E%3Cpath d="M21.8 8a2.5 2.5 0 0 0-1.8-1.8c-1.6-.4-8-.4-8-.4s-6.4 0-8 .4a2.5 2.5 0 0 0-1.8 1.8c-.4 1.6-.4 4-.4 4s0 2.4.4 4a2.5 2.5 0 0 0 1.8 1.8c1.6.4 8 .4 8 .4s6.4 0 8-.4a2.5 2.5 0 0 0 1.8-1.8c.4-1.6.4-4.2.4-4.2s0-2.4-.4-4M9.5 15V9l5.2 3-5.2 3z"/%3E%3C/svg%3E');
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-flex {
        flex-direction: column;
        gap: 30px;
    }

    .footer-aside {
        width: 100%;
        align-items: flex-start;
    }

    .campus-info-grid {
        grid-template-columns: 1fr;
    }

    .policy-links {
        gap: 15px;
        font-size: 0.85rem;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .notice-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Simplified for now */
    }
}

/* Floating Quick Menu */
.floating-quick-menu {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    color: var(--text-color);
}

.floating-icon {
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.floating-label {
    position: absolute;
    right: 80px;
    background: rgba(0, 64, 148, 0.95);
    color: white;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 120px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.auth-trigger {
    cursor: pointer;
}

.floating-item.signed-in {
    background: #eef4ff;
    border-color: var(--accent-color);
}

.floating-label::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 64, 148, 0.95);
}

.floating-item:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.floating-item:hover .floating-icon {
    transform: translateY(-2px);
}

.floating-item:hover .floating-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.scroll-top {
    background: white;
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 0;
    transition: all 0.3s ease;
}

.scroll-top:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 64, 148, 0.3);
}

/* Volunteer Recruitment Popup (Emergency Debug Style) */
/* 1. Volunteer Recruitment Popup (Static - Original Style) */
.volunteer-modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 20px;
    top: 100px;
    width: 380px;
    /* 고정 크기 조정 */
    height: auto;
    background: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.volunteer-modal.show {
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
}

/* 2. Rolling Slider Popup (New Style) */
.rolling-modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    right: 30px;
    /* 우측하단으로 이동 */
    bottom: 30px;
    width: 600px;
    /* 이미지 가로형 비율에 맞춤 */
    max-width: 90%;
    height: auto;
    background: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.rolling-modal.show {
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    position: relative;
    background: #ffffff;
}

/* Common Slider Styles */
.popup-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    /* 이미지 비율에 맞춰 팝업 크기 강제 조정 */
}

.popup-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
}

.popup-slide {
    min-width: 100%;
    height: 100%;
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 이미지가 컨테이너에 꽉 차게 */
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 25px;
    border-radius: 5px;
}

/* Footer & Close Button */
.modal-footer {
    padding: 12px 20px;
    background: #00264d;
    color: white;
}

.noshow-label {
    color: white !important;
    font-size: 0.9rem;
}

.modal-close-top {
    position: absolute;
    right: 15px;
    top: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    z-index: 100;
    line-height: 34px;
    text-align: center;
}

.modal-close-top:hover {
    background: rgba(219, 39, 119, 0.9);
}

@media (max-width: 1100px) {
    .rolling-modal {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 600px) {

    .volunteer-modal,
    .rolling-modal {
        width: 90%;
        left: 5%;
        right: auto;
    }

    .rolling-modal {
        bottom: 20px;
        top: auto;
    }
}

/* Notice Board Styles */
.notice-board-section {
    padding: 100px 5%;
    background: #f8fafc;
}

.notice-board-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.notice-search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.notice-count {
    font-size: 1.1rem;
    color: #64748b;
}

.notice-count strong {
    color: #00264d;
}

.notice-search-bar {
    display: flex;
    gap: 10px;
}

.notice-search-input {
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 250px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.notice-search-input:focus {
    outline: none;
    border-color: #00264d;
    box-shadow: 0 0 0 3px rgba(0, 38, 77, 0.1);
}

.notice-search-btn {
    padding: 10px 25px;
    background: #00264d;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notice-search-btn:hover {
    background: #004a8d;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.notice-table th {
    padding: 20px 15px;
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 800;
    text-align: center;
    border-top: 2px solid #00264d;
}

.notice-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    text-align: center;
    transition: all 0.2s ease;
}

.notice-table tr:hover td {
    background: #f8fafc;
}

.notice-table .title-col {
    text-align: left;
    color: #1e293b;
}

.notice-table .title-col a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    transition: color 0.2s ease;
}

.notice-table .title-col a:hover {
    color: #00264d;
}

.notice-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-right: 8px;
    white-space: nowrap;
    min-width: max-content;
}

.notice-badge.type-important {
    background: #fee2e2;
    color: #ef4444;
}

.notice-badge.type-normal {
    background: #e0f2fe;
    color: #0284c7;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background: #00264d;
    color: white;
    border-color: #00264d;
}

@media (max-width: 768px) {
    .notice-table thead {
        display: none;
    }

    .notice-table,
    .notice-table tbody,
    .notice-table tr,
    .notice-table td {
        display: block;
        width: 100%;
    }

    .notice-table tr {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 15px;
    }

    .notice-table td {
        text-align: left;
        padding: 8px 0;
        border: none;
    }

    .notice-table .title-col {
        font-size: 1.1rem;
        font-weight: 800;
    }
}

/* ==========================================================================
   User Authentication & Login Widget Styles
   ========================================================================== */

#user-auth-bar {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 5;
}

.luxe-auth-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.auth-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 40px;
}

/* Loading State */
.auth-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    font-size: 0.9rem;
}

.auth-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: auth-pulse 1.5s infinite;
}

@keyframes auth-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* Logged Out State */
.auth-logged-out {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-btn {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.auth-btn.login {
    background: #eef4ff;
    color: var(--accent-color);
}

.auth-btn.login:hover {
    background: var(--accent-color);
    color: white;
}

.auth-btn.join {
    background: #333;
    color: white;
}

.auth-btn.join:hover {
    background: #000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Logged In State */
.auth-logged-in {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 600;
}

.user-badge {
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 800;
}

.user-badge.admin {
    background: #d32f2f;
}

.user-badge.staff {
    background: #388e3c;
}

.auth-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 5px;
    transition: all 0.2s;
    border: 1px solid #ddd;
    color: #666;
}

.action-btn:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #bbb;
}

.action-btn.admin-link {
    background: #fff4f4;
    color: #d32f2f;
    border-color: #ffcdd2;
}

.action-btn.admin-link:hover {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

/* Notice Board Write Styles */
.notice-write-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s;
}

.notice-write-btn:hover {
    background: #00337a;
}

.board-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.board-modal.show {
    display: flex;
}

.board-modal-content {
    background: white;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modal-up 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modal-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.board-modal-header {
    background: #f8fafc;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.board-modal-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

#write-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #555;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 64, 148, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.cancel-btn {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Community Style Detail View Modal */
.board-modal-content.detail-view {
    max-width: 850px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.read-detail-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

#read-title {
    font-size: 2rem;
    color: #1a202c;
    margin: 0 0 25px 0;
    line-height: 1.3;
}

.read-meta {
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 30px;
    color: #718096;
    font-size: 0.95rem;
}

.meta-item strong {
    color: #2d3748;
}

.read-content-box {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
    white-space: pre-wrap;
    min-height: 200px;
}

.close-read-btn {
    background: #edf2f7;
    color: #4a5568;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.close-read-btn:hover {
    background: #e2e8f0;
}

.read-actions {
    display: flex;
    justify-content: space-between !important;
    align-items: center;
}

.owner-actions {
    display: flex;
    gap: 10px;
}

.edit-btn,
.delete-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.edit-btn {
    background: #e3f2fd;
    color: #1976d2;
}

.edit-btn:hover {
    background: #bbdefb;
}

.delete-btn {
    background: #ffebee;
    color: #d32f2f;
}

.delete-btn:hover {
    background: #ffcdd2;
}

.title-col a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.title-col:hover {
    background: #f0f7ff;
    cursor: pointer;
}

.notice-table tr {
    transition: background 0.2s;
}