:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --cyan: #20c9d9;
    --navy: #172033;
    --text: #566274;
    --muted: #7c8798;
    --light: #f7f9fc;
    --border: #e7edf5;
    --white: #fff;
    --shadow: 0 15px 45px rgba(31,45,61,.08);
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}

a { text-decoration: none; }

.blog-navbar {
    min-height: 78px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(231,237,245,.9);
    backdrop-filter: blur(12px);
    transition: box-shadow .25s ease;
}

.blog-navbar.scrolled {
    box-shadow: 0 8px 30px rgba(23,32,51,.08);
}

.brand-logo {
    width: 190px;
    height: auto;
}

.blog-navbar .nav-link {
    color: #4d5868;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px !important;
    transition: color .2s ease;
}

.blog-navbar .nav-link:hover,
.blog-navbar .nav-link.active {
    color: var(--primary);
}

.btn-demo {
    color: #fff !important;
    background: var(--primary);
    border-radius: 9px;
    padding: 10px 18px !important;
    box-shadow: 0 7px 18px rgba(13,110,253,.2);
    transition: .25s ease;
}

.btn-demo:hover {
    color: #fff;
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.blog-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 90px;
    background:
        radial-gradient(circle at 83% 18%, rgba(32,201,217,.16), transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #eef6ff 55%, #f9ffff 100%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.orb-one {
    width: 360px;
    height: 360px;
    right: -120px;
    top: -170px;
    background: rgba(13,110,253,.07);
}

.orb-two {
    width: 230px;
    height: 230px;
    left: -100px;
    bottom: -130px;
    background: rgba(32,201,217,.08);
}

.hero-label,
.eyebrow {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.hero-label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid rgba(13,110,253,.12);
    border-radius: 50px;
    background: rgba(13,110,253,.08);
    margin-bottom: 20px;
}

.blog-hero h1 {
    max-width: 900px;
    margin: 0 auto 22px;
    color: var(--navy);
    font-size: clamp(35px, 5vw, 57px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.blog-hero h1 span { color: var(--primary); }

.blog-hero p {
    max-width: 760px;
    margin: auto;
    color: #687487;
    font-size: 17px;
}

.featured-section,
.articles-section {
    padding: 85px 0 35px;
}

.articles-section { padding-top: 55px; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.section-heading.compact { margin-bottom: 30px; }

.section-heading h2,
.categories-box h2 {
    margin: 4px 0 0;
    color: var(--navy);
    font-size: 32px;
    font-weight: 750;
}

.section-heading p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.featured-card {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.featured-visual {
    min-height: 420px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(140deg, #0d6efd, #16b9c8);
}

.visual-pattern {
    position: absolute;
    width: 320px;
    height: 320px;
    right: -100px;
    top: -120px;
    border: 55px solid rgba(255,255,255,.09);
    border-radius: 50%;
}

.visual-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    font-size: 29px;
    margin-bottom: 22px;
}

.visual-category {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    opacity: .85;
}

.visual-icon + .visual-category { margin-bottom: 7px; }

.visual-category + strong {
    font-size: 31px;
    line-height: 1.2;
}

.visual-floating {
    position: absolute;
    right: 25px;
    bottom: 25px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    background: rgba(255,255,255,.12);
    font-size: 12px;
    font-weight: 700;
}

.featured-content {
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #8a94a4;
    font-size: 11px;
}

.post-meta i { color: var(--primary); }

.featured-content h3 {
    margin: 14px 0;
    color: var(--navy);
    font-size: 31px;
    line-height: 1.28;
    font-weight: 750;
}

.featured-content p {
    color: #687487;
    font-size: 15px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 22px;
}

.post-tags span,
.category-btn {
    color: #617083;
    background: #f6f8fb;
    border: 1px solid #e7edf4;
    border-radius: 50px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
}

.read-more,
.article-card-body > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--primary);
    font-size: 13px;
    font-weight: 750;
}

.read-more i,
.article-card-body a i {
    transition: transform .25s ease;
}

.read-more:hover i,
.article-card-body a:hover i {
    transform: translateX(4px);
}

.article-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31,45,61,.05);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.article-card:hover {
    transform: translateY(-7px);
    border-color: #d7e5f8;
    box-shadow: 0 20px 45px rgba(31,45,61,.1);
}

.article-image {
    height: 205px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.article-image:after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    right: -60px;
    top: -80px;
    background: rgba(255,255,255,.11);
}

.article-image i {
    font-size: 48px;
    opacity: .96;
    z-index: 1;
}

.article-image span {
    position: absolute;
    left: 20px;
    bottom: 18px;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.image-blue { background: linear-gradient(135deg,#0d6efd,#287df0); }
.image-cyan { background: linear-gradient(135deg,#11a8ba,#20c9d9); }
.image-dark { background: linear-gradient(135deg,#172033,#31435f); }

.article-card-body {
    padding: 25px;
}

.article-card-body h3 {
    min-height: 66px;
    margin: 12px 0;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.35;
}

.article-card-body p {
    min-height: 72px;
    margin-bottom: 20px;
    color: #717d8e;
    font-size: 13px;
}

.coming-soon {
    opacity: .94;
}

.coming-label {
    display: inline-block;
    color: var(--primary);
    background: rgba(13,110,253,.07);
    border-radius: 50px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 750;
}

.categories-section {
    padding: 50px 0 80px;
}

.categories-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #f8fbff;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.category-btn {
    cursor: pointer;
    transition: .2s ease;
}

.category-btn:hover,
.category-btn.active {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

.newsletter-section {
    padding: 0 0 90px;
}

.newsletter-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 35px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg,#0d6efd,#16b9c8);
    box-shadow: 0 20px 50px rgba(13,110,253,.17);
}

.newsletter-icon {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255,255,255,.14);
    font-size: 25px;
}

.newsletter-content { flex: 1; }

.newsletter-content > span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    opacity: .8;
}

.newsletter-content h2 {
    margin: 3px 0 4px;
    font-size: 24px;
}

.newsletter-content p {
    margin: 0;
    font-size: 13px;
    opacity: .9;
}

.newsletter-btn {
    flex-shrink: 0;
    padding: 12px 18px;
    color: var(--primary);
    background: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
}

.newsletter-btn i { margin-left: 5px; }

.blog-footer {
    padding: 42px 0;
    color: #aeb7c4;
    background: var(--navy);
    font-size: 12px;
}

.footer-logo {
    width: 165px;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.blog-footer p { margin: 0; }

.footer-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 10px;
}

.footer-links a,
.blog-footer a { color: #fff; }

.copyright { color: #8995a5; }

#backToTop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 25px rgba(13,110,253,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .25s ease;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.article-column.is-hidden {
    display: none;
}

@media (max-width: 991px) {
    .featured-card { grid-template-columns: 1fr; }

    .featured-visual {
        min-height: 300px;
    }

    .categories-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-filters {
        justify-content: flex-start;
    }

    .newsletter-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .brand-logo { width: 160px; }

    .blog-hero {
        padding: 70px 0 60px;
    }

    .blog-hero h1 {
        letter-spacing: -.7px;
    }

    .blog-hero p {
        font-size: 15px;
    }

    .featured-section,
    .articles-section {
        padding-top: 55px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-heading h2,
    .categories-box h2 {
        font-size: 28px;
    }

    .featured-content {
        padding: 30px 25px;
    }

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

    .featured-visual {
        padding: 30px;
    }

    .visual-category + strong {
        font-size: 27px;
    }

    .newsletter-card {
        padding: 25px;
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
        text-align: center;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
