/* 첫페이지 템플릿 01 · 기본 (카드 그리드) */

.post-grid-home-wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 30px 20px 50px; box-sizing: border-box; }
.pgh-hero { margin-bottom: 22px; text-align: center; }
.pgh-hero h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.3; color: #222; font-weight: 700; }
.pgh-hero p { margin: 0; font-size: 16px; color: #666; }
.pgh-definition { margin: 0 auto 26px; max-width: 980px; padding: 18px 22px; background: linear-gradient(135deg, #f8fbff 0%, #eef6fc 100%); border: 1px solid #d9e9f5; border-radius: 18px; }
.pgh-definition h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.35; color: #18609C; font-weight: 700; text-align: center; }
.pgh-definition p { margin: 0 0 12px; color: #444; font-size: 14px; line-height: 1.5; }
.pgh-definition p:last-child { margin-bottom: 0; }
.pgh-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; justify-content: center; }
.pgh-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid #dcdcdc; border-radius: 999px; background: #fff; color: #333; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.2s ease; }
.pgh-tab:hover, .pgh-tab.is-active { background: #18609C; border-color: #18609C; color: #fff; }
.pgh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pgh-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e9e9e9; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.04); transition: transform 0.2s ease, box-shadow 0.2s ease; height: 100%; }
.pgh-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.pgh-card-thumb { position: relative; display: block; aspect-ratio: 4 / 2.6; overflow: hidden; background: #f5f5f5; }
.pgh-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgh-card-thumb .pcl-thumb-ph { min-height: 0; }
.pgh-card-body { display: flex; flex-direction: column; padding: 18px 18px 20px; flex: 1; }
.pgh-card-cat { margin-bottom: 10px; font-size: 13px; line-height: 1.4; color: #18609C; font-weight: 700; }
.pgh-card-cat a { color: #18609C; text-decoration: none; }
.pgh-card-cat a:hover { text-decoration: underline; }
.pgh-card-title { margin: 0 0 12px; font-size: 18px; line-height: 1.45; font-weight: 700; }
.pgh-card-title a { color: #222; text-decoration: none; }
.pgh-card-title a:hover { color: #18609C; }
.pgh-card-excerpt { margin: 0 0 14px; color: #666; font-size: 14px; line-height: 1.7; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pgh-card-meta { margin-top: auto; font-size: 13px; color: #888; }
.pgh-empty { text-align: center; padding: 60px 20px; border: 1px dashed #ddd; border-radius: 16px; color: #666; background: #fafafa; }
.pgh-pagination { margin-top: 40px; display: flex; justify-content: center; }
.pgh-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.pgh-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid #ddd; background: #fff; color: #333; text-decoration: none; font-weight: 600; margin: 0 2px; }
.pgh-pagination .page-numbers.current, .pgh-pagination .page-numbers:hover { background: #18609C; border-color: #18609C; color: #fff; }
.pgh-link-sections { margin-top: 56px; display: grid; gap: 24px; }
.pgh-link-section { background: #f8fafc; border: 1px solid #e3e8ef; border-radius: 20px; padding: 24px 22px; }
.pgh-link-section h3 { margin: 0 0 18px; font-size: 22px; line-height: 1.3; color: #18609C; font-weight: 700; }
.pgh-inline-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pgh-inline-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 1px solid #d7e3ee; border-radius: 999px; background: #ffffff; color: #285d8f; text-decoration: none; font-size: 14px; line-height: 1.2; font-weight: 500; transition: all 0.18s ease; }
.pgh-inline-links a:hover { background: #eaf4ff; border-color: #b7d0ea; color: #124d84; transform: translateY(-1px); }
.pgh-group-list { display: grid; gap: 14px; }
.pgh-group-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: start; column-gap: 14px; row-gap: 10px; padding: 14px 0; border-top: 1px solid #edf1f5; }
.pgh-group-item:first-child { border-top: none; padding-top: 0; }
.pgh-group-main { display: inline-flex; align-items: center; justify-content: center; width: 160px; min-height: 40px; padding: 0 14px; box-sizing: border-box; border-radius: 999px; background: #18609C; border: 1px solid #18609C; color: #fff !important; text-decoration: none; font-size: 14px; line-height: 1.2; font-weight: 700; text-align: center; white-space: nowrap; transition: all 0.18s ease; }
.pgh-group-main:hover { background: #124d84; border-color: #124d84; color: #fff !important; }
.pgh-sub-links { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; padding-top: 1px; }
.pgh-sub-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border: 1px solid #d7e3ee; border-radius: 999px; background: #ffffff; color: #285d8f; text-decoration: none; font-size: 13px; line-height: 1.2; font-weight: 500; transition: all 0.18s ease; }
.pgh-sub-links a:hover { background: #eef6fd; border-color: #bdd4ea; color: #124d84; transform: translateY(-1px); }
.pgh-faq-section { margin-top: 56px; background: #fff; border: 1px solid #e9e9e9; border-radius: 16px; padding: 28px 24px; }
.pgh-faq-section h3 { margin: 0 0 18px; font-size: 24px; line-height: 1.3; color: #18609C; font-weight: 700; }
.pgh-faq-list { display: grid; gap: 14px; }
.pgh-faq-item { border: 1px solid #e7eef3; border-radius: 12px; background: #fafcff; overflow: hidden; }
.pgh-faq-item summary { cursor: pointer; padding: 16px 18px; font-size: 16px; line-height: 1.6; font-weight: 700; color: #222; list-style: none; }
.pgh-faq-item summary::-webkit-details-marker { display: none; }
.pgh-faq-answer { padding: 0 18px 18px; color: #555; font-size: 15px; line-height: 1.8; }

@media (max-width: 1024px) { .pgh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .post-grid-home-wrap { padding: 6px 2px 28px; }
    .pgh-hero h1 { font-size: 26px; }
    .pgh-hero p { font-size: 15px; }
    .pgh-definition { padding: 16px 12px; border-radius: 14px; }
    .pgh-definition h2 { font-size: 21px; }
    .pgh-definition p { font-size: 15px; }
    .pgh-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 16px; }
    .pgh-card-body { padding: 14px 12px 15px; }
    .pgh-card-title { font-size: 17px; }
    .pgh-link-section, .pgh-faq-section { padding: 16px 12px; }
    .pgh-link-section h3, .pgh-faq-section h3 { font-size: 21px; }
    .pgh-group-item { grid-template-columns: 1fr; }
    .pgh-group-main { width: fit-content; max-width: 100%; justify-content: center; }
}
