/* =========================================================
   SHRISHA BLOG
   ========================================================= */

.shrisha-blog-page {
    margin: 0;
    background: #070b10;
    color: #f5f7fa;
}

.shrisha-blog-page *,
.shrisha-blog-page *::before,
.shrisha-blog-page *::after {
    box-sizing: border-box;
}

.blog-container {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.blog-hero {
    position: relative;
    overflow: hidden;
    padding: 140px 0 20px;
    background:
        radial-gradient(
            circle at 82% 22%,
            rgba(20, 157, 255, 0.10),
            transparent 32%
        ),
        #070b10;
}

.blog-hero-glow {
    position: absolute;
    top: -140px;
    right: -80px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(20, 157, 255, 0.07);
    filter: blur(100px);
    pointer-events: none;
}

.blog-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    color: #b8c3ce;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.20em;
}

.blog-eyebrow span {
    width: 48px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #149dff 0%,
        #55baff 50%,
        #f9b900 100%
    );
}

.blog-hero-grid {
    display: block;
}

.blog-hero-copy {
    max-width: 1050px;
}

.blog-hero h1 {
    max-width: 1050px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(52px, 5vw, 76px);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.blog-hero h1 span {
    display: inline;
    margin-top: 0;
    padding-bottom: 0.08em;
    background: linear-gradient(
        90deg,
        #149dff 0%,
        #55baff 55%,
        #f9b900 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.blog-hero-side {
    max-width: 720px;
    margin-top: 30px;
    padding: 0;
}

.blog-hero-side p {
    margin: 0;
    color: #9ca8b5;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   ARTICLES
   ========================================================= */

.blog-articles {
    padding: 10px 0 25px;
    background: #070b10;
}

.blog-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-top: 0;
    margin-bottom: 55px;
}

.blog-section-label {
    margin-bottom: 14px;
    color: #149dff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.blog-section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.blog-section-heading h2 span {
    background: linear-gradient(
        90deg,
        #149dff,
        #55baff,
        #f9b900
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* =========================================================
   BLOG LIST
   ========================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.blog-card {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    min-width: 0;
    min-height: 330px;
    overflow: hidden;
    margin: 0;
    border: 2px solid #149dff;
    border-radius: 22px;
    background: #0d1928;
    transition:
        transform 280ms ease,
        border-color 280ms ease,
        background 280ms ease,
        box-shadow 280ms ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: #149dff;
    background: #ffffff;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.25),
        0 0 24px rgba(20, 157, 255, 0.14);
}


/* =========================================================
   BLOG CARD IMAGE
   ========================================================= */

.blog-card-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 330px;
    overflow: hidden;
    padding: 20px;
    background: #0b1119;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 450ms ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.02);
}

.blog-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at 25% 20%,
            rgba(20, 157, 255, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #0b1119,
            #101c2a
        );
}

.blog-card-placeholder span {
    color: #149dff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.blog-card-placeholder strong {
    margin-top: 8px;
    color: #ffffff;
    font-size: 22px;
    letter-spacing: 0.04em;
}


/* =========================================================
   BLOG CARD CONTENT
   ========================================================= */

.blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 38px 42px;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 17px;
}

.blog-card-category {
    color: #149dff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.blog-card-date {
    position: relative;
    padding-left: 14px;
    color: #9ca8b5;
    font-size: 12px;
    transition: color 280ms ease;
}

.blog-card:hover .blog-card-date {
    color: #647487;
}

.blog-card-date::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f9b900;
    transform: translateY(-50%);
}

.blog-card h3 {
    max-width: 650px;
    margin: 0 0 16px;
    font-size: clamp(25px, 2.3vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.blog-card h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 280ms ease;
}

.blog-card:hover h3,
.blog-card:hover h3 a {
    color: #0b1726;
}

.blog-card-excerpt {
    max-width: 680px;
    margin-bottom: 24px;
    color: #9ca8b5;
    font-size: 15px;
    line-height: 1.7;
    transition: color 280ms ease;
}

.blog-card:hover .blog-card-excerpt {
    color: #5f6f7f;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    margin-top: 4px;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 280ms ease,
        padding 280ms ease,
        box-shadow 280ms ease,
        color 280ms ease;
}

.blog-card-link span {
    color: #f9b900;
    transition: transform 250ms ease;
}

.blog-card:hover .blog-card-link {
    padding: 12px 18px;
    background: #0877c9;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(8, 119, 201, 0.24);
}

.blog-card:hover .blog-card-link span {
    transform: translateX(4px);
    color: #ffd23f;
}


/* =========================================================
   EMPTY BLOG
   ========================================================= */

.blog-empty {
    padding: 70px 40px;
    border: 1px solid rgba(20, 157, 255, 0.15);
    border-radius: 24px;
    background: rgba(14, 22, 32, 0.58);
    text-align: center;
}

.blog-empty > span {
    color: #149dff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.blog-empty h2 {
    margin: 18px 0;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 46px);
}

.blog-empty h2 strong {
    color: #f9b900;
}

.blog-empty p {
    max-width: 600px;
    margin: 0 auto;
    color: #9ca8b5;
    line-height: 1.75;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.blog-pagination {
    margin-top: 65px;
}

.blog-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid rgba(20, 157, 255, 0.16);
    border-radius: 10px;
    background: rgba(14, 22, 32, 0.72);
    color: #f5f7fa;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    border-color: rgba(20, 157, 255, 0.55);
    background: rgba(20, 157, 255, 0.12);
    color: #ffffff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .blog-hero {
        padding-top: 165px;
        padding-bottom: 20px;
    }

    .blog-hero-side {
        max-width: 650px;
    }

}


@media (max-width: 800px) {

    .blog-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .blog-card-image {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .blog-card-content {
        padding: 28px 26px 30px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .blog-container {
        width: min(100% - 32px, 1240px);
    }

    .blog-hero {
        padding: 135px 0 40px;
    }

    .blog-eyebrow {
        margin-bottom: 24px;
        font-size: 10px;
    }

    .blog-hero h1 {
        font-size: clamp(42px, 13vw, 58px);
        line-height: 1.02;
    }

    .blog-hero-side p {
        font-size: 15px;
    }

    .blog-articles {
        padding: 25px 0 55px;
    }

    .blog-section-heading {
        margin-top: 0;
        margin-bottom: 35px;
    }

    .blog-section-heading h2 {
        font-size: 36px;
    }

    .blog-grid {
        gap: 22px;
    }

    .blog-card-content {
        padding: 28px 26px 30px;
    }

    .blog-card h3 {
        font-size: 23px;
    }

    .blog-empty {
        padding: 50px 22px;
    }

}

/* =========================================================
   BLOG CARD FINAL VISIBILITY FIX
   ========================================================= */

.blog-card {
    min-height: 300px;
    background: #0d1928 !important;
}

.blog-card-image {
    min-height: 300px;
}

.blog-card-content {
    padding: 32px 40px;
}


/* Normal dark card */

.blog-card h3,
.blog-card h3 a {
    color: #ffffff !important;
}

.blog-card-excerpt {
    color: #9ca8b5 !important;
}

.blog-card-date {
    color: #9ca8b5 !important;
}

.blog-card-link {
    color: #ffffff !important;
}


/* Hover white card */

.blog-card:hover {
    background: #ffffff !important;
}

.blog-card:hover h3,
.blog-card:hover h3 a {
    color: #0b1726 !important;
}

.blog-card:hover .blog-card-excerpt {
    color: #5f6f7f !important;
}

.blog-card:hover .blog-card-date {
    color: #647487 !important;
}

.blog-card:hover .blog-card-link {
    color: #ffffff !important;
    background: #0877c9;
    padding: 12px 18px;
}


/* Mobile */

@media (max-width: 800px) {

    .blog-card {
        min-height: 0;
    }

    .blog-card-image {
        min-height: 0;
    }

}

/* =========================================================
   BLOG CARD BORDER FIX
   ========================================================= */

.shrisha-blog-page .blog-card {
    border-top: 2px solid #149dff !important;
    border-right: 2px solid #149dff !important;
    border-bottom: 2px solid #149dff !important;
    border-left: 2px solid #149dff !important;
}