/* =========================================================
   OOKLA LATEST POSTS SECTION
========================================================= */

.ookla-latest-posts-section {

    position: relative;

    width: 100%;

    padding: 90px 40px 80px;

    box-sizing: border-box;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #faf7f0 0%,
            #f5f1e9 55%,
            #fbf9f4 100%
        );

}


/* =========================================================
   SUBTLE DECORATION
========================================================= */

.ookla-latest-posts-section::before {

    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    top: -220px;
    left: -180px;

    border-radius: 50%;

    border: 1px solid rgba(201,147,66,.20);

    pointer-events: none;

}


.ookla-latest-posts-section::after {

    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    right: -220px;
    bottom: -250px;

    border-radius: 50%;

    border: 1px solid rgba(6,76,57,.12);

    pointer-events: none;

}


/* =========================================================
   HEADER
========================================================= */

.ookla-latest-posts-header {

    position: relative;

    z-index: 2;

    max-width: 850px;

    margin: 0 auto 48px;

    text-align: center;

}


/* =========================================================
   EYEBROW
========================================================= */

.ookla-section-eyebrow {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    margin-bottom: 14px;

    color: #123f31;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2.5px;

}


.ookla-section-eyebrow span {

    width: 70px;

    height: 1px;

    background: #c99342;

}


/* =========================================================
   MAIN TITLE
========================================================= */

.ookla-latest-posts-title {

    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color: #123f31;

    font-size: 52px;

    line-height: 1.08;

    font-weight: 700;

    letter-spacing: -1px;

}


.ookla-latest-posts-title strong {

    color: #b97f2d;

    font-weight: 700;

}


/* =========================================================
   INTRO
========================================================= */

.ookla-latest-posts-intro {

    max-width: 680px;

    margin: 16px auto 0;

    color: #66716c;

    font-size: 16px;

    line-height: 1.65;

}


/* =========================================================
   GRID
========================================================= */

.ookla-latest-posts-grid {

    position: relative;

    z-index: 2;

    width: min(1380px, 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;

}


/* =========================================================
   CARD
========================================================= */

.ookla-latest-post-card {

    position: relative;

    min-width: 0;

    overflow: hidden;

    border: 1px solid #e5ddd0;

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 10px 30px rgba(22,47,39,.07);

    transition:
        transform .28s ease,
        box-shadow .28s ease;

}


.ookla-latest-post-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(22,47,39,.12);

}


/* =========================================================
   IMAGE
========================================================= */

.ookla-latest-post-image {

    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 1.55 / 1;

    overflow: hidden;

    background: #eee8dc;

}


.ookla-latest-post-image img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .45s ease;

}


.ookla-latest-post-card:hover
.ookla-latest-post-image img {

    transform: scale(1.045);

}


/* =========================================================
   CATEGORY
========================================================= */

.ookla-latest-post-category {

    position: absolute;

    top: 14px;
    left: 14px;

    display: inline-flex;

    align-items: center;

    min-height: 30px;

    padding: 5px 12px;

    box-sizing: border-box;

    border-radius: 999px;

    background: rgba(255,255,255,.95);

    color: #123f31;

    font-size: 10px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: .4px;

    text-transform: uppercase;

    box-shadow:
        0 4px 12px rgba(0,0,0,.08);

}


/* =========================================================
   CONTENT
========================================================= */

.ookla-latest-post-content {

    padding: 22px 20px 18px;

}


/* =========================================================
   TITLE
========================================================= */

.ookla-latest-post-title {

    margin: 0;

    min-height: 66px;

    font-size: 20px;

    line-height: 1.25;

    font-weight: 700;

}


.ookla-latest-post-title a {

    color: #102f26;

    text-decoration: none;

    transition: color .2s ease;

}


.ookla-latest-post-title a:hover {

    color: #b97f2d;

}


/* =========================================================
   EXCERPT
========================================================= */

.ookla-latest-post-excerpt {

    margin-top: 13px;

    min-height: 68px;

    color: #717a76;

    font-size: 13px;

    line-height: 1.65;

}


/* =========================================================
   FOOTER
========================================================= */

.ookla-latest-post-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: 17px;

    padding-top: 14px;

    border-top: 1px solid #eee8de;

}


/* =========================================================
   DATE
========================================================= */

.ookla-latest-post-date {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #858d89;

    font-size: 11px;

    white-space: nowrap;

}


.ookla-latest-post-date svg {

    width: 15px;
    height: 15px;

    fill: none;

    stroke: #c99342;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;

}


/* =========================================================
   READ MORE
========================================================= */

.ookla-latest-post-read-more {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #064c39;

    font-size: 11px;

    font-weight: 800;

    text-decoration: none;

    white-space: nowrap;

}


.ookla-latest-post-read-more span {

    color: #c99342;

    font-size: 15px;

    transition:
        transform .2s ease;

}


.ookla-latest-post-read-more:hover {

    color: #b97f2d;

}


.ookla-latest-post-read-more:hover span {

    transform: translateX(3px);

}


/* =========================================================
   VIEW ALL
========================================================= */

.ookla-latest-posts-view-all {

    position: relative;

    z-index: 2;

    width: min(1000px, 100%);

    margin: 45px auto 0;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

}


.ookla-latest-posts-view-all > span {

    height: 1px;

    flex: 1;

    background: #d8c9b3;

}


.ookla-view-all-posts-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-height: 50px;

    padding: 5px 9px 5px 24px;

    border-radius: 999px;

    background: #064c39;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform .25s ease,
        background .25s ease;

}


.ookla-view-all-posts-button strong {

    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #d6a052;

    color: #123f31;

    font-size: 18px;

}


.ookla-view-all-posts-button:hover {

    background: #0a6049;

    color: #ffffff;

    transform: translateY(-2px);

}


/* =========================================================
   NO ARTICLES FOUND
   PREMIUM EMPTY STATE
========================================================= */

.ookla-no-category-posts {

    position: relative;

    z-index: 2;

    width: min(900px, 100%);

    margin: 0 auto;

    padding: 38px 35px;

    box-sizing: border-box;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(250,248,240,.94),
            rgba(244,241,230,.82)
        );

    border: 1px solid rgba(201,147,66,.28);

    border-radius: 20px;

    box-shadow:
        0 8px 28px rgba(22,47,39,.045);

}


/* =========================================================
   EMPTY STATE ICON
========================================================= */

.ookla-no-category-posts::before {

    content: "⌕";

    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin: 0 auto 16px;

    border: 1px solid rgba(201,147,66,.38);

    border-radius: 14px;

    background: rgba(255,255,255,.62);

    color: #b97f2d;

    font-family: Georgia, serif;

    font-size: 27px;

    line-height: 1;

}


/* =========================================================
   EMPTY STATE HEADING
========================================================= */

.ookla-no-category-posts h3 {

    margin: 0;

    color: #123f31;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 27px;

    line-height: 1.2;

    font-weight: 700;

}


/* =========================================================
   EMPTY STATE TEXT
========================================================= */

.ookla-no-category-posts p {

    margin: 10px auto 0;

    max-width: 600px;

    color: #707a75;

    font-size: 14px;

    line-height: 1.65;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .ookla-latest-posts-section {

        padding-left: 25px;
        padding-right: 25px;

    }


    .ookla-latest-posts-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .ookla-latest-posts-title {

        font-size: 46px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .ookla-latest-posts-section {

        padding: 65px 16px 55px;

    }


    .ookla-latest-posts-header {

        margin-bottom: 32px;

    }


    .ookla-section-eyebrow {

        gap: 10px;

        font-size: 10px;

        letter-spacing: 2px;

    }


    .ookla-section-eyebrow span {

        width: 40px;

    }


    .ookla-latest-posts-title {

        font-size: 37px;

        line-height: 1.08;

    }


    .ookla-latest-posts-intro {

        margin-top: 12px;

        font-size: 13px;

    }


    .ookla-latest-posts-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }


    .ookla-latest-post-card {

        border-radius: 15px;

    }


    .ookla-latest-post-image {

        aspect-ratio: 1.7 / 1;

    }


    .ookla-latest-post-content {

        padding: 19px 17px 16px;

    }


    .ookla-latest-post-title {

        min-height: auto;

        font-size: 19px;

    }


    .ookla-latest-post-excerpt {

        min-height: auto;

        margin-top: 10px;

    }


    .ookla-latest-post-footer {

        margin-top: 14px;

    }


    .ookla-latest-posts-view-all {

        margin-top: 32px;

        gap: 12px;

    }


    .ookla-latest-posts-view-all > span {

        display: none;

    }


    /* EMPTY STATE */

    .ookla-no-category-posts {

        width: 100%;

        padding: 30px 20px;

        border-radius: 16px;

    }


    .ookla-no-category-posts::before {

        width: 42px;
        height: 42px;

        margin-bottom: 13px;

        font-size: 23px;

    }


    .ookla-no-category-posts h3 {

        font-size: 23px;

    }


    .ookla-no-category-posts p {

        font-size: 13px;

        line-height: 1.6;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .ookla-latest-posts-section {

        padding-left: 12px;
        padding-right: 12px;

    }


    .ookla-latest-posts-title {

        font-size: 32px;

    }


    .ookla-latest-posts-intro {

        font-size: 12px;

    }


    .ookla-latest-post-category {

        top: 10px;
        left: 10px;

        min-height: 27px;

        padding: 4px 9px;

        font-size: 9px;

    }


    .ookla-latest-post-title {

        font-size: 18px;

    }


    /* EMPTY STATE */

    .ookla-no-category-posts {

        padding: 27px 16px;

    }


    .ookla-no-category-posts h3 {

        font-size: 21px;

    }


    .ookla-no-category-posts p {

        font-size: 12px;

    }

}