/* === 기본 설정 === */
:root {
    --point-color: #d4bfa4;
    --point-dark: #b8a48a;
    --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;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > .site-footer {
    margin-top: auto;
}

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 {
    position: relative;
    overflow: hidden;
}
.navbar-brand::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes shimmer {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 120%;
    }
}
.navbar-brand img {
    height: 50px;
}
.navbar .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 1rem 1.2rem !important;
    font-size: 0.95rem;
}
.navbar .nav-link:hover,
.navbar .dropdown-item:hover {
    color: var(--point-color) !important;
}
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 0;
    min-width: 180px;
}
.dropdown-item {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

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

/* === 게시글 본문 === */
#board_inside {
    overflow: hidden;
    word-break: break-word;
}
#board_inside img {
    max-width: 100%;
    height: auto !important;
}

/* === 슬라이더 === */
.hero-slider {
    background: var(--gray-bg);
    overflow: hidden;
}
.hero-slider .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}
.hero-slider .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(34, 139, 34, 0.35) 0%,
        transparent 40%,
        transparent 60%,
        rgba(34, 139, 34, 0.25) 100%
    );
    background-size: 200% 200%;
    animation: gradient-move 3s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes gradient-move {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* === 최신글 섹션 === */
.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 {
    overflow: hidden;
}
.latest-box .banner-img img {
    width: 100%;
    border-radius: 4px;
    animation: drop-in 2s ease-out both;
}
@keyframes drop-in {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    60% {
        transform: translateY(5%);
        opacity: 1;
    }
    80% {
        transform: translateY(-2%);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === 활동소개 섹션 === */
.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;
}

/* === 사이드 고정 버튼 === */
.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: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 30px 0 0;
}
.site-footer .footer-info {
    font-size: 0.85rem;
    color: #888;
    line-height: 2;
}
.site-footer .footer-logo img {
    max-height: 50px;
    opacity: 0.6;
}
.site-footer .footer-social {
    margin-top: 15px;
}
.site-footer .footer-social a {
    color: #999;
    font-size: 1.2rem;
    margin: 0 8px;
    transition: color 0.3s;
}
.site-footer .footer-social a:hover {
    color: var(--point-color);
}
.copyright {
    border-top: 1px solid #ddd;
    padding: 15px 0;
    margin-top: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
}

/* === 반응형 === */
@media (max-width: 767px) {
    .hero-slider .carousel-item img {
        max-height: 250px;
    }
    .activity-card {
        height: 200px;
    }
    .ico-box {
        min-height: 200px;
    }
    .section-latest,
    .section-activity {
        padding: 30px 0;
    }
}
