/* =========================================================
   BLOG / TIPS & INSIGHTS
========================================================= */

.blog-section {
    width: 100%;
    padding: 85px 0 90px;
    background: #ffffff;
    overflow: hidden;
}


/* =========================================================
   CONTAINER
========================================================= */

.blog-container {
    width: min(100% - 40px, 1500px);
    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.blog-heading {
    text-align: center;
    margin-bottom: 105px;
}

.blog-eyebrow {
    display: block;
    margin-bottom: 22px;

    color: #ff5638;

    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;

    line-height: 1.2;
}

.blog-heading h2 {
    margin: 0;

    color: #000000;

    font-family: "Poppins", sans-serif;
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 400;

    line-height: 1.08;
    letter-spacing: -2.5px;
}


/* =========================================================
   FILTER BAR
========================================================= */

.blog-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-bottom: 38px;
}


.blog-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}


.blog-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 88px;
    height: 46px;

    padding: 0 20px;

    border: 1px solid #d4d4d4;
    border-radius: 25px;

    color: #666666;
    background: #ffffff;

    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 400;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}


.blog-filter:hover {
    border-color: #ff5638;
    color: #ff5638;
}


.blog-filter.active {
    border-color: #ff5638;
    color: #ffffff;
    background: #ff5638;
}


/* =========================================================
   ALL NEWS BUTTON
========================================================= */

.blog-all-news {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 125px;
    height: 46px;

    padding: 0 10px 0 18px;

    border: 1px solid #d4d4d4;
    border-radius: 25px;

    color: #666666;
    background: #ffffff;

    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 400;

    text-decoration: none;

    transition:
        border-color .25s ease,
        color .25s ease;
}


.blog-all-news:hover {
    border-color: #ff5638;
    color: #ff5638;
}


.blog-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    color: #ffffff;
    background: #000000;
}


.blog-arrow i {
    font-size: 11px;
}


/* =========================================================
   MAIN BLOG GRID
========================================================= */

.blog-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 1fr);

    gap: 30px;

    width: 100%;
}


/* =========================================================
   FEATURED ARTICLE
========================================================= */

.blog-featured {
    min-width: 0;
}


.blog-featured-image {
    display: block;

    width: 100%;
    height: 470px;

    overflow: hidden;

    border-radius: 22px;
}


.blog-featured-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .45s ease;
}


.blog-featured-image:hover img {
    transform: scale(1.025);
}


/* =========================================================
   FEATURED CONTENT
========================================================= */

.blog-featured-content {
    padding-top: 28px;
}


.blog-featured-content h3 {
    max-width: 720px;

    margin: 0 0 20px;

    color: #000000;

    font-family: "Poppins", sans-serif;
    font-size: clamp(38px, 3.2vw, 52px);
    font-weight: 400;

    line-height: 1.15;
    letter-spacing: -1.8px;
}


.blog-featured-content p {
    max-width: 720px;

    margin: 0 0 27px;

    color: #666666;

    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 400;

    line-height: 1.55;
}


/* =========================================================
   LEARN MORE
========================================================= */

.blog-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-width: 125px;
    height: 45px;

    padding: 0 18px;

    border-radius: 25px;

    color: #ffffff;
    background: #000000;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition:
        transform .25s ease,
        background .25s ease;
}


.blog-learn-more:hover {
    transform: translateY(-2px);
    background: #ff5638;
}


.blog-learn-more i {
    font-size: 11px;
}


/* =========================================================
   RIGHT SIDE
   IMPORTANT: 3 CARDS ALWAYS STACK VERTICALLY
========================================================= */

.blog-side {
    display: flex;
    flex-direction: column;

    width: 100%;

    gap: 18px;
}


/* =========================================================
   SIDE ARTICLE
========================================================= */

.blog-side-item {
    display: grid;

    grid-template-columns: 290px minmax(0, 1fr);

    gap: 25px;

    width: 100%;
    min-width: 0;

    align-items: stretch;
}


/* =========================================================
   SIDE IMAGE
========================================================= */

.blog-side-image {
    display: block;

    width: 100%;
    height: 220px;

    overflow: hidden;

    border-radius: 22px;
}


.blog-side-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .45s ease;
}


.blog-side-image:hover img {
    transform: scale(1.035);
}


/* =========================================================
   SIDE CONTENT
========================================================= */

.blog-side-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-width: 0;

    padding: 10px 0 5px;
}


.blog-side-content h3 {
    margin: 0;

    color: #000000;

    font-family: "Poppins", sans-serif;
    font-size: 27px;
    font-weight: 700;

    line-height: 1.22;
    letter-spacing: -.6px;
}


/* =========================================================
   META
========================================================= */

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 20px;

    color: #999999;

    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
}


/* =========================================================
   TABLET
   Keep 3 right cards visible
========================================================= */

@media (max-width: 1200px) {

    .blog-container {
        width: min(100% - 40px, 1100px);
    }

    .blog-heading {
        margin-bottom: 80px;
    }

    .blog-heading h2 {
        font-size: 55px;
    }

    .blog-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 22px;
    }

    .blog-featured-image {
        height: 390px;
    }

    .blog-side {
        gap: 15px;
    }

    .blog-side-item {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 16px;
    }

    .blog-side-image {
        height: 155px;
        border-radius: 17px;
    }

    .blog-side-content h3 {
        font-size: 20px;
    }

    .blog-meta {
        font-size: 13px;
    }

    .blog-featured-content h3 {
        font-size: 38px;
    }

    .blog-featured-content p {
        font-size: 14px;
    }
}


/* =========================================================
   SMALL TABLET
   Still keep left + right layout
========================================================= */

@media (max-width: 900px) and (min-width: 768px) {

    .blog-container {
        width: calc(100% - 35px);
    }

    .blog-heading {
        margin-bottom: 65px;
    }

    .blog-heading h2 {
        font-size: 48px;
    }

    .blog-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 15px;
    }

    .blog-side-item {
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 12px;
    }

    .blog-side-image {
        height: 125px;
        border-radius: 14px;
    }

    .blog-side-content {
        padding: 3px 0;
    }

    .blog-side-content h3 {
        font-size: 16px;
        line-height: 1.25;
    }

    .blog-meta {
        font-size: 11px;
        gap: 8px;
    }

    .blog-featured-image {
        height: 330px;
    }

    .blog-featured-content h3 {
        font-size: 31px;
    }

    .blog-featured-content p {
        font-size: 13px;
    }
}


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

@media (max-width: 767px) {

    .blog-section {
        padding: 60px 0 65px;
    }

    .blog-container {
        width: calc(100% - 30px);
    }

    .blog-heading {
        margin-bottom: 50px;
    }

    .blog-eyebrow {
        margin-bottom: 15px;
        font-size: 13px;
    }

    .blog-heading h2 {
        font-size: 40px;
        line-height: 1.08;
        letter-spacing: -1.5px;
    }

    .blog-desktop-break {
        display: none;
    }


    /* FILTER */

    .blog-filter-bar {
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
    }

    .blog-filters {
        flex-wrap: wrap;
        gap: 7px;
    }

    .blog-filter {
        min-width: auto;
        height: 40px;
        padding: 0 15px;
        font-size: 13px;
    }

    .blog-all-news {
        flex-shrink: 0;
        min-width: 95px;
        height: 40px;
        padding-left: 12px;
        font-size: 12px;
    }

    .blog-arrow {
        width: 24px;
        height: 24px;
    }


    /* SINGLE COLUMN ONLY ON MOBILE */

    .blog-grid {
        display: block;
    }


    /* FEATURED */

    .blog-featured {
        margin-bottom: 40px;
    }

    .blog-featured-image {
        height: 300px;
        border-radius: 17px;
    }

    .blog-featured-content {
        padding-top: 20px;
    }

    .blog-featured-content h3 {
        font-size: 31px;
        letter-spacing: -1px;
    }

    .blog-featured-content p {
        font-size: 14px;
        line-height: 1.55;
    }


    /* SIDE */

    .blog-side {
        gap: 22px;
    }

    .blog-side-item {
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 15px;
    }

    .blog-side-image {
        height: 130px;
        border-radius: 15px;
    }

    .blog-side-content {
        padding: 2px 0;
    }

    .blog-side-content h3 {
        font-size: 17px;
        line-height: 1.25;
    }

    .blog-meta {
        font-size: 11px;
        margin-top: 10px;
    }
}


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

@media (max-width: 450px) {

    .blog-heading h2 {
        font-size: 34px;
    }

    .blog-filter-bar {
        flex-direction: column;
    }

    .blog-all-news {
        align-self: flex-end;
    }

    .blog-featured-image {
        height: 240px;
    }

    .blog-featured-content h3 {
        font-size: 27px;
    }

    .blog-side-item {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 12px;
    }

    .blog-side-image {
        height: 110px;
    }

    .blog-side-content h3 {
        font-size: 15px;
    }

    .blog-meta {
        font-size: 10px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .blog-featured-image img,
    .blog-side-image img,
    .blog-filter,
    .blog-all-news,
    .blog-learn-more {
        transition: none;
    }
}