/* ──────────────────────────────────────────────────────────
   ICPA NEWS SHOWCASE — Featured Magazine & Grid CSS v2.1
   ────────────────────────────────────────────────────────── */

/* ── Section Container ── */
.icpa-news-section-wrap {
    width: 100%;
    padding: 35px 0;
    box-sizing: border-box;
    position: relative;
}

.icpa-news-inner-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════
   SECTION HEADER (HEADING + SUBHEADING ABOVE GRID)
   ══════════════════════════════════════════════════════════ */
.icpa-section-header {
    margin-bottom: 28px;
    position: relative;
}

.icpa-section-header.icpa-header-align-left {
    text-align: left;
}

.icpa-section-header.icpa-header-align-center {
    text-align: center;
}

.icpa-header-top-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--icpa-cat-color, #d32f2f);
    background: rgba(211, 47, 47, 0.08);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.icpa-section-title {
    font-size: var(--icpa-header-size, 28px);
    font-weight: 800;
    color: var(--icpa-header-color, #1a2c6b);
    margin: 0 0 6px 0;
    line-height: 1.3;
    letter-spacing: -0.4px;
}

.icpa-section-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: var(--icpa-sub-color, #64748b);
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.icpa-section-title-line {
    width: 50px;
    height: 3px;
    background: var(--icpa-cat-color, #d32f2f);
    border-radius: 2px;
}

.icpa-header-align-center .icpa-section-title-line {
    margin: 0 auto;
}

/* ── Category Label ── */
.icpa-mag-category-badge {
    margin-bottom: 8px;
}

.icpa-mag-category-badge .icpa-cat-text {
    display: inline-block;
    color: var(--icpa-cat-color, #d32f2f) !important;
    font-size: var(--icpa-cat-size, 15px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.2px;
    text-transform: none;
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════════
   FEATURED MAGAZINE LAYOUT (1 BIG LEFT + 4 RIGHT LIST)
   ══════════════════════════════════════════════════════════ */
.icpa-mag-container {
    display: grid;
    grid-template-columns: 1.38fr 1fr;
    gap: 36px;
    align-items: start;
}

/* ── Left: Featured Post ── */
.icpa-mag-featured {
    display: flex;
    flex-direction: column;
}

.icpa-mag-featured-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--icpa-radius, 6px);
    background-color: #f1f3f7;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.icpa-mag-img-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.icpa-mag-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.icpa-mag-featured:hover .icpa-mag-featured-img {
    transform: scale(1.04);
}

.icpa-mag-featured-title {
    font-size: var(--icpa-main-size, 24px);
    font-weight: var(--icpa-weight, 700);
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.2px;
}

.icpa-mag-featured-title a {
    color: var(--icpa-title-color, #111111) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.icpa-mag-featured-title a:hover {
    color: var(--icpa-title-hover, #d32f2f) !important;
}

/* ── Right: Side List ── */
.icpa-mag-side-list {
    display: flex;
    flex-direction: column;
}

.icpa-mag-side-item {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--icpa-divider, #eaeaea);
    transition: transform 0.2s ease;
}

.icpa-mag-side-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.icpa-mag-side-title {
    font-size: var(--icpa-side-size, 17px);
    font-weight: var(--icpa-weight, 700);
    line-height: 1.45;
    margin: 0;
}

.icpa-mag-side-title a {
    color: var(--icpa-title-color, #111111) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.icpa-mag-side-title a:hover {
    color: var(--icpa-title-hover, #d32f2f) !important;
}

/* ══════════════════════════════════════════════════════════
   CLASSIC GRID LAYOUT (ALTERNATIVE)
   ══════════════════════════════════════════════════════════ */
.icpa-news-grid {
    display: grid;
    gap: 26px;
    align-items: start;
}

.icpa-cols-2 { grid-template-columns: repeat(2, 1fr); }
.icpa-cols-3 { grid-template-columns: repeat(3, 1fr); }
.icpa-cols-4 { grid-template-columns: repeat(4, 1fr); }

.icpa-news-card {
    background: #ffffff;
    border-radius: var(--icpa-radius, 6px);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.icpa-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.icpa-news-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f3f7;
}

.icpa-news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.icpa-news-card:hover .icpa-news-card-img {
    transform: scale(1.05);
}

.icpa-news-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
}

.icpa-news-title {
    font-size: var(--icpa-side-size, 17px);
    font-weight: var(--icpa-weight, 700);
    line-height: 1.4;
    margin: 0;
}

.icpa-news-title a {
    color: var(--icpa-title-color, #111111) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.icpa-news-title a:hover {
    color: var(--icpa-title-hover, #d32f2f) !important;
}

.icpa-news-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--icpa-cat-color, #d32f2f);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE MEDIA QUERIES
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .icpa-mag-container {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .icpa-cols-3,
    .icpa-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .icpa-news-section-wrap {
        padding: 20px 0;
    }
    .icpa-section-title {
        font-size: 22px;
    }
    .icpa-mag-featured-title {
        font-size: 19px;
    }
    .icpa-mag-side-title {
        font-size: 15px;
    }
    .icpa-cols-2,
    .icpa-cols-3,
    .icpa-cols-4 {
        grid-template-columns: 1fr;
    }
}
