/**
 * DARA Mobile Optimization & Navigation System (dara-mobile.css)
 * Ensures 100% responsive fluid performance across all viewport sizes:
 * Small Phones (320px - 375px), Modern Phones (390px - 430px),
 * Phablets & Foldables (480px - 600px), Tablets (768px - 900px), and Desktops.
 */

/* ==================== 1. GLOBAL MOBILE HARDENING ==================== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* ==================== 2. MOBILE HEADER & QUICK ACCESS ==================== */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Mobile CTA Button (Sleek yellow pill) */
.mobile-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    background: #FFD023;
    color: #111827;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(255, 208, 35, 0.28);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-cta-btn:hover {
    background: #e5b81a;
    transform: translateY(-1px);
}

.mobile-quick-blog {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 11px;
    background: rgba(0, 84, 69, 0.08);
    border: 1px solid rgba(0, 84, 69, 0.16);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: #005445;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
}

.mobile-quick-blog:hover {
    background: #005445;
    color: #ffffff;
}

.mobile-quick-blog .nav-badge-new {
    background: #FFD023;
    color: #111827;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Hamburger Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(0, 84, 69, 0.06);
    border: 1px solid rgba(0, 84, 69, 0.14);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.25s ease;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background: rgba(0, 84, 69, 0.12);
}

.mobile-menu-btn .hamburger-bar {
    width: 20px;
    height: 2px;
    background: #005445;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.mobile-menu-btn.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==================== 3. MOBILE SLIDE-DOWN DRAWER ==================== */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 84, 69, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.35s;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 84, 69, 0.08);
}

.mobile-drawer-logo img {
    height: 32px;
    width: auto;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 84, 69, 0.06);
    border: none;
    border-radius: 50%;
    color: #005445;
    cursor: pointer;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
}

.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(0, 84, 69, 0.06);
    color: #005445;
}

.mobile-nav-link svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    stroke: currentColor;
}

.mobile-nav-link.mobile-nav-whatsapp svg {
    color: #25D366;
}

.mobile-nav-link.mobile-nav-blog .nav-badge-new {
    background: #FFD023;
    color: #111827;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    margin-left: auto;
}

.mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(0, 84, 69, 0.08);
    background: rgba(248, 251, 249, 0.8);
}

.mobile-drawer-footer .btn {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    display: block;
}

.mobile-drawer-footer .btn-primary {
    background: #FFD023 !important;
    color: #111827 !important;
    border: none;
}

.mobile-drawer-footer .btn-outline {
    background: #ffffff !important;
    border: 1px solid rgba(0, 84, 69, 0.25) !important;
    color: #005445 !important;
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== 4. BLOG HUB MOBILE REFINEMENTS ==================== */
@media (max-width: 768px) {
    .categories-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding: 4px 4px 10px !important;
        margin: 16px 0 20px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .categories-nav::-webkit-scrollbar {
        display: none !important;
    }

    .cat-pill {
        flex-shrink: 0 !important;
        padding: 7px 15px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .featured-card {
        grid-template-columns: 1fr !important;
        border-radius: 16px !important;
    }

    .featured-img-wrap {
        padding: 24px 20px !important;
        min-height: 160px !important;
    }

    .featured-body {
        padding: 20px 18px !important;
    }

    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .post-card {
        border-radius: 14px !important;
    }

    .card-header-visual {
        height: 180px !important;
    }

    .post-card-body {
        padding: 18px 16px !important;
    }
}

/* ==================== 5. BLOG POST ARTICLE RESPONSIVE REFINEMENTS ==================== */

/* 5A. ALL SCREENS (Desktop + Mobile) Global Blog Container & Media Hardening */
.article-image-box {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    margin: 24px 0 28px !important;
    box-sizing: border-box !important;
    background: #f8fafc !important;
}

.article-image-box img {
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.article-content {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.comparison-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
}

.code-container,
.code-body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
}

.toc-box {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
}

/* 5B. MEDIUM DESKTOP / LAPTOP (901px to 1180px) -> Prevents sidebar and images overflowing on 1024px screens */
@media (min-width: 901px) and (max-width: 1180px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }

    .article-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 260px !important;
        gap: 28px !important;
        padding: 30px 0 60px !important;
        box-sizing: border-box !important;
    }

    .sidebar {
        width: 260px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        top: 85px !important;
    }

    .toc-box {
        padding: 16px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }

    .toc-list li {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }

    .article-image-box {
        max-height: 380px !important;
        margin: 20px 0 24px !important;
    }

    .article-image-box img {
        max-height: 380px !important;
        height: 380px !important;
    }
}

/* 5C. TABLETS & MOBILE (<= 900px) -> Complete Mobile Layout */
@media (max-width: 900px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    .article-hero {
        padding: 24px 0 18px !important;
    }

    .breadcrumb {
        font-size: 12px !important;
        margin-bottom: 10px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .article-title {
        font-size: clamp(20px, 5.2vw, 28px) !important;
        line-height: 1.28 !important;
        margin-bottom: 12px !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    .article-subtitle {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 14px !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    .article-meta-bar {
        font-size: 11.5px !important;
        gap: 6px 10px !important;
        padding-bottom: 12px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    .article-layout {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 0 !important;
        padding: 14px 0 40px !important;
        box-sizing: border-box !important;
    }

    .sidebar {
        display: none !important;
    }

    .article-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .article-content p,
    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content ul,
    .article-content ol,
    .article-content li {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
    }

    .article-content p {
        font-size: 15.5px !important;
        line-height: 1.7 !important;
        margin-bottom: 16px !important;
    }

    .article-content h2 {
        font-size: 20px !important;
        margin: 28px 0 10px !important;
        line-height: 1.3 !important;
    }

    .article-content h3 {
        font-size: 17px !important;
        margin: 20px 0 8px !important;
        line-height: 1.35 !important;
    }

    .article-content ul,
    .article-content ol {
        margin: 0 0 18px 0 !important;
        padding-left: 20px !important;
        font-size: 15px !important;
    }

    .article-content li {
        margin-bottom: 8px !important;
        line-height: 1.6 !important;
    }

    /* Contained Hero Image on Mobile (capped at 230px, sleek banner) */
    .article-image-box {
        margin: 16px 0 20px !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 230px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .article-image-box img {
        width: 100% !important;
        max-width: 100% !important;
        height: 230px !important;
        max-height: 230px !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }

    .image-caption {
        padding: 8px 12px !important;
        font-size: 11.5px !important;
        line-height: 1.45 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .pull-quote {
        padding: 12px 14px !important;
        font-size: 14.5px !important;
        line-height: 1.55 !important;
        margin: 18px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    .chat-simulation {
        padding: 14px 10px !important;
        margin: 18px 0 !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .chat-bubble {
        max-width: 88% !important;
        font-size: 13px !important;
        padding: 8px 12px !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
    }

    .use-case-grid,
    .metrics-grid,
    .proof-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .use-case-card,
    .metric-card {
        padding: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .inline-cta {
        padding: 22px 16px !important;
        border-radius: 14px !important;
        margin: 26px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .inline-cta h3 {
        font-size: 18.5px !important;
    }

    .inline-cta p {
        font-size: 13.5px !important;
        margin-bottom: 14px !important;
    }

    .cta-button-group {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .btn-inline-yellow,
    .btn-inline-outline {
        width: 100% !important;
        text-align: center !important;
        padding: 11px 16px !important;
        font-size: 13.5px !important;
        box-sizing: border-box !important;
    }

    .comparison-table-wrap {
        margin: 18px 0 22px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .comparison-table {
        min-width: 440px !important;
        width: 100% !important;
        font-size: 12px !important;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px !important;
    }

    .code-container,
    .code-body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
    }

    .code-body pre {
        max-width: 100% !important;
        overflow-x: auto !important;
        font-size: 12px !important;
    }

    .faq-block {
        width: 100% !important;
        max-width: 100% !important;
        margin: 28px 0 20px !important;
        box-sizing: border-box !important;
    }

    .faq-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 16px !important;
    }

    .faq-question {
        font-size: 15.5px !important;
    }

    .faq-answer {
        font-size: 13.5px !important;
    }
}

/* 5D. ULTRA-SMALL MOBILE (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px !important;
    }

    .article-image-box {
        max-height: 190px !important;
    }

    .article-image-box img {
        height: 190px !important;
        max-height: 190px !important;
    }

    .article-title {
        font-size: 21px !important;
        line-height: 1.25 !important;
    }

    .article-content p {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }
}

/* ==================== 6. RESPONSIVE BREAKPOINT SWITCHING ==================== */
@media (max-width: 900px) {
    header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
    }

    .header-content {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .logo {
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    .logo img {
        max-height: 32px !important;
        width: auto !important;
    }

    /* HIDE ALL DESKTOP NAVIGATION AND DESKTOP CTA BUTTONS COMPLETELY */
    .nav-links,
    .header-buttons,
    .header-cta,
    .header-content > .header-cta,
    header .header-cta,
    .header-login {
        display: none !important;
    }

    /* SHOW MOBILE ACTIONS ONLY ON RIGHT SIDE */
    .mobile-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }
}

/* ==================== 7. ULTRA-MOBILE HARDENING (320px - 480px) ==================== */
@media (max-width: 480px) {
    .container {
        padding: 0 14px !important;
    }

    header {
        height: 56px !important;
        padding: 0 !important;
    }

    .logo {
        height: 26px !important;
    }

    .logo img {
        max-height: 26px !important;
    }

    .mobile-header-actions {
        gap: 6px !important;
    }

    .mobile-cta-btn {
        padding: 6px 12px !important;
        font-size: 11.5px !important;
    }

    .mobile-quick-blog {
        padding: 5px 9px !important;
        font-size: 11px !important;
    }

    .mobile-menu-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 7px !important;
    }

    .hero-headline {
        font-size: clamp(25px, 7.5vw, 34px) !important;
        line-height: 1.16 !important;
    }

    .hero-subtitle {
        font-size: 14.5px !important;
        line-height: 1.55 !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        text-align: center !important;
        padding: 13px 18px !important;
        font-size: 14px !important;
    }

    .floating-whatsapp-note {
        display: none !important;
    }

    .floating-whatsapp {
        width: 48px !important;
        height: 48px !important;
        bottom: 14px !important;
        right: 14px !important;
    }

    .calc-slider-wrap {
        padding: 12px 10px !important;
    }

    .faq-question {
        font-size: 15.5px !important;
    }

    .faq-answer {
        font-size: 14px !important;
    }
}

/* ==================== 7B. LOGO SWITCHING DEFAULTS ==================== */
.dara-logo-svg,
.logo .dara-logo-svg,
.mobile-drawer-logo .dara-logo-svg {
    display: none !important;
}

.logo-img-dark,
.logo .logo-img-dark,
.drawer-logo-dark,
.mobile-drawer-logo .drawer-logo-dark {
    display: none !important;
}

.logo-img-light,
.logo .logo-img-light,
.drawer-logo-light,
.mobile-drawer-logo .drawer-logo-light {
    display: block !important;
}

.logo,
.mobile-drawer-logo {
    color: #005445;
}

@media (max-width: 900px) {
    .hero-headline-gradient {
        color: var(--primary, #005445) !important;
        -webkit-text-fill-color: currentColor !important;
        background: none !important;
    }
}

html.x-browser .hero-headline-gradient {
    color: var(--primary, #005445) !important;
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
}

/* ==================== 8. DARK MODE REFINEMENTS ==================== */
@media (prefers-color-scheme: dark) {
    /* Header across all screen sizes (mobile + desktop) */
    header {
        background: rgba(11, 18, 15, 0.96) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .nav-links a {
        color: #D1D5DB !important;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: #FFD023 !important;
    }

    /* Logo Dark Mode */
    .logo,
    .mobile-drawer-logo {
        color: #FFFFFF !important;
    }

    .logo-img-light,
    .logo .logo-img-light,
    .drawer-logo-light,
    .mobile-drawer-logo .drawer-logo-light {
        display: none !important;
    }

    .logo-img-dark,
    .logo .logo-img-dark,
    .drawer-logo-dark,
    .mobile-drawer-logo .drawer-logo-dark {
        display: block !important;
    }

    @media (max-width: 900px) {
        .hero-headline-gradient {
            color: #4ADE80 !important;
            -webkit-text-fill-color: #4ADE80 !important;
            background: none !important;
        }
    }

    html.x-browser .hero-headline-gradient {
        color: #4ADE80 !important;
        -webkit-text-fill-color: #4ADE80 !important;
        background: none !important;
    }

    /* Universal fallback for pages where only a single logo img is present */
    .logo > img:only-child,
    .mobile-drawer-logo > img:only-child {
        content: url('/images/dara-logo-white.png') !important;
    }

    .mobile-menu-btn {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.18) !important;
    }

    .mobile-menu-btn .hamburger-bar {
        background: #FFD023 !important;
    }

    .mobile-quick-blog {
        background: rgba(37, 211, 102, 0.12) !important;
        border-color: rgba(37, 211, 102, 0.25) !important;
        color: #25D366 !important;
    }

    .mobile-nav-drawer {
        background: rgba(11, 18, 15, 0.98) !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }

    .mobile-drawer-header {
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    .mobile-drawer-close {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #FFD023 !important;
    }

    .mobile-nav-link {
        color: #F3F4F6 !important;
        border-bottom-color: rgba(255, 255, 255, 0.05) !important;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: rgba(255, 255, 255, 0.06) !important;
        color: #FFD023 !important;
    }

    .mobile-drawer-footer {
        background: rgba(9, 21, 18, 0.95) !important;
        border-top-color: rgba(255, 255, 255, 0.08) !important;
    }

    .mobile-drawer-footer .btn-outline {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: #FFFFFF !important;
    }
}

/* Blog Articles Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background: #0B120F !important;
        color: #F9FAFB !important;
    }

    .article-hero {
        background: #0E1713 !important;
        border-bottom-color: #1F3027 !important;
    }

    .article-title {
        color: #FFFFFF !important;
    }

    .article-subtitle {
        color: #E5E7EB !important;
    }

    .article-meta-bar {
        color: #9CA3AF !important;
        border-bottom-color: #1F3027 !important;
    }

    .badge-pill {
        background: rgba(37, 211, 102, 0.14) !important;
        color: #4ADE80 !important;
    }

    .article-content h2,
    .article-content h3 {
        color: #FFFFFF !important;
    }

    .article-content p,
    .article-content li {
        color: #D1D5DB !important;
    }

    .article-image-box {
        background: #111A16 !important;
        border-color: #1F3027 !important;
    }

    .image-caption {
        background: #111A16 !important;
        color: #9CA3AF !important;
        border-top-color: #1F3027 !important;
    }

    .pull-quote {
        background: #111A16 !important;
        border-left-color: #25D366 !important;
        color: #E5E7EB !important;
    }

    .metric-card,
    .use-case-card,
    .faq-item {
        background: #111A16 !important;
        border-color: #1F3027 !important;
        color: #E5E7EB !important;
    }

    .metric-stat {
        color: #4ADE80 !important;
    }

    .faq-question {
        color: #FFFFFF !important;
    }

    .faq-answer {
        color: #D1D5DB !important;
    }

    .comparison-table-wrap {
        border-color: #1F3027 !important;
    }

    .comparison-table th {
        background: #15241E !important;
        color: #FFFFFF !important;
        border-bottom-color: #1F3027 !important;
    }

    .comparison-table td {
        color: #D1D5DB !important;
        border-bottom-color: #1F3027 !important;
    }

    .comparison-table tr:nth-child(even) {
        background: #111A16 !important;
    }

    .comparison-table tr:hover {
        background: rgba(37, 211, 102, 0.08) !important;
    }

    .code-container {
        background: #070D0B !important;
        border-color: #1F3027 !important;
    }

    .code-header {
        background: #111A16 !important;
        border-bottom-color: #1F3027 !important;
    }

    .toc-box {
        background: #111A16 !important;
        border-color: #1F3027 !important;
    }

    .toc-title {
        color: #FFFFFF !important;
    }

    .toc-list a {
        color: #9CA3AF !important;
    }

    .toc-list a:hover {
        color: #4ADE80 !important;
    }

    /* ==================== Blog Hub & Index Dark Mode ==================== */
    .blog-hero {
        background: radial-gradient(100% 80% at 50% 0%, rgba(37, 211, 102, 0.12) 0%, #111A16 60%, #0B120F 100%) !important;
    }

    .blog-hero-tag {
        background: rgba(37, 211, 102, 0.14) !important;
        border-color: rgba(37, 211, 102, 0.35) !important;
        color: #4ADE80 !important;
    }

    .blog-hero h1 {
        color: #FFFFFF !important;
    }

    .blog-hero p {
        color: #D1D5DB !important;
    }

    .cat-pill {
        background: #111A16 !important;
        border-color: #1F3027 !important;
        color: #D1D5DB !important;
    }

    .cat-pill:hover,
    .cat-pill.active {
        background: #25D366 !important;
        color: #0B120F !important;
        border-color: #25D366 !important;
    }

    .featured-card {
        background: #111A16 !important;
        border-color: #1F3027 !important;
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
    }

    .featured-body h2 {
        color: #FFFFFF !important;
    }

    .featured-body p {
        color: #D1D5DB !important;
    }

    .section-header h3 {
        color: #FFFFFF !important;
    }

    .post-card {
        background: #111A16 !important;
        border-color: #1F3027 !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    }

    .post-card:hover {
        border-color: rgba(37, 211, 102, 0.4) !important;
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6) !important;
    }

    .post-card-body h3 {
        color: #FFFFFF !important;
    }

    .post-card-body p {
        color: #D1D5DB !important;
    }

    .card-footer {
        border-top-color: #1F3027 !important;
        color: #9CA3AF !important;
    }

    .read-more-btn {
        color: #4ADE80 !important;
    }
}
