/* =========================================================
   TRENDING SECTION
   ========================================================= */
.custom-blog-page {
    margin-top: 0px !important;
}
.blog-trending-section {
    padding: 110px 0;
    background: #17171b;
    color: #ffffff;
}

.blog-trending-wrapper {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 90px;
    align-items: start;
}

.blog-trending-heading {
    position: sticky;
    top: 100px;
}

.blog-trending-heading .blog-section-label {
    color: #8e81ff;
}

.blog-trending-heading h2 {
    margin: 0;
    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.08;
    letter-spacing: -2px;
    color: #ffffff;
}

.blog-trending-heading p {
    margin: 25px 0 0;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.60);
}


/* Trending List */

.blog-trending-list {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trending-post-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 50px;
    gap: 20px;
    align-items: center;

    padding: 28px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.14);

    transition: padding 0.35s ease;
}

.trending-post-item:hover {
    padding-left: 10px;
}

.trending-post-number {
    font-size: 13px;
    font-weight: 700;
    color: #8e81ff;
}

.trending-post-category {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.trending-post-content h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.6px;
}

.trending-post-content h3 a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.trending-post-item:hover .trending-post-content h3 a {
    color: #9b90ff;
}

.trending-post-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.trending-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

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

    width: 46px;
    height: 46px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;

    color: #ffffff;
    font-size: 20px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.trending-post-item:hover .trending-post-arrow {
    background: #ffffff;
    color: #17171b;
    transform: rotate(45deg);
}


/* =========================================================
   CATEGORY-WISE POSTS
   ========================================================= */

.blog-category-posts-section {
    padding: 110px 0 70px;
    background: #ffffff;
}

.blog-category-block {
    padding-bottom: 90px;
    margin-bottom: 90px;
    border-bottom: 1px solid #e9e9ee;
}

.blog-category-block:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.category-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}


/* =========================================================
   NEWSLETTER
   ========================================================= */

.blog-newsletter-section {
    padding: 40px 0 120px;
    background: #ffffff;
}

.blog-newsletter-box {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.8fr);

    gap: 70px;
    align-items: center;

    overflow: hidden;

    padding: 75px;

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 255, 255, 0.12),
            transparent 25%
        ),
        #5f4dff;

    color: #ffffff;
}

.blog-newsletter-box::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -120px;
    bottom: -180px;

    border: 50px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.blog-newsletter-content,
.blog-newsletter-form-wrap {
    position: relative;
    z-index: 1;
}

.blog-newsletter-content .blog-section-label {
    color: rgba(255, 255, 255, 0.65);
}

.blog-newsletter-content h2 {
    margin: 0;
    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.05;
    letter-spacing: -2px;
    color: #ffffff;
}

.blog-newsletter-content p {
    max-width: 500px;
    margin: 25px 0 0;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}



/* =========================================================
   FEATURED STORIES - FINAL DESIGN
========================================================= */

.blog-featured-section {
    position: relative;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.featured-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 36px;
}

.blog-section-heading-content {
    max-width: 650px;
}

.featured-heading-status {
    display: flex;
    align-items: center;
    gap: 8px;

    padding-bottom: 5px;

    color: #7d8999;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.featured-status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #2870b9;

    box-shadow:
        0 0 0 4px rgba(40, 112, 185, 0.08);
}


/* =========================================================
   MAIN FEATURED LAYOUT
========================================================= */

.featured-stories-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(400px, 0.9fr);

    gap: 24px;

    align-items: flex-start;
}


/* =========================================================
   LEFT MAIN FEATURED CARD
========================================================= */

.featured-main-card {
    display: flex;
    flex-direction: column;

    min-height: 540px;

    overflow: hidden;

    border: 1px solid rgba(25, 45, 70, 0.1);

    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 18px 55px rgba(20, 40, 65, 0.08);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.featured-main-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 28px 70px rgba(20, 40, 65, 0.12);
}


/* =========================================================
   MAIN IMAGE
========================================================= */

.featured-main-image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 310px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #edf3f8,
            #dce8f2
        );
}

.featured-main-image img {
    width: 100%;
    height: 100%;

    display: block;

    /*
     * IMPORTANT:
     * contain = image crop nahi hogi
     */
    object-fit: contain;

    object-position: center;

    transition:
        transform 0.6s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.featured-main-card:hover
.featured-main-image img {
    transform: scale(1.02);
}


/* Remove old dark overlay */

.featured-main-overlay {
    display: none;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.featured-main-content {
    position: relative;

    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 26px 30px 24px;

    background: #ffffff;

    color: #1c2b3d;
}


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

.featured-main-meta {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 12px;

    color: #8793a3;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.1em;
}

.featured-main-meta span:first-child {
    color: #2870b9;
}

.featured-main-meta i {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #b5bec9;
}


/* =========================================================
   MAIN TITLE
========================================================= */

.featured-main-content h3 {
    margin: 0;

    max-width: 100%;
}

.featured-main-content h3 a {
    display: block;

    color: #1b2a3b !important;

    font-size: clamp(26px, 2.4vw, 38px);

    line-height: 1.16;

    font-weight: 700;

    letter-spacing: -0.035em;

    text-decoration: none !important;

    transition: color 0.25s ease;
}

.featured-main-content h3 a:hover {
    color: #2870b9 !important;
}


/* =========================================================
   MAIN EXCERPT
========================================================= */

.featured-main-content p {
    margin: 13px 0 0;

    color: #718094;

    font-size: 13px;

    line-height: 1.7;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   MAIN FOOTER
========================================================= */

.featured-main-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: auto;

    padding-top: 18px;

    border-top:
        1px solid rgba(25, 45, 70, 0.08);

    color: #8995a4;

    font-size: 11px;
}

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

    width: 40px;
    height: 40px;

    border:
        1px solid rgba(40, 112, 185, 0.18);

    border-radius: 50%;

    background: #f5f9fc;

    color: #2870b9 !important;

    font-size: 18px;

    text-decoration: none !important;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.featured-main-arrow:hover {
    background: #2870b9;

    color: #ffffff !important;

    transform: rotate(45deg);
}


/* =========================================================
   RIGHT SIDE POSTS
========================================================= */

.featured-side-posts {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


/* =========================================================
   RIGHT SIDE CARD
========================================================= */

.featured-side-card {
    display: grid;

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

    gap: 17px;

    flex: 1;

    min-height: 0;
    margin-bottom:0px;
    padding: 12px;

    border:
        1px solid rgba(25, 45, 70, 0.09);

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(30, 55, 85, 0.035);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.featured-side-card:hover {
    transform: translateX(4px);

    border-color:
        rgba(40, 112, 185, 0.25);

    box-shadow:
        0 14px 35px rgba(30, 55, 85, 0.08);
}


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

.featured-side-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    min-height: 130px;

    overflow: hidden;

    border-radius: 12px;

    background: #edf3f8;
}

.featured-side-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-position: center;

    transition: transform 0.4s ease;
}

.featured-side-card:hover
.featured-side-image img {
    transform: scale(1.05);
}


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

.featured-side-content {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 4px 2px 3px 0;
}


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

.featured-side-meta {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 8px;

    color: #929dac;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.1em;
}

.featured-side-category {
    color: #2870b9;
}

.featured-side-dot {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #b8c1cb;
}


/* =========================================================
   SIDE TITLE
========================================================= */

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

    line-height: 1.35;
}

.featured-side-content h3 a {
    display: -webkit-box;

    overflow: hidden;

    color: #213044 !important;

    font-size: 17px;

    line-height: 1.45;

    font-weight: 700;

    letter-spacing: -0.018em;

    text-decoration: none !important;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    transition: color 0.25s ease;
}

.featured-side-content h3 a:hover {
    color: #2870b9 !important;
}


/* =========================================================
   SIDE FOOTER
========================================================= */

.featured-side-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: auto;

    padding-top: 10px;

    color: #9ba5b2;

    font-size: 10px;
}

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

    width: 30px;
    height: 30px;

    border:
        1px solid rgba(30, 50, 75, 0.1);

    border-radius: 50%;

    color: #2870b9 !important;

    text-decoration: none !important;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.featured-side-card:hover
.featured-side-arrow {
    background: #2870b9;

    color: #ffffff !important;

    transform: rotate(45deg);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.featured-main-placeholder,
.featured-side-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            #dfeaf3,
            #bcd2e5
        );

    color: #2870b9;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.12em;
}




/* =========================================================
   PHASE 3 - BLOG CATEGORY NAVIGATION
========================================================= */

.blog-category-section {
    position: relative;
    padding: 85px 0;
    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 100%
        );
}


/* =========================================================
   BACKGROUND DECORATION
========================================================= */

.blog-category-section::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -250px;
    right: -150px;

    border-radius: 50%;

    border:
        1px solid rgba(40, 112, 185, 0.06);

    box-shadow:
        0 0 0 45px rgba(40, 112, 185, 0.025),
        0 0 0 90px rgba(40, 112, 185, 0.015);

    pointer-events: none;
}


.blog-category-section .container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   HEADER
========================================================= */

.blog-category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 38px;
}


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

.blog-category-heading {
    max-width: 650px;
}


.blog-category-heading .blog-section-label {
    display: inline-block;

    margin-bottom: 12px;

    color: #2870b9;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


.blog-category-heading h2 {
    margin: 0 0 14px;

    color: #172b43;

    font-size: clamp(32px, 4vw, 54px);

    font-weight: 700;

    line-height: 1.08;

    letter-spacing: -0.045em;
}


.blog-category-heading p {
    margin: 0;

    max-width: 570px;

    color: #718096;

    font-size: 15px;

    line-height: 1.7;
}


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

.blog-category-meta {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding-bottom: 8px;

    color: #6f7f93;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    white-space: nowrap;
}


.blog-category-meta-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #2870b9;

    box-shadow:
        0 0 0 5px rgba(40, 112, 185, 0.08);
}


/* =========================================================
   CATEGORY NAVIGATION
========================================================= */

.blog-category-navigation {
    display: grid;
    background:unset;
    grid-template-columns:
        repeat(auto-fit, minmax(230px, 1fr));
    padding:0px;
    gap: 16px;
}


/* =========================================================
   CATEGORY LINK
========================================================= */

.blog-category-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 96px;

    padding: 18px 18px 18px 22px;

    border:
        1px solid rgba(28, 53, 78, 0.1);

    border-radius: 16px;

    background: #ffffff;

    text-decoration: none;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(20, 45, 75, 0.035);

    transition:
        transform 0.35s cubic-bezier(.22, 1, .36, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


/* LEFT ACCENT */

.blog-category-button::before {
    content: "";

    position: absolute;

    left: 0;
    top: 18px;
    bottom: 18px;

    width: 3px;

    border-radius: 0 4px 4px 0;

    background: #2870b9;

    opacity: 0;

    transform: scaleY(0.4);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.blog-category-button:hover {
    transform: translateY(-4px);

    border-color:
        rgba(40, 112, 185, 0.25);

    box-shadow:
        0 18px 35px rgba(25, 55, 90, 0.1);
}


.blog-category-button:hover::before,
.blog-category-button.active::before {
    opacity: 1;

    transform: scaleY(1);
}


/* =========================================================
   ACTIVE / ALL INSIGHTS
========================================================= */

.blog-category-button.active {
    border-color:
        rgba(40, 112, 185, 0.3);

    background:
        linear-gradient(
            135deg,
            #f4f9ff 0%,
            #ffffff 100%
        );
}


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

.blog-category-button-inner {
    display: flex;
    flex-direction: column;

    gap: 5px;

    min-width: 0;
}


.blog-category-name {
    color: #1e344c;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.3;

    letter-spacing: -0.02em;

    transition:
        color 0.3s ease;
}


.blog-category-label {
    color: #7c8b9c;

    font-size: 11px;

    font-weight: 500;

    line-height: 1.4;
}


.blog-category-button:hover .blog-category-name,
.blog-category-button.active .blog-category-name {
    color: #2870b9;
}


/* =========================================================
   ARROW
========================================================= */

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

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    margin-left: 15px;

    border:
        1px solid rgba(30, 65, 100, 0.12);

    border-radius: 50%;

    color: #3d6389;

    font-size: 16px;

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


.blog-category-button:hover .blog-category-arrow,
.blog-category-button.active .blog-category-arrow {
    background: #2870b9;

    border-color: #2870b9;

    color: #ffffff;

    transform: rotate(45deg);
}


/* =========================================================
   FOOTER
========================================================= */

.blog-category-footer {
    display: flex;
    align-items: center;

    gap: 25px;

    margin-top: 32px;
}


.blog-category-footer-line {
    flex: 1;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(28, 53, 78, 0.12),
            transparent
        );
}


.blog-category-status {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #8a97a5;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;

    white-space: nowrap;
}


.blog-category-status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #58b985;

    box-shadow:
        0 0 0 4px rgba(88, 185, 133, 0.08);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .blog-category-section {
        padding: 70px 0;
    }

    .blog-category-header {
        gap: 25px;
    }

    .blog-category-navigation {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


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

@media (max-width: 767px) {

    .blog-category-section {
        padding: 55px 0;
    }

    .blog-category-header {
        display: block;

        margin-bottom: 30px;
    }

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

    .blog-category-heading p {
        font-size: 14px;
    }

    .blog-category-meta {
        margin-top: 20px;

        padding-bottom: 0;
    }

    .blog-category-navigation {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .blog-category-button {
        min-height: 82px;

        padding: 15px 15px 15px 18px;

        border-radius: 14px;
    }

    .blog-category-name {
        font-size: 16px;
    }

    .blog-category-footer {
        margin-top: 25px;
    }

    .blog-category-footer-line {
        display: none;
    }

}


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

@media (max-width: 480px) {

    .blog-category-section {
        padding: 45px 0;
    }

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

    .blog-category-button {
        min-height: 76px;
    }

    .blog-category-name {
        font-size: 15px;
    }

    .blog-category-arrow {
        flex: 0 0 34px;

        width: 34px;
        height: 34px;
    }

}






/* =========================================================
   PHASE 4 - LATEST INSIGHTS
========================================================= */

.latest-blog-section {
    position: relative;

    padding: 0px;

    background: #ffffff;

    overflow: hidden;
}


/* =========================================================
   BACKGROUND ACCENT
========================================================= */

.latest-blog-section::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -280px;
    top: 100px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(40, 112, 185, 0.045) 0%,
            rgba(40, 112, 185, 0) 70%
        );

    pointer-events: none;
}


.latest-blog-section .container {
    position: relative;

    z-index: 2;
}


/* =========================================================
   HEADER
========================================================= */

.latest-blog-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 48px;
}


.latest-blog-heading {
    max-width: 670px;
}


.latest-blog-heading .blog-section-label {
    display: inline-block;

    margin-bottom: 12px;

    color: #2870b9;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


.latest-blog-heading h2 {
    margin: 0 0 14px;

    color: #172b43;

    font-size: clamp(34px, 4vw, 58px);

    font-weight: 700;

    line-height: 1.08;

    letter-spacing: -0.045em;
}


.latest-blog-heading p {
    margin: 0;

    max-width: 590px;

    color: #718096;

    font-size: 15px;

    line-height: 1.7;
}


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

.latest-blog-header-meta {
    display: flex;

    align-items: center;

    gap: 10px;

    padding-bottom: 8px;

    color: #8a97a5;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;

    white-space: nowrap;
}


.latest-blog-meta-line {
    width: 28px;
    height: 1px;

    background: #2870b9;
}


/* =========================================================
   POSTS GRID
========================================================= */

.latest-blog-grid {
    display: grid;

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

    gap: 28px;
}


/* =========================================================
   BLOG CARD
========================================================= */

.custom-blog-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    border:
        1px solid rgba(27, 53, 80, 0.09);

    border-radius: 20px;

    background: #ffffff;

    overflow: hidden;

    box-shadow:
        0 10px 35px rgba(24, 52, 83, 0.045);

    transition:
        transform 0.4s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}


.custom-blog-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(40, 112, 185, 0.2);

    box-shadow:
        0 24px 55px rgba(24, 52, 83, 0.12);
}


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

.blog-card-image {
    position: relative;

    display: block;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #eef3f8;
}


.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    transition:
        transform 0.7s cubic-bezier(.22, 1, .36, 1);
}


.custom-blog-card:hover .blog-card-image img {
    transform: scale(1.07);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.blog-card-image-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(16, 38, 61, 0) 45%,
            rgba(16, 38, 61, 0.12) 100%
        );

    pointer-events: none;
}


/* =========================================================
   IMAGE ARROW
========================================================= */

.blog-card-image-arrow {
    position: absolute;

    top: 16px;
    right: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.92);

    color: #1d5488;

    font-size: 17px;

    box-shadow:
        0 8px 25px rgba(18, 43, 68, 0.12);

    opacity: 0;

    transform:
        translateY(-8px)
        rotate(-20deg);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


.custom-blog-card:hover
.blog-card-image-arrow {
    opacity: 1;

    transform:
        translateY(0)
        rotate(0);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.blog-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 22px 22px 20px;
}


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

.blog-card-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 13px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


.blog-card-category {
    color: #2870b9;

    text-decoration: none;

    transition: color 0.25s ease;
}


.blog-card-category:hover {
    color: #173f68;
}


.blog-meta-separator {
    color: #b2bcc7;
}


.blog-card-reading-time {
    color: #8794a2;
}


/* =========================================================
   TITLE
========================================================= */

.blog-card-content h3 {
    margin: 0 0 12px;

    font-size: 21px;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: -0.025em;
}


.blog-card-content h3 a {
    color: #172b43;

    text-decoration: none;

    transition: color 0.3s ease;
}


.custom-blog-card:hover
.blog-card-content h3 a {
    color: #2870b9;
}


/* =========================================================
   EXCERPT
========================================================= */

.blog-card-excerpt {
    margin-bottom: 22px;

    color: #718096;

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   CARD FOOTER
========================================================= */

.blog-card-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: auto;

    padding-top: 16px;

    border-top:
        1px solid rgba(27, 53, 80, 0.08);
}


.blog-card-date {
    color: #8b97a5;

    font-size: 10px;

    font-weight: 600;
}


/* =========================================================
   READ LINK
========================================================= */

.blog-read-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #1e609c;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}


.blog-read-arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    background:
        rgba(40, 112, 185, 0.08);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}


.blog-read-link:hover
.blog-read-arrow {
    transform: translateX(4px);

    background: #2870b9;

    color: #ffffff;
}


/* =========================================================
   FOOTER
========================================================= */

.latest-blog-footer {
    display: flex;

    justify-content: center;

    margin-top: 45px;
}


.latest-posts-info {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #8a97a5;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.latest-posts-info-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #58b985;

    box-shadow:
        0 0 0 4px rgba(88, 185, 133, 0.08);
}



/* =========================================================
   PHASE 5 - LOAD MORE
========================================================= */

.blog-load-more-wrapper {
    display: flex;

    justify-content: center;

    margin-top: 48px;
}


.blog-load-more-button {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    min-width: 220px;

    padding: 15px 24px;

    border:
        1px solid rgba(40, 112, 185, 0.18);

    border-radius: 100px;

    background: #ffffff;

    color: #1d5d98;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.01em;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        0 8px 28px rgba(25, 60, 95, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}


.blog-load-more-button:hover {
    transform: translateY(-3px);

    background: #2870b9;

    color: #ffffff;

    box-shadow:
        0 16px 35px rgba(40, 112, 185, 0.2);
}


.blog-load-more-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    background:
        rgba(40, 112, 185, 0.08);

    font-size: 15px;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


.blog-load-more-button:hover
.blog-load-more-icon {
    transform: translateY(3px);

    background:
        rgba(255, 255, 255, 0.18);
}


/* =========================================================
   LOADING STATE
========================================================= */

.blog-load-more-button.is-loading {
    pointer-events: none;

    opacity: 0.75;
}


.blog-load-more-button.is-loading
.blog-load-more-icon {
    animation:
        blogLoadSpin 1s linear infinite;
}


@keyframes blogLoadSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   NEW POSTS ANIMATION
========================================================= */

.blog-load-animation {
    animation:
        blogPostReveal 0.6s ease forwards;
}


@keyframes blogPostReveal {

    from {
        opacity: 0;

        transform:
            translateY(25px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   COMPLETE STATE
========================================================= */

.blog-load-more-button.is-complete {
    background: #f5f9fc;

    color: #718096;

    border-color:
        rgba(40, 112, 185, 0.1);
}




/* =========================================================
   PHASE 6 - NEWSLETTER
========================================================= */

.blog-newsletter-section {
    position: relative;
    padding: 25px 0px 0px 0px;
    overflow: hidden;
}


/* =========================================================
   MAIN BOX
========================================================= */

.blog-newsletter-box {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.85fr);

    align-items: center;

    gap: 80px;

    min-height: 430px;

    padding: 70px 80px;

    overflow: hidden;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #102c48 0%,
            #173c61 50%,
            #0d243d 100%
        );

    box-shadow:
        0 30px 80px rgba(18, 48, 79, 0.20);
}


/* =========================================================
   DECORATIVE GLOWS
========================================================= */

.newsletter-glow {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(10px);
}


.newsletter-glow-one {
    width: 420px;
    height: 420px;

    top: -240px;
    right: -80px;

    background:
        rgba(55, 132, 211, 0.20);
}


.newsletter-glow-two {
    width: 300px;
    height: 300px;

    bottom: -180px;
    left: 35%;

    background:
        rgba(40, 112, 185, 0.16);
}


/* =========================================================
   GRID PATTERN
========================================================= */

.newsletter-grid-pattern {
    position: absolute;

    width: 360px;
    height: 360px;

    right: -120px;
    bottom: -150px;

    opacity: 0.10;

    background-image:
        radial-gradient(
            rgba(255, 255, 255, 0.9) 1px,
            transparent 1px
        );

    background-size: 18px 18px;

    pointer-events: none;
}


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

.newsletter-content {
    position: relative;
    z-index: 2;

    max-width: 590px;
}


.newsletter-label {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 20px;

    color: rgba(198, 222, 248, 0.88);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.newsletter-label-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #6bb7ff;

    box-shadow:
        0 0 0 5px rgba(107, 183, 255, 0.12);
}


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

.newsletter-content h2 {
    margin: 0 0 20px;

    max-width: 620px;

    color: #ffffff;

    font-size: clamp(38px, 4vw, 58px);

    font-weight: 700;

    line-height: 1.08;

    letter-spacing: -0.045em;
}


.newsletter-content > p {
    margin: 0;

    max-width: 540px;

    color: rgba(222, 234, 247, 0.74);

    font-size: 16px;

    line-height: 1.75;
}


/* =========================================================
   BENEFITS
========================================================= */

.newsletter-benefits {
    display: flex;
    flex-wrap: wrap;

    gap: 14px 24px;

    margin-top: 30px;
}


.newsletter-benefit {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: rgba(225, 236, 247, 0.82);

    font-size: 12px;

    font-weight: 500;
}


.newsletter-check {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background:
        rgba(89, 184, 137, 0.16);

    color: #72d39b;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   FORM AREA
========================================================= */

.newsletter-form-area {
    position: relative;
    z-index: 2;

    width: 100%;
}


.newsletter-form-card {
    padding: 42px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.08);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.14);
}


.newsletter-form-small-title {
    display: block;

    margin-bottom: 13px;

    color: #79bbf5;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.newsletter-form-card h3 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 28px;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -0.035em;
}


.newsletter-form-card > p {
    margin: 0 0 26px;

    color: rgba(222, 234, 247, 0.68);

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   FORM
========================================================= */

.blog-newsletter-form {
    width: 100%;
}


.newsletter-input-group {
    display: flex;

    gap: 10px;

    width: 100%;
}


.newsletter-input-group input {
    flex: 1;

    min-width: 0;

    height: 54px;

    padding: 0 18px;

    border:
        1px solid rgba(255, 255, 255, 0.13);

    border-radius: 12px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.96);

    color: #1d3147;

    font-size: 13px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.newsletter-input-group input::placeholder {
    color: #8a96a4;
}


.newsletter-input-group input:focus {
    border-color: #5daaf1;

    box-shadow:
        0 0 0 4px rgba(93, 170, 241, 0.12);
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.newsletter-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    flex-shrink: 0;

    min-width: 140px;

    height: 54px;

    padding: 0 20px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2f7fca,
            #4797df
        );

    color: #ffffff;

    cursor: pointer;

    font-size: 13px;

    font-weight: 600;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.newsletter-submit-button:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #236fb8,
            #3b8ed6
        );

    box-shadow:
        0 12px 25px rgba(37, 118, 194, 0.30);
}


.newsletter-submit-button:disabled {
    opacity: 0.7;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   MESSAGE
========================================================= */

.newsletter-message {
    display: none;

    margin-top: 14px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 12px;

    line-height: 1.5;
}


.newsletter-message.success {
    display: block;

    background:
        rgba(71, 183, 118, 0.14);

    color: #9de4b7;

    border:
        1px solid rgba(71, 183, 118, 0.25);
}


.newsletter-message.error {
    display: block;

    background:
        rgba(220, 86, 86, 0.14);

    color: #ffb0b0;

    border:
        1px solid rgba(220, 86, 86, 0.24);
}


/* =========================================================
   FORM FOOTER
========================================================= */

.newsletter-form-footer {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-top: 18px;

    color: rgba(210, 226, 241, 0.55);

    font-size: 10px;
}


.newsletter-security-icon {
    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .blog-newsletter-box {
        grid-template-columns: 1fr;

        gap: 45px;

        padding: 60px;
    }


    .newsletter-content {
        max-width: 100%;
    }


    .newsletter-form-card {
        max-width: 620px;
    }

}


@media (max-width: 767px) {

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


    .blog-newsletter-box {
        gap: 38px;

        min-height: auto;

        padding: 40px 25px;

        border-radius: 22px;
    }


    .newsletter-content h2 {
        font-size: 38px;
    }


    .newsletter-content > p {
        font-size: 14px;
    }


    .newsletter-benefits {
        display: grid;

        gap: 12px;

        margin-top: 24px;
    }


    .newsletter-form-card {
        padding: 28px 20px;

        border-radius: 18px;
    }


    .newsletter-form-card h3 {
        font-size: 24px;
    }


    .newsletter-input-group {
        flex-direction: column;
    }


    .newsletter-input-group input,
    .newsletter-submit-button {
        width: 100%;
    }


    .newsletter-submit-button {
        min-width: 100%;
    }

}




/* =========================================================
   PHASE 7 - ADVANCED BLOG ANIMATIONS
========================================================= */


/* =========================================================
   GENERAL REVEAL
========================================================= */

.blog-reveal,
.blog-stagger,
.blog-reveal-left,
.blog-reveal-right {
    opacity: 0;

    will-change:
        opacity,
        transform;
}


.blog-reveal {
    transform:
        translateY(45px);

    transition:
        opacity 0.8s cubic-bezier(.22, 1, .36, 1),
        transform 0.8s cubic-bezier(.22, 1, .36, 1);
}


.blog-reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   LEFT REVEAL
========================================================= */

.blog-reveal-left {
    transform:
        translateX(-45px);

    transition:
        opacity 0.85s cubic-bezier(.22, 1, .36, 1),
        transform 0.85s cubic-bezier(.22, 1, .36, 1);
}


.blog-reveal-left.is-visible {
    opacity: 1;

    transform:
        translateX(0);
}


/* =========================================================
   RIGHT REVEAL
========================================================= */

.blog-reveal-right {
    transform:
        translateX(45px);

    transition:
        opacity 0.85s cubic-bezier(.22, 1, .36, 1),
        transform 0.85s cubic-bezier(.22, 1, .36, 1);
}


.blog-reveal-right.is-visible {
    opacity: 1;

    transform:
        translateX(0);
}


/* =========================================================
   STAGGER REVEAL
========================================================= */

.blog-stagger {
    transform:
        translateY(35px)
        scale(0.98);

    transition:
        opacity 0.7s cubic-bezier(.22, 1, .36, 1),
        transform 0.7s cubic-bezier(.22, 1, .36, 1);
}


.blog-stagger.is-visible {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   HERO PARALLAX
========================================================= */

.blog-hero-section {
    transform:
        translateY(
            calc(
                var(--hero-scroll, 0px) * -0.25
            )
        );
}


/* Prevent layout shifting */

.blog-hero-section {
    will-change: transform;
}


/* =========================================================
   FEATURED IMAGE MOTION
========================================================= */

.featured-blog-image {
    overflow: hidden;
}


.featured-blog-image img {
    transform:
        scale(1.05);

    will-change:
        transform;

    transition:
        transform 0.2s linear;
}


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


/* =========================================================
   FEATURED CARD MICRO INTERACTION
========================================================= */

.featured-blog-card {
    transition:
        transform 0.45s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.45s ease;
}


.featured-blog-card:hover {
    transform:
        translateY(-6px);

    box-shadow:
        0 28px 70px rgba(22, 49, 78, 0.12);
}


/* =========================================================
   BLOG CARD IMAGE REVEAL
========================================================= */

.custom-blog-card {
    transition:
        transform 0.4s cubic-bezier(.22, 1, .36, 1);
}


.custom-blog-card:hover {
    transform:
        translateY(-8px);
}


.custom-blog-card .blog-card-image {
    overflow: hidden;
}


.custom-blog-card .blog-card-image img {
    transition:
        transform 0.7s cubic-bezier(.22, 1, .36, 1);
}


.custom-blog-card:hover
.blog-card-image img {
    transform:
        scale(1.08);
}


/* =========================================================
   CATEGORY CREATIVE GLOW
========================================================= */

.blog-category-link,
.blog-category-button {
    isolation: isolate;
}


.blog-category-link::after,
.blog-category-button::after {
    content: "";

    position: absolute;

    z-index: -1;

    width: 180px;
    height: 180px;

    left:
        calc(
            var(--mouse-x, 50%) - 90px
        );

    top:
        calc(
            var(--mouse-y, 50%) - 90px
        );

    border-radius: 50%;

    opacity: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(40, 112, 185, 0.10),
            transparent 70%
        );

    transition:
        opacity 0.35s ease;
}


.blog-category-link:hover::after,
.blog-category-button:hover::after {
    opacity: 1;
}


/* =========================================================
   CATEGORY ARROW MOTION
========================================================= */

.blog-category-link:hover
.blog-category-arrow,
.blog-category-button:hover
.blog-category-arrow {
    transform:
        translate(2px, -2px)
        rotate(45deg);
}


/* =========================================================
   LATEST BLOG CARD LINK
========================================================= */

.blog-read-link span {
    display: inline-block;

    transition:
        transform 0.3s ease;
}


.custom-blog-card:hover
.blog-read-link span {
    transform:
        translateX(5px);
}


/* =========================================================
   NEWSLETTER SUBTLE FLOAT
========================================================= */

.newsletter-glow-one {
    animation:
        newsletterFloatOne
        8s ease-in-out
        infinite alternate;
}


.newsletter-glow-two {
    animation:
        newsletterFloatTwo
        10s ease-in-out
        infinite alternate;
}


@keyframes newsletterFloatOne {

    from {

        transform:
            translate(0, 0);

    }

    to {

        transform:
            translate(-30px, 25px);

    }

}


@keyframes newsletterFloatTwo {

    from {

        transform:
            translate(0, 0);

    }

    to {

        transform:
            translate(35px, -20px);

    }

}


/* =========================================================
   NEWSLETTER FORM HOVER
========================================================= */

.newsletter-form-card {
    transition:
        transform 0.5s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.5s ease,
        border-color 0.5s ease;
}


.blog-newsletter-box:hover
.newsletter-form-card {
    transform:
        translateY(-5px);

    border-color:
        rgba(255, 255, 255, 0.20);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   SECTION LABEL ANIMATION
========================================================= */

.blog-section-label {
    position: relative;
}


.blog-section-label::before {
    content: "";

    display: inline-block;

    width: 0;
    height: 1px;

    margin-right: 0;

    vertical-align: middle;

    background:
        currentColor;

    opacity: 0.45;

    transition:
        width 0.6s ease,
        margin-right 0.6s ease;
}


.blog-reveal.is-visible
.blog-section-label::before {
    width: 28px;

    margin-right: 9px;
}


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

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }

}


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

@media (max-width: 767px) {

    .blog-reveal {
        transform:
            translateY(25px);
    }


    .blog-reveal-left {
        transform:
            translateX(-20px);
    }


    .blog-reveal-right {
        transform:
            translateX(20px);
    }


    .blog-stagger {
        transform:
            translateY(22px);
    }


    .custom-blog-card:hover,
    .featured-blog-card:hover {
        transform:
            none;
    }

}