/* policy-archive.html 전용 독립 스타일시트 */

/* ==================================== */
/* 1. 기본 & 공통 스타일                */
/* ==================================== */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
}

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.ad-placeholder {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: #fffbe6;
    border: 2px dashed #f0c36d;
    color: #b68c00;
    font-size: 1rem;
    font-weight: bold;
}

/* ==================================== */
/* 2. 공통 내비게이션 바 (GNB) 스타일   */
/* ==================================== */
.gnb {
    width: 100%;
    background-color: #222;
    border-bottom: 1px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.gnb-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}
.gnb-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f1c40f;
    text-decoration: none;
}
.gnb-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}
.gnb-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    padding: 8px;
    transition: color 0.2s ease;
}
.gnb-menu a:hover {
    color: #004098;
}
.gnb-menu a.active {
    color: #004098;
    font-weight: bold;
    border-bottom: 2px solid #004098;
}

/* ==================================== */
/* 3. 페이지 고유 스타일                */
/* ==================================== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.overall-progress-summary {
    font-size: 1rem;
    font-weight: 500;
    color: #0077cc;
    background: #eaf6ff;
    padding: 6px 12px;
    border-radius: 6px;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.policy-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  /* ▼▼▼ [핵심] 카드 내부를 3개의 행(header, body, footer)으로 구성하는 Grid로 변경 ▼▼▼ */
  display: grid;
  grid-template-rows: auto 1fr auto; 
  height: 100%; /* 부모 그리드에 맞춰 높이를 꽉 채움 */
}

.card-header {
  padding: 16px;
  position: relative; /* 상태 배지 위치의 기준점 */
}

.card-body {
  padding: 0 16px;
  overflow: hidden; /* 내용이 많아도 영역을 벗어나지 않도록 함 */
}

.card-footer {
  padding: 16px;
  border-top: 1px solid #eee;
}

.ad-card-policy {
  /* ... 다른 스타일들 ... */
  min-height: 300px; /* 다른 카드들과 높이를 비슷하게 맞춤 */
}

.policy-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
}



.status-done { background-color: #2ecc71; }
.status-progress { background-color: #f1c40f; color: #333; }
.status-hold { background-color: #95a5a6; }
.status-cancel { background-color: #e74c3c; }

.sub-policy-list {
    margin: 0;
    padding-left: 2px;
    display: none;
}

.sub-policy-list li {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
}

.sub-policy-status {
    flex-shrink: 0;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 4px;
    border-radius: 12px;
    color: white;
    min-width: 50px;
    text-align: center;
}

.sub-policy-content {
    color: #333;
    font-size: 0.8rem;
    font-weight: bold;
}

.toggle-btn {
    font-size: 0.9rem;
    color: #0077cc;
    cursor: pointer;
    text-align: center;
}

.side-ad {
    position: fixed;
    top: 120px;
    width: 120px;
    height: 600px;
    background: #fffbe6;
    border: 2px dashed #f0c36d;
    color: #b68c00;
    font-size: 0.95rem;
    font-weight: bold;
    text-align: center;
    padding-top: 20px;
    z-index: 10;
}
.side-ad.left { left: 10px; }
.side-ad.right { right: 10px; }


/* ==================================== */
/* 4. 공통 푸터(Footer) 스타일          */
/* ==================================== */
.site-footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9rem;
}
.footer-links a {
    color: #ccc;
    margin: 0 8px;
    text-decoration: none;
}

/* ==================================== */
/* 5. 모바일 반응형 스타일              */
/* ==================================== */
@media screen and (max-width: 1024px) {
  .side-ad { display: none; }
  main {
    margin-left: 20px;
    margin-right: 20px;
  }
}
@media screen and (max-width: 768px) {
  .gnb-menu { display: none; }
  .gnb-inner { justify-content: center; }
}