/*
 * MuslimBabyName Main Design System & Stylesheet
 * Brand: MuslimBabyName.in
 * Author: LazyWasim
 */

:root {
    --primary-green: #0e6245;
    --dark-green: #0a4c35;
    --emerald-green: #15803d;
    --accent-green: #16a34a;
    --light-green: #dcfce7;
    
    --cream: #fbf9f5;
    --cream-light: #fdfbf7;
    --white: #ffffff;
    
    --soft-blue: #e0f2fe;
    --soft-blue-text: #0284c7;
    --soft-pink: #fce7f3;
    --soft-pink-text: #db2777;
    --soft-purple: #f3e8ff;
    --soft-purple-text: #7e22ce;
    --soft-gold: #fef3c7;
    --soft-gold-text: #b45309;
    --soft-rose: #ffe4e6;
    --soft-rose-text: #e11d48;
    
    --gold: #d97706;
    --gold-bright: #f59e0b;
    --coral: #f97316;
    
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-arabic: 'Amiri', 'Traditional Arabic', serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: #f8fafc;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

.mbn-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons & Common Badges */
.mbn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mbn-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
}

.mbn-view-all {
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.mbn-view-all:hover {
    transform: translateX(3px);
}

/* Inputs */
.mbn-input, .mbn-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mbn-input:focus, .mbn-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(14, 98, 69, 0.15);
}

/* ======================================================== */
/* HEADER                                                   */
/* ======================================================== */
.mbn-site-header {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mbn-top-header {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.mbn-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mbn-header-logo .mbn-logo-img {
    height: 48px;
    width: auto;
}

.mbn-header-search {
    flex: 1;
    max-width: 520px;
}

.mbn-search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-pill);
    padding: 4px 6px 4px 18px;
    transition: all 0.2s ease;
}
.mbn-search-form:focus-within {
    background: #fff;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(14, 98, 69, 0.12);
}

.mbn-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
}
.mbn-search-input::placeholder {
    color: #94a3b8;
}

.mbn-search-btn {
    background: var(--primary-green);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.mbn-search-btn:hover {
    background: var(--dark-green);
}

.mbn-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mbn-action-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.mbn-action-link:hover {
    color: var(--primary-green);
    background: #f8fafc;
}

.mbn-action-fav .mbn-fav-counter {
    background: #fecdd3;
    color: #e11d48;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
}

.mbn-btn-browse-tools {
    background: var(--primary-green);
    color: #ffffff;
    padding: 8px 18px;
    font-size: 13.5px;
}
.mbn-btn-browse-tools:hover {
    background: var(--dark-green);
    color: #fff;
}

.mbn-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.mbn-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
}

/* Main Navigation */
.mbn-main-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.mbn-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
}
.mbn-nav-list::-webkit-scrollbar {
    display: none;
}

.mbn-nav-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}
.mbn-nav-list li a:hover,
.mbn-nav-list li.active a {
    color: var(--primary-green);
}
.mbn-nav-list li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 3px 3px 0 0;
}

.mbn-nav-list li.nav-highlight a {
    color: #b45309;
}
.mbn-nav-list li.nav-highlight a:hover {
    color: #d97706;
}

/* ======================================================== */
/* HERO SECTION                                             */
/* ======================================================== */
.mbn-hero-section {
    position: relative;
    background-color: #0d281e;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding: 48px 0 40px 0;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.mbn-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.92) 48%, rgba(255,255,255,0.4) 75%, rgba(255,255,255,0.1) 100%);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.mbn-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.mbn-hero-badge {
    display: inline-block;
    color: var(--primary-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.mbn-hero-heading {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 14px;
}
.mbn-text-gradient {
    color: var(--primary-green);
}

.mbn-hero-description {
    font-size: 16px;
    color: #475569;
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Hero Search Form */
.mbn-hero-search-box {
    max-width: 540px;
    margin-bottom: 20px;
}
.mbn-hero-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: var(--radius-pill);
    padding: 6px 8px 6px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}
.mbn-hero-search-form:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 12px 30px rgba(14, 98, 69, 0.18);
}
.mbn-hero-search-input {
    flex: 1;
    border: none;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--text-dark);
    outline: none;
}
.mbn-hero-search-btn {
    background: var(--primary-green);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.mbn-hero-search-btn:hover {
    background: var(--dark-green);
}

/* Popular Searches */
.mbn-popular-searches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}
.mbn-pop-label {
    font-weight: 700;
    color: #334155;
    margin-right: 4px;
}
.mbn-tag-pill {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}
.mbn-tag-pill:hover {
    background: var(--primary-green);
    color: #ffffff;
    border-color: var(--primary-green);
}

/* Hero Right Visual */
.mbn-hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mbn-hero-crescent {
    position: absolute;
    top: -20px;
    right: 180px;
    font-size: 42px;
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.5));
    animation: gentleFloat 4s ease-in-out infinite alternate;
}

.mbn-hero-baby-frame {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 6px solid #ffffff;
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.mbn-hero-baby-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mbn-hero-quote-card {
    position: absolute;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    max-width: 250px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    z-index: 3;
    text-align: right;
}
.mbn-quote-arabic {
    font-family: var(--font-arabic);
    font-size: 20px;
    color: var(--primary-green);
    line-height: 1.4;
    margin-bottom: 6px;
    direction: rtl;
}
.mbn-quote-translation {
    font-size: 12px;
    color: #334155;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 4px;
    text-align: left;
}
.mbn-quote-ref {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-align: left;
}

@keyframes gentleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* ======================================================== */
/* 2. CATEGORY CARDS SECTION                                */
/* ======================================================== */
.mbn-categories-section {
    padding: 24px 0 20px 0;
}

.mbn-category-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.mbn-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 10px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mbn-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mbn-cat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mbn-cat-title {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.25;
}

.mbn-cat-count {
    font-size: 11.5px;
    font-weight: 600;
}

/* Pastel Card Variations */
.mbn-cat-boy { background: #e0f2fe; color: #0369a1; }
.mbn-cat-boy .mbn-cat-count { color: #0284c7; }

.mbn-cat-girl { background: #fce7f3; color: #be185d; }
.mbn-cat-girl .mbn-cat-count { color: #db2777; }

.mbn-cat-arabic { background: #dcfce7; color: #15803d; }
.mbn-cat-arabic .mbn-cat-count { color: #16a34a; }

.mbn-cat-quranic { background: #f3e8ff; color: #6b21a8; }
.mbn-cat-quranic .mbn-cat-count { color: #7e22ce; }

.mbn-cat-meaning { background: #fef3c7; color: #92400e; }
.mbn-cat-meaning .mbn-cat-count { color: #b45309; }

.mbn-cat-letter { background: #e0f7fa; color: #00695c; }
.mbn-cat-letter .mbn-cat-count { color: #00897b; }

.mbn-cat-islamic { background: #ffe4e6; color: #9f1239; }
.mbn-cat-islamic .mbn-cat-count { color: #e11d48; }

/* ======================================================== */
/* 3. POPULAR NAMES SECTION                                 */
/* ======================================================== */
.mbn-popular-section {
    padding: 30px 0;
}

.mbn-popular-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mbn-popular-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.mbn-pop-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.mbn-pop-card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mbn-pop-badge-icon {
    font-size: 22px;
}

.mbn-pop-heading {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.mbn-pop-card-body {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 20px;
    align-items: center;
}

.mbn-pop-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mbn-pop-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: #f8fafc;
    transition: background 0.2s ease;
}
.mbn-pop-row:hover {
    background: #f1f5f9;
}

.mbn-pop-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.mbn-rank-boy { background: #e0f2fe; color: #0284c7; }
.mbn-rank-girl { background: #fce7f3; color: #db2777; }

.mbn-pop-details {
    flex: 1;
}

.mbn-pop-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}
.mbn-pop-name a {
    color: var(--text-dark);
}
.mbn-pop-name a:hover {
    color: var(--primary-green);
}

.mbn-pop-meaning {
    font-size: 12px;
    color: var(--text-light);
}

.mbn-fav-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
}
.mbn-fav-btn:hover,
.mbn-fav-btn.active {
    color: #e11d48;
    transform: scale(1.15);
}

.mbn-pop-photo-wrap {
    height: 240px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.mbn-pop-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======================================================== */
/* 4. HELPFUL ISLAMIC NAME TOOLS SECTION                    */
/* ======================================================== */
.mbn-tools-section {
    padding: 30px 0;
}

.mbn-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.mbn-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mbn-section-icon {
    font-size: 26px;
}
.mbn-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
}
.mbn-section-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 2px;
}

.mbn-tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.mbn-tool-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mbn-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mbn-tool-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}
.mbn-tool-icon-amber { background: #fef3c7; color: #b45309; }
.mbn-tool-icon-blue { background: #e0f2fe; color: #0284c7; }
.mbn-tool-icon-pink { background: #fce7f3; color: #db2777; }
.mbn-tool-icon-gold { background: #fffbeb; color: #d97706; }
.mbn-tool-icon-purple { background: #f3e8ff; color: #7e22ce; }
.mbn-tool-icon-green { background: #dcfce7; color: #15803d; }

.mbn-tool-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.mbn-tool-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 16px;
    flex: 1;
}

.mbn-btn-try-tool {
    background: var(--primary-green);
    color: #ffffff;
    padding: 7px 18px;
    font-size: 12.5px;
    width: 85%;
}
.mbn-btn-try-tool:hover {
    background: var(--dark-green);
    color: #ffffff;
}

/* ======================================================== */
/* 5. RECOMMENDED PRODUCTS SECTION                          */
/* ======================================================== */
.mbn-products-section {
    padding: 30px 0;
}

.mbn-carousel-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mbn-car-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}
.mbn-car-arrow:hover {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.mbn-product-carousel-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 10px;
}
.mbn-product-carousel-track::-webkit-scrollbar {
    display: none;
}

.mbn-product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mbn-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.mbn-prod-img-wrap {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
}
.mbn-prod-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.mbn-prod-info {
    text-align: center;
    margin-bottom: 12px;
    flex: 1;
}
.mbn-prod-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.mbn-prod-variant {
    font-size: 11px;
    color: var(--text-light);
    display: block;
    margin-bottom: 6px;
}
.mbn-prod-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.mbn-prod-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}
.mbn-prod-orig {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Multi-Store Buttons Row */
.mbn-prod-stores {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid var(--border-light);
    padding-top: 10px;
}
.mbn-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.mbn-store-btn img {
    height: 14px;
    width: auto;
}
.mbn-store-btn:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ======================================================== */
/* 6. LATEST ARTICLES SECTION                               */
/* ======================================================== */
.mbn-articles-section {
    padding: 30px 0;
}

.mbn-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mbn-article-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.mbn-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mbn-article-img-wrap {
    height: 160px;
    position: relative;
    overflow: hidden;
}
.mbn-article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.mbn-article-card:hover .mbn-article-img {
    transform: scale(1.04);
}

.mbn-article-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary-green);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
}

.mbn-article-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mbn-article-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}
.mbn-article-title a {
    color: var(--text-dark);
}
.mbn-article-title a:hover {
    color: var(--primary-green);
}

.mbn-article-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ======================================================== */
/* 7. BABY CONTEST COMING SOON BANNER (Section 21)          */
/* ======================================================== */
.mbn-contest-banner-section {
    padding: 30px 0 50px 0;
}

.mbn-contest-banner-card {
    background: #fff8e7;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-xl);
    padding: 24px 36px;
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 0.8fr;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.08);
}

.mbn-cb-content {
    display: flex;
    align-items: center;
    gap: 20px;
}
.mbn-cb-crown-wrap {
    font-size: 42px;
}
.mbn-cb-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.mbn-cb-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #ea580c;
    margin: 2px 0 4px 0;
}
.mbn-cb-desc {
    font-size: 13.5px;
    color: #475569;
}

.mbn-cb-visual {
    display: flex;
    justify-content: center;
}
.mbn-cb-baby-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.mbn-cb-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mbn-cb-pill-btn {
    background: #f97316;
    color: #ffffff;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    transition: transform 0.2s, background 0.2s;
}
.mbn-cb-pill-btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
    color: #fff;
}
.mbn-cb-live-btn {
    background: #15803d;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
}
.mbn-cb-live-btn:hover {
    background: #0e6245;
}

.mbn-cb-gifts {
    font-size: 26px;
    display: flex;
    gap: 8px;
}

/* ======================================================== */
/* FOOTER (Section 27-28)                                   */
/* ======================================================== */
.mbn-site-footer {
    background: #092e21;
    color: #e2e8f0;
    padding: 60px 0 0 0;
    position: relative;
}

.mbn-footer-silhouette {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #10b981 0%, #eab308 50%, #10b981 100%);
}

.mbn-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mbn-footer-logo-wrap .mbn-footer-logo-img {
    height: 44px;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.mbn-footer-desc {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mbn-social-links {
    display: flex;
    gap: 10px;
}
.mbn-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s;
}
.mbn-social-btn:hover {
    transform: translateY(-2px);
}
.mbn-soc-fb { background: #1877f2; }
.mbn-soc-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.mbn-soc-yt { background: #ff0000; }
.mbn-soc-pin { background: #e60023; }
.mbn-soc-x { background: #000000; }

.mbn-footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
}

.mbn-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mbn-footer-links a {
    color: #cbd5e1;
    font-size: 13.5px;
    transition: color 0.2s;
}
.mbn-footer-links a:hover {
    color: #34d399;
}
.mbn-badge-subtle {
    font-size: 11px;
    color: #fbbf24;
}

.mbn-footer-newsletter .mbn-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mbn-footer-newsletter input[type="email"] {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 14px;
}
.mbn-footer-newsletter input[type="email"]::placeholder {
    color: #94a3b8;
}
.mbn-footer-newsletter input[type="email"]:focus {
    border-color: #34d399;
}

.mbn-btn-newsletter {
    background: #16a34a;
    color: #ffffff;
    border: none;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.mbn-btn-newsletter:hover {
    background: #15803d;
}

.mbn-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    font-size: 13px;
    color: #94a3b8;
}

/* ======================================================== */
/* SINGLE BABY NAME DETAIL PAGE                             */
/* ======================================================== */
.mbn-breadcrumbs {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.mbn-breadcrumbs a {
    color: var(--primary-green);
}

.mbn-name-detail-layout {
    display: grid;
    grid-template-columns: 2.6fr 1fr;
    gap: 32px;
}

.mbn-name-main-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.mbn-name-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.mbn-name-main-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 8px 0 4px 0;
}

.mbn-pronounce-tag {
    font-size: 14px;
    color: var(--text-light);
}

.mbn-arabic-display {
    text-align: right;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 24px;
}
.mbn-arabic-text {
    font-family: var(--font-arabic);
    font-size: 38px;
    color: var(--primary-green);
    display: block;
    line-height: 1.2;
    direction: rtl;
}
.mbn-arabic-sub {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mbn-meaning-highlight-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}
.mbn-meaning-label {
    font-size: 12px;
    font-weight: 800;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}
.mbn-meaning-text {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.mbn-name-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
    margin-bottom: 28px;
}

.mbn-btn-save-name {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: var(--text-dark);
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.mbn-btn-save-name:hover,
.mbn-btn-save-name.active {
    border-color: #e11d48;
    color: #e11d48;
    background: #ffe4e6;
}

.mbn-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}
.mbn-share-pill {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.mbn-share-wa { background: #25d366; }
.mbn-share-fb { background: #1877f2; }
.mbn-share-tw { background: #000000; }

.mbn-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
.mbn-spec-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}
.mbn-spec-k {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 4px;
}
.mbn-spec-v {
    font-size: 15px;
    color: var(--text-dark);
}

.mbn-quran-reference-box {
    background: #f5f3ff;
    border-left: 4px solid #7e22ce;
    padding: 14px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 20px 0;
}
.mbn-quran-reference-box strong {
    color: #6b21a8;
}

/* Sidebar Cards */
.mbn-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.mbn-sidebar-card h4 {
    margin-top: 0;
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 14px;
}
.mbn-sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mbn-sidebar-nav a {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    display: block;
    padding: 6px 0;
    transition: color 0.2s;
}
.mbn-sidebar-nav a:hover {
    color: var(--primary-green);
}

.mbn-contest-teaser-card {
    background: #fff8e7;
    border-color: #fed7aa;
    text-align: center;
}
.mbn-btn-sidebar-contest {
    background: #ea580c;
    color: #fff;
    margin-top: 14px;
    font-size: 13px;
}

/* ======================================================== */
/* ARCHIVE FILTER BAR & RESULTS GRID                        */
/* ======================================================== */
.mbn-archive-header {
    margin-bottom: 30px;
}
.mbn-archive-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.mbn-archive-desc {
    color: var(--text-light);
    font-size: 15px;
}

.mbn-filter-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.mbn-filter-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
}
.mbn-filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.mbn-letters-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.mbn-letter-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mbn-letter-btn:hover,
.mbn-letter-btn.active {
    background: var(--primary-green);
    color: #ffffff;
    border-color: var(--primary-green);
}

.mbn-name-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mbn-card-name-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}
.mbn-card-name-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.mbn-cni-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.mbn-badge-boy { background: #e0f2fe; color: #0284c7; }
.mbn-badge-girl { background: #fce7f3; color: #db2777; }
.mbn-cni-quran {
    font-size: 11px;
    background: #f3e8ff;
    color: #7e22ce;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.mbn-cni-center {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.mbn-cni-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}
.mbn-cni-title a {
    color: var(--text-dark);
}
.mbn-cni-title a:hover {
    color: var(--primary-green);
}
.mbn-cni-arabic {
    font-family: var(--font-arabic);
    font-size: 24px;
    color: var(--primary-green);
    direction: rtl;
}

.mbn-cni-meaning {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.45;
    margin-bottom: 16px;
    flex: 1;
}

.mbn-cni-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    text-align: right;
}
.mbn-cni-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-green);
}

/* ======================================================== */
/* BABY CONTEST COMING SOON CARD                            */
/* ======================================================== */
.mbn-contest-coming-soon-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    max-width: 840px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}
.mbn-cs-crown {
    font-size: 64px;
    display: inline-block;
    margin-bottom: 15px;
}
.mbn-cs-title {
    font-size: 38px;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 10px;
}
.mbn-cs-pill-badge {
    background: #f97316;
    color: #fff;
    display: inline-block;
    padding: 6px 20px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.mbn-cs-sub {
    font-size: 22px;
    color: var(--primary-green);
    margin-bottom: 12px;
}
.mbn-cs-desc {
    color: #475569;
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto 35px auto;
}
.mbn-cs-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.mbn-cs-fcard {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 24px 18px;
}
.mbn-cs-ficon {
    font-size: 32px;
    display: inline-block;
    margin-bottom: 10px;
}
.mbn-cs-fcard h3 {
    font-size: 16px;
    margin-bottom: 6px;
}
.mbn-cs-fcard p {
    font-size: 13px;
    color: #64748b;
}

.mbn-privacy-callout {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 40px;
    text-align: left;
}
.mbn-privacy-callout h4 {
    color: #15803d;
    margin-bottom: 6px;
}
.mbn-privacy-callout p {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
}

/* ======================================================== */
/* RESPONSIVE BREAKPOINTS (Section 33)                      */
/* ======================================================== */
@media (max-width: 1024px) {
    .mbn-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .mbn-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .mbn-product-carousel-track {
        grid-template-columns: repeat(3, 1fr);
    }
    .mbn-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mbn-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .mbn-name-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mbn-header-search {
        display: none; /* Moved to mobile slide-out or compact */
    }
    .mbn-mobile-toggle {
        display: flex;
    }
    .mbn-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .mbn-hero-heading {
        font-size: 34px;
    }
    .mbn-hero-search-box {
        margin: 0 auto 20px auto;
    }
    .mbn-popular-searches {
        justify-content: center;
    }
    .mbn-hero-visual {
        justify-content: center;
        margin-top: 20px;
    }
    .mbn-hero-quote-card {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 15px;
        width: 100%;
        max-width: 320px;
    }
    .mbn-popular-grid {
        grid-template-columns: 1fr;
    }
    .mbn-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mbn-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mbn-product-carousel-track {
        grid-template-columns: repeat(2, 1fr);
    }
    .mbn-contest-banner-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .mbn-cb-content {
        flex-direction: column;
        text-align: center;
    }
    .mbn-footer-grid {
        grid-template-columns: 1fr;
    }
    .mbn-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .mbn-cs-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mbn-hero-baby-frame {
        width: 240px;
        height: 240px;
    }
    .mbn-tools-grid {
        grid-template-columns: 1fr;
    }
    .mbn-product-carousel-track {
        grid-template-columns: 1fr;
    }
    .mbn-articles-grid {
        grid-template-columns: 1fr;
    }
}
