/* 군인 복지 정보 사이트 커스텀 CSS */

:root {
    --military-green: #556B2F;
    --military-green-dark: #3D4F22;
    --military-green-light: #6B8E23;
    --navy: #1B2A4A;
    --navy-light: #2C3E6B;
    --accent: #D4A844;
    --bg-light: #F5F6F0;
}

/* 기본 */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: #333;
}

/* 네비게이션 */
.navbar-military {
    background: linear-gradient(135deg, var(--navy) 0%, var(--military-green-dark) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-military .navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff !important;
}

.navbar-military .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}

.navbar-military .nav-link:hover,
.navbar-military .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.navbar-military .dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.navbar-military .dropdown-item:hover {
    background-color: var(--military-green);
    color: #fff;
}

/* 버튼 */
.btn-military {
    background: linear-gradient(135deg, var(--military-green) 0%, var(--military-green-dark) 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-military:hover {
    background: linear-gradient(135deg, var(--military-green-light) 0%, var(--military-green) 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(85,107,47,0.4);
}

.btn-navy {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    border: none;
}

.btn-navy:hover {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
    color: #fff;
}

/* 히어로 섹션 */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--military-green-dark) 50%, var(--military-green) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 카드 스타일 */
.card-category {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.card-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-category .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-category .card-body {
    padding: 1.5rem;
}

.card-category .card-title {
    font-weight: 700;
    font-size: 1.1rem;
}

/* 상세 페이지 */
.detail-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--military-green) 100%);
    color: #fff;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.detail-table th {
    background: var(--bg-light);
    white-space: nowrap;
    width: 150px;
    vertical-align: middle;
    font-weight: 600;
    color: var(--navy);
}

.detail-table td {
    vertical-align: middle;
}

/* 가격표 */
.price-table thead th {
    background: var(--military-green);
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
}

.price-table td {
    text-align: center;
}

/* 검색 폼 */
.search-box {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

/* 지도 */
#map {
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.map-filter {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* 풋터 */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
}

.footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* 배지 */
.badge-military {
    background: var(--military-green);
    color: #fff;
}

.badge-navy {
    background: var(--navy);
    color: #fff;
}

/* 통계 카드 */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--military-green);
}

.stat-card .stat-label {
    color: #777;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* 반응형 */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .detail-table th {
        width: 100px;
        font-size: 0.85rem;
    }

    #map {
        height: 350px;
    }

    .search-box {
        padding: 1rem;
    }
}

/* 페이지네이션 */
.pagination .page-item.active .page-link {
    background-color: var(--military-green);
    border-color: var(--military-green);
}

.pagination .page-link {
    color: var(--military-green);
}

.pagination .page-link:hover {
    color: var(--military-green-dark);
    background-color: #e9ecef;
}

/* 리스트 테이블 */
.list-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.list-table thead th {
    background: var(--navy);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.list-table tbody tr:hover {
    background-color: rgba(85,107,47,0.05);
}

.list-table tbody td {
    vertical-align: middle;
}

/* 브레드크럼 */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--military-green);
    text-decoration: none;
}

/* FAQ */
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

/* 용어사전 */
.text-navy {
    color: var(--navy);
}

.term-card {
    border-left: 4px solid var(--navy);
    background: #fff;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

.term-card .term-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
}

.term-card .term-def {
    color: #555;
    margin-top: 0.5rem;
}
