/* Barutçu Global Sağlık Rehberi v0.3.1
 * Tasarım eklentinin içinde tutulur; Özel CSS gerekmez.
 */

.bg-hcg-archive-main,
.bg-hcg-single-main {
    width: 100%;
    box-sizing: border-box;
    padding: 68px 20px 80px;
    background: #fff;
}

.bg-hcg-archive-inner,
.bg-hcg-single-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

/* Kategori başlığı burada bilinçli olarak yok.
 * WordPress/Astra'nın kategori başlığını da kullanmıyoruz.
 * Böylece her kategori aynı haber listesi formatında görünür.
 */

.bg-hcg-card-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.bg-hcg-card-grid > .bg-hcg-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box;
}

.bg-hcg-card {
    box-sizing: border-box;
}

.bg-hcg-card-inner {
    width: 100%;
    min-height: 190px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.65fr) auto;
    column-gap: 42px;
    align-items: center;
    padding: 30px 32px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0,0,0,.055);
}

.bg-hcg-card-title-wrap {
    min-width: 0;
}

.bg-hcg-card-title {
    margin: 0;
    padding: 0;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
}

.bg-hcg-card-title a {
    color: #102b4e;
    text-decoration: none;
}

.bg-hcg-card-title a:hover {
    color: #c9152b;
}

.bg-hcg-card-excerpt {
    min-width: 0;
    color: #17395f;
    font-size: 16px;
    line-height: 1.7;
}

.bg-hcg-card-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bg-hcg-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 145px;
    margin: 0;
    padding: 13px 18px;
    box-sizing: border-box;
    color: #c9152b;
    background: #fff;
    border: 1px solid #c9152b;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.bg-hcg-read-more:hover {
    color: #fff;
    background: #c9152b;
    transform: translateY(-1px);
}

.bg-hcg-pagination {
    margin-top: 42px;
    text-align: center;
}

.bg-hcg-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bg-hcg-pagination a,
.bg-hcg-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.bg-hcg-pagination a {
    color: #102b4e;
    background: #f5f7fa;
}

.bg-hcg-pagination a:hover {
    color: #c9152b;
}

.bg-hcg-pagination span.current {
    color: #fff;
    background: #c9152b;
}

.bg-hcg-empty {
    padding: 40px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    text-align: center;
    color: #17395f;
}

/* Tekil yazı: aynı marka dili, fakat haber kartından bağımsız içerik alanı. */
.bg-hcg-single-inner {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 46px 42px;
    box-sizing: border-box;
    background: #fff;
}

.bg-hcg-single-header {
    margin: 0 0 36px;
    padding: 0;
}

.bg-hcg-single-header h1 {
    margin: 0;
    color: #102b4e;
    font-size: 38px;
    line-height: 1.3;
    font-weight: 700;
}

.bg-hcg-single-content {
    color: #17395f;
    font-size: 17px;
    line-height: 1.8;
}

.bg-hcg-single-content h2 {
    margin-top: 38px;
    margin-bottom: 16px;
    color: #102b4e;
    font-size: 28px;
    line-height: 1.35;
}

.bg-hcg-single-content h3 {
    margin-top: 30px;
    margin-bottom: 12px;
    color: #102b4e;
    font-size: 22px;
    line-height: 1.4;
}

.bg-hcg-single-content p {
    margin: 0 0 18px;
}

@media (max-width: 921px) {
    .bg-hcg-card-inner {
        grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.5fr);
        column-gap: 28px;
        row-gap: 18px;
    }

    .bg-hcg-card-title-wrap {
        grid-column: 1;
        grid-row: 1;
    }

    .bg-hcg-card-excerpt {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .bg-hcg-card-action {
        grid-column: 2;
        grid-row: 1;
    }

    .bg-hcg-archive-main,
    .bg-hcg-single-main {
        padding: 55px 18px 65px;
    }

    .bg-hcg-single-inner {
        padding: 38px 30px;
    }

    .bg-hcg-single-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .bg-hcg-card-grid {
        gap: 18px !important;
    }

    .bg-hcg-card-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 24px 20px;
    }

    .bg-hcg-card-action {
        justify-content: flex-start;
    }

    .bg-hcg-card-title {
        font-size: 21px;
    }

    .bg-hcg-single-inner {
        padding: 30px 22px;
    }

    .bg-hcg-single-header h1 {
        font-size: 28px;
    }

    .bg-hcg-single-content {
        font-size: 16px;
    }
}
