/* =========================================================
   BLOG HERO
========================================================= */

.blog-hero {
    position: relative;
    padding: 150px 0 90px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(37, 99, 235, 0.18),
            transparent 65%
        ),
        #020617;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-hero-content {
    max-width: 760px;
}

.blog-hero h1 {
    margin: 16px 0 20px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -2.5px;
    color: #ffffff;
}

.blog-hero h1 span {
    display: block;
    color: #60A5FA;
}

.blog-hero p {
    max-width: 650px;
    margin: 0;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1.8;
}


/* =========================================================
   BLOG SECTION
========================================================= */

.blog-section {
    padding: 90px 0 110px;
    background: #020617;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
    gap: 60px;
    align-items: start;
}


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

.blog-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
}

.blog-heading h2 {
    margin: 8px 0 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 32px;
    line-height: 1.2;
    color: #f8fafc;
}


/* =========================================================
   ARTICLE LIST
========================================================= */

.article-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.article-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-image {
    display: block;
    aspect-ratio: 16 / 10;
    height: auto;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.article-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.article-category {
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #3b82f6;
    text-transform: uppercase;
}

.article-content h3 {
    margin: 0 0 12px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 23px;
    line-height: 1.35;
}

.article-content h3 a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.25s ease;
}

.article-content h3 a:hover {
    color: #60a5fa;
}

.article-content p {
    margin: 0 0 18px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.7;
}

.article-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.25s ease;
}

.article-readmore:hover {
    gap: 12px;
    color: #60a5fa;
}


/* =========================================================
   SIDEBAR
========================================================= */

.blog-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

.sidebar-label {
    display: block;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* =========================================================
   ADVERTISEMENT
========================================================= */

.ad-box {
    min-height: 250px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(37, 99, 235, 0.2),
            transparent 65%
        ),
        #0b1329;
}

.ad-box > i {
    margin-bottom: 14px;
    color: #60A5FA;
    font-size: 34px;
}

.ad-box strong {
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 19px;
}

.ad-box span {
    max-width: 190px;
    margin: 8px 0 18px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

.ad-box a {
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.ad-box a:hover {
    transform: translateY(-2px);
}


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

.sidebar-title {
    margin-bottom: 20px;
}

.sidebar-title h3 {
    margin: 7px 0 0;
    color: #f1f5f9;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 22px;
}


/* =========================================================
   LATEST ARTICLES
========================================================= */

.latest-list {
    display: flex;
    flex-direction: column;
}

.latest-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.latest-item:first-child {
    padding-top: 0;
}

.latest-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.latest-image {
    display: block;
    height: 68px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.latest-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.latest-item:hover .latest-image img {
    transform: scale(1.06);
}

.latest-content > span {
    display: block;
    margin-bottom: 5px;
    color: #3b82f6;
    font-size: 10px;
    font-weight: 800;
}

.latest-content h4 {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

.latest-content h4 a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.25s ease;
}

.latest-content h4 a:hover {
    color: #60a5fa;
}


/* =========================================================
   SIDEBAR CTA
========================================================= */

.sidebar-cta {
    position: relative;
    padding: 28px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.sidebar-cta::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -60px;
    bottom: -70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-cta > i {
    display: inline-flex;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 24px;
}

.sidebar-cta h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 21px;
}

.sidebar-cta p {
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.7;
}

.sidebar-cta a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #ffffff;
    color: #020617;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.sidebar-cta a:hover {
    transform: translateY(-2px);
}


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

@media (max-width: 980px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    .sidebar-cta {
        grid-column: 1 / -1;
    }
}


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

@media (max-width: 680px) {
    .blog-hero {
        padding: 120px 0 70px;
    }
    .blog-hero h1 {
        font-size: 40px;
        letter-spacing: -1.5px;
    }
    .blog-hero p {
        font-size: 15px;
    }
    .blog-section {
        padding: 65px 0 80px;
    }
    .blog-heading h2 {
        font-size: 27px;
    }
    .article-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .article-image {
        height: 220px;
    }
    .article-content h3 {
        font-size: 20px;
    }
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    .sidebar-cta {
        grid-column: auto;
    }
}


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

@media (max-width: 420px) {
    .blog-hero h1 {
        font-size: 34px;
    }
    .article-image {
        height: 190px;
    }
    .sidebar-widget {
        padding: 20px;
    }
}


/* =========================================================
   BLOG ANIMATIONS & UX ENHANCEMENTS
========================================================= */

/* Hero Glow Pulse */
.blog-hero {
    animation: heroGlowPulse 10s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
    0% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 65% 20%;
    }
}

/* Article Card Hover Micro-Animations */
.article-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    border-radius: 20px;
    padding: 16px;
    margin: -16px;
}

.article-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(37, 99, 235, 0.1);
}

.article-readmore i {
    transition: transform 0.3s ease;
}

.article-card:hover .article-readmore i,
.article-readmore:hover i {
    transform: translate(3px, -3px);
}

/* Sidebar Widget Hover Glow */
.sidebar-widget {
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.sidebar-widget:hover {
    border-color: rgba(59, 130, 246, 0.22);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Sidebar CTA Shimmer */
.sidebar-cta {
    position: relative;
    overflow: hidden;
}

.sidebar-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    animation: ctaShimmer 6s infinite;
}

@keyframes ctaShimmer {
    0%, 70% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}/* =========================================================
   PAGINATION
========================================================= */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-number:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.page-number.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

