/* ---- page-range extract: marketing (1 blocks) ---- */
/* block 1 */

        /* General Styles */
        :root {
            --primary-blue: #1e40af;
            --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
            --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        .marketing-container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 20px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* Animations */
        .fade-in {
            animation: fadeIn 0.4s ease-in-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Hero Section - Compact & Elegant */
        .marketing-hero {
            background: white;
            border-radius: 14px;
            padding: 20px;
            text-align: center;
            color: #1e3a8a;
            margin-bottom: 20px;
            box-shadow: var(--card-shadow);
            border: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 80px;
        }

        .marketing-hero h1 {
            font-size: 1.2rem;
            margin: 0;
            font-weight: 700;
            line-height: 1.2;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #1e3a8a;
        }

        .marketing-hero p {
            font-size: 0.95rem;
            margin-top: 4px;
            color: #1e3a8a;
            font-weight: 600;
            margin-bottom: 0;
        }

        /* Filter Card */
        .filter-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: var(--card-shadow);
            display: flex;
            align-items: flex-end;
            /* Align bottom */
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .date-input-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .date-input-group label {
            font-weight: 600;
            color: #334155;
            font-size: 0.85rem;
        }

        .custom-date-input {
            padding: 10px 14px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 0.95rem;
            color: #1e293b;
            background: #f8fafc;
            transition: all 0.2s;
            min-width: 180px;
            outline: none;
        }

        .custom-date-input:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            background: white;
        }

        .fetch-btn {
            background: #2563eb;
            color: white;
            border: none;
            padding: 10px 24px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
            height: 42px;
            /* Fixed height to match inputs approx */
            box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
        }

        .fetch-btn:hover {
            background: #1d4ed8;
            transform: translateY(-1px);
            box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
        }

        /* Stats Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }

        .stat-card {
            padding: 20px;
            border-radius: 14px;
            color: white;
            text-align: center;
            box-shadow: var(--card-shadow);
            transition: transform 0.2s ease;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 120px;
        }

        .stat-card:hover {
            transform: translateY(-3px);
        }

        .stat-card h3 {
            font-size: 0.85rem;
            margin: 0 0 8px 0;
            opacity: 0.95;
            font-weight: 600;
        }

        .stat-card .value {
            font-size: 1.8rem;
            font-weight: 800;
            margin: 0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .stat-card .sub-text {
            font-size: 0.75rem;
            margin-top: 6px;
            opacity: 0.9;
        }

        .bg-orange {
            background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
        }

        .bg-purple {
            background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
        }

        .bg-blue {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        }

        .bg-green {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }

        .bg-dark-orange {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        }

        /* Tables */
        .table-container {
            background: white;
            border-radius: 14px;
            padding: 20px;
            box-shadow: var(--card-shadow);
            margin-bottom: 30px;
            overflow: hidden;
            border: 1px solid #e2e8f0;
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 15px;
            padding-bottom: 12px;
            border-bottom: 1px solid #e2e8f0;
        }

        .section-header h2 {
            color: #1e3a8a;
            font-size: 1.2rem;
            margin: 0;
            font-weight: 700;
        }

        .modern-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            min-width: 1000px;
            background-color: #ffffff;
        }

        .modern-table th {
            background: #1e40af;
            color: #ffffff;
            padding: 12px 15px;
            text-align: right;
            font-weight: 700;
            font-size: 0.9rem;
            border-bottom: 2px solid #0f172a;
        }

        .modern-table th:first-child {
            border-top-right-radius: 8px;
        }

        .modern-table th:last-child {
            border-top-left-radius: 8px;
        }

        .modern-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #e2e8f0;
            color: #1e293b;
            font-size: 0.9rem;
            vertical-align: middle;
        }

        .modern-table tbody tr:nth-child(even) td {
            background-color: #f9fafb;
        }

        .modern-table tbody tr:nth-child(odd) td {
            background-color: #ffffff;
        }

        .modern-table tbody tr:hover td {
            background-color: #e5ecff;
        }

        .lang-badge {
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            color: white;
            display: inline-block;
        }

        .lang-badge.malagasy {
            background-color: #8b5cf6;
        }

        .lang-badge.africa {
            background-color: #f97316;
        }

        .lang-badge.english {
            background-color: #3b82f6;
        }

        .lang-badge.french {
            background-color: #ec4899;
        }

        .lang-badge.spanish {
            background-color: #ef4444;
        }

        .lang-badge.hindi {
            background-color: #d97706;
        }

        .lang-badge.default {
            background-color: #6b7280;
        }

        /* Buttons & Tabs */
        .nav-pills {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 25px;
            background: white;
            padding: 6px 10px;
            border-radius: 50px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
            width: fit-content;
            margin-left: auto;
            margin-right: auto;
        }

        .nav-pill {
            padding: 8px 25px;
            border-radius: 30px;
            background: transparent;
            border: 1px solid transparent;
            color: #64748b;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-pill.active {
            background: #1e40af;
            color: white;
            box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
        }

        .nav-pill:hover:not(.active) {
            color: #1e40af;
            background: #f8fafc;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* Responsive - Mobile First Enhancements */
        @media (max-width: 768px) {
            .marketing-container {
                padding: 10px;
                max-width: 100%;
            }
            .marketing-hero {
                padding: 14px;
                min-height: auto;
            }
            .marketing-hero h1 {
                font-size: 1rem;
                flex-wrap: wrap;
                justify-content: center;
            }
            .marketing-hero p {
                font-size: 0.85rem;
            }
            .filter-card {
                padding: 14px;
                gap: 10px;
            }
            .custom-date-input {
                min-width: auto;
                width: 100%;
                font-size: 0.9rem;
            }
            .fetch-btn {
                width: 100%;
                justify-content: center;
            }
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            .stat-card {
                min-height: auto;
                padding: 14px;
            }
            .stat-card .value {
                font-size: 1.4rem;
            }
            .section-header h2 {
                font-size: 1rem;
            }
            .modern-table th, .modern-table td {
                padding: 8px 6px;
                font-size: 0.8rem;
            }
        }

        @media (max-width: 480px) {
            .marketing-container {
                padding: 8px;
            }
            .marketing-hero h1 {
                font-size: 0.9rem;
            }
            .stats-grid {
                grid-template-columns: 1fr;
                gap: 8px;
            }
            .stat-card .value {
                font-size: 1.2rem;
            }
            .stat-card h3 {
                font-size: 0.75rem;
            }
            .section-header h2 {
                font-size: 0.9rem;
            }
            .modern-table th, .modern-table td {
                padding: 6px 4px;
                font-size: 0.75rem;
            }
        }

    