/* ==========================================================
   MamaCare Premium 24 — Luxury Maternal & Care Theme
   Theme: Royal Orchid, Ruby Rose, Amethyst Violet & Emerald
   Distinct, Luxury Healthcare Design Language 2026
   ========================================================== */

:root {
    --bg-body: #fdfafb;
    --bg-surface: #ffffff;
    --bg-subtle: #fdf2f8;
    --bg-card: #ffffff;
    --bg-card-alt: #fff1f2;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    
    --brand-primary: #e11d48;
    --brand-primary-hover: #be123c;
    --brand-primary-light: #ffe4e6;
    --brand-secondary: #9333ea;
    --brand-gradient: linear-gradient(135deg, #e11d48 0%, #db2777 50%, #9333ea 100%);
    --brand-gradient-hover: linear-gradient(135deg, #be123c 0%, #c026d3 50%, #7e22ce 100%);
    
    --accent-boy: #0284c7;
    --accent-boy-bg: #e0f2fe;
    --accent-girl: #e11d48;
    --accent-girl-bg: #ffe4e6;
    --accent-success: #059669;
    --accent-success-bg: #d1fae5;
    --accent-gold: #d97706;
    --accent-gold-bg: #fef3c7;
    
    --border-color: #f1e0e5;
    --border-subtle: #fce7f3;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-arabic: 'Tajawal', 'Cairo', -apple-system, sans-serif;
    
    --shadow-xs: 0 1px 2px rgba(225, 29, 72, 0.04);
    --shadow-sm: 0 2px 8px rgba(225, 29, 72, 0.06);
    --shadow-md: 0 10px 30px -4px rgba(225, 29, 72, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 45px -8px rgba(225, 29, 72, 0.14), 0 8px 18px -4px rgba(147, 51, 234, 0.06);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-arabic), var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}

/* Global Overflow Kill-Switch */
html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
}

@supports not (overflow-x: clip) {
    html, body {
        overflow-x: hidden !important;
    }
}

/* Reading Progress Indicator */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    background: var(--brand-gradient);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-badge {
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.logo-title span {
    color: var(--brand-primary);
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 6px 0;
    position: relative;
}

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

.header-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 1; }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
}

/* ==========================================================
   DESKTOP RIGHT & LEFT SIDE RAIL ADS (SKYSCRAPERS 160x600)
   ========================================================== */

/* Base Layout Container */
.site-content-layout {
    width: 100%;
    box-sizing: border-box;
}

/* Mobile & Tablet (< 1240px): Completely hide side rails */
.side-ad-rail {
    display: none !important;
}

/* Widescreen Desktop (>= 1240px): Display 3-Column Layout with Sticky Side Ads */
@media (min-width: 1240px) {
    .site-content-layout {
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 16px !important;
        max-width: 1280px !important;
        margin: 0 auto !important;
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    .side-ad-rail {
        display: block !important;
        width: 168px !important;
        flex: 0 0 168px !important;
        box-sizing: border-box !important;
        z-index: 50 !important;
    }

    .site-content-layout .main-wrapper {
        margin: 0 !important;
        max-width: 880px !important;
        flex: 0 1 880px !important;
        width: 100% !important;
        padding-top: 24px !important;
    }

    /* Explicit RTL Ordering (Right = First, Content = Center, Left = Last) */
    [dir="rtl"] .side-ad-rail-right,
    body.lang-ar .side-ad-rail-right {
        order: 1 !important;
    }

    [dir="rtl"] .main-wrapper,
    body.lang-ar .main-wrapper {
        order: 2 !important;
    }

    [dir="rtl"] .side-ad-rail-left,
    body.lang-ar .side-ad-rail-left {
        order: 3 !important;
    }

    /* Explicit LTR Ordering */
    [dir="ltr"] .side-ad-rail-left {
        order: 1 !important;
    }

    [dir="ltr"] .main-wrapper {
        order: 2 !important;
    }

    [dir="ltr"] .side-ad-rail-right {
        order: 3 !important;
    }
}

/* Sticky Skyscraper Mechanics & Ad Container */
.side-ad-rail-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 85px;
    width: 168px;
    text-align: center;
    box-sizing: border-box;
}

.ad-box-rail {
    min-height: 600px;
    width: 168px;
    padding: 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.05);
    overflow: hidden;
}

.ad-box-rail ins.adsbygoogle {
    display: inline-block !important;
    width: 160px !important;
    height: 600px !important;
    max-width: 160px !important;
    overflow: hidden !important;
    margin: 0 auto !important;
}

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    max-width: 880px !important;
    margin: 0 auto !important;
    padding: 24px 20px 70px;
    width: 100%;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .main-wrapper {
        max-width: 100% !important;
        padding: 16px 14px 60px !important;
    }
}

/* Hero Article Header */
.article-hero {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.badge-tag {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.read-time {
    font-size: 12.5px;
    color: var(--text-light);
    font-weight: 500;
}

.article-hero-title {
    font-size: 27px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 18px;
}

.hero-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
    gap: 16px;
    flex-wrap: wrap;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name-text {
    font-size: 14.5px;
    color: var(--text-main);
}

.author-role-text {
    font-size: 12px;
    color: var(--text-muted);
}

.verify-stamp {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================
   MAMACARE INTERACTIVE 3-IN-1 CALCULATION STUDIO
   ========================================================== */
.mamacare-studio-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #3b0764 50%, #1e293b 100%);
    border: 2px solid rgba(244, 114, 182, 0.4);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 20px 50px -10px rgba(147, 51, 234, 0.25), 0 0 30px rgba(225, 29, 72, 0.15);
    color: #ffffff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* Tabs Bar */
.studio-tabs-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.studio-tabs-bar::-webkit-scrollbar {
    display: none;
}

.studio-tab-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: #fce7f3;
    font-family: var(--font-arabic);
    font-size: 14px;
    font-weight: 700;
    padding: 9px 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.studio-tab-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(244, 114, 182, 0.4);
}

.studio-tab-btn.active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.4);
}

.studio-pane-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.studio-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.studio-pane-title {
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.studio-pane-desc {
    font-size: 13.5px;
    color: #fbcfe8;
    margin: 4px 0 0;
    line-height: 1.6;
}

.calc-instruction-text {
    font-size: 15px;
    line-height: 1.8;
    color: #fef08a;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 16px;
    border-radius: 10px;
    border-right: 3px solid #f43f5e;
    margin-bottom: 20px;
}

.studio-grid-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.calc-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #fdf2f8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calc-select-wrapper {
    position: relative;
}

.calc-select {
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(244, 114, 182, 0.35);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 14px;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 18px;
}

.calc-select:focus {
    border-color: #f43f5e;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.25);
}

.calc-select option {
    background: #1e1b4b;
    color: #ffffff;
}

.mamacare-action-btn {
    width: 100%;
    background: var(--brand-gradient);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 17.5px;
    font-weight: 800;
    padding: 16px 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    margin-top: 10px;
}

.mamacare-action-btn:hover {
    background: var(--brand-gradient-hover);
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.5);
    transform: translateY(-2px);
}

.mamacare-btn-action {
    background: var(--brand-gradient);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

.mamacare-btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
}

.mamacare-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.mamacare-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.calc-hint {
    font-size: 13px;
    color: #fbcfe8;
    margin-top: 10px;
    text-align: center;
    line-height: 1.6;
}

.calc-inline-msg {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ==========================================================
   AI ASSISTANT CHAT STYLING (مكان الإجابة عن التساؤلات)
   ========================================================== */
.ai-chat-card-wrap {
    margin: 28px 0 24px;
    border-radius: 20px;
    background: linear-gradient(145deg, #1e112a 0%, #2e1065 45%, #180d24 100%);
    border: 1.5px solid rgba(244, 63, 94, 0.45);
    box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(225, 29, 72, 0.2);
    overflow: hidden;
    position: relative;
    padding: 28px 24px 24px;
    direction: rtl;
    text-align: right;
}

.ai-chat-box {
    position: relative;
    z-index: 2;
}

.ai-header-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.ai-gemini-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e11d48 0%, #9333ea 50%, #f43f5e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.55);
    flex-shrink: 0;
}

.ai-sparkle-icon {
    font-size: 26px;
}

.ai-header-text {
    flex: 1;
}

.ai-title {
    font-size: 20px;
    font-weight: 900;
    color: #fce7f3;
    margin: 0 0 4px;
    font-family: var(--font-arabic);
    letter-spacing: -0.01em;
}

.ai-subtitle {
    font-size: 13.5px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.55;
    font-family: var(--font-arabic);
}

.ai-badges-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ai-badge {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-arabic);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ai-badge-blue {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
}

.ai-badge-purple {
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #e9d5ff;
}

.ai-badge-green {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
}

.ai-prompts-label {
    font-size: 14px;
    font-weight: 800;
    color: #fbcfe8;
    margin-bottom: 10px;
    font-family: var(--font-arabic);
}

.ai-prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
}

.ai-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(244, 114, 182, 0.35);
    border-radius: var(--radius-full);
    color: #fdf2f8;
    font-family: var(--font-arabic);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-chip:hover {
    background: rgba(225, 29, 72, 0.3);
    border-color: #f43f5e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.ai-input-wrapper {
    margin-bottom: 16px;
}

.ai-input-label {
    font-size: 14.5px;
    font-weight: 800;
    color: #fdf2f8;
    margin-bottom: 8px;
    display: block;
    font-family: var(--font-arabic);
}

.ai-chat-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid rgba(244, 114, 182, 0.4);
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 15.5px;
    line-height: 1.7;
    padding: 14px 16px;
    outline: none;
    resize: vertical;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.ai-chat-textarea:focus {
    border-color: #f43f5e;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3), 0 0 20px rgba(225, 29, 72, 0.25);
    background: rgba(15, 23, 42, 0.98);
}

.ai-chat-inline-msg {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
    font-family: var(--font-arabic);
}

.ai-submit-query-btn {
    width: 100%;
    padding: 17px 24px;
    background: linear-gradient(135deg, #e11d48 0%, #9333ea 50%, #db2777 100%);
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 18px;
    font-weight: 900;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.45);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: geminiPulseMama 2.5s infinite;
}

@keyframes geminiPulseMama {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(225, 29, 72, 0.45);
    }
    50% {
        box-shadow: 0 12px 35px rgba(219, 39, 119, 0.75), 0 0 22px rgba(147, 51, 234, 0.6);
    }
}

.ai-submit-query-btn:hover {
    box-shadow: 0 14px 40px rgba(219, 39, 119, 0.85);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.ai-footer-hint {
    font-size: 13px;
    color: #fef08a;
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.5;
    font-family: var(--font-arabic);
}

/* 10-Second Processing Screen */
.ai-thinking-box {
    text-align: center;
    padding: 30px 20px;
    animation: fadeInSlideUp 0.4s ease forwards;
}

.neural-pulse-glow {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e11d48, #9333ea, #db2777);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 32px rgba(225, 29, 72, 0.65);
    animation: spinGlowMama 3.5s linear infinite;
}

@keyframes spinGlowMama {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-thinking-title {
    font-size: 20px;
    font-weight: 800;
    color: #fce7f3;
    margin-bottom: 6px;
    font-family: var(--font-arabic);
}

.ai-thinking-desc {
    font-size: 14px;
    color: #fef08a;
    margin-bottom: 18px;
    font-style: italic;
    font-family: var(--font-arabic);
}

.ai-countdown-circle-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #f43f5e;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 24px rgba(225, 29, 72, 0.45);
}

.ai-countdown-number {
    font-size: 34px;
    font-weight: 900;
    color: #f43f5e;
    line-height: 1;
}

.ai-countdown-label {
    font-size: 11px;
    color: #fbcfe8;
    margin-top: 3px;
    font-family: var(--font-arabic);
}

.ai-progress-track {
    width: 100%;
    max-width: 380px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    margin: 18px auto;
    overflow: hidden;
}

.ai-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e11d48, #9333ea, #db2777);
    transition: width 1s linear;
}

.ai-ticker-status-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    color: #fecdd3;
    font-family: var(--font-arabic);
}

.ai-pulse-dot {
    width: 8px;
    height: 8px;
    background: #e11d48;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #e11d48;
    animation: pulseDotMama 1.5s infinite;
}

@keyframes pulseDotMama {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.3); }
}

.ai-ticker-text {
    font-weight: 700;
}

/* ==========================================================
   STEP 2 REPORT HUB CARD
   ========================================================== */
.mamacare-report-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #3b0764 50%, #1e293b 100%);
    border: 2px solid rgba(244, 114, 182, 0.4);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 20px 50px -10px rgba(147, 51, 234, 0.25), 0 0 30px rgba(225, 29, 72, 0.15);
    color: #ffffff;
    margin-bottom: 24px;
}

/* ==========================================================
   ADSENSE POLICY COMPLIANCE & BUFFER ZONE
   ========================================================== */
.compliant-ad-wrapper {
    margin: 30px auto !important;
    max-width: 728px !important;
    width: 100% !important;
    text-align: center !important;
    clear: both !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    contain: layout paint !important;
}

.ad-notice-label {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.ad-box-surface {
    background: #ffffff;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.04);
    overflow: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ad-buffer-zone {
    width: 100%;
    height: 40px;
    clear: both;
}

/* Contain all main cards and prevent any ad from overflowing */
.article-hero,
.mamacare-studio-card,
.mamacare-report-card,
.compliant-ad-wrapper,
.maternity-guide-article {
    overflow: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Strict containment for ANY AdSense element */
ins.adsbygoogle,
.google-auto-placed,
ins.adsbygoogle iframe,
.google-auto-placed iframe,
.google-auto-placed > div,
[id^="google_ads_"],
[id^="aswift_"],
iframe[id^="aswift_"],
iframe[src*="googlesyndication"],
iframe[src*="doubleclick"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Tables */
table {
    max-width: 100% !important;
    table-layout: auto;
}

[style*="overflow-x: auto"] {
    -webkit-overflow-scrolling: touch;
}

/* Mobile Ad Containment */
@media (max-width: 768px) {
    .compliant-ad-wrapper {
        max-width: 100% !important;
        padding: 0 8px !important;
    }
    .ad-box-surface {
        padding: 8px !important;
    }
    ins.adsbygoogle {
        max-width: calc(100vw - 40px) !important;
    }
    iframe[id^="aswift_"],
    iframe[src*="googlesyndication"],
    iframe[src*="doubleclick"] {
        max-width: calc(100vw - 40px) !important;
    }
    .maternity-guide-article table {
        font-size: 13px !important;
    }
    .maternity-guide-article th,
    .maternity-guide-article td {
        padding: 8px 10px !important;
    }
}

@media (max-width: 480px) {
    .compliant-ad-wrapper {
        padding: 0 4px !important;
    }
    ins.adsbygoogle {
        max-width: calc(100vw - 24px) !important;
    }
    .maternity-guide-article table {
        font-size: 12px !important;
        display: block;
        overflow-x: auto;
    }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer-modern {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 40px;
    padding: 48px 20px 24px;
    border-top: 4px solid #e11d48;
}

.footer-inner-max {
    max-width: 880px;
    margin: 0 auto;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

@media (max-width: 768px) {
    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.footer-brand-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-brand-title span {
    color: #e11d48;
}

.footer-brand-desc {
    font-size: 13.5px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.footer-col-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-col-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col-links a:hover {
    color: #f43f5e;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 12px;
}

/* Adsterra Responsive Banner Classes */
.adsterra-desktop-banner {
    display: flex;
    justify-content: center;
}
.adsterra-mobile-banner {
    display: none;
    justify-content: center;
}
@media (max-width: 768px) {
    .adsterra-desktop-banner {
        display: none !important;
    }
    .adsterra-mobile-banner {
        display: flex !important;
    }
}
