/* =====================================================
   소아암재단 Taxonomy (게시판/아카이브) 스타일
   ===================================================== */

/* ===== 4열 공용 그리드 ===== */
.quad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0;
}

.report-card {
    border: 1px solid #aaa;
    border-radius: 12px;
    padding: 64px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background: #fff;
}

.report-card__logo {
    width: 108px;
    height: auto;
}

.report-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #343232;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.report-card .wp-block-buttons {
    margin-top: auto;
}

/* ===== quad-grid 모디파이어 ===== */
.quad-grid--report { gap: 36px 24px; }

@media (max-width: 1024px) {
    .quad-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    /* report-card 모바일 */
    .quad-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .quad-grid--report { gap: 16px; }
    .report-card {
        padding: 24px 16px;
        gap: 16px;
        border-radius: 8px;
    }
    .report-card__logo { width: 64px; }
    .report-card__title {
        font-size: 15px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .quad-grid {
        column-gap: 16px;
        row-gap: 32px;
    }
    .quad-grid--report { gap: 16px; }
    .qcard__title { font-size: 16px; }
    .qcard__date  { font-size: 12px; }
}

/* ===== weba4 카드 (썸네일 + 제목 + 날짜) ===== */
.qcard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.qcard__thumb {
    width: 100%;
    aspect-ratio: 1 / 1.414;
    object-fit: cover;
    border: 1px solid #ccc;
    display: block;
}

.qcard__title {
    font-size: 24px;
    font-weight: 700;
    color: #343232;
    line-height: 1.5;
    margin: 0;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qcard__date {
    font-size: 16px;
    color: #777;
    margin: 0;
}

/* ===== 페이지네이션 바 (페이지네이션 좌 + 검색창 우) ===== */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    flex-wrap: wrap;
}

/* ===== 페이지네이션 ===== */
.navigation.pagination {
    margin-top: 0;
}

.navigation.pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

/* 공통 버튼 */
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 400;
    color: #343232;
    background: #eee;
    text-decoration: none;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

/* 현재 페이지 */
.navigation.pagination .page-numbers.current {
    background: #F05B89;
    color: #fff;
    font-weight: 700;
}

/* 이전 / 다음 */
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
    background: #FDEBF1;
    color: #F05B89;
}

/* 줄임표 (dots) */
.navigation.pagination .page-numbers.dots {
    background: transparent;
    pointer-events: none;
    color: #343232;
}

/* hover */
.navigation.pagination .page-numbers:not(.current):not(.dots):hover {
    background: #F6A8BA;
    color: #fff;
}

/* ===== 검색창 ===== */
.pagination-search {
    display: flex;
    align-items: center;
    border: 1.5px solid #F05B89;
    border-radius: 8px;
    overflow: hidden;
    height: 48px;
    flex-shrink: 0;
    margin:0;
}

.pagination-search__input {
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 18px;
    color: #343232;
    background: #fff;
    width: 220px;
    height: 100%;
}

.pagination-search__input::placeholder {
    color: #bbb;
}

.pagination-search__btn {
    height: 100%;
    padding: 0 20px;
    background: #F05B89;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.pagination-search__btn:hover {
    background: #d94a78;
}

/* ===== 후원자님 메시지 카드 그리드 ===== */
.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 64px 0 0;
}

.promise-card {
    list-style: none;
    display: flex;
    flex-direction: column;
    border:1px solid #d1d1d1;
    gap: 10px;
    padding: 22px;
    height: 342px;
    background-image: url('../../img/bg_paper.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.promise-card__name {
    font-size: 20px;
    line-height: 32px;
    color: #343232;
    font-weight: 700;
    margin: 0;
}

.promise-card__category {
    font-size: 15px;
    line-height: 32px;
    color: #636466;
    margin: 0;
}

.promise-card__content {
    height: 172px;
    overflow-y: auto;
    font-size: 20px;
    line-height: 32px;
    color: #555560;
    flex: none;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: #F05B89 #FDEBF1;
    word-break: break-word;
}

.promise-card__content::-webkit-scrollbar {
    width: 3px;
}

.promise-card__content::-webkit-scrollbar-track {
    background: #FDEBF1;
}

.promise-card__content::-webkit-scrollbar-thumb {
    background: #F05B89;
    border-radius: 2px;
}

.promise-card__date {
    font-size: 16px;
    line-height: 32px;
    color: #636466;
    margin: 0;
}
