/*
 Theme Name: Kadence Child
 Template: kadence
 Version: 1.0
*/

.kbs-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.kbs-filter-row {
    margin-bottom: 20px;
}

.kbs-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #1e4f8f;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 8px;
}

.kbs-btn:hover {
    opacity: 0.85;
}

.kbs-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}



.kbs-summary {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.kbs-readmore {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #1e4f8f;
}

.kbs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.kbs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.kbs-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kbs-thumb img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.kbs-card-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kbs-summary {
    flex-grow: 1;
    margin-top: 10px;
}

.kbs-readmore {
    margin-top: 15px;
    font-weight: 600;
}

.kbs-card {
    display: flex;
    flex-direction: column;
}

.kbs-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kbs-summary {
    flex-grow: 1;
}

.kbs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.kbs-thumb {
    position: relative;
}

.kbs-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.kbs-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1e4f8f;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 3;
}

.kbs-card {
    display: flex;
    flex-direction: column;
}

.kbs-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.kbs-summary {
    flex-grow: 1;
}

.kbs-readmore {
    display: inline-block;
    background: #1e4f8f;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
}

.kbs-readmore:hover {
    background: #163a6b;
}

.kbs-ad-banner {
    margin-bottom: 40px;
}

.kbs-filter-row {
    margin-bottom: 25px;
}

.kbs-readmore {
    display: block;
    width: 140px;
    text-align: center;
}

/* KBS Archive Card Title Size */
.kbs-title {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
}

.kbs-title a {
    text-decoration: none;
}

.kbs-title {
    min-height: 70px;
}

.kbs-title {
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* KOPIS 딱지 */
.kbs-badge{
    display:inline-block;
    background:#e60012;
    color:#fff;
    font-size:11px;
    font-weight:700;
    padding:4px 8px;
    border-radius:4px;
    margin-bottom:8px;
}
/* 카테고리 */
.kbs-category {
    background:#e9f0f8;
    color:#1e4f8f;
    font-size:12px;
    padding:4px 8px;
    border-radius:4px;
}

/* =========================
   SINGLE EVENT CENTERED UI
========================= */

.kbs-single-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.kbs-badge-wrap {
    margin-bottom: 15px;
}

.kbs-badge {
    display: inline-block;
    background: #1e4f8f;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.kbs-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
}

.kbs-date {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.kbs-divider {
    margin: 40px 0;
    border: none;
    border-top: 1px solid #eee;
}

.kbs-thumbnail img {
    width: 100%;
    border-radius: 12px;
}

.kbs-summary {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
}

.kbs-content {
    text-align: left;
    font-size: 16px;
    line-height: 1.8;
}

/* ===== Title Slightly Bigger ===== */

.kbs-title {
    font-size: 44px;   /* 기존 38px → 44px */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}


/* ===== Summary Layout Refinement ===== */

.kbs-summary {
    max-width: 680px;       /* 읽기폭 제한 */
    margin: 0 auto;         /* 박스는 중앙 */
    text-align: left;       /* 텍스트는 좌측 정렬 */
    font-size: 18px;
    line-height: 1.7;
    background: #f8fafc;
    padding: 28px 32px;
    border-radius: 14px;
}

@media (max-width:768px){

    .kbs-title {
        font-size: 32px;
    }

    .kbs-summary {
        padding: 20px;
        font-size: 16px;
    }

}

/* ===== FORCE TITLE SIZE ===== */

.single-kbs_event .entry-title,
.single-kbs_event .kbs-title {
    font-size: 48px !important;
    font-weight: 800 !important;
    line-height: 1.2;
}

.single-kbs_event .entry-header {
    display: none;
}

/* ===== RELATED EVENTS ===== */

/* =========================
   COMPACT RELATED CARDS
========================= */

/* =========================
   ULTRA COMPACT RELATED
========================= */

.kbs-related-wrapper {
    margin-top: 60px;
    text-align: center;
}

.kbs-related-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.kbs-related-grid {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.kbs-card {
    width: 260px;              /* ★ 고정폭으로 축소 */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: 0.2s ease;
}

.kbs-card img {
    width: 100%;
    height: 120px;            /* ★ 더 줄임 */
    object-fit: cover;
}

.kbs-card-body {
    padding: 12px;
    text-align: left;
}

.kbs-card-body h4 {
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.kbs-card-body span {
    font-size: 11px;
    color: #888;
}

.kbs-card:hover {
    transform: translateY(-2px);
}

/* =========================
   COMMENTS STYLE
========================= */

#comments {
    margin-top: 60px;
    text-align: left;
}

#comments h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
}

.comment-form input[type="submit"] {
    background: #1e4f8f;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
}

/* Hide Contact Page Title */
.page-id-2757 .entry-title {
    display: none;
}


/* Duration spacing fix */

.kbs-duration {
    font-size: 12px;
    color: #777;
    margin-top: 2px;   /* ★ 간격 축소 */
    line-height: 1.2;  /* ★ 줄간격 줄임 */
}

.kbs-event-item {
    padding-bottom: 12px;  /* 기존 20~30px였다면 줄임 */
}

/* ===== FLEX STABLE ROW ===== */

.kbs-row {
    display:flex;
    gap:20px;
    align-items:flex-start;
}

.kbs-date {
    width:110px;
    flex-shrink:0;
    font-weight:600;
    color:#1e4f8f;
}

.kbs-content {
    flex:1;
}

.kbs-title {
    font-weight:500;
    line-height:1.4;
}

.kbs-day {
    margin-left:6px;
    font-size:12px;
    color:#888;
    white-space:nowrap;
}

/* ===== FIX TITLE BREAK ISSUE ===== */

.kbs-title {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
}

.kbs-content {
    min-width: 0;
}

.kbs-item {
    white-space: normal;
}

.kbs-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.kbs-content {
    flex: 1;
}

.kbs-title {
    display: inline;
}

.kbs-row {
    display:flex;
    gap:20px;
    align-items:flex-start;
}

.kbs-date {
    width:110px;
    flex-shrink:0;
    font-weight:600;
    color:#1e4f8f;
}

.kbs-content {
    flex:1;
    min-width:0;
}

.kbs-title {
    word-break:keep-all;
}