/* Reset & Variables */
:root {
    --primary-color: #0d2b52;
    /* Deep Navy */
    --secondary-color: #b4975a;
    /* Noble Gold */
    --accent-color: #3b82f6;
    /* Bright Blue for active/buttons */
    --text-dark: #111827;
    --text-gray: #4b5563;
    --text-light: #9ca3af;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --max-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul,
li {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Sans KR', sans-serif;
    /* Modern base */
    font-weight: 700;
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    padding: 8px 0;
}

.header-top .top-links {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.header-top a {
    color: var(--text-gray);
}

.header-top a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.header-main {
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-text h1 {
    font-size: 1.4rem;
    color: var(--text-dark);
    line-height: 1.2;
    font-family: "Noto Serif KR";
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-gray);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* PC GNB */
.pc-gnb {
    display: none;
    /* Mobile first hidden */
}

.pc-gnb>ul {
    display: flex;
    gap: 40px;
}

.pc-gnb>ul>li {
    position: relative;
}

.pc-gnb>ul>li>a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 28px 0;
    /* Matches header height center */
    display: block;
}

.pc-gnb>ul>li:hover>a {
    color: var(--secondary-color);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 180px;
    background-color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-top: 3px solid var(--secondary-color);
}

.pc-gnb>ul>li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-menu li a {
    padding: 10px 20px;
    display: block;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.sub-menu li a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

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

/* Visual Slider */
.main-visual {
    position: relative;
}

.slider-wrapper {
    height: 480px;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 100%;
    padding: 0 20px;
}

.slide-text .badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.slide-text h2 {
    font-size: 2.2rem;
    /* Mobile Size */
    margin-bottom: 20px;
    font-family: 'Noto Serif KR', serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-text p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Quick Notices (Overlay style) */
.quick-notices-container {
    position: relative;
    margin-top: -60px;
    /* Overlap effect */
    z-index: 10;
}

.quick-notices {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.qn-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.qn-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.qn-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    white-space: nowrap;
}

.qn-list .cat {
    color: var(--secondary-color);
    margin-right: 8px;
    font-weight: 500;
}

.qn-list .date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Quick Menu Grid */
.quick-menu-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile default */
    gap: 15px;
}

.qm-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.qm-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--secondary-color);
}

.qm-item .icon {
    width: 60px;
    height: 60px;
    background-color: #eef2ff;
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.qm-item:hover .icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.qm-item span {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

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

/* Content Section (News & Gallery) */
.content-section {
    padding: 80px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.section-title h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    position: relative;
    padding-left: 15px;
}

.section-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 0.9rem;
    display: none;
    /* Mobile */
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

/* Styled News List */
.news-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    background-color: #f3f4f6;
    border-radius: 8px;
    color: var(--text-gray);
}

.news-date .d {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

.news-date .m {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.news-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.photo-item {
    display: block;
    position: relative;
    padding-top: 75%;
    /* 4:3 */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
}

.photo-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

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

.photo-item .overlay span {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Mobile: Show overlay by default slightly? No, hover is fine for desktop, mobile needs care */
@media (hover: none) {
    .photo-item .overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    }
}

/* Donation Ticker */
.donation-ticker-section {
    background-color: var(--primary-color);
    padding: 15px 0;
    color: var(--white);
}

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

.ticker-label {
    font-weight: 700;
    white-space: nowrap;
    margin-right: 20px;
    color: var(--secondary-color);
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.ticker-moves {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: ticker 15s linear infinite;
    white-space: nowrap;
    position: absolute;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.ticker-moves span {
    font-size: 0.95rem;
}

.donate-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 20px;
    white-space: nowrap;
    font-weight: 700;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: #9ca3af;
    padding: 60px 0;
    border-top: 5px solid var(--secondary-color);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-logo h2 {
    color: var(--white);
    font-family: 'Noto Serif KR', serif;
}

.footer-info .f-links {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.footer-info .f-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-info address span {
    display: block;
    margin-bottom: 5px;
    font-style: normal;
    font-size: 0.9rem;
}

.copy {
    margin-top: 20px;
    font-size: 0.85rem;
}

.family-sites select {
    background: #374151;
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 4px;
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 2100;
    transition: var(--transition);
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu-container.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-gnb>li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-gnb>li>a {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-sub-menu {
    display: none;
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
}

.mobile-sub-menu li a {
    padding: 8px;
    font-size: 0.95rem;
    color: var(--text-gray);
    display: block;
}

/* 3-Column Board Section */
.board-section {
    padding: 60px 0;
    background-color: var(--white);
}

.board-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.board-col {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--white);
}

.board-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-header h3 i {
    color: var(--secondary-color);
}

.board-header .more-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
}

.board-header .more-btn:hover {
    background-color: var(--secondary-color);
}

.board-list {
    padding: 15px 20px;
}

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

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

.board-list li a {
    flex: 1;
    color: var(--text-dark);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 15px;
}

.board-list li a:hover {
    color: var(--primary-color);
}

.board-list li .date {
    color: var(--text-light);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Gallery Section Title Bar */
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.section-title-bar h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-bar h3 i {
    color: var(--secondary-color);
}

.section-title-bar .more-link {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-title-bar .more-link:hover {
    color: var(--primary-color);
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.gallery-section .photo-grid {
    grid-template-columns: 1fr;
    gap: 15px;
}

.gallery-section .photo-item {
    padding-top: 66.66%;
}

/* Video Gallery Section */
.video-section {
    padding: 60px 0;
    background-color: var(--white);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.video-item {
    display: block;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.video-thumb {
    position: relative;
    padding-top: 56.25%;
    background-size: cover;
    background-position: center;
}

.video-thumb .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.video-item:hover .play-btn {
    background-color: var(--secondary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumb .duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.8);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-info {
    padding: 15px;
}

.video-info h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Footer Slogan & Social */
.footer-slogan {
    color: var(--secondary-color);
    font-family: 'Noto Serif KR', serif;
    margin-top: 5px;
    font-size: 0.95rem;
}

.f-social {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.f-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #374151;
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.f-social a:hover {
    background-color: var(--secondary-color);
}

.producer {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 10px;
}

/* Desktop Responsive Overrides */
@media (min-width: 768px) {
    .pc-gnb {
        display: block;
    }

    .mobile-menu-btn {
        display: none;
    }

    .quick-notices-container {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 0;
        transform: translateY(50%);
    }

    .quick-notices {
        flex-direction: row;
        align-items: center;
        padding: 20px 40px;
    }

    .qn-header {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        padding-bottom: 0;
        padding-right: 30px;
        margin-right: 30px;
        min-width: 150px;
    }

    .qn-list {
        display: flex;
        flex: 1;
        gap: 24px;
    }

    .qn-list li {
        border-bottom: none;
        padding: 0;
    }

    .quick-menu-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slide-text h2 {
        font-size: 3rem;
    }

    .section-title p {
        display: block;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .family-sites select {
        width: auto;
    }

    /* Desktop Board Grid */
    .board-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Desktop Gallery Grid */
    .gallery-section .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Desktop Video Grid */
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}
