/* ═══════════════════════════════════════════════
   THE KURDISH MOTHER — Main Stylesheet
═══════════════════════════════════════════════ */

@font-face {
    font-family: 'SarkarAljazeera';
    src: url('https://thekurdishmother.com/fonts/Xoshnus%20-%20Sarkar%20Aljazeera%20Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SarkarAljazeera';
    src: url('https://thekurdishmother.com/fonts/Xoshnus%20-%20Sarkar%20Aljazeera%20Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary:       #c9727b;
    --primary-dark:  #a85560;
    --primary-light: #f5dfe1;
    --secondary:     #7bb5ad;
    --accent:        #f9ede8;
    --bg:            #fdf8f8;
    --white:         #ffffff;
    --dark:          #2e2e2e;
    --mid:           #5a5a5a;
    --light:         #9a9a9a;
    --border:        #f0e8e8;
    --radius-sm:     10px;
    --radius:        18px;
    --radius-lg:     28px;
    --shadow-sm:     0 2px 12px rgba(0,0,0,0.06);
    --shadow:        0 8px 32px rgba(180,80,90,0.12);
    --shadow-lg:     0 20px 60px rgba(180,80,90,0.18);
    --font:          'SarkarAljazeera', sans-serif;
    --font-heading:  'SarkarAljazeera', serif;
    --transition:    0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--dark); line-height: 1.8; overflow-x: hidden; direction: rtl; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.site-logo img { height: 52px; width: auto; display: block; }
.site-logo-text { font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary-dark); font-weight: 700; }
.header-search { flex: 1; max-width: 360px; position: relative; }
.header-search input { width: 100%; padding: 10px 18px 10px 42px; border: 2px solid var(--border); border-radius: 50px; font-family: var(--font); font-size: 0.88rem; background: var(--bg); color: var(--dark); outline: none; transition: var(--transition); }
.header-search input:focus { border-color: var(--primary); background: var(--white); }
.header-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: var(--light); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* ── PRIMARY NAV ── */
.main-nav { background: var(--white); border-top: 1px solid var(--border); border-bottom: 3px solid var(--primary); }
.main-nav ul { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.main-nav ul li a { display: block; padding: 13px 18px; font-weight: 700; font-size: 0.88rem; color: var(--mid); position: relative; transition: var(--transition); white-space: nowrap; }
.main-nav ul li a::after { content: ''; position: absolute; bottom: -3px; right: 0; left: 0; height: 3px; background: var(--primary); transform: scaleX(0); transition: var(--transition); }
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-menu-ancestor > a { color: var(--primary-dark); }
.main-nav ul li a:hover::after,
.main-nav ul li.current-menu-item > a::after { transform: scaleX(1); }

/* ── HERO ── */
.hero-section { background: linear-gradient(135deg, #fdf0f0 0%, #fdf8f4 50%, #f0f7f6 100%); padding: 60px 0 50px; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; top: -80px; right: -80px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(201,114,123,0.1) 0%, transparent 70%); border-radius: 50%; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-image img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light); color: var(--primary-dark); padding: 6px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 700; margin-bottom: 20px; }
.hero-title { font-family: var(--font-heading); font-size: 2.8rem; color: var(--dark); line-height: 1.4; margin-bottom: 18px; }
.hero-title em { font-style: normal; color: var(--primary); }
.hero-desc { font-size: 1.05rem; color: var(--mid); margin-bottom: 32px; line-height: 2; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { background: var(--primary); color: var(--white); padding: 13px 28px; border-radius: 50px; font-weight: 700; font-size: 0.95rem; font-family: var(--font); border: none; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 20px rgba(201,114,123,0.3); display: inline-block; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--white); }
.btn-outline { background: transparent; color: var(--primary-dark); padding: 13px 28px; border-radius: 50px; font-weight: 700; font-size: 0.95rem; border: 2px solid var(--primary-light); display: inline-block; transition: var(--transition); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-light); }
.hero-stats { display: flex; gap: 30px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.stat-num { font-family: var(--font-heading); font-size: 1.6rem; color: var(--primary-dark); font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--light); margin-top: 4px; }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 44px; }
.section-label { font-size: 0.8rem; font-weight: 700; color: var(--secondary); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.section-title { font-family: var(--font-heading); font-size: 2rem; color: var(--dark); line-height: 1.3; }
.section-header-inline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 3px solid var(--primary); }
.section-header-inline h2 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.section-header-inline h2::before { content: ''; display: block; width: 4px; height: 22px; background: var(--primary); border-radius: 2px; }
.section-header-inline a { font-size: 0.82rem; color: var(--primary); font-weight: 700; }
.section-header-inline a:hover { color: var(--primary-dark); }

/* ── CATEGORY CARDS ── */
.cats-section { padding: 60px 0; }
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { background: var(--white); border-radius: var(--radius); padding: 32px 20px; text-align: center; border: 2px solid var(--border); transition: var(--transition); cursor: pointer; position: relative; overflow: hidden; display: block; }
.cat-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card:hover .cat-icon-wrap { background: var(--primary); }
.cat-card:hover .cat-icon-wrap svg { fill: var(--white); }
.cat-card:hover .cat-count { background: var(--primary); color: var(--white); }
.cat-icon-wrap { width: 72px; height: 72px; background: var(--accent); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; transition: var(--transition); }
.cat-icon-wrap svg { width: 32px; height: 32px; fill: var(--primary); transition: var(--transition); }
.cat-name { font-weight: 700; font-size: 0.95rem; color: var(--dark); margin-bottom: 8px; }
.cat-count { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 50px; transition: var(--transition); }

/* ── FEATURED POSTS ── */
.featured-section { padding: 20px 0 60px; }
.featured-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.featured-main { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: block; transition: var(--transition); }
.featured-main:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.featured-main img { width: 100%; height: 300px; object-fit: cover; }
.featured-body { padding: 28px; }
.featured-body h2 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--dark); line-height: 1.5; margin-bottom: 12px; }
.featured-body p { font-size: 0.95rem; color: var(--mid); line-height: 1.8; margin-bottom: 20px; }
.featured-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); display: flex; transition: var(--transition); box-shadow: var(--shadow-sm); }
.side-card:hover { transform: translateX(-4px); box-shadow: var(--shadow); }
.side-card img { width: 110px; height: 110px; object-fit: cover; flex-shrink: 0; }
.side-card-body { padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.side-card-body h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--dark); line-height: 1.5; }
.side-card-body span { font-size: 0.78rem; color: var(--light); }

/* ── POST TAGS ── */
.post-tag { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 0.75rem; font-weight: 700; padding: 4px 14px; border-radius: 50px; margin-bottom: 12px; }
.post-meta-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--light); }
.read-link { color: var(--primary); font-weight: 700; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.read-link:hover { gap: 10px; color: var(--primary-dark); }

/* ── BLOG GRID ── */
.blog-section { padding: 20px 0 80px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); display: block; transition: var(--transition); box-shadow: var(--shadow-sm); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-img { overflow: hidden; }
.card-img img { width: 100%; height: 200px; object-fit: cover; transition: var(--transition); border-radius: 0; }
.blog-card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px; }
.card-body h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--dark); margin: 10px 0 8px; line-height: 1.5; }
.card-body p { font-size: 0.88rem; color: var(--mid); line-height: 1.7; margin-bottom: 16px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--light); }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 40px 0; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.88rem; font-weight: 600; border: 1px solid var(--border); color: var(--mid); background: var(--white); transition: var(--transition); padding: 0 8px; }
.pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: var(--white); }
.pagination .page-numbers.dots { border: none; background: none; cursor: default; }

/* ── SINGLE POST ── */
.post-hero { background: linear-gradient(135deg, #fdf0f0 0%, #fdf8f4 100%); padding: 40px 0 0; }
.post-hero-inner { max-width: 860px; margin: 0 auto; text-align: center; padding: 0 24px; }
.post-title { font-family: var(--font-heading); font-size: 2.6rem; color: var(--dark); line-height: 1.4; margin-bottom: 20px; }
.post-hero-img { width: 100%; max-width: 860px; height: 460px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin: 0 auto; display: block; box-shadow: 0 -4px 30px rgba(0,0,0,0.06); }
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; max-width: 1100px; margin: 50px auto; padding: 0 24px; align-items: start; }
.post-article { background: var(--white); border-radius: var(--radius-lg); padding: 48px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.post-content { font-size: 1.1rem; color: var(--mid); line-height: 2; }
.post-content p { margin-bottom: 22px; }
.post-content h2 { font-family: var(--font-heading); font-size: 1.7rem; color: var(--dark); margin: 40px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary-light); }
.post-content h3 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--dark); margin: 28px 0 12px; }
.post-content ul { list-style: disc; margin-right: 24px; margin-bottom: 22px; }
.post-content ul li { padding: 6px 0; color: var(--mid); }
.post-content img { border-radius: var(--radius); margin: 20px 0; box-shadow: var(--shadow-sm); }
.post-content blockquote { border-right: 4px solid var(--primary); background: var(--accent); padding: 18px 22px; border-radius: var(--radius-sm); margin: 24px 0; font-style: italic; color: var(--mid); }
.info-box { background: var(--accent); border-right: 4px solid var(--primary); border-radius: var(--radius-sm); padding: 18px 22px; margin: 28px 0; font-size: 0.95rem; color: var(--mid); }
.post-share { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-label { font-weight: 700; font-size: 0.9rem; color: var(--mid); }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 50px; font-size: 0.82rem; font-weight: 700; border: 2px solid var(--border); transition: var(--transition); }
.share-btn:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-light); }

/* ── SIDEBAR ── */
.sidebar-col { display: flex; flex-direction: column; gap: 24px; }
.widget-block { background: var(--white); border-radius: var(--radius); padding: 0; border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
.widget-block-title { font-family: var(--font-heading); font-size: 1rem; color: var(--dark); padding: 14px 18px; border-bottom: 3px solid var(--primary); background: var(--accent); display: flex; align-items: center; gap: 8px; }
.widget-block-body { padding: 16px 18px; }
.w-post { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.w-post:last-child { border-bottom: none; padding-bottom: 0; }
.w-post img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.w-post h4 { font-size: 0.83rem; font-weight: 700; color: var(--dark); line-height: 1.45; margin-bottom: 4px; }
.w-post span { font-size: 0.72rem; color: var(--light); }
.w-cat-link { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--mid); transition: var(--transition); }
.w-cat-link:last-child { border-bottom: none; }
.w-cat-link:hover { color: var(--primary); padding-right: 6px; }
.w-cat-count { background: var(--primary-light); color: var(--primary-dark); font-size: 0.7rem; font-weight: 700; padding: 1px 8px; border-radius: 20px; }
.w-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.w-tag { background: var(--accent); color: var(--mid); font-size: 0.78rem; padding: 4px 12px; border-radius: 4px; border: 1px solid var(--border); transition: var(--transition); }
.w-tag:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ── NEWSLETTER ── */
.newsletter-section { padding: 0 0 80px; }
.newsletter-inner { background: linear-gradient(135deg, var(--primary-dark) 0%, #8e4a55 100%); border-radius: var(--radius-lg); padding: 60px 80px; text-align: center; position: relative; overflow: hidden; }
.newsletter-inner h3 { font-family: var(--font-heading); font-size: 2rem; color: var(--white); margin-bottom: 12px; }
.newsletter-inner p { color: rgba(255,255,255,0.75); margin-bottom: 32px; font-size: 1rem; }
.newsletter-form { max-width: 480px; margin: 0 auto; display: flex; gap: 10px; }
.newsletter-form input { flex: 1; padding: 14px 22px; border: none; border-radius: 50px; font-family: var(--font); font-size: 0.95rem; outline: none; background: rgba(255,255,255,0.15); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form button { background: var(--white); color: var(--primary-dark); padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; font-family: var(--font); border: none; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.newsletter-form button:hover { background: var(--accent); }

/* ── ARCHIVE / CATEGORY ── */
.archive-header { background: linear-gradient(135deg, #fbeaea 0%, #fdf4f0 60%, #f0f7f6 100%); padding: 56px 0 40px; }
.archive-header h1 { font-family: var(--font-heading); font-size: 2.4rem; color: var(--dark); margin-bottom: 10px; }
.archive-header p { font-size: 1rem; color: var(--mid); }
.archive-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding: 50px 0 80px; align-items: start; }
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 36px; }

/* ── FOOTER ── */
.site-footer { background: var(--dark); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand img { height: 44px; filter: brightness(0) invert(1); opacity: 0.85; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.9; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-soc { width: 38px; height: 38px; background: rgba(255,255,255,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-soc:hover { background: var(--primary); }
.footer-soc svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.7); }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-col a:hover { color: var(--primary-light); padding-right: 4px; }
.footer-bottom { padding: 22px 0; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 8px; }

/* ── 404 ── */
.error-404 { text-align: center; padding: 100px 24px; }
.error-404 h1 { font-family: var(--font-heading); font-size: 6rem; color: var(--primary); line-height: 1; margin-bottom: 16px; }
.error-404 h2 { font-family: var(--font-heading); font-size: 1.8rem; color: var(--dark); margin-bottom: 16px; }
.error-404 p { color: var(--mid); margin-bottom: 32px; font-size: 1.05rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-inner, .featured-grid { grid-template-columns: 1fr; }
    .cats-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .archive-layout, .post-layout { grid-template-columns: 1fr; }
    .sidebar-col { display: none; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .post-title { font-size: 1.8rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }
    .newsletter-inner { padding: 40px 24px; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .post-article { padding: 24px 18px; }
    .post-hero-img { height: 260px; }
    .hamburger { display: block; }
    .main-nav ul { display: none; flex-direction: column; }
    .main-nav ul.open { display: flex; }
    .main-nav ul li a { border-bottom: 1px solid var(--border); }
}
