/* ========================================================
   EPMCA ELEMENTOR ADDON - BLOGS SECTION STYLES
   Scoped directly to .epmca-blogs-sec
   ======================================================== */

.elementor-widget-epmca-blog-section,
.elementor-widget-epmca-blog-section .elementor-widget-container {
    width: 100%;
}

.epmca-blogs-sec {
    padding: 88px 0 96px 0;
    background-color: #f8fafc;
/*     border-bottom: 1px solid #e2e8f0; */
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
}

.epmca-blogs-sec *,
.epmca-blogs-sec *::before,
.epmca-blogs-sec *::after {
    box-sizing: border-box;
}

.epmca-blogs-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.epmca-blogs-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.epmca-h3-pill-badge-light {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background-color: #e0f2fe !important;
    color: #34AAE6 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    padding: 5px 12px !important;
    border-radius: 9999px !important;
    margin-bottom: 12px !important;
    line-height: 1 !important;
}

.epmca-h3-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 12px 0 !important;
}

.epmca-h3-section-subtitle {
    font-size: 15px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    max-width: 680px !important;
}

.epmca-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #34AAE6;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.epmca-view-all-link:hover {
    color: #0284c7;
    transform: translateX(3px);
}

.epmca-view-all-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.epmca-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.epmca-blog-card {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    text-decoration: none;
    color: inherit;
}

.epmca-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
    border-color: #cbd5e1;
}

.epmca-blog-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.epmca-blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.epmca-blog-card:hover .epmca-blog-img {
    transform: scale(1.05);
}

.epmca-blog-category-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: #34AAE6;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.epmca-blog-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.epmca-blog-meta {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.epmca-blog-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.38;
    margin: 0 0 12px 0;
}

.epmca-blog-excerpt {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

.epmca-blog-link {
    font-size: 13.5px;
    font-weight: 700;
    color: #34AAE6;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-top: auto;
}

.epmca-blog-link:hover {
    color: #0284c7;
    transform: translateX(3px);
}

.epmca-blog-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* Responsive */
@media (max-width: 992px) {
    .epmca-blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .epmca-blogs-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .epmca-blogs-sec {
        padding: 50px 0;
    }

    .epmca-blogs-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 28px;
    }

    .epmca-blogs-grid {
        grid-template-columns: 1fr;
    }
}