/* bravo-blog-page — Elementor Widget
   Layout: Desktop 1+3+3  /  Tablet 1+2+2+2  /  Mobile 1-col
   Scope: .bbp-wrap  /  prefix: .bbp-*
*/

/* ── Panel icon ───────────────────────────────────────────── */
.bravo-icon-blog-page {
    display: inline-block;
    width: 1em;
    height: 1em;
    background: url('../img/bravo-mark-2.svg') no-repeat center / contain;
    vertical-align: middle;
}
.bravo-icon-blog-page::before { content: ''; }

/* ── Root ─────────────────────────────────────────────────── */
.bbp-wrap {
    width: 100%;
    font-family: inherit;
}

/* ── Featured post ────────────────────────────────────────── */
.bbp-featured {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    color: inherit;
}

.bbp-featured__img-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.bbp-featured__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.bbp-featured:hover .bbp-featured__img-wrap img {
    transform: scale(1.04);
}

.bbp-featured__img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, #201d49 0%, #302D71 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbp-featured__body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Meta (category + date) ───────────────────────────────── */
.bbp-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bbp-meta__cat a {
    display: inline-block;
    padding: 3px 10px;
    background: #EDE9FE;
    color: #4C1D95;
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s, color 0.2s;
}

.bbp-meta__cat a:hover {
    background: #201d49;
    color: #fff;
}

.bbp-meta__date {
    font-size: 13px;
    color: #6B7280;
}

/* ── Featured title ───────────────────────────────────────── */
.bbp-featured__title {
    font-size: 28px;
    font-weight: 700;
    color: #201d49;
    line-height: 1.25;
    margin: 0;
}

.bbp-featured__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.bbp-featured__title a:hover {
    color: #4C1D95;
}

/* ── Featured excerpt ─────────────────────────────────────── */
.bbp-featured__excerpt {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.65;
    margin: 0;
}

/* ── Author / reading time ────────────────────────────────── */
.bbp-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6B7280;
    flex-wrap: wrap;
}

.bbp-author__name-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bbp-author__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.bbp-author__name {
    font-weight: 500;
    color: #374151;
}

.bbp-author__sep {
    color: #D1D5DB;
}

.bbp-author__read-time {
    color: #6B7280;
}

/* ── CTA text link ────────────────────────────────────────── */
.bbp-link-cta {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #302D71;
    text-decoration: none;
    align-self: flex-start;
    margin-top: 4px;
    transition: color 0.2s;
}

.bbp-link-cta:hover {
    color: #201d49;
    text-decoration: none;
}

/* ── Grid ─────────────────────────────────────────────────── */
.bbp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* ── Card ─────────────────────────────────────────────────── */
.bbp-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.bbp-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11);
    transform: translateY(-2px);
}

.bbp-card__img-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.bbp-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.bbp-card:hover .bbp-card__img-wrap img {
    transform: scale(1.05);
}

.bbp-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #201d49 0%, #302D71 100%);
}

.bbp-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* ── Card title ───────────────────────────────────────────── */
.bbp-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #201d49;
    line-height: 1.35;
    margin: 0;
}

.bbp-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.bbp-card__title a:hover,
.bbp-card:hover .bbp-card__title a {
    color: #4C1D95;
}

/* ── Card excerpt ─────────────────────────────────────────── */
.bbp-card__excerpt {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* ── No posts ─────────────────────────────────────────────── */
.bbp-no-posts {
    text-align: center;
    padding: 64px 24px;
    color: #6B7280;
    font-size: 16px;
}

/* ── Pagination ───────────────────────────────────────────── */
.bbp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.bbp-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #201d49;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.bbp-page-link:hover {
    background: #F3F0FF;
    border-color: #DDD6FE;
    color: #201d49;
    text-decoration: none;
}

.bbp-page-link.is-active {
    background: #201d49;
    color: #fff;
    border-color: #201d49;
    pointer-events: none;
}

.bbp-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #9CA3AF;
    font-size: 14px;
    user-select: none;
}

/* ── Tablet (768–1279px) ──────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1279px) {
    .bbp-featured {
        border-radius: 10px;
    }

    .bbp-featured__body {
        gap: 12px;
    }

    .bbp-featured__title { font-size: 22px; }
    .bbp-featured__excerpt { font-size: 15px; }

    .bbp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 36px;
    }
}

/* ── Mobile (< 768px) ─────────────────────────────────────── */
@media (max-width: 767px) {
    .bbp-featured {
        margin-bottom: 28px;
    }

    .bbp-featured__body {
        padding: 20px;
        gap: 10px;
    }

    .bbp-featured__title { font-size: 20px; }
    .bbp-featured__excerpt { font-size: 15px; }

    .bbp-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }

    .bbp-card__body { padding: 16px; }
    .bbp-card__title { font-size: 17px; }
}
