/* === 기본 설정 === */
:root {
    --point-color: #B4BFCE;
    --point-dark: #9aa8b8;
    --dark-bg: #2c2c2c;
    --gray-bg: #f5f5f5;
    --bgcolor1: #5b7b6f;
    --bgcolor2: #7b8ea8;
    --bgcolor3: #a8856f;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    padding-top: 76px;
}

a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--point-color);
}

/* === 헤더/네비게이션 === */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.navbar-brand img {
    height: 50px;
}
.navbar-nav > .nav-item > .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 1rem 1rem !important;
    font-size: 0.9rem;
}
.navbar-nav > .nav-item > .nav-link:hover,
.navbar-nav > .nav-item.show > .nav-link {
    color: #fff !important;
    background-color: var(--point-color);
}
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 0;
    min-width: 200px;
    background: var(--point-color);
    padding: 0;
    margin-top: 0;
}
.navbar .dropdown-item {
    padding: 0.6rem 1.2rem;
    font-size: 0.88rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: rgba(0,0,0,0.1);
    color: #fff;
}
.navbar .dropdown-item:last-child {
    border-bottom: none;
}
.navbar .dropdown-divider {
    border-color: rgba(255,255,255,0.2);
    margin: 0;
}

/* 로그인/회원가입 버튼 */
.nav-auth .btn {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}

/* === 슬라이더 === */
.hero-slider {
    background: var(--gray-bg);
    overflow: hidden;
}
.hero-slider .carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* === 탭 콘텐츠 섹션 (메인 페이지) === */
.section-tabs {
    padding: 40px 0;
}
.side-banner {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.side-banner img {
    width: 100%;
    display: block;
}

/* 탭 위젯 */
.tab-widget .nav-tabs {
    border-bottom: 2px solid var(--point-color);
}
.tab-widget .nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    background: #eee;
    margin-right: 2px;
}
.tab-widget .nav-tabs .nav-link:hover {
    color: #333;
    background: #ddd;
}
.tab-widget .nav-tabs .nav-link.active {
    background: var(--point-color);
    color: #fff;
}
.tab-widget .tab-content {
    padding: 15px 5px;
}

/* 게시글 리스트 (탭 내부) */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.post-list li {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}
.post-list li:last-child {
    border-bottom: none;
}
.post-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 55px;
    overflow: hidden;
    border-radius: 3px;
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-info {
    flex: 1;
    min-width: 0;
}
.post-title {
    display: block;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-title:hover {
    color: var(--point-color);
}
.post-excerpt {
    font-size: 0.8rem;
    color: #999;
    margin: 4px 0 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-date {
    font-size: 0.78rem;
    color: #aaa;
    white-space: nowrap;
}
.more-link {
    font-size: 0.85rem;
    color: #888;
}
.more-link:hover {
    color: var(--point-color);
}

/* === 사진첩 섹션 (메인 페이지) === */
.section-gallery {
    padding: 50px 0;
    background: var(--gray-bg);
}
.gallery-title {
    padding: 20px 0;
}
.gallery-title h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}
.gallery-title p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    display: block;
    aspect-ratio: 5/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === 최신글 섹션 (게시판 페이지용) === */
.section-latest {
    padding: 50px 0;
    background: var(--gray-bg);
}
.latest-box {
    background: #fff;
    padding: 25px;
    height: 100%;
    border-radius: 4px;
}
.latest-box h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--point-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.latest-box h5 a {
    color: #333;
}
.latest-box h5 a:hover {
    color: var(--point-color);
}
.latest-box h5 .fa-plus {
    font-size: 0.8rem;
    color: #999;
}
.latest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.latest-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.latest-list li:last-child {
    border-bottom: none;
}
.latest-list li a {
    flex: 1;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.latest-list li a:hover {
    color: var(--point-color);
}
.latest-list .date {
    font-size: 0.78rem;
    color: #aaa;
    white-space: nowrap;
}
.latest-box .banner-img img {
    width: 100%;
    border-radius: 4px;
}

/* === 활동소개 섹션 === */
.section-activity {
    padding: 60px 0;
}
.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--point-color);
    margin: 12px auto 0;
}
.activity-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 30px;
    height: 280px;
    background: #333;
}
.activity-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: all 0.4s;
}
.activity-card:hover img {
    opacity: 0.4;
    transform: scale(1.05);
}
.activity-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: #fff;
}
.activity-card .card-overlay h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.activity-card .card-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

/* === 아이콘 박스 섹션 === */
.section-icobox {
    padding: 0;
}
.ico-box {
    padding: 40px 30px;
    color: #fff;
    text-align: center;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s;
}
.ico-box:hover {
    transform: translateY(-5px);
}
.ico-box.bg1 { background: var(--bgcolor1); }
.ico-box.bg2 { background: var(--bgcolor2); }
.ico-box.bg3 { background: var(--bgcolor3); }

.ico-box i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.ico-box h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.ico-box p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* === 게시글 본문 이미지 === */
#board_inside img {
    max-width: 100%;
    height: auto;
}

/* === 사이드 고정 버튼 === */
.fixed-side {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}
.fixed-side li a {
    display: block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    transition: width 0.3s;
}
.fixed-side li:nth-child(1) a { background: #e74c3c; }
.fixed-side li:nth-child(2) a { background: #3b5998; }
.fixed-side li:nth-child(3) a { background: #f7e600; color: #3c1e1e; }
.fixed-side li:nth-child(4) a { background: #ff0000; }

/* === 푸터 === */
.site-footer {
    background: var(--dark-bg);
    color: #ccc;
    padding: 40px 0 0;
}
.footer-menu {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.footer-menu li a {
    color: #ddd;
    font-size: 0.9rem;
    padding: 0 10px;
    border-right: 1px solid #555;
}
.footer-menu li:first-child a {
    padding-left: 0;
}
.footer-menu li:last-child a {
    border-right: none;
}
.footer-menu li a:hover {
    color: var(--point-color);
}
.footer-info {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.8;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li a {
    color: #999;
    font-size: 0.85rem;
    line-height: 2;
}
.footer-links li a:hover {
    color: #ddd;
}
.copyright {
    border-top: 1px solid #444;
    padding: 20px 0;
    margin-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* === 반응형 === */
@media (max-width: 991px) {
    .navbar-nav > .nav-item > .nav-link:hover,
    .navbar-nav > .nav-item.show > .nav-link {
        background-color: transparent;
        color: var(--point-color) !important;
    }
    .navbar .dropdown-menu {
        background: #fff;
        box-shadow: none;
    }
    .navbar .dropdown-item {
        color: #555;
        border-bottom-color: #eee;
    }
    .navbar .dropdown-item:hover {
        background: var(--gray-bg);
        color: #333;
    }
}
@media (max-width: 767px) {
    .hero-slider .carousel-item img {
        height: 250px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-tabs,
    .section-gallery {
        padding: 25px 0;
    }
    .activity-card {
        height: 200px;
    }
    .ico-box {
        min-height: 200px;
    }
}
