@charset "utf-8";

/* Reset CSS from reset.css */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    line-height: 1; /* reset.css 에서 가져옴 */
}
ol, ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
button {
    border: none;
    margin: 0;
    padding: 0;
    width: auto;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: normal;
    -webkit-appearance: none;
    cursor: pointer;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
/* --- End of Reset CSS --- */

/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap'); */ /* Google Font Import (Keep for now) */

:root {
    --primary-color: #3a5a40;
    --secondary-color: #588157;
    --accent-color: #a3b18a;
    --text-primary: #2f3e46;
    --text-secondary: #52796f;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --white: #ffffff;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6; /* Reset에서 1로 설정된 것을 덮어씁니다 */
    color: var(--text-color);
    background-color: var(--background-light);
}

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

/* 헤더 스타일 */
header {
    background: var(--background-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px; /* 중복 가능성 있지만 레이아웃 요소라 유지 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.25rem;
    font-weight: 700;
    /* color: var(--text-color); */ /* Reset에서 color: inherit; 으로 처리 */
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    /* width: auto; */ /* Reset에서 처리됨 */
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    /* background: transparent; */ /* Reset에서 처리됨 */
    /* border: none; */ /* Reset에서 처리됨 */
    /* cursor: pointer; */ /* Reset에서 처리됨 */
    /* padding: 0; */ /* Reset에서 처리됨 */
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* 모바일 메뉴가 열렸을 때의 버튼 스타일 */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav {
    transition: var(--transition);
}

nav ul {
    display: flex;
    gap: 2.5rem;
    /* list-style: none; */ /* Reset에서 처리됨 */
}

nav a {
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after, /* 호버 시 밑줄 */
nav a.active::after { /* 활성화 시 밑줄 */
    width: 100%;
}

/* 활성화된 네비게이션 링크 스타일 */
nav a.active {
    color: var(--primary-color); /* 활성화 시 텍스트 색상 */
    font-weight: 700; /* 활성화 시 굵게 (선택 사항) */
}

/* 슬라이더 섹션 */
.slider-section {
    margin-top: 80px;
    background: linear-gradient(135deg, #556B2F 0%, #3a5a40 100%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('pattern.png');
    opacity: 0.1;
    pointer-events: none;
}

.main-slider {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
}

.swiper-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.slide-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide-content h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 300;
    max-width: 600px;
    text-align: center;
}

.buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--white);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn.primary {
    background: #fff;
    color: #3a5a40;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.btn.secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
}

.btn.secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Swiper Pagination 커스텀 스타일 */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #fff;
    width: 24px;
    border-radius: 5px;
}

/* 공지사항 섹션 */
.notice-section {
    padding: 6rem 0;
    background: var(--background-white);
}

.notice-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.notice-list {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--background-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.notice-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.notice-item:hover {
    background: var(--background-light);
    transform: translateX(8px);
}

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

.notice-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.notice-item p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.notice-item .date {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-left: 2rem;
    opacity: 0.8;
}

/* 콘텐츠 섹션 */
.content-section {
    padding: 6rem 0;
    background: var(--background-light);
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.05), transparent);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 0 auto;
    padding: 1rem;
}

/* 그리드 아이템 크기 클래스 */
.content-item {
    background: var(--background-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    isolation: isolate;
}

.content-item.span-1 {
    grid-column: span 1;
}

.content-item.span-2 {
    grid-column: span 2;
}

.content-item.span-3 {
    grid-column: span 3;
}

.content-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.02));
    z-index: -1;
}

.content-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.content-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* 그리드 아이템 크기별 이미지 높이 조정 */
.content-item.span-2 .content-image {
    height: 300px;
}

.content-item.span-3 .content-image {
    height: 360px;
}

.content-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(255,255,255,1), transparent);
}

.content-text {
    padding: 2rem;
    background: transparent;
}

/* 그리드 아이템 크기별 텍스트 스타일 조정 */
.content-text h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.content-item.span-2 .content-text h3 {
    font-size: 1.6rem;
}

.content-item.span-3 .content-text h3 {
    font-size: 1.8rem;
}

.content-text p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.content-item.span-2 .content-text p,
.content-item.span-3 .content-text p {
    font-size: 1.1rem;
}

/* 푸터 */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}

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

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
}

.footer-section a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
}

.social-link::before {
    content: '';
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.social-link.instagram::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.012-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E");
}

.social-link.youtube::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E");
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* 2열 레이아웃에서 span 조정 */
    .content-grid .content-item.span-1,
    .content-grid .content-item.span-2 {
        grid-column: span 1; /* 1칸 또는 2칸짜리는 모두 1칸으로 */
    }

    .content-grid .content-item.span-3 {
        grid-column: span 2; /* 3칸짜리는 2칸(한 줄 전체)으로 */
    }

    /* 이미지 높이 통일 (선택 사항) */
    .content-grid .content-item .content-image {
        height: 240px; /* 2열일 때 모든 이미지 높이 통일 */
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr; /* 1열 레이아웃 */
        gap: 1.5rem;
    }

    /* 모바일(1열)에서 모든 아이템은 1칸 차지 */
    .content-grid .content-item,
    .content-grid .content-item.span-1,
    .content-grid .content-item.span-2,
    .content-grid .content-item.span-3 {
        grid-column: span 1; /* 모든 아이템 span 1로 명시 */
    }

    /* 이미지 높이 재조정 (필요시) */
    .content-grid .content-item .content-image {
        height: 240px; /* 1열일 때 이미지 높이 */
    }

    .header-container {
        padding: 0 1.5rem;
    }

    .notice-item {
        padding: 1.25rem 1.5rem;
    }

    .footer-content {
        gap: 2rem;
    }

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

    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--background-white);
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        box-shadow: var(--shadow-sm);
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0 1.5rem;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    .page-visual .page-title {
        font-size: 3rem !important; /* 반응형 크기 + 명시도 증가 */
    }
    .page-visual .page-subtitle {
        font-size: 1.2rem !important; /* 반응형 크기 + 명시도 증가 */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .notice-section h2 {
        font-size: 2rem;
    }

    .notice-item {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-item .date {
        margin: 0.5rem 0 0;
    }

    .content-image {
        height: 200px;
    }

    .content-text {
        padding: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .page-visual .page-title {
        font-size: 2.5rem !important; /* 반응형 크기 + 명시도 증가 */
    }
    .page-visual .page-subtitle {
        font-size: 1rem !important; /* 반응형 크기 + 명시도 증가 */
    }
}

/* --- Common Modal/Popup Styles --- */
.modal-overlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    /* Add transition for fade-in effect if desired */
    /* opacity: 0; */
    /* visibility: hidden; */
    /* transition: opacity 0.3s ease, visibility 0.3s ease; */
}

.modal-overlay.active {
    display: flex; /* Show when active */
    /* opacity: 1; */
    /* visibility: visible; */
}

.modal-content {
    background: var(--background-white);
    width: 90%;
    border-radius: var(--radius-md, 12px); /* Use variable, fallback */
    padding: 2rem; /* Default padding */
    position: relative;
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.16));
    max-height: 90vh;
    overflow-y: auto;
}

/* Specific modal sizes */
.modal-content.modal-sm {
    max-width: 600px; /* Example: Small modal */
}

.modal-content.modal-md {
    max-width: 800px; /* Example: Medium modal (default for board popup) */
}

.modal-header {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color, #333);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary, #52796f);
}

.modal-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary, #666);
    font-size: 0.9rem;
    margin-top: 0.5rem; /* Add some space below title */
}

.modal-body {
    line-height: 1.6;
    color: var(--text-color, #444);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: var(--text-color, #333);
    transform-origin: center;
}

.modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* --- Board Page Styles --- */

/* 게시판 검색 영역 */
.board-search {
    padding: 30px 0;
    background: #f8f9fa;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 120px;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-form button {
    padding: 10px 20px;
    background: #3a5a40;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background: #588157;
}

/* 게시판 목록 */
.board-list {
    padding: 50px 0;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.board-table th {
    background: #f8f9fa;
    padding: 15px;
    border-top: 2px solid #3a5a40;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    text-align: center; /* 헤더는 모두 가운데 정렬 */
}

.board-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: center; /* 모든 셀을 기본적으로 가운데 정렬 */
}

.board-table td:nth-child(3) {
    text-align: left; /* 제목 열(3번째 열)만 좌측 정렬 */
}

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

.title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.title-link:hover {
    color: #3a5a40;
}

.notice {
    display: inline-block;
    padding: 3px 8px;
    background: #3a5a40;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 8px;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: #3a5a40;
    color: white;
    border-color: #3a5a40;
}

.page-link:hover:not(.active) {
    color: var(--primary-color);
}

/* 글쓰기 버튼 */
.write-button {
    display: inline-block;
    padding: 12px 24px;
    background: #3a5a40;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.write-button:hover {
    background: #588157;
}


/* 반응형 스타일 - Board */
@media (max-width: 768px) {
    .board-table th:nth-child(2),
    .board-table td:nth-child(2),
    .board-table th:nth-child(3),
    .board-table td:nth-child(3) {
        display: none;
    }

    /* 검색 폼 반응형 (공통으로 이동 고려) */
    .search-form {
        flex-direction: column;
    }

    .search-form select,
    .search-form input,
    .search-form button {
        width: 100%;
    }

}

/* --- Common Modal Responsive --- */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* --- Contact Page Styles --- */

/* 문의 정보 영역 */
.contact-info {
    padding: 60px 0;
    background: #f8f9fa;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 30px;
    height: 30px;
    fill: #3a5a40;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.info-item p {
    color: #666;
    line-height: 1.6;
}

/* 문의 폼 영역 */
.contact-form {
    padding: 60px 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #3a5a40;
    outline: none;
}

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

.form-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background: #3a5a40;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background: #588157;
}

/* 지도 영역 */
.map-section {
    padding: 60px 0;
    background: #f8f9fa;
}

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

.map-container h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.map-frame {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 반응형 스타일 - Contact */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 20px;
    }

    .map-frame {
        height: 300px;
    }
}

/* --- About Page Styles --- */

/* 팀 소개 섹션 */
.team-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.team-image {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.team-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

/* 소개 섹션 */
.about-intro {
    padding: 6rem 0;
    background: var(--background-white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h3 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* 핵심가치 섹션 */
.core-values {
    padding: 6rem 0;
    background: var(--background-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 0 auto;
    max-width: 1200px;
}

.value-item {
    background: var(--background-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon img {
    width: 40px;
    height: 40px;
}

.value-item h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #3a5a40;
}

.value-item p {
    color: #000;
    line-height: 1.6;
    font-size: 1rem;
    word-break: keep-all;
}

.core-values .value-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2D4B98; /* Note: This color differs from .value-item h4 */
}

.core-values .value-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    word-break: keep-all;
}

/* 연혁 섹션 */
.history {
    padding: 6rem 0;
    background: var(--background-white);
}

.history-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.year {
    width: 50%;
    text-align: right;
    padding-right: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.content {
    width: 50%;
    padding-left: 3rem;
}

.content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* 반응형 디자인 - About */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .page-visual .page-title {
        font-size: 3rem !important; /* 반응형 크기 + 명시도 증가 */
    }
    .page-visual .page-subtitle {
        font-size: 1.2rem !important; /* 반응형 크기 + 명시도 증가 */
    }

    .team-section {
        padding: 40px 20px;
    }

    .team-image {
        border-radius: 15px;
    }

    .intro-content h3 {
        font-size: 1.6rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .history-timeline::before {
        left: 2rem;
    }

    .timeline-item::before {
        left: 2rem;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .year {
        width: 100%;
        text-align: left;
        padding-left: 4rem;
        padding-right: 0;
        margin-bottom: 0.5rem;
    }

    .content {
        width: 100%;
        padding-left: 4rem;
    }
}

@media (max-width: 480px) {
    .page-visual .page-title {
        font-size: 2.5rem !important; /* 반응형 크기 + 명시도 증가 */
    }

    .section-title {
        font-size: 2rem;
    }

    .value-item {
        padding: 2rem 1.5rem;
    }
}

/* --- Ministry Page Styles --- */

/* 사역 소개 카드 */
.ministry-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ministry-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 40px 32px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ministry-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: inherit;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.ministry-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.ministry-item:hover::before {
    opacity: 1;
}

.ministry-item h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.ministry-item p {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
    color: var(--white);
    word-break: keep-all;
    position: relative;
    z-index: 1;
}

/* 탭 섹션 */
.ministry-section {
    padding: 80px 0;
}

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

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.tab-button {
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    font-weight: 700;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 프로젝트 섹션 */
.project-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* grid-right는 더 이상 사용하지 않음 */

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    aspect-ratio: 4/3; /* 모든 이미지를 4:3 비율로 통일 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(58, 90, 64, 0.1);
    cursor: pointer; /* 클릭 가능하다는 것을 표시 */
}

/* 메인 이미지도 동일한 크기로 */
.grid-item.main-image {
    aspect-ratio: 4/3; /* 다른 이미지들과 동일한 비율 */
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) contrast(1.05);
}

/* 실제 이미지 스타일 */
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

/* 이미지 위에 오버레이 효과 */
.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
    border-radius: 12px;
}

.grid-item:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.grid-item::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-align: center;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    z-index: 2;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover::after {
    opacity: 1;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.grid-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border-color: var(--primary-color);
}

.grid-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05) saturate(1.1);
}

/* 실제 이미지가 있을 때는 placeholder 텍스트 숨기기 */
.grid-item:has(img[src]:not([src=""])):after,
.grid-item:has(img[src]:not([src="#"])):after {
    display: none;
}

.main-image {
    grid-row: 1 / -1; /* 전체 높이 차지 */
}

.main-image img {
    object-position: center;
}

/* 프로젝트 설명 섹션 */
.project-details {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    margin-top: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.overview-section,
.approach-section {
    margin-bottom: 48px;
    position: relative;
}

.overview-section:last-child,
.approach-section:last-child {
    margin-bottom: 0;
}

.overview-section h2,
.approach-section h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 24px;
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.overview-section h2::before,
.approach-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.overview-section p,
.approach-section p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.approach-section ul {
    list-style: none;
    padding-left: 0;
}

.approach-section ul li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 32px;
    position: relative;
}

.approach-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

/* 프로젝트 섹션 반응형 */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr); /* 1024px 이하에서 2열 */
        gap: 20px;
    }
}

/* 비디오 섹션 */
.video-section {
    margin-top: 40px;
}

.video-section h2 {
    font-size: 28px;
    color: #3a5a40;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.playlist-link {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.playlist-link p {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.btn-playlist {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3a5a40;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-playlist:hover {
    background-color: #2D4B98;
}

/* 탭 컨텐츠 */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

/* 팀 소개 섹션 - ministry 페이지 내 (about 페이지의 .team-section과 다름 주의) */
.ministry-section .team-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.ministry-section .team-image {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ministry-section .team-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 반응형 스타일 - Ministry */
@media (max-width: 1024px) {
    .ministry-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }

}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    .page-subtitle {
        font-size: 18px;
    }

    .ministry-overview {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    .ministry-item {
        padding: 32px 24px;
        min-height: 140px;
    }

    .ministry-item h3 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .tab-buttons {
        flex-wrap: wrap;
        gap: 12px;
    }

    .tab-button {
        padding: 10px 20px;
        font-size: 14px;
        min-width: auto;
    }

    .project-grid {
        grid-template-columns: 1fr; /* 모바일에서 1열 */
        gap: 20px;
        min-height: auto;
    }

    .project-details {
        padding: 32px 24px;
        margin-top: 24px;
    }

    .overview-section h2,
    .approach-section h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .overview-section p,
    .approach-section p {
        font-size: 16px;
    }

    .video-section h2 {
        font-size: 24px;
    }

    .playlist-link p {
        font-size: 16px;
    }

    .btn-playlist {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* ministry 페이지 내 팀 소개 섹션 반응형 */
    .ministry-section .team-section {
        padding: 30px 0;
    }
    
    .ministry-section .team-image {
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    .page-subtitle {
        font-size: 16px;
    }

    .ministry-overview {
        padding: 0 16px;
        gap: 20px;
    }

    .ministry-item {
        padding: 28px 20px;
        min-height: 120px;
    }

    .ministry-item h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .ministry-item p {
        font-size: 14px;
        line-height: 1.6;
    }

    .tab-buttons {
        margin-bottom: 32px;
        gap: 8px;
    }

    .tab-button {
        font-size: 13px;
        padding: 8px 16px;
    }

    .project-grid {
        grid-template-columns: 1fr; /* 480px 이하에서도 1열 유지 */
        padding: 0 16px;
        gap: 16px;
    }

    .grid-item::after {
        font-size: 0.9rem;
        white-space: normal;
        text-align: center;
        max-width: 80%;
        line-height: 1.2;
    }

    .project-details {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .overview-section h2,
    .approach-section h2 {
        font-size: 20px;
        padding-left: 16px;
    }

    .overview-section h2::before,
    .approach-section h2::before {
        width: 3px;
    }

    .approach-section ul li {
        font-size: 14px;
        padding-left: 28px;
    }

    .approach-section ul li::before {
        font-size: 16px;
    }

    .video-section h2 {
        font-size: 20px;
    }

    .playlist-link {
        padding: 16px;
        border-radius: 8px;
    }

    .playlist-link p {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .btn-playlist {
        padding: 10px 24px;
        font-size: 14px;
        border-radius: 20px;
    }
}

/* 페이지 공통 스타일 */
.page-visual {
    margin-top: 80px; /* 헤더 높이 고려 */
    padding: 80px 0;
    min-height: 400px; /* 최소 높이 보장 */
    height: auto; /* 명시적 높이 auto */
    display: flex !important; /* display 강제 적용 */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3a5a40 0%, #588157 100%) !important; /* 배경 강제 적용 */
}

/* page-visual 내부 요소 기본 스타일 */
.page-visual .page-title {
    font-size: 3.5rem; /* 기본 크기 */
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--white);
}

.page-visual .page-subtitle {
    font-size: 1.4rem; /* 기본 크기 */
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    color: var(--white);
    line-height: 1.6;
}

/* 후원 팝업 내 버튼 스타일 */
.donation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem; /* 위쪽 여백 추가 */
}

.donation-buttons a {
    display: inline-block; /* 링크를 블록 요소처럼 만들어 패딩 적용 */
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    text-decoration: none; /* 밑줄 제거 */
    transition: var(--transition);
    border: 1px solid transparent; /* 테두리 기본값 */
}

.donation-buttons .regular-donation {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.donation-buttons .regular-donation:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.donation-buttons .one-time-donation {
    background: var(--background-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.donation-buttons .one-time-donation:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* 반응형 - 버튼 세로 배치 */
@media (max-width: 480px) {
    .donation-buttons {
        flex-direction: column;
    }
    .donation-buttons a {
        width: 100%; /* 버튼 너비 100% */
    }
}

/* --- Lightbox Styles --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    height: 80vh;
    max-height: 800px;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 40px 120px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(0.85);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    width: calc(100% - 40px);
    height: calc(100% - 120px);
    margin: 20px auto 0;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-placeholder {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    padding: 60px 40px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    color: #374151;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.lightbox-close:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
    transform: scale(1.05);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2.5px;
    background: #374151;
    transform-origin: center;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.lightbox-close:hover::before,
.lightbox-close:hover::after {
    background: #111827;
}

.lightbox-close::before {
    transform: rotate(45deg);
}

.lightbox-close::after {
    transform: rotate(-45deg);
}

.lightbox-title {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    padding: 16px 24px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

/* 좌우 화살표 버튼 */
.lightbox-nav-btn {
    position: absolute;
    top: calc(50% - 60px);
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    color: #374151;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.lightbox-nav-btn:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
    transform: translateY(-50%) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.lightbox-nav-btn.prev {
    left: 30px;
}

.lightbox-nav-btn.next {
    right: 30px;
}

.lightbox-nav-btn::before {
    content: '';
    width: 14px;
    height: 14px;
    border: solid #374151;
    border-width: 0 2.5px 2.5px 0;
    display: inline-block;
    transition: all 0.3s ease;
}

.lightbox-nav-btn.prev::before {
    transform: rotate(135deg);
    margin-left: 3px;
}

.lightbox-nav-btn.next::before {
    transform: rotate(-45deg);
    margin-right: 3px;
}

.lightbox-nav-btn:hover::before {
    border-color: #111827;
    transform: rotate(135deg) scale(1.1);
}

.lightbox-nav-btn.next:hover::before {
    transform: rotate(-45deg) scale(1.1);
}

/* 하단 카운터 네비게이션 */
.lightbox-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: none;
}



.lightbox-counter {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
}

/* 라이트박스 반응형 */
@media (max-width: 768px) {
    .lightbox-content {
        width: 95vw;
        height: 85vh;
        max-width: none;
        max-height: none;
        border-radius: 20px;
    }
    
    .lightbox-image {
        width: calc(100% - 20px);
        height: calc(100% - 100px);
        margin: 10px auto 0;
        border-radius: 16px;
    }
    
    .lightbox-nav-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
        top: calc(50% - 50px);
    }
    
    .lightbox-nav-btn.prev {
        left: 15px;
    }
    
    .lightbox-nav-btn.next {
        right: 15px;
    }
    
    .lightbox-title {
        font-size: 1.1rem;
        padding: 12px 16px;
        bottom: 60px;
        left: 15px;
        right: 15px;
        border-radius: 12px;
    }
    
    .lightbox-counter {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        width: 98vw;
        height: 90vh;
        border-radius: 16px;
    }
    
    .lightbox-image {
        width: calc(100% - 16px);
        height: calc(100% - 90px);
        margin: 8px auto 0;
        border-radius: 12px;
    }
    
    .lightbox-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
        top: calc(50% - 45px);
    }
    
    .lightbox-nav-btn.prev {
        left: 12px;
    }
    
    .lightbox-nav-btn.next {
        right: 12px;
    }
    
    .lightbox-title {
        font-size: 1rem;
        padding: 10px 12px;
        bottom: 50px;
        left: 12px;
        right: 12px;
        border-radius: 10px;
    }
    
    .lightbox-counter {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* 후원 팝업 관련 스타일 */
.modal-content.modal-sm .modal-body h4 {
    font-size: 1.1rem; /* '후원 안내' 등 소제목 크기 조정 (선택) */
    margin-bottom: 0.8rem;
}

.modal-content.modal-sm .modal-body p {
    margin-bottom: 1rem; /* 단락 간격 */
}

.donation-account {
    background: var(--accent-color, #a3b18a); /* 강조 배경색 */
    color: var(--white); /* 밝은 텍스트 색상 */
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-sm, 8px);
    margin-top: 1rem; /* 위쪽 여백 */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.donation-account p {
    margin-bottom: 0.5rem;
    position: relative; /* 가상 요소 위치 기준 */
    padding-left: 25px; /* 아이콘 공간 확보 */
    line-height: 1.4;
    color: var(--white); /* 내부 텍스트 색상 명시 */
}

.donation-account p:last-child {
    margin-bottom: 0;
}

/* '입금 계좌' 텍스트 앞 아이콘 */
.donation-account p:first-child::before {
    content: '\F0153'; /* Material Design Icon 'bank' or similar - Font setup needed */
    font-family: 'Material Icons'; /* Example, requires font setup */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.donation-account .account-number {
    font-size: 1.5rem; /* 계좌번호 강조 */
    font-weight: 700;
    letter-spacing: 1px; /* 자간 조정 */
    margin-top: 0.2rem;
    margin-bottom: 0.8rem !important; /* 아래 예금주와의 간격 확보 */
    padding-left: 25px; /* 아이콘 공간 유지 */
    word-break: break-all; /* 긴 숫자 줄바꿈 */
}

/* --- 게시글 상세 보기 스타일 --- */
.post-view-section {
    padding: 60px 0;
}

.post-view-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.post-content {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
    min-height: 300px;
}

.post-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.post-actions a {
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-list {
    background: #f1f1f1;
    color: #333;
}

.btn-list:hover {
    background: #e0e0e0;
}

.btn-edit {
    background: #3a5a40;
    color: white !important;
}

.btn-edit:hover {
    background: #588157;
}

.btn-delete {
    background: #e74c3c;
    color: white !important;
}

.btn-delete:hover {
    background: #c0392b;
}

/* Calendar Styles */
.calendar {
    background: white;
    width: 100%;
    max-width: 1200px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 24px 32px;
    margin: 100px auto;
    display: block;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 80px;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.calendar-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-radius: 8px;
}

.calendar-header button:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

.type_calendar {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    table-layout: fixed; /* 테이블 레이아웃을 고정으로 설정 */
}

.type_calendar th, .type_calendar td {
    text-align: center;
    padding: 10px 0;
    border: 1px solid #f0f0f0;
    vertical-align: top;
    box-sizing: border-box;
}

.tb_box {
    position: relative;
}

.type_calendar th {
    background: var(--background-light);
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.type_calendar td {
    background: #fff;
    position: relative;
    transition: background 0.2s;
    text-align: left;
}

.type_calendar td.other-month {
    background: #f5f5f5;
    color: #bbb;
    opacity: 0.5;
}

.type_calendar td.today {
    background: linear-gradient(135deg, rgba(58, 90, 64, 0.1), rgba(88, 129, 87, 0.1));
    position: relative;
    box-shadow: 0 2px 8px rgba(58, 90, 64, 0.15);
    transition: all 0.3s ease;
    z-index: 99;
}

.type_calendar td.today .day_num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 1px 0 1px 6px;
    background: var(--primary-color);
    border-radius: 50%;
    color: #fff;
}

.type_calendar .type_day {
    font-size: 1rem;
    min-height: 100px;
    height: 100%;
}

.type_calendar .day_num {
    margin: 6.2px 0 0 13px;
    display: block;
    width: 30px;
}
.type_calendar .type_schedule li {
    display: flex;
    justify-content: space-between;
    height: 18px;
}

.type_calendar .type_schedule .label.title {
    font-size: 0.7em;
    color: var(--text-color);
    margin: 2px 6px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 2px;
}

.type_calendar .type_schedule .label.title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 9px;
    margin-right: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    flex-shrink: 0;
}

.type_calendar .type_schedule .label.time {
    display: block;
    font-size: 0.5em;
    text-align: right;
    margin-right: 6px;
    margin-top: 2px;
    color: #666;
}


.calendar_title_center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin: 10px;
    flex: 1;
    gap: 24px;
}

.calendar_title_center strong {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    letter-spacing: 1px;
    margin: 0 12px;
    display: inline-block;
    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    min-width: 120px;
    text-align: center;
}

.calendar-nav {
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(58,90,64,0.10);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
    outline: none;
    padding: 0;
}

.calendar-nav:hover, .calendar-nav:focus {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(58,90,64,0.18);
    transform: scale(1.08);
}


.calendar-today-float {
    position: absolute;
    top: -38px;
    right: 50px;
    z-index: 10;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 14px;
    box-shadow: 0 2px 8px rgba(58,90,64,0.10);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    letter-spacing: 0.5px;
    outline: none;
    height: 28px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-today-float:hover, .calendar-today-float:focus {
    background: #588157;
    color: #fff;
    box-shadow: 0 4px 16px rgba(58,90,64,0.18);
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 768px) {
    .post-view-container {
        padding: 25px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .post-actions {
        flex-direction: column;
    }
    
    .post-actions a {
        text-align: center;
    }
    .type_calendar .type_schedule .label.time {
        display: none;
    }
}

/* 캘린더 이벤트 스타일 */
.all-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 5px;
    padding: 2px 0;
}

li.all-day-event {
    border-radius: 6px;
    padding: 3px 8px;
    margin: 0 5px;
    color: var(--text-primary);
    font-size: 0.65em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    background-color: var(--accent-color);
    border: 1px solid rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    min-height: 22px;
    transition: all 0.2s ease;
}

.all-day-event:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 여러 날 이벤트 스타일 */
.all-day-event.first {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: -1px;
    padding-right: 12px;
}

.all-day-event.middle {
    border-radius: 0;
    margin-left: -1px;
    margin-right: -1px;
    padding-left: 12px;
    padding-right: 12px;
}

.all-day-event.last {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
    padding-left: 12px;
}

.all-day-label {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* --- Calendar Add (+) Button --- */
.calendar-add-btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 20;
}
.calendar-add-btn .btn-add {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(58,90,64,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
    outline: none;
    border: none;
    pointer-events: auto;
}
.calendar-add-btn .btn-add:hover,
.calendar-add-btn .btn-add:focus {
    background: var(--secondary-color);
    box-shadow: 0 6px 24px rgba(58,90,64,0.22);
    transform: scale(1.08);
}
.calendar-add-btn .btn-add i {
    font-size: 1.2em;
    display: block;
    line-height: 1;
}
.calendar-add-btn .btn-add span {
    display: none;
}
@media (max-width: 768px) {
    .calendar-add-btn {
        right: 6px;
        bottom: 8px;
    }
    .calendar-add-btn .btn-add {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .calendar-add-btn .btn-add i {
        font-size: 1em;
    }
}

/* 일정 추가 폼 전체 */
.calendar-add-section {
    padding: 32px 0 16px 0; /* 위아래 여백 축소 */
    background: #f8f9fa;
}
.calendar-add-form {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 20px 18px 14px 18px; /* 패딩 축소 */
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    gap: 10px;
}
.calendar-add-form label {
    font-size: 0.98rem;
    color: #222;
    font-weight: 500;
    margin-bottom: 0;
}
.calendar-add-form input[type="text"],
.calendar-add-form input[type="time"],
.calendar-add-form input[type="date"],
.calendar-add-form input[type="color"],
.calendar-add-form textarea {
    padding: 7px 10px; /* 입력 필드 높이 축소 */
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.98rem;
    font-family: inherit;
    background: #f8f9fa;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 32px;
    box-sizing: border-box;
}
.calendar-add-form input:focus,
.calendar-add-form textarea:focus {
    border-color: var(--primary-color, #3a5a40);
    outline: none;
    background: #fff;
    box-shadow: 0 1px 4px rgba(58,90,64,0.07);
}
.calendar-add-form textarea {
    resize: vertical;
    min-height: 48px;
    max-height: 120px;
    font-size: 0.98rem;
}
.calendar-add-form .date-group {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 6px;
}
.calendar-add-form .date-group .date-item {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
}
.calendar-add-form .date-group label {
    margin-bottom: 2px;
    font-size: 0.98rem;
    font-weight: 500;
    white-space: nowrap;
}
.calendar-add-form .date-group input[type="date"] {
    width: 100%;
    min-width: 0;
}
.calendar-add-form .time-group {
    display: flex;
    gap: 6px;
    align-items: center;
}
.calendar-add-form .time-group .time-item {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
}
.calendar-add-form .time-group .time-item label {
    margin-bottom: 2px;
    font-size: 0.98rem;
    font-weight: 500;
    white-space: nowrap;
}
.calendar-add-form .time-group .time-item input[type="time"] {
    width: 100%;
    min-width: 0;
}

@media (max-width: 600px) {
    .calendar-add-form .date-group {
        flex-direction: column;
        gap: 2px;
    }
}
.calendar-add-form .form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}
.calendar-add-form .submit-button,
.calendar-add-form .cancel-button {
    padding: 7px 18px;
    border-radius: 5px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    min-width: 80px;
}
.calendar-add-form .submit-button {
    background: var(--primary-color, #3a5a40);
    color: #fff;
}
.calendar-add-form .submit-button:hover {
    background: var(--secondary-color, #588157);
}
.calendar-add-form .cancel-button {
    background: #f1f1f1;
    color: #333;
}
.calendar-add-form .cancel-button:hover {
    background: #e0e0e0;
    color: #111;
}
.calendar-add-form .color-all-day-group {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 6px;
}
.calendar-add-form .color-all-day-group .color-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.calendar-add-form .color-all-day-group .color-item label {
    margin-bottom: 0;
    font-size: 0.98rem;
    font-weight: 500;
    white-space: nowrap;
}
.calendar-add-form .color-all-day-group .color-item input[type="color"] {
    width: 300px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}
.calendar-add-form .color-all-day-group .all-day-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.calendar-add-form .color-all-day-group .all-day-label {
    margin-bottom: 0;
    font-size: 0.98rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.calendar-add-form .color-all-day-group .all-day-label input[type="checkbox"] {
    margin-right: 4px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}   
@media (max-width: 600px) {
    .calendar-add-form .color-all-day-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}
/* 반응형 */
@media (max-width: 600px) {
    .calendar-add-form {
        padding: 10px 2vw;
        max-width: 99vw;
    }
    .calendar-add-section {
        padding: 10px 0 6px 0;
    }
    .calendar-add-form .form-buttons {
        flex-direction: column;
        gap: 6px;
    }
    .calendar-add-form .submit-button,
    .calendar-add-form .cancel-button {
        width: 100%;
    }
}

/* --- BibleTree Calendar Styles --- */

/* 바이블트리 달력 컨테이너 */
.bibletree-calendar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 바이블트리 달력 테이블 */
.bibletree-calendar-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bibletree-calendar-table td {
    height: 120px;
    vertical-align: top;
    position: relative;
    border: 1px solid #e9ecef;
    padding: 8px;
}

.bibletree-calendar-table .day_num {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.bibletree-calendar-table .today .day_num {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.bibletree-calendar-table .other-month .day_num {
    color: #adb5bd;
}

/* 바이블트리 콘텐츠 */
.bibletree-content {
    margin-top: 5px;
}

.bibletree-item {
    background: transparent;
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #6c757d;
    font-size: 11px;
    line-height: 1.2;
    position: relative;
}

.bibletree-item:hover {
    background: rgba(58, 90, 64, 0.05);
    color: #495057;
}

.bibletree-item.has-meditation {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 3px solid #667eea;
    position: relative;
}

.bibletree-item.has-meditation::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 8px;
    color: #667eea;
    font-weight: bold;
}

.bibletree-item.has-meditation:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #495057;
}

.bibletree-title {
    font-weight: 400;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

/* 반응형 디자인 - BibleTree Calendar */
@media (max-width: 768px) {
    .bibletree-calendar {
        padding: 10px;
    }
    
    .bibletree-calendar-table td {
        height: 100px;
        padding: 4px;
    }
    
    .bibletree-item {
        padding: 3px 4px;
        font-size: 9px;
        margin-bottom: 1px;
    }
}

/* --- BibleTree Detail View Styles --- */

.bibletree-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 20px; /* 상단 패딩을 늘려서 헤더 겹침 방지 */
}

.btn-back {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

.btn-back:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
}

.bibletree-detail {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.bibletree-detail-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.bibletree-date {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 0.9em;
    font-weight: 500;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.weekly-theme-tag {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 0.8em;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bibletree-date-range {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.bibletree-detail-title {
    font-size: 1.8em;
    margin: 0;
    line-height: 1.3;
    padding-top: 10px;
}

.bibletree-detail-body {
    padding: 40px;
}

.detail-section {
    margin-bottom: 35px;
}

.detail-section h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.detail-content {
    line-height: 1.8;
    color: #495057;
    font-size: 1.1em;
    white-space: pre-line;
}

.bibletree-bible-text {
    color: #6366f1;
    font-weight: 500;
    text-align: center;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 10px;
    border: 1px solid #dbeafe;
}

.questions-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.questions-section h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 25px;
    border-bottom: none;
    text-align: center;
}

.question-item {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.question-item:last-child {
    margin-bottom: 0;
}

.question-label {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.question-text {
    color: #495057;
    line-height: 1.6;
    font-size: 1.05em;
}

/* 반응형 디자인 - BibleTree Detail */
@media (max-width: 768px) {
    .bibletree-detail-container {
        padding: 100px 15px 15px; /* 모바일에서도 상단 패딩 유지 */
    }
    
    .bibletree-detail-header {
        padding: 45px 20px 25px;
        text-align: center;
        position: relative;
        min-height: 120px;
    }
    
    .bibletree-date {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 0.7em;
        background: rgba(255, 255, 255, 0.1);
        padding: 3px 8px;
        border-radius: 10px;
        backdrop-filter: blur(10px);
    }
    
    .weekly-theme-tag {
        position: absolute;
        top: 15px;
        left: 15px;
        font-size: 0.7em;
        background: rgba(255, 255, 255, 0.9);
        color: var(--primary-color);
        padding: 4px 10px;
        border-radius: 12px;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        max-width: calc(100% - 120px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .bibletree-detail-title {
        font-size: 1.4em;
        margin-top: 20px;
        line-height: 1.3;
        padding: 0 10px;
    }
    
    .bibletree-detail-body {
        padding: 25px 20px;
    }
    
    .questions-section {
        padding: 20px;
    }
    
    .question-item {
        padding: 15px;
    }
}

/* --- Meditation Record Styles --- */

.meditation-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    margin-top: 40px;
    border: 1px solid #e9ecef;
}

.meditation-section h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.meditation-item {
    margin-bottom: 25px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.meditation-item .question-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1em;
    line-height: 1.4;
}

.meditation-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.meditation-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(58, 90, 64, 0.1);
}

.meditation-textarea::placeholder {
    color: #999;
    font-style: italic;
}

.meditation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-save-meditation {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(58, 90, 64, 0.2);
}

.btn-save-meditation:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 90, 64, 0.3);
}

.btn-delete-meditation {
    background: #dc3545;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-delete-meditation:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* 반응형 - Meditation */
@media (max-width: 768px) {
    .meditation-section {
        padding: 25px 20px;
        margin-top: 25px;
    }
    
    .meditation-section h3 {
        font-size: 1.3em;
        margin-bottom: 20px;
    }
    
    .meditation-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .meditation-textarea {
        min-height: 80px;
        padding: 12px;
        font-size: 13px;
    }
    
    .meditation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-save-meditation,
    .btn-delete-meditation {
        width: 100%;
        padding: 15px;
    }
}

/* 로그인 필요 안내 */
.login-required {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 2px dashed #e0e0e0;
}

.login-message {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-login {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(58, 90, 64, 0.2);
}

.btn-login:hover {
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 90, 64, 0.3);
}

/* 반응형 - 로그인 안내 */
@media (max-width: 768px) {
    .login-required {
        padding: 30px 15px;
    }
    
    .login-message {
        font-size: 1em;
    }
    
    .btn-login {
        padding: 15px 30px;
        width: 100%;
    }
}