/* =========================================================
   DAILY EARN MONEY
   FINAL GLOBAL DESIGN SYSTEM
   ========================================================= */

:root {
    --navy: #0f172a;
    --navy-light: #1e293b;

    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #eff6ff;

    --green: #10b981;
    --green-dark: #059669;

    --amber: #f59e0b;
    --red: #ef4444;

    --white: #ffffff;

    --bg: #f8fafc;
    --bg-soft: #f1f5f9;

    --border: #e2e8f0;

    --text: #0f172a;
    --text-light: #475569;
    --muted: #64748b;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.12);

    --container: 1200px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Poppins", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--navy);
    font-weight: 750;
}

p {
    color: var(--text-light);
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.dem-topbar {
    width: 100%;
    background: var(--navy);
    color: #cbd5e1;
    font-size: 13px;
}

.dem-topbar-inner {
    width: min(calc(100% - 32px), var(--container));
    min-height: 38px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}





.dem-trust,
.dem-top-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dem-trust span,
.dem-top-links a {
    white-space: nowrap;
}

.dem-top-links a {
    color: #e2e8f0;
}

.dem-top-links a:hover {
    color: var(--white);
}

.dem-calculator {
    color: #fbbf24;
    font-weight: 600;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

.dem-middle {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.dem-middle-inner {
    width: min(calc(100% - 32px), var(--container));
    min-height: 92px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 28px;
}


/* =========================================================
   LOGO
   ========================================================= */

.dem-logo-area {
    position: relative;
    width: auto;
    flex: 0 0 auto;
}

.dem-logo {
    flex: 0 0 auto;
}

.dem-logo-link {
    display: flex;
    align-items: center;
    gap: 11px;
}

.dem-logo-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        var(--blue),
        #4f46e5
    );

    color: var(--white);
    font-size: 24px;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.22);
}

.dem-logo-text {
    min-width: 0;
}

.dem-logo-text h1 {
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;

    letter-spacing: -0.9px;

    color: var(--navy);

    white-space: nowrap;
}

.dem-logo-text h1 span {
    color: var(--blue);
}

.dem-logo-text p {
    margin-top: 4px;

    font-size: 11px;

    color: var(--muted);

    font-weight: 600;

    letter-spacing: 1px;

    white-space: nowrap;
}


/* =========================================================
   MOBILE HAMBURGER
   ========================================================= */

.dem-mobile-menu-btn {
    display: none;
}


/* =========================================================
   SEARCH
   ========================================================= */

.dem-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.dem-search input {
    width: 100%;
    height: 46px;

    padding: 0 54px 0 17px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--bg);
    color: var(--text);

    outline: none;
}

.dem-search input::placeholder {
    color: #94a3b8;
}

.dem-search input:focus {
    background: var(--white);
    border-color: var(--blue);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10);
}

.dem-search button {
    position: absolute;

    right: 5px;
    top: 5px;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 9px;

    background: var(--blue);
    color: var(--white);
}

.dem-search button:hover {
    background: var(--blue-dark);
}


/* =========================================================
   HEADER BUTTONS
   ========================================================= */

.dem-middle-buttons {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-left: auto;

    min-width: 0;
}

.dem-middle-btn {
    min-height: 40px;

    padding: 8px 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--white);
    color: var(--text);

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}

.dem-middle-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.dem-deals {
    background: #fffbeb;
    border-color: #fde68a;
}

.dem-coupons {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.dem-currency {
    background: #eff6ff;
    border-color: #bfdbfe;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.dem-menubar {
    width: 100%;

    background: var(--white);

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;

    z-index: 1000;
}

.dem-menu-wrap {
    width: min(calc(100% - 32px), var(--container));
    min-height: 54px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    position: relative;
}

.dem-menu {
    width: 100%;
    min-height: 54px;

    display: flex;
    align-items: center;

    gap: 4px;

    overflow-x: auto;

    scrollbar-width: none;
}

.dem-menu::-webkit-scrollbar {
    display: none;
}

.dem-menu a {
    min-height: 40px;

    padding: 9px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border-radius: 9px;

    color: var(--text-light);

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    flex: 0 0 auto;
}

.dem-menu a:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.dem-menu a.active {
    background: var(--blue);
    color: var(--white);
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

section {
    position: relative;
}

.dem-section {
    padding: 70px 0;
}

.dem-section-header {
    margin-bottom: 32px;
}

.dem-section-header h2 {
    margin-bottom: 8px;

    font-size: clamp(25px, 3vw, 34px);

    line-height: 1.2;

    letter-spacing: -0.7px;
}

.dem-section-header p {
    max-width: 680px;
    color: var(--muted);
}


/* =========================================================
   HERO
   ========================================================= */

.dem-hero {
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(37, 99, 235, 0.30),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #0f172a 0%,
            #172554 55%,
            #1e3a8a 100%
        );

    color: var(--white);

    padding: 82px 0;

    overflow: hidden;
}

.dem-hero-inner {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(280px, 0.8fr);

    align-items: center;

    gap: 50px;
}

.dem-hero h1 {
    max-width: 760px;

    margin-bottom: 20px;

    font-size: clamp(36px, 5vw, 60px);

    line-height: 1.05;

    letter-spacing: -1.8px;

    color: var(--white);
}

.dem-hero h1 span {
    color: #60a5fa;
}

.dem-hero p {
    max-width: 650px;

    margin-bottom: 30px;

    color: #cbd5e1;

    font-size: 18px;
}

.dem-hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.dem-btn {
    min-height: 46px;

    padding: 11px 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 0;

    border-radius: 10px;

    font-weight: 700;

    font-size: 14px;
}

.dem-btn-primary {
    background: var(--blue);
    color: var(--white);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.22);
}

.dem-btn-primary:hover {
    background: var(--blue-dark);
}

.dem-btn-green {
    background: var(--green);
    color: var(--white);
}

.dem-btn-green:hover {
    background: var(--green-dark);
}

.dem-btn-outline {
    border: 1px solid #cbd5e1;

    background: var(--white);

    color: var(--navy);
}

.dem-btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}


/* =========================================================
   CARDS
   ========================================================= */

.dem-card {
    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.dem-card:hover {
    transform: translateY(-4px);

    border-color: #cbd5e1;

    box-shadow: var(--shadow-md);
}

.dem-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   CATEGORY CARDS
   ========================================================= */

.dem-category-card {
    padding: 25px;

    overflow: hidden;
}

.dem-category-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 14px;

    background: var(--blue-light);

    color: var(--blue);

    font-size: 22px;
}

.dem-category-card h3 {
    margin-bottom: 8px;

    font-size: 19px;
}

.dem-category-card p {
    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   CATEGORY IMAGE
   ========================================================= */

.dem-category-image {
    width: calc(100% + 50px);

    height: 155px;

    margin: -25px -25px 20px;

    overflow: hidden;

    background: var(--bg-soft);
}

.dem-category-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.dem-category-card:hover
.dem-category-image img {
    transform: scale(1.05);
}


/* =========================================================
   ARTICLE CARDS
   ========================================================= */

.dem-articles-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.dem-article-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.dem-article-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-md);
}

.dem-article-image {
    width: 100%;
    height: 210px;

    object-fit: cover;

    background: var(--bg-soft);
}

.dem-article-content {
    padding: 22px;
}

.dem-article-category {
    display: inline-block;

    margin-bottom: 10px;

    padding: 5px 9px;

    border-radius: 6px;

    background: var(--blue-light);

    color: var(--blue);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.dem-article-content h3 {
    margin-bottom: 9px;

    font-size: 19px;

    line-height: 1.35;
}

.dem-article-content h3 a:hover {
    color: var(--blue);
}

.dem-article-content p {
    margin-bottom: 15px;

    color: var(--muted);

    font-size: 14px;
}

.dem-article-meta {
    color: #94a3b8;

    font-size: 12px;
}


/* =========================================================
   AI TOOL CARDS
   ========================================================= */

.dem-ai-tools-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.dem-ai-tool-card {
    padding: 24px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.dem-ai-tool-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-md);
}

.dem-ai-tool-logo {
    width: 52px;
    height: 52px;

    object-fit: contain;

    padding: 8px;

    margin-bottom: 16px;

    border: 1px solid var(--border);

    border-radius: 12px;
}

.dem-ai-tool-card h3 {
    margin-bottom: 7px;

    font-size: 19px;
}

.dem-ai-tool-card p {
    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   BADGES
   ========================================================= */

.dem-badge {
    display: inline-flex;

    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 700;
}

.dem-badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.dem-badge-green {
    background: #d1fae5;
    color: #047857;
}

.dem-badge-amber {
    background: #fef3c7;
    color: #b45309;
}


/* =========================================================
   SEARCH / FILTER
   ========================================================= */

.dem-filter-box {
    margin-bottom: 30px;

    padding: 20px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

.dem-filter-box input,
.dem-filter-box select {
    min-height: 44px;

    padding: 9px 13px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--white);

    color: var(--text);

    outline: none;
}

.dem-filter-box input {
    flex: 1;

    min-width: 220px;
}

.dem-filter-box input:focus,
.dem-filter-box select:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* =========================================================
   CTA
   ========================================================= */

.dem-cta {
    padding: 60px 0;
}

.dem-cta-box {
    padding: 50px;

    border-radius: var(--radius-xl);

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(59, 130, 246, 0.30),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--navy),
            #1e3a8a
        );

    color: var(--white);
}

.dem-cta-box h2 {
    margin-bottom: 10px;

    font-size: clamp(27px, 4vw, 38px);

    color: var(--white);
}

.dem-cta-box p {
    max-width: 650px;

    margin-bottom: 25px;

    color: #cbd5e1;
}


/* =========================================================
   ARTICLE PAGE
   ========================================================= */

.dem-article-page {
    padding: 55px 0;
}

.dem-article-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 35px;

    align-items: start;
}

.dem-article-main {
    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    padding: 35px;

    box-shadow: var(--shadow-sm);
}

.dem-article-main h1 {
    margin-bottom: 14px;

    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.15;

    letter-spacing: -1px;
}

.dem-article-main .article-meta {
    margin-bottom: 25px;

    color: var(--muted);

    font-size: 13px;
}

.dem-article-main > img {
    width: 100%;

    max-height: 550px;

    object-fit: cover;

    margin-bottom: 30px;

    border-radius: 14px;
}

.dem-article-content {
    color: #334155;

    font-size: 17px;
}

.dem-article-content h2 {
    margin: 32px 0 12px;

    font-size: 28px;

    color: var(--navy);
}

.dem-article-content h3 {
    margin: 25px 0 10px;

    font-size: 22px;

    color: var(--navy);
}

.dem-article-content p {
    margin-bottom: 18px;
}

.dem-article-content ul,
.dem-article-content ol {
    margin: 0 0 20px 22px;
}

.dem-article-content li {
    margin-bottom: 8px;
}


/* =========================================================
   AFFILIATE BOX
   ========================================================= */

.dem-affiliate-box {
    margin-top: 35px;

    padding: 22px;

    border: 1px solid #bfdbfe;

    border-radius: 14px;

    background: #eff6ff;
}

.dem-affiliate-box h3 {
    margin-bottom: 7px;
}

.dem-affiliate-box p {
    margin-bottom: 15px;

    color: var(--muted);

    font-size: 13px;
}

.dem-affiliate-link {
    display: inline-flex;

    align-items: center;

    padding: 10px 16px;

    border-radius: 9px;

    background: var(--blue);

    color: var(--white);

    font-size: 13px;

    font-weight: 700;
}

.dem-affiliate-link:hover {
    background: var(--blue-dark);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.dem-sidebar {
    display: grid;

    gap: 20px;
}

.dem-sidebar-box {
    padding: 22px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.dem-sidebar-box h3 {
    margin-bottom: 14px;

    font-size: 18px;
}

.dem-sidebar-box a {
    display: block;

    padding: 9px 0;

    border-bottom: 1px solid var(--border);

    color: var(--text-light);

    font-size: 14px;
}

.dem-sidebar-box a:last-child {
    border-bottom: 0;
}

.dem-sidebar-box a:hover {
    color: var(--blue);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.dem-empty {
    padding: 55px 20px;

    text-align: center;

    background: var(--white);

    border: 1px dashed var(--border);

    border-radius: var(--radius-lg);
}

.dem-empty h3 {
    margin-bottom: 8px;
}

.dem-empty p {
    color: var(--muted);
}


/* =========================================================
   FOOTER
   ========================================================= */

.dem-footer {
    margin-top: 50px;

    padding: 60px 0 25px;

    background: var(--navy);

    color: #cbd5e1;
}

.dem-footer-inner {
    width: min(calc(100% - 32px), var(--container));

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.5fr
        repeat(3, 1fr);

    gap: 40px;
}

.dem-footer-brand h2 {
    margin-bottom: 10px;

    color: var(--white);

    font-size: 23px;
}

.dem-footer-brand p {
    max-width: 350px;

    color: #94a3b8;

    font-size: 14px;
}

.dem-footer-column h3 {
    margin-bottom: 14px;

    color: var(--white);

    font-size: 15px;
}

.dem-footer-column a {
    display: block;

    margin-bottom: 9px;

    color: #94a3b8;

    font-size: 13px;
}

.dem-footer-column a:hover {
    color: var(--white);
}

.dem-footer-bottom {
    width: min(calc(100% - 32px), var(--container));

    margin: 40px auto 0;

    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,0.10);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    color: #64748b;

    font-size: 12px;
}


/* =========================================================
   UTILITY
   ========================================================= */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--muted) !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) and (min-width: 701px) {

    .dem-middle-inner {
        min-height: auto;

        padding: 16px 0;

        display: flex;

        flex-wrap: wrap;

        align-items: center;

        gap: 14px;
    }

    .dem-logo-area {
        flex: 0 0 auto;
    }

    .dem-search {
        order: 3;

        flex: 1 1 100%;

        max-width: none;
    }

    .dem-middle-buttons {
        margin-left: auto;
    }

    .dem-hero-inner {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .dem-grid,
    .dem-articles-grid,
    .dem-ai-tools-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dem-article-layout {
        grid-template-columns: 1fr;
    }

    .dem-sidebar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dem-footer-inner {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    body {
        font-size: 15px;
    }


    /* =====================================================
       COMMON WIDTH
       ===================================================== */

    .container,
    .dem-topbar-inner,
    .dem-middle-inner,
    .dem-menu-wrap,
    .dem-hero-inner,
    .dem-footer-inner,
    .dem-footer-bottom {
        width: calc(100% - 24px);
    }


    /* =====================================================
       TOP BAR
       ===================================================== */

    .dem-topbar-inner {
        min-height: auto;

        padding: 8px 0;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 7px;
    }

    .dem-trust {
        width: 100%;

        display: flex;

        overflow-x: auto;

        gap: 12px;

        scrollbar-width: none;
    }

    .dem-trust::-webkit-scrollbar {
        display: none;
    }

    .dem-trust span {
        font-size: 11px;
    }

    .dem-top-links {
        width: 100%;

        display: flex;

        flex-direction: row;

        align-items: center;

        gap: 8px;

        overflow-x: auto;

        white-space: nowrap;

        scrollbar-width: none;
    }

    .dem-top-links::-webkit-scrollbar {
        display: none;
    }

    .dem-top-links a {
        display: inline-flex;

        flex: 0 0 auto;

        align-items: center;

        justify-content: center;

        padding: 5px 9px;

        border-radius: 6px;

        background: rgba(255,255,255,0.07);

        font-size: 11px;

        white-space: nowrap;
    }

    .dem-calculator {
        display: inline;
    }


    /* =====================================================
       MAIN HEADER
       IMPORTANT:
       LOGO + HAMBURGER = SAME ROW
       SEARCH = NEXT ROW
       BUTTONS = NEXT ROW
       ===================================================== */

    .dem-middle {
        position: relative;

        z-index: 1001;
    }

    .dem-middle-inner {
        width: calc(100% - 24px);

        min-height: auto;

        margin: 0 auto;

        padding: 14px 0;

        display: flex;

        flex-wrap: wrap;

        align-items: center;

        gap: 12px;
    }


    /* =====================================================
       LOGO AREA
       ===================================================== */

    .dem-logo-area {
        position: relative;

        width: 100%;

        flex: 0 0 100%;

        order: 1;

        display: flex;

        align-items: center;

        justify-content: space-between;

        min-height: 42px;
    }

    .dem-logo {
        padding-right: 52px;

        min-width: 0;

        flex: 1 1 auto;
    }

    .dem-logo-link {
        display: flex;

        align-items: center;

        gap: 9px;

        min-width: 0;
    }

    .dem-logo-icon {
        width: 42px;
        height: 42px;

        flex: 0 0 42px;

        font-size: 20px;

        border-radius: 12px;
    }

    .dem-logo-text {
        min-width: 0;
    }

    .dem-logo-text h1 {
        font-size: 20px;

        line-height: 1.1;

        white-space: nowrap;
    }

    .dem-logo-text p {
        margin-top: 3px;

        font-size: 9px;

        letter-spacing: 0.8px;

        white-space: nowrap;
    }


    /* =====================================================
       HAMBURGER
       ===================================================== */

    .dem-mobile-menu-btn {
        display: flex !important;

        position: absolute;

        top: 50%;

        right: 0;

        transform: translateY(-50%);

        width: 40px;

        height: 40px;

        margin: 0;

        padding: 0;

        align-items: center;

        justify-content: center;

        border: 1px solid var(--border);

        border-radius: 9px;

        background: var(--white);

        color: var(--navy);

        font-size: 18px;

        line-height: 1;

        z-index: 10002;
    }

    .dem-mobile-menu-btn:hover {
        color: var(--blue);

        border-color: var(--blue);
    }


    /* =====================================================
       SEARCH
       ===================================================== */

    .dem-search {
        order: 2;

        flex: 0 0 100%;

        width: 100%;

        max-width: none;

        margin: 0;
    }

    .dem-search input {
        width: 100%;

        height: 44px;
    }


    /* =====================================================
       HEADER BUTTONS
       ===================================================== */

    .dem-middle-buttons {
        order: 3;

        width: 100%;

        flex: 0 0 100%;

        margin-left: 0;

        display: flex;

        align-items: center;

        gap: 7px;

        overflow-x: auto;

        white-space: nowrap;

        scrollbar-width: none;
    }

    .dem-middle-buttons::-webkit-scrollbar {
        display: none;
    }

    .dem-middle-btn {
        flex: 0 0 auto;

        min-height: 38px;

        padding: 7px 10px;

        font-size: 12px;
    }


/* =====================================================
   MOBILE NAVBAR
   ===================================================== */

.dem-menubar {
    width: 100%;
    height: auto;
    min-height: 0;

    margin: 0;
    padding: 0;
    border: 0;

    position: relative;

    background: transparent;
    z-index: 100;
}

.dem-menu-wrap {
    width: calc(100% - 24px);

    height: auto ;
    min-height: 0; 

    margin: 0 auto;
    padding: 0;

    position: relative ;
}


/* =====================================================
   MOBILE MENU CLOSED
   ===================================================== */

.dem-menu {
    display: none;

    position: relative;


    width: 100%;

    margin: 0;
    padding: 8px;

    flex-direction: column;
    align-items: stretch;

    gap: 3px;

    overflow: visible;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: var(--shadow-lg);

}


/* =====================================================
   MOBILE MENU OPEN
   ===================================================== */

.dem-menu.dem-menu-open {
    display: flex !important;
}




/* =====================================================
   MOBILE MENU LINKS
   ===================================================== */

.dem-menu a {
    width: 100%;

    min-height: 44px;

    padding: 10px 13px;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    gap: 0;

    border-radius: 8px;

    color: var(--text-light);

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
}


.dem-menu a i {
    width: 24px;

    flex: 0 0 24px;

    margin-right: 8px;

    text-align: center;
}



.dem-menu a:hover {
    background: var(--blue-light);
    color: var(--blue);
}


.dem-menu a.active {
    background: var(--blue);
    color: var(--white);
}


    /* =====================================================
       HERO
       ===================================================== */

    .dem-hero {
        padding: 55px 0;
    }

    .dem-hero-inner {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 30px;
}

    .dem-hero h1 {
        font-size: 37px;

        line-height: 1.12;

        letter-spacing: -1.2px;

        color: var(--white);
    }

    .dem-hero h1 span {
        display: inline;

        color: #60a5fa;
    }

    .dem-hero p {
        font-size: 16px;
    }

    .dem-hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .dem-btn {
        width: 100%;
    }


    /* =====================================================
       SECTIONS
       ===================================================== */

    .dem-section {
        padding: 48px 0;
    }

    .dem-section-header {
        margin-bottom: 23px;
    }

    .dem-section-header h2 {
        font-size: 26px;
    }


    /* =====================================================
       ALL GRIDS
       ===================================================== */

    .dem-grid,
    .dem-articles-grid,
    .dem-ai-tools-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }


    /* =====================================================
       CATEGORY CARD
       ===================================================== */

    .dem-category-card {
        padding: 20px;

        overflow: hidden;
    }

    .dem-category-image {
        width: calc(100% + 40px);

        height: 150px;

        margin: -20px -20px 18px;
    }

    .dem-category-image img {
        width: 100%;

        height: 100%;

        object-fit: cover;
    }


    /* =====================================================
       ARTICLE IMAGE
       ===================================================== */

    .dem-article-image {
        width: 100%;

        height: 190px;

        object-fit: cover;
    }


    /* =====================================================
       ARTICLE PAGE
       ===================================================== */

    .dem-article-main {
        padding: 22px;
    }

    .dem-article-main h1 {
        font-size: 30px;
    }

    .dem-article-content {
        font-size: 16px;
    }


    /* =====================================================
       SIDEBAR
       ===================================================== */

    .dem-sidebar {
        grid-template-columns: 1fr;
    }


    /* =====================================================
       CTA
       ===================================================== */

    .dem-cta {
        padding: 45px 0;
    }

    .dem-cta-box {
        padding: 32px 22px;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    .dem-footer {
        padding-top: 45px;
    }

    .dem-footer-inner {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .dem-footer-bottom {
        flex-direction: column;

        align-items: flex-start;
    }

}   /* <-- YE ADD KARO: 700px mobile block close */

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .dem-logo-text h1 {
        font-size: 18px;
    }

    .dem-logo-text p {
        font-size: 8px;
    }

    .dem-hero h1 {
        font-size: 32px;
    }

    .dem-search input {
        height: 44px;
    }

    .dem-article-main {
        padding: 18px;
    }

    .dem-category-image {
        height: 140px;
    }
}


/* =========================================================
   DESKTOP SAFETY
   ========================================================= */

@media (min-width: 701px) {

    .dem-mobile-menu-btn {
        display: none !important;
    }

    .dem-menubar {
        height: auto;

        min-height: 54px;

        border-bottom: 1px solid var(--border);

        position: sticky;

        top: 0;

        z-index: 1000;
    }

    .dem-menu-wrap {
        height: auto;

        min-height: 54px;
    }

    .dem-menu {
        display: flex !important;

        position: static;

        width: 100%;

        min-height: 54px;

        margin: 0;

        padding: 0;

        flex-direction: row;

        align-items: center;

        gap: 4px;

        overflow-x: auto;

        background: transparent;

        border: 0;

        border-radius: 0;

        box-shadow: none;
    }
}

/* =========================================================
   USEFUL TOOLS - FINAL RESPONSIVE
========================================================= */

.dem-useful-tools {
    width: 100% !important;
    padding: 72px 20px !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
}

.dem-useful-wrap {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.dem-useful-heading {
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto 46px !important;
}

.dem-useful-heading span {
    display: inline-block !important;
    margin-bottom: 10px !important;
    color: #f97316 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
}

.dem-useful-heading h2 {
    margin: 0 0 12px !important;
    color: #111827 !important;
    font-size: 36px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

.dem-useful-heading p {
    max-width: 680px !important;
    margin: 0 auto !important;
    color: #64748b !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}


/* =========================================================
   GRID
========================================================= */

.dem-useful-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 26px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}


/* =========================================================
   CARD
========================================================= */

.dem-useful-card {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    min-width: 0 !important;
    min-height: 270px !important;

    padding: 28px !important;

    box-sizing: border-box !important;

    background: #ffffff !important;

    border: 1px solid #e5e7eb !important;
    border-radius: 18px !important;

    text-decoration: none !important;

    box-shadow:
        0 5px 20px rgba(15, 23, 42, 0.055) !important;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease !important;
}

.dem-useful-card:hover {
    transform: translateY(-6px) !important;

    border-color: #fed7aa !important;

    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.10) !important;
}


/* =========================================================
   ICON
========================================================= */

.dem-useful-icon {
    width: 58px !important;
    height: 58px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex-shrink: 0 !important;

    margin-bottom: 21px !important;

    border-radius: 16px !important;

    background: #fff7ed !important;
    color: #f97316 !important;

    font-size: 29px !important;

    box-sizing: border-box !important;
}


/* =========================================================
   DIFFERENT ICON COLORS
========================================================= */

.dem-useful-card:nth-child(1) .dem-useful-icon {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.dem-useful-card:nth-child(2) .dem-useful-icon {
    background: #ecfdf5 !important;
    color: #059669 !important;
}

.dem-useful-card:nth-child(3) .dem-useful-icon {
    background: #fff7ed !important;
    color: #ea580c !important;
}

.dem-useful-card:nth-child(4) .dem-useful-icon {
    background: #f5f3ff !important;
    color: #7c3aed !important;
}

.dem-useful-card:nth-child(5) .dem-useful-icon {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.dem-useful-card:nth-child(6) .dem-useful-icon {
    background: #eff6ff !important;
    color: #0284c7 !important;
}

.dem-useful-card:nth-child(7) .dem-useful-icon {
    background: #ecfeff !important;
    color: #0891b2 !important;
}

.dem-useful-card:nth-child(8) .dem-useful-icon {
    background: #f0fdf4 !important;
    color: #16a34a !important;
}


/* =========================================================
   CARD TEXT
========================================================= */

.dem-useful-card h3 {
    margin: 0 0 10px !important;
    padding: 0 !important;

    color: #111827 !important;

    font-size: 20px !important;
    line-height: 1.35 !important;

    font-weight: 750 !important;
}

.dem-useful-card p {
    margin: 0 !important;
    padding: 0 !important;

    color: #64748b !important;

    font-size: 14px !important;
    line-height: 1.7 !important;
}

.dem-useful-card strong {
    display: block !important;

    margin-top: auto !important;
    padding-top: 22px !important;

    color: #f97316 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
}

.dem-useful-card:hover strong {
    color: #ea580c !important;
}


/* =========================================================
   VIEW ALL
========================================================= */

.dem-useful-more {
    width: 100% !important;

    margin-top: 38px !important;

    text-align: center !important;
}

.dem-useful-more a {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    min-height: 46px !important;

    padding: 0 24px !important;

    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;

    background: #ffffff !important;
    color: #1f2937 !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    text-decoration: none !important;

    box-shadow:
        0 4px 12px rgba(15,23,42,.04) !important;

    transition: all .2s ease !important;
}

.dem-useful-more a:hover {
    border-color: #f97316 !important;

    color: #ea580c !important;

    transform: translateY(-2px) !important;
}


/* =========================================================
   LAPTOP / SMALL DESKTOP
========================================================= */

@media screen and (min-width: 1001px) and (max-width: 1250px) {

    .dem-useful-tools {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .dem-useful-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 26px !important;
    width: 100% !important;
    box-sizing: border-box;
}

    .dem-useful-card {
        min-height: 270px !important;
        padding: 28px !important;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media screen and (min-width: 601px) and (max-width: 1000px) {

    .dem-useful-tools {
        padding: 58px 20px !important;
    }

    .dem-useful-heading {
        margin-bottom: 36px !important;
    }

    .dem-useful-heading h2 {
        font-size: 32px !important;
    }

    .dem-useful-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 20px !important;
    }

    .dem-useful-card {
        min-height: 250px !important;
        padding: 24px !important;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 600px) {

    .dem-useful-tools {
        width: 100% !important;

        padding: 50px 16px !important;
    }

    .dem-useful-wrap {
        width: 100% !important;
    }

    .dem-useful-heading {
        margin-bottom: 30px !important;
    }

    .dem-useful-heading span {
        font-size: 11px !important;
    }

    .dem-useful-heading h2 {
        font-size: 28px !important;
    }

    .dem-useful-heading p {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .dem-useful-grid {
        display: grid !important;

        grid-template-columns: 1fr !important;

        gap: 15px !important;
    }

    .dem-useful-card {
        width: 100% !important;

        min-height: 220px !important;

        padding: 22px !important;

        border-radius: 16px !important;
    }

    .dem-useful-icon {
        width: 50px !important;
        height: 50px !important;

        margin-bottom: 17px !important;

        font-size: 25px !important;
    }

    .dem-useful-card h3 {
        font-size: 18px !important;
    }

    .dem-useful-card p {
        font-size: 14px !important;
    }

    .dem-useful-card strong {
        padding-top: 17px !important;
    }

    .dem-useful-more {
        margin-top: 30px !important;
    }

    .dem-useful-more a {
        width: 100% !important;
        max-width: 100% !important;

        box-sizing: border-box !important;
    }
}

/* COUNTRY SELECTOR */

#categories .country-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

#categories .country-selector a {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid #d8e2f0;
    border-radius: 7px;
    background: #ffffff;
    color: #174ea6;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

#categories .country-selector a:hover {
    border-color: #174ea6;
}

#categories .country-selector a.active {
    background: #174ea6;
    color: #ffffff;
    border-color: #174ea6;
}


/* MOBILE */

@media screen and (max-width: 600px) {

    #categories {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #categories .country-selector {
        width: 100%;
        margin-left: 0;
        gap: 7px;
    }

    #categories .country-selector a {
        padding: 7px 11px;
        font-size: 12px;
    }

}