/* ClubHouse Dynamic Blog - scoped styles */

.chdb-dynamic-blog {
    padding-top: clamp(72px, 8vw, 120px);
    padding-bottom: clamp(72px, 8vw, 120px);
}

.chdb-dynamic-blog .chdb-heading {
    margin-bottom: clamp(38px, 5vw, 66px);
}

.chdb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 28px;
}

.chdb-card {
    min-width: 0;
}

.chdb-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dfe7e6;
    text-decoration: none;
}

.chdb-image img,
.chdb-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.chdb-image img {
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2,.65,.3,1);
}

.chdb-image-placeholder {
    background:
        linear-gradient(135deg, rgba(8,76,88,.92), rgba(15,126,139,.5)),
        linear-gradient(35deg, #0f4953, #d8e5df);
}

.chdb-image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5,31,35,0) 50%, rgba(5,31,35,.24) 100%);
}

.chdb-card:hover .chdb-image img {
    transform: scale(1.045);
}

.chdb-content {
    padding-top: 20px;
}

.chdb-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 13px;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.chdb-category {
    color: #0b6b79;
    font-weight: 600;
}

.chdb-date {
    color: #777;
}

.chdb-date::before {
    content: "·";
    margin-right: 12px;
    color: #a3a3a3;
}

.chdb-title {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 2vw, 38px);
    line-height: 1.08;
    font-weight: 400;
}

.chdb-title a {
    color: #123b43;
    text-decoration: none;
}

.chdb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b6170;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.chdb-link span {
    display: inline-block;
    transition: transform .25s ease;
}

.chdb-link:hover span {
    transform: translate(3px, -3px);
}

.chdb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: clamp(52px, 6vw, 82px);
}

.chdb-page {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(10,65,74,.2);
    color: #123b43;
    text-decoration: none;
    font-size: 13px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.chdb-page:hover,
.chdb-page.is-current {
    background: #0b6675;
    border-color: #0b6675;
    color: #fff;
}

.chdb-empty {
    margin: 0;
}

@media (max-width: 1024px) {
    .chdb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .chdb-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .chdb-content {
        padding-top: 17px;
    }

    .chdb-title {
        font-size: 30px;
    }

    .chdb-pagination {
        margin-top: 50px;
    }
}
