/**
 * DownloadBrnamj - Main Theme Stylesheet (Modern RTL Tech Portal)
 */

/* ==========================================================================
   1. CSS Reset & Variables (Light & Dark Mode)
   ========================================================================== */
:root {
    --db-primary: #2563eb;
    --db-primary-dark: #1d4ed8;
    --db-primary-light: #3b82f6;
    --db-accent: #7c3aed;
    --db-accent-light: #8b5cf6;
    --db-success: #10b981;
    --db-danger: #ef4444;
    --db-warning: #f59e0b;

    /* Light Theme */
    --db-bg: #f8fafc;
    --db-surface: #ffffff;
    --db-surface-alt: #f1f5f9;
    --db-surface-card: #ffffff;
    --db-text: #0f172a;
    --db-text-muted: #64748b;
    --db-text-light: #94a3b8;
    --db-border: #e2e8f0;
    --db-border-light: #f1f5f9;

    --db-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --db-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    --db-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08);

    --db-font: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --db-container: 1280px;
    --db-radius: 16px;
    --db-radius-sm: 8px;
    --db-radius-full: 9999px;
    --db-header-h: 74px;
    --db-bottom-nav-h: 65px;
}

[data-theme="dark"], body.dark-mode {
    --db-bg: #0b0f19;
    --db-surface: #111827;
    --db-surface-alt: #1f2937;
    --db-surface-card: #151e2e;
    --db-text: #f1f5f9;
    --db-text-muted: #94a3b8;
    --db-text-light: #64748b;
    --db-border: #242f42;
    --db-border-light: #1e293b;

    --db-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --db-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    --db-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    direction: rtl;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--db-font);
    background-color: var(--db-bg);
    color: var(--db-text);
    line-height: 1.65;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    body {
        padding-bottom: var(--db-bottom-nav-h);
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--db-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.db-container {
    width: 100%;
    max-width: var(--db-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================================
   2. Header & Desktop Navigation
   ========================================================================== */
.db-header {
    background: var(--db-surface);
    border-bottom: 1px solid var(--db-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.db-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--db-header-h);
    gap: 20px;
}

/* Logo */
.db-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 20px;
    color: var(--db-text);
    white-space: nowrap;
}

.db-logo-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.db-logo-badge svg {
    width: 24px;
    height: 24px;
}

.db-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.db-logo-title {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .db-logo-title, body.dark-mode .db-logo-title {
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav Menu */
.db-nav-desktop {
    display: flex;
    align-items: center;
}

.db-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
}

.db-menu > li > a {
    padding: 8px 14px;
    font-weight: 700;
    font-size: 14px;
    color: var(--db-text);
    border-radius: var(--db-radius-sm);
    transition: all 0.2s ease;
    display: block;
}

.db-menu > li > a:hover,
.db-menu > li.current-menu-item > a {
    color: var(--db-primary);
    background: var(--db-surface-alt);
}

/* Dropdown */
.db-menu li {
    position: relative;
}

.db-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--db-surface);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius-sm);
    box-shadow: var(--db-shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 101;
}

.db-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.db-menu .sub-menu a {
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    display: block;
}

.db-menu .sub-menu a:hover {
    background: var(--db-surface-alt);
}

/* Header Actions */
.db-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.db-action-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--db-radius-sm);
    background: var(--db-surface-alt);
    border: 1px solid var(--db-border);
    color: var(--db-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.db-action-btn:hover {
    background: var(--db-border);
    color: var(--db-primary);
}

.db-theme-toggle svg {
    width: 20px;
    height: 20px;
}

.db-theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .db-theme-toggle .icon-moon,
body.dark-mode .db-theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .db-theme-toggle .icon-sun,
body.dark-mode .db-theme-toggle .icon-sun { display: block; }

/* Desktop Quick Search Input */
.db-desktop-search-pill {
    display: flex;
    align-items: center;
    background: var(--db-surface-alt);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius-full);
    padding: 6px 14px;
    gap: 8px;
    cursor: pointer;
    width: 210px;
    color: var(--db-text-muted);
    font-size: 13px;
    transition: all 0.2s ease;
}

.db-desktop-search-pill:hover {
    border-color: var(--db-primary);
    background: var(--db-surface);
}

.db-desktop-search-pill svg {
    width: 16px;
    height: 16px;
    color: var(--db-primary);
}

@media (max-width: 1024px) {
    .db-nav-desktop, .db-desktop-search-pill {
        display: none;
    }
}

/* Mobile Hamburger & Controls */
.db-mobile-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .db-mobile-toggle {
        display: flex;
    }
}

/* ==========================================================================
   3. Mobile Drawer Menu & Bottom Navigation
   ========================================================================== */
.db-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.db-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.db-drawer {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--db-surface);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.db-drawer.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

/* Dedicated Mobile Bottom Sheet Styling */
.db-drawer.db-bottom-sheet {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    max-height: 80dvh;
    border-radius: 20px 20px 0 0;
    border-top: 1px solid var(--db-border);
    transform: translateY(105%);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
}

.db-drawer.db-bottom-sheet.active {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.db-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--db-border);
    margin-bottom: 18px;
}

.db-drawer-close {
    background: var(--db-surface-alt);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--db-text);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.db-drawer-close:hover {
    background: var(--db-border);
    color: var(--db-primary);
}

.db-drawer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.db-drawer-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14.5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.db-drawer-menu a:hover {
    background: var(--db-surface-alt);
    color: var(--db-primary);
}

/* Mobile Bottom Navigation Bar */
.db-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--db-bottom-nav-h);
    background: var(--db-surface);
    border-top: 1px solid var(--db-border);
    z-index: 900;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .db-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
}

.db-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--db-text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.db-bottom-nav-item svg {
    width: 20px;
    height: 20px;
}

.db-bottom-nav-item.active,
.db-bottom-nav-item:hover {
    color: var(--db-primary);
}

/* ==========================================================================
   4. Hero Banner (Homepage)
   ========================================================================== */
.db-hero-section {
    padding: 24px 0 35px;
}

.db-hero-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 60%, #31104b 100%);
    border-radius: 24px;
    padding: 40px 45px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 35px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.2);
}

@media (max-width: 900px) {
    .db-hero-card {
        grid-template-columns: 1fr;
        padding: 30px 22px;
        text-align: center;
    }
}

.db-hero-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

@media (max-width: 768px) {
    .db-hero-title {
        font-size: 25px;
    }
}

.db-hero-desc {
    font-size: 15px;
    color: #cbd5e1;
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 540px;
}

/* Search Box Inside Hero */
.db-hero-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: var(--db-radius-full);
    padding: 6px 8px 6px 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    max-width: 520px;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .db-hero-search-form {
        margin-left: auto;
        margin-right: auto;
    }
}

.db-hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #1e293b;
    padding: 6px 10px;
    background: transparent;
}

.db-hero-search-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: var(--db-radius-full);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s;
}

.db-hero-search-btn:hover {
    transform: scale(1.05);
}

.db-hero-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 900px) {
    .db-hero-pills {
        justify-content: center;
    }
}

.db-hero-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    padding: 5px 13px;
    border-radius: var(--db-radius-full);
    font-size: 12.5px;
    font-weight: 600;
    transition: all 0.2s;
}

.db-hero-pill:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Visual Art (3D composition) */
.db-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-hero-illustration {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.db-hero-floating-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.db-badge-ai { bottom: 15px; left: 20px; }
.db-badge-win { top: 15px; right: 20px; }

/* ==========================================================================
   5. Category Grid Cards
   ========================================================================== */
.db-categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-bottom: 35px;
}

@media (max-width: 1200px) {
    .db-categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .db-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.db-cat-card {
    background: var(--db-surface-card);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: var(--db-shadow-sm);
}

.db-cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--cat-color, var(--db-primary));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.db-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--cat-bg, #eff6ff);
    color: var(--cat-color, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.2s;
}

.db-cat-card:hover .db-cat-icon {
    transform: scale(1.1);
}

.db-cat-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--db-text);
}

.db-cat-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--db-text-muted);
}

/* ==========================================================================
   6. Two-Column Main Layout
   ========================================================================== */
.db-main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .db-main-layout {
        grid-template-columns: 1fr;
    }
}

.db-section {
    margin-bottom: 40px;
}

.db-section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.db-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--db-text);
}

.db-section-heading svg {
    color: var(--db-primary);
}

.db-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--db-primary);
    padding: 4px 12px;
    background: var(--db-surface-alt);
    border-radius: var(--db-radius-full);
    transition: all 0.2s;
}

.db-view-all-link:hover {
    background: var(--db-primary);
    color: #fff;
}

/* ==========================================================================
   7. Featured Articles Layout (1 Main + 4 Grid)
   ========================================================================== */
.db-featured-container {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 18px;
}

@media (max-width: 768px) {
    .db-featured-container {
        grid-template-columns: 1fr;
    }
}

/* Main Big Featured Card */
.db-featured-main {
    background: var(--db-surface-card);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--db-shadow);
    transition: transform 0.25s ease;
}

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

.db-featured-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--db-surface-alt);
}

.db-featured-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.db-featured-main:hover .db-featured-thumb-wrap img {
    transform: scale(1.05);
}

.db-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--badge-bg, var(--db-primary));
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.db-featured-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.db-featured-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
}

.db-featured-excerpt {
    font-size: 13.5px;
    color: var(--db-text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.db-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--db-text-light);
    border-top: 1px solid var(--db-border-light);
    padding-top: 14px;
}

.db-meta-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Secondary 2x2 Grid */
.db-featured-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 500px) {
    .db-featured-secondary-grid {
        grid-template-columns: 1fr;
    }
}

.db-featured-sub-card {
    background: var(--db-surface-card);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--db-shadow-sm);
    transition: transform 0.25s ease;
}

.db-featured-sub-card:hover {
    transform: translateY(-3px);
}

.db-sub-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--db-surface-alt);
}

.db-sub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.db-featured-sub-card:hover .db-sub-thumb img {
    transform: scale(1.06);
}

.db-sub-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.db-sub-title {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 10px;
    flex: 1;
}

/* ==========================================================================
   8. Latest Articles Grid
   ========================================================================== */
.db-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .db-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .db-articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.db-article-card {
    position: relative;
    background: var(--db-surface-card);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--db-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.db-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--db-shadow);
    border-color: var(--db-primary-light);
}

.db-article-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--db-surface-alt);
    display: block;
}

.db-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.db-article-card:hover .db-article-thumb img {
    transform: scale(1.06);
}

.db-article-body {
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.db-article-title {
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.48;
    margin-bottom: 8px;
    color: var(--db-text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: break-word;
    max-height: calc(1.48em * 3);
}

.db-article-title a {
    color: var(--db-text);
    transition: color 0.2s ease;
}

.db-article-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.db-article-title a:hover {
    color: var(--db-primary);
}

.db-article-excerpt {
    font-size: 13px;
    line-height: 1.55;
    color: var(--db-text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: break-word;
    max-height: calc(1.55em * 3);
}

.db-card-meta {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--db-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--db-text-muted);
    position: relative;
    z-index: 2;
}

@media (max-width: 640px) {
    .db-article-body {
        padding: 14px;
    }
    .db-article-title {
        font-size: 15px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    .db-article-excerpt {
        font-size: 12.5px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        margin-bottom: 10px;
    }
    .db-card-meta {
        font-size: 11.5px;
    }
}

/* ==========================================================================
   9. Software Section & Cards
   ========================================================================== */
.db-software-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

@media (max-width: 1200px) {
    .db-software-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .db-software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.db-software-card {
    background: var(--db-surface-card);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: var(--db-shadow-sm);
    position: relative;
}

.db-software-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--db-shadow);
    border-color: var(--db-primary);
}

.db-software-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--db-surface-alt);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-software-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db-software-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--db-text);
    margin-bottom: 4px;
}

.db-software-desc {
    font-size: 11.5px;
    color: var(--db-text-muted);
    margin-bottom: 10px;
    line-height: 1.35;
    height: 32px;
    overflow: hidden;
}

.db-software-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: var(--db-text-light);
    margin-bottom: 14px;
    font-weight: 600;
}

.db-software-rating {
    color: #eab308;
    display: flex;
    align-items: center;
    gap: 2px;
}

.db-software-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    padding: 7px 12px;
    border-radius: var(--db-radius-full);
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.db-software-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================================
   10. Sidebar & Trending Widgets
   ========================================================================== */
.db-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.db-widget {
    background: var(--db-surface-card);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    padding: 22px;
    box-shadow: var(--db-shadow-sm);
}

.db-widget-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--db-text);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--db-surface-alt);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 45px;
    height: 2px;
    background: var(--db-primary);
}

/* Trending Posts Widget */
.db-trending-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.db-trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--db-border-light);
}

.db-trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.db-trending-rank {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--db-surface-alt);
    color: var(--db-text-muted);
    font-weight: 800;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-trending-item:nth-child(1) .db-trending-rank { background: #fee2e2; color: #dc2626; }
.db-trending-item:nth-child(2) .db-trending-rank { background: #fef3c7; color: #d97706; }
.db-trending-item:nth-child(3) .db-trending-rank { background: #dbeafe; color: #2563eb; }

.db-trending-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--db-surface-alt);
}

.db-trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db-trending-info {
    flex: 1;
}

.db-trending-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--db-text);
}

/* Category Pills Widget */
.db-widget-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.db-cat-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--db-surface-alt);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius-full);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

.db-cat-pill-item:hover {
    background: var(--db-primary);
    color: #fff;
    border-color: var(--db-primary);
}

/* ==========================================================================
   11. Single Post Page (Article Layout)
   ========================================================================== */
.db-single-header {
    margin-bottom: 24px;
}

.db-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    color: var(--db-text-muted);
    margin-bottom: 14px;
}

.db-breadcrumb-sep {
    color: var(--db-text-light);
}

.db-breadcrumb-current {
    color: var(--db-text);
    font-weight: 600;
}

.db-single-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--db-radius-full);
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    background: var(--db-primary);
    margin-bottom: 12px;
}

.db-single-article {
    min-width: 0;
    max-width: 100%;
}

.db-single-title {
    font-size: clamp(21px, 4.5vw, 32px);
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 16px;
    color: var(--db-text);
    word-break: break-word;
    overflow-wrap: break-word;
    letter-spacing: -0.3px;
}

.db-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 13px;
    color: var(--db-text-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--db-border);
    margin-bottom: 22px;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .db-single-meta {
        font-size: 12px;
        gap: 8px 12px;
        padding-bottom: 14px;
        margin-bottom: 18px;
    }
}

.db-meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--db-text);
}

.db-meta-author img {
    border-radius: 50%;
}

/* Reading Progress Bar */
.db-progress-bar {
    position: fixed;
    top: var(--db-header-h);
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--db-primary), var(--db-accent));
    width: 0%;
    z-index: 102;
    transition: width 0.1s ease;
}

/* Featured Image */
.db-single-featured-img {
    border-radius: var(--db-radius);
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--db-shadow);
}

.db-single-featured-img img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

/* Social Sharing Bar */
.db-share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 25px;
}

.db-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--db-radius-full);
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.db-share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.db-share-facebook { background: #1877f2; }
.db-share-x { background: #000000; }
.db-share-whatsapp { background: #25d366; }
.db-share-telegram { background: #229ed9; }
.db-share-copy { background: #475569; }

/* Table of Contents */
.db-toc-box {
    background: var(--db-surface-card);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: var(--db-shadow-sm);
}

.db-toc-header {
    background: var(--db-surface-alt);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.db-toc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 15px;
    color: var(--db-text);
}

.db-toc-collapse-btn {
    background: none;
    border: none;
    color: var(--db-text-muted);
    cursor: pointer;
}

.db-toc-body {
    padding: 16px 22px;
}

.db-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.db-toc-level-3 {
    margin-right: 20px;
}

.db-toc-link {
    font-size: 13.5px;
    color: var(--db-text);
    display: inline-flex;
    gap: 6px;
    transition: color 0.2s;
}

.db-toc-link:hover {
    color: var(--db-primary);
}

/* Post Content Formatting */
.db-post-content {
    font-size: 17px;
    line-height: 1.85;
    color: var(--db-text);
    margin-bottom: 40px;
}

.db-post-content p {
    margin-bottom: 22px;
}

.db-post-content h2,
.db-post-content h3,
.db-post-content h4 {
    margin-top: 36px;
    margin-bottom: 16px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--db-text);
    scroll-margin-top: 90px;
}

.db-post-content h2 {
    font-size: 24px;
    border-right: 4px solid var(--db-primary);
    padding-right: 12px;
}

.db-post-content h3 {
    font-size: 20px;
}

.db-post-content ul,
.db-post-content ol {
    margin-bottom: 22px;
    padding-right: 25px;
}

.db-post-content li {
    margin-bottom: 8px;
}

.db-post-content blockquote {
    background: var(--db-surface-alt);
    border-right: 4px solid var(--db-accent);
    padding: 16px 20px;
    border-radius: 8px;
    font-style: italic;
    margin-bottom: 24px;
}

.db-post-content img,
.entry-content img,
.db-post-content figure,
.entry-content figure {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--db-radius-sm);
    margin: 18px 0;
}

.db-post-content iframe,
.entry-content iframe,
.db-post-content video,
.entry-content video {
    max-width: 100%;
}

.db-post-content table,
.entry-content table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 24px 0;
}

.db-post-content pre,
.entry-content pre {
    max-width: 100%;
    overflow-x: auto;
    background: var(--db-surface-alt);
    padding: 16px;
    border-radius: var(--db-radius-sm);
    border: 1px solid var(--db-border);
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.db-post-content code,
.entry-content code {
    font-family: monospace;
    word-break: break-word;
}

/* Mentioned Software Highlight Box */
.db-mentioned-software-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--db-radius);
    padding: 24px;
    margin: 35px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 600px) {
    .db-mentioned-software-box {
        flex-direction: column;
        text-align: center;
    }
}

.db-ms-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--db-shadow);
    overflow: hidden;
    flex-shrink: 0;
}

.db-ms-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db-ms-info {
    flex: 1;
}

.db-ms-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.db-ms-specs {
    font-size: 12.5px;
    color: var(--db-text-muted);
    margin-bottom: 12px;
}

/* Author Box */
.db-author-box {
    background: var(--db-surface-card);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 35px;
}

.db-author-avatar img {
    border-radius: 50%;
}

.db-author-name {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.db-author-bio {
    font-size: 13.5px;
    color: var(--db-text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   12. Single Software Page Layout
   ========================================================================== */
.db-software-hero {
    background: var(--db-surface-card);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 26px;
    box-shadow: var(--db-shadow);
}

@media (max-width: 768px) {
    .db-software-hero {
        flex-direction: column;
        text-align: center;
    }
}

.db-sh-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.db-sh-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db-sh-info {
    flex: 1;
}

.db-sh-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 8px;
}

.db-sh-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--db-text-muted);
}

.db-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .db-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.db-spec-item {
    background: var(--db-surface-card);
    border: 1px solid var(--db-border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.db-spec-label {
    font-size: 12px;
    color: var(--db-text-muted);
    margin-bottom: 4px;
}

.db-spec-value {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--db-text);
}

.db-download-cta {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 14px 30px;
    border-radius: var(--db-radius-full);
    font-size: 17px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
    transition: transform 0.2s;
}

.db-download-cta:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.db-footer {
    background: var(--db-surface);
    border-top: 1px solid var(--db-border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.db-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 35px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .db-footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.db-footer-col h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--db-text);
    margin-bottom: 16px;
}

.db-footer-col p {
    font-size: 13.5px;
    color: var(--db-text-muted);
    line-height: 1.6;
}

.db-footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.db-footer-menu a {
    font-size: 13.5px;
    color: var(--db-text-muted);
}

.db-footer-menu a:hover {
    color: var(--db-primary);
}

.db-footer-bottom {
    border-top: 1px solid var(--db-border);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--db-text-light);
}

/* ==========================================================================
   14. Live Search Modal Overlay
   ========================================================================== */
.db-search-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.db-search-modal.active {
    opacity: 1;
    visibility: visible;
}

.db-search-box-wrap {
    width: 100%;
    max-width: 650px;
    background: var(--db-surface);
    border-radius: var(--db-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid var(--db-border);
    margin: 0 15px;
}

.db-modal-search-form {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--db-border);
    gap: 12px;
}

.db-modal-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 17px;
    color: var(--db-text);
    background: transparent;
}

.db-search-results-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.db-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    transition: background 0.2s;
}

.db-search-item:hover {
    background: var(--db-surface-alt);
}

.db-search-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--db-surface-alt);
    flex-shrink: 0;
}

.db-search-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db-search-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--db-text);
}

/* ==========================================================================
   15. Toast Notification
   ========================================================================== */
.db-toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--db-radius-full);
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-toast.active {
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   16. Ads Styling (Zero CLS)
   ========================================================================== */
.db-ad-slot {
    margin: 20px auto;
    text-align: center;
    position: relative;
    background: var(--db-surface-alt);
    border: 1px dashed var(--db-border);
    border-radius: 8px;
    padding: 8px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.db-ad-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--db-text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* ==========================================================================
   17. Pagination (Horizontal, Modern, RTL-aware, Zero Bullets)
   ========================================================================== */
.db-pagination-wrap {
    margin: 45px 0 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    clear: both;
}

.db-pagination-wrap ul.page-numbers,
.db-pagination-wrap .page-numbers {
    list-style: none !important;
}

.db-pagination-wrap ul.page-numbers {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

.db-pagination-wrap ul.page-numbers li {
    list-style: none !important;
    list-style-type: none !important;
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

.db-pagination-wrap ul.page-numbers li::before,
.db-pagination-wrap ul.page-numbers li::after {
    display: none !important;
    content: none !important;
}

.db-pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--db-radius-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--db-text);
    background: var(--db-surface-card);
    border: 1px solid var(--db-border);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    user-select: none;
    box-shadow: var(--db-shadow-sm);
}

.db-pagination-wrap a.page-numbers:hover {
    color: #ffffff;
    background: var(--db-primary);
    border-color: var(--db-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.db-pagination-wrap a.page-numbers:focus-visible {
    outline: 2px solid var(--db-primary);
    outline-offset: 2px;
}

.db-pagination-wrap .page-numbers.current {
    color: #ffffff;
    background: var(--db-primary);
    border-color: var(--db-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    cursor: default;
    pointer-events: none;
}

.db-pagination-wrap .page-numbers.dots {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--db-text-muted);
    font-size: 20px;
    font-weight: 800;
    min-width: 30px;
    padding: 0 4px;
    cursor: default;
    line-height: 1;
}

.db-pagination-wrap .page-numbers.prev,
.db-pagination-wrap .page-numbers.next {
    gap: 6px;
    font-weight: 800;
    padding: 0 16px;
}

.db-pagination-wrap .page-numbers svg {
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .db-pagination-wrap {
        margin: 30px 0 15px;
    }
    .db-pagination-wrap ul.page-numbers {
        gap: 6px;
    }
    .db-pagination-wrap .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
        border-radius: 6px;
    }
    .db-pagination-wrap .page-numbers.prev,
    .db-pagination-wrap .page-numbers.next {
        padding: 0 10px;
        font-size: 12px;
    }
    .db-pagination-wrap .page-numbers.dots {
        min-width: 20px;
        padding: 0 2px;
        font-size: 16px;
    }
}

/* ==========================================================================
   18. Mobile Responsiveness, Header & Overflow Protections
   ========================================================================== */
@media (max-width: 768px) {
    .db-container {
        padding-left: 14px;
        padding-right: 14px;
    }
    .db-header-inner {
        gap: 8px;
    }
    .db-logo {
        gap: 8px;
        font-size: 17px;
    }
    .db-logo-badge {
        width: 36px;
        height: 36px;
    }
    .db-logo-badge svg {
        width: 20px;
        height: 20px;
    }
    .db-logo-title {
        font-size: 17px;
    }
    .db-header-actions {
        gap: 6px;
    }
    .db-action-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .db-container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .db-logo-title {
        font-size: 15.5px;
    }
    .db-logo-badge {
        width: 32px;
        height: 32px;
    }
    .db-logo-badge svg {
        width: 18px;
        height: 18px;
    }
    .db-action-btn {
        width: 34px;
        height: 34px;
    }
}

/* Guard against grid and flex item min-content blowout */
.db-main-layout,
.db-main-column,
.db-single-article,
.db-articles-grid,
.db-article-card,
.db-section,
.db-header,
.site-main {
    min-width: 0;
    max-width: 100%;
}

