@charset "utf-8";

/* ------------------------------------------------------------------
   1. 통합 변수 및 기본 설정 (:root)
   ------------------------------------------------------------------ */
:root {
    /* 브랜드 컬러 */
    --brand-red: #E63946;
    --brand-dark: #111111;
    --brand-gray: #F8F9FA;
    --text-main: #1D1D1F;
    --text-sub: #6E6E73;
    --kakao-yellow: #FAE100;

    /* 배경 컬러 */
    --bg-light-section: #FFFFFF;
    --bg-impact: #2c3e50;
    --bg-notice: #F0F4F8;
    --bg-body: #f8f9fa;

    /* Admin 전용 컬러 */
    --admin-navy: #0f172a;
    --admin-gold: #d4af37;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-body);
}

/* ------------------------------------------------------------------
   2. 공통 타이포그래피 (반응형)
   ------------------------------------------------------------------ */
.hero-title, .display-3, .display-4, .display-5, .process-title {
    font-weight: 900 !important;
    word-break: keep-all !important;
    line-height: 1.3 !important;
}

.hero-desc, .process-desc, p.fs-5, .text-body-p {
    color: var(--text-sub);
    word-break: keep-all !important;
}

/* 모바일 폰트 사이즈 조정 */
@media (max-width: 992px) {
    .hero-title, .display-3, .display-4, .display-5, .process-title {
        font-size: 2.0rem !important;
        margin-bottom: 15px !important;
    }
    .hero-desc, .process-desc, p.fs-5, .text-body-p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        padding: 0 15px !important;
    }
}

/* ------------------------------------------------------------------
   3. 네비게이션 & 레이아웃
   ------------------------------------------------------------------ */
body { padding-top: 60px; } /* Fixed Navbar 공간 확보 */

.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* 사이드바 (데스크탑) */
.sidebar {
    min-height: calc(100vh - 60px);
    background-color: var(--admin-navy);
    padding-top: 20px;
    position: fixed;
    top: 60px;
    left: 0;
    width: 16.666667%; /* col-md-2 */
    z-index: 1000;
}
.sidebar a {
    color: #94a3b8;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}
.sidebar a:hover { background-color: rgba(255,255,255,0.1); color: white; }
.sidebar a.active { background-color: var(--brand-red); color: white; font-weight: 700; }
.sidebar hr { border-color: rgba(255,255,255,0.1); }

/* 콘텐츠 영역 */
.content-area {
    padding: 30px;
    margin-left: 16.666667%; /* 사이드바 너비만큼 */
    transition: 0.3s;
}

/* 모바일 레이아웃 조정 */
@media (max-width: 992px) {
    .sidebar { display: none; } /* 모바일에서 기존 사이드바 숨김 */
    .content-area { margin-left: 0; width: 100%; padding: 20px 15px; }
}

/* ------------------------------------------------------------------
   4. [핵심] 모바일 카드형 테이블 (Responsive Table)
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .mobile-card-table thead { display: none; } /* 헤더 숨김 */
    
    .mobile-card-table tbody, 
    .mobile-card-table tr, 
    .mobile-card-table td { 
        display: block; 
        width: 100%; 
    }

    .mobile-card-table tr {
        margin-bottom: 15px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    }

    .mobile-card-table td {
        text-align: left;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-card-table td:last-child { border-bottom: none; }

    /* data-label 속성을 이용해 항목 이름 표시 */
    .mobile-card-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #64748b;
        font-size: 0.85rem;
        margin-right: 10px;
        min-width: 80px;
    }
}

/* ------------------------------------------------------------------
   5. 공통 컴포넌트 (카드, 버튼)
   ------------------------------------------------------------------ */
.admin-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    padding: 25px;
    margin-bottom: 20px;
}

.btn-rounded { border-radius: 50px; font-weight: 700; }
:root {
    /* (변수 생략...) */
    --brand-red: #E63946;       
    /* ... */
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* 가로 스크롤 방지 */
    /* [수정 부분] 옛한글 지원을 위해 Batang을 가장 먼저 지정합니다. */
    font-family: 'Batang', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light-section);
}