/*
Theme Name: Omouma Royal Maternal Theme
Theme URI: https://omouma.almostakbal24.ma/
Author: Omouma Team
Description: Official WordPress Theme for Omouma - Maternal Portal, Pregnancy Calculator, Full Sidebar, Navigation Bar & AdSense Integration
Version: 1.2.0
Text Domain: omouma-theme
*/

:root {
    --primary-pink: #ec4899;
    --primary-dark-pink: #be185d;
    --bg-rose: #fff1f2;
    --border-rose: #fbcfe8;
    --text-rose: #831843;
    --primary-blue: #0284c7;
    --primary-dark-blue: #0369a1;
    --bg-sky: #f0f9ff;
    --border-sky: #bae6fd;
    --text-sky: #0c4a6e;
    --surface-white: #ffffff;
    --slate-text: #334155;
    --slate-muted: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: #faf7f8;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid #fbcfe8;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(236, 72, 153, 0.05);
}

.header-main-bar {
    padding: 10px 16px;
    border-bottom: 1px solid #fdf2f8;
}

.header-content {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #be185d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.28);
    flex-shrink: 0;
}

.site-title {
    font-size: 20px;
    font-weight: 900;
    color: #9d174d;
    line-height: 1.2;
    margin: 0;
}

.site-tagline {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
    margin: 2px 0 0 0;
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 800;
    color: #ec4899;
    background: #fff0f5;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #fbcfe8;
    text-decoration: none;
    white-space: nowrap;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

/* --- NAVIGATION BAR --- */
.main-navigation {
    background: #ffffff;
    border-top: 1px solid #fce7f3;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

.mobile-nav-bar {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 14.5px;
    font-weight: 800;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.nav-link:hover {
    color: #be185d;
    background: #fdf2f8;
}

.nav-arrow {
    display: none;
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(236,72,153,0.25);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-nav-cta:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: #fff0f5;
    border: 1.5px solid #fbcfe8;
    padding: 6px 14px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    color: #be185d;
    font-weight: 800;
    font-size: 13.5px;
    font-family: inherit;
}

.mobile-menu-btn svg {
    width: 16px;
    height: 16px;
    stroke: #be185d;
}

.menu-caret {
    font-size: 10px;
    margin-right: 2px;
}

.btn-nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(236,72,153,0.25);
    white-space: nowrap;
}


/* --- TWO-COLUMN LAYOUT WITH SIDEBAR --- */
.layout-container {
    max-width: 1240px;
    margin: 24px auto;
    padding: 0 16px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.main-content-col {
    min-width: 0; /* Prevents grid blowout */
}

.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1.5px solid #fecdd3;
    border-radius: 20px;
    padding: 22px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.widget-ad-label {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- ADS UNITS --- */
.ad-slot-wrapper {
    margin: 16px auto;
    text-align: center;
    width: 100%;
    display: block;
    clear: both;
    position: relative;
    box-sizing: border-box;
}

.ad-slot-wrapper ins.adsbygoogle {
    display: block;
    margin: 0 auto;
    width: 100%;
}

.sidebar-widget.ad-widget {
    padding: 16px 12px;
    text-align: center;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sidebar-widget.ad-widget .ad-slot-wrapper {
    min-height: 250px;
    width: 300px;
    margin: 0 auto;
}

/* --- ARTICLES CARDS --- */
.article-card {
    background: #ffffff;
    border: 2px solid #fce7f3;
    border-radius: 18px;
    padding: 24px 26px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(236,72,153,0.08);
}

.article-card h2 {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.45;
    margin-bottom: 12px;
}

.article-card h2 a {
    color: #9d174d;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card h2 a:hover {
    color: #ec4899;
}

.article-card p {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.85;
}

/* --- FOOTER --- */
.site-footer {
    background: #ffffff;
    border-top: 2px solid #fecdd3;
    padding: 32px 20px;
    margin-top: 60px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #9d174d;
    text-decoration: none;
    font-weight: 800;
    font-size: 14.5px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ec4899;
}

.footer-disclaimer {
    max-width: 780px;
    margin: 14px auto 0 auto;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.7;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-col {
        margin-top: 24px;
    }
    .sticky-ad-widget {
        position: static !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        padding: 6px 14px;
    }

    .mobile-nav-bar {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .nav-menu {
        display: none !important;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0 6px 0;
        margin-top: 6px;
        border-top: 1px solid #fce7f3;
        gap: 6px;
    }

    .nav-menu.is-active {
        display: flex !important;
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #fffdfd;
        border: 1px solid #fce7f3;
        border-radius: 10px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .nav-arrow {
        display: inline-block;
        color: #ec4899;
    }
}

@media (max-width: 600px) {
    .header-main-bar {
        padding: 8px 12px;
    }
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .logo-badge {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .site-title {
        font-size: 16.5px;
    }
    .site-tagline {
        font-size: 11px;
    }
    .live-status-pill {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    /* Layout Container on Mobile */
    .layout-container {
        padding: 12px 10px;
        margin: 12px auto;
    }

    /* Calculator Box on Mobile */
    #calculator-section {
        padding: 18px 14px !important;
        border-radius: 18px !important;
        margin-bottom: 18px !important;
    }
    #calculator-section h2 {
        font-size: 19px !important;
        line-height: 1.35 !important;
    }
    #calculator-section p {
        font-size: 13px !important;
        line-height: 1.55 !important;
        margin-bottom: 14px !important;
    }
    .calc-form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .calc-form-grid input, .calc-form-grid select {
        padding: 12px !important;
        font-size: 15px !important;
    }
    .calc-btn-submit {
        padding: 13px 20px !important;
        font-size: 16px !important;
    }

    /* Schedule Card on Mobile */
    #schedule-card-capture {
        padding: 16px 12px !important;
        border-radius: 20px !important;
    }
    .card-bear-img {
        width: 44px !important;
        height: auto !important;
    }
    .card-title-badge h2 {
        font-size: 17px !important;
    }
    .card-summary-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
    .card-summary-pill {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 6px 10px !important;
    }
    .card-table-grid {
        grid-template-columns: 0.9fr 0.9fr 1.6fr !important;
        font-size: 12px !important;
        padding: 6px 8px !important;
    }
    .card-prediction-row {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }
    .card-prediction-row > div {
        text-align: center !important;
    }
}
