/* Root wrapper */
.be-two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;

    /* Card theming via CSS variables (override these if needed) */
    --be-two-col-card-bg: #ffffff;
    --be-two-col-card-bg-hover: #f8f8f8;
    --be-two-col-card-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    --be-two-col-card-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);
    --be-two-col-radius-lg: 12px;
    --be-two-col-radius-sm: 8px;
}

.be-two-col-grid__col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* =========================================================
   FEATURED CARD
   ========================================================= */

.be-two-col-grid__item--featured {
    background: var(--be-two-col-card-bg);
    border-radius: var(--be-two-col-radius-lg);
    overflow: hidden;
    box-shadow: var(--be-two-col-card-shadow);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

/* Hover animation for featured card */
.be-two-col-grid__item--featured:hover {
    transform: translateY(-3px);
    background: var(--be-two-col-card-bg-hover);
    box-shadow: var(--be-two-col-card-shadow-hover);
}

/* FEATURED IMAGE – same logic as year-tabs Style 2 */
.be-two-col-grid__thumb--featured {
    max-height: 280px;      /* same cap as the tabs control */
    overflow: hidden;
}

.be-two-col-grid__thumb--featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Featured card body */
.be-two-col-grid__body {
    padding: 0.8rem 0.9rem 1rem;
}

.be-two-col-grid__title {
    margin: 0;
}

.be-two-col-grid__title--featured {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.be-two-col-grid__excerpt {
    font-size: 1.1rem;
    line-height: 1.4;
}

/* =========================================================
   SMALL ITEMS (LIST BELOW FEATURED)
   ========================================================= */

/* Small items as mini cards */
.be-two-col-grid__item--small {
    display: grid;
    grid-template-columns: 80px auto;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.45rem 0.6rem;
    border-radius: var(--be-two-col-radius-sm);
    background: var(--be-two-col-card-bg);
    box-shadow: var(--be-two-col-card-shadow);
    transition:
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

/* Hover effect – lift + brighter background, like the featured card */
.be-two-col-grid__item--small:hover {
    background: var(--be-two-col-card-bg-hover);
    box-shadow: var(--be-two-col-card-shadow-hover);
    transform: translateY(-2px);
}

/* Small thumbs with rounded corners */
.be-two-col-grid__thumb--small img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--be-two-col-radius-sm);
}

.be-two-col-grid__title--small {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.2rem 0 0;
}

/* Links inherit color from theme */
.be-two-col-grid a {
    text-decoration: none;
}

.be-two-col-grid a:hover {
    text-decoration: underline;
}

/* =========================================================
   EDITOR PREVIEW
   ========================================================= */

.be-two-col-grid__editor-preview {
    border: 1px dashed #ccc;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #555;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .be-two-col-grid {
        display: block;
    }

    .be-two-col-grid__col {
        margin-bottom: 2rem;
    }

    .be-two-col-grid__item--featured {
        margin-bottom: 1rem;
    }

    .be-two-col-grid__item--small {
        grid-template-columns: 90px auto;
    }
}

/* Small excerpt text under titles */
.be-two-col-grid__excerpt--small {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.35;
}

.be-two-col-grid__item--small .be-two-col-grid__body {
    padding-top: 0.1rem;
}

/* ============================================
   GLOBAL FONT SIZE BOOST (+1 to +2 points)
   ============================================ */

/* Featured Post Title */
.be-two-col-grid__title--featured {
    font-size: 1.45rem;     /* was around 1.25–1.3 */
    line-height: 1.35;
}

/* Featured Post Excerpt */
.be-two-col-grid__excerpt--featured {
    font-size: 1.05rem;     /* was ~0.95rem */
    line-height: 1.55;
}

/* Small Card Titles */
.be-two-col-grid__title--small {
    font-size: 1.10rem;     /* was 0.95–1.0rem */
    line-height: 1.35;
}

/* Small Card Excerpts */
.be-two-col-grid__excerpt--small {
    font-size: 1.1rem;     /* was 0.85rem */
    line-height: 1.45;
}

/* If you want the whole block to scale slightly up */
.be-two-col-grid {
    font-size: 1.03rem; /* global base bump */
}
