/*
Theme Name: Dal Mida - داڵ میدا
Theme URI: https://dalmida.com
Author: Dal Mida Team
Author URI: https://dalmida.com
Description: A professional Kurdish (Sorani) news theme with RTL support. Features hero slider, news sections, weather widget, and custom post types for news management.
Version: 1.0.1
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dal-mida
Tags: rtl-language-support, news, custom-colors, custom-menu, featured-images, theme-options, translation-ready

داڵ میدا - سەرچاوەیی ڕاستی و هەواڵی ڕۆژ
*/

/* --- 1. Variables & Reset --- */
:root {
    --primary-navy: #0a192f;
    --secondary-gray: #f4f6f8;
    --accent-gold: #c5a059;
    --text-dark: #333333;
    --text-light: #8892b0;
    --white: #ffffff;
    --health-bg: #e8f5e9;
    --health-accent: #2e7d32;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans Arabic', sans-serif;
    background-color: var(--secondary-gray);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 40px;
}

/* Adjust body padding when admin bar is showing */
body.admin-bar {
    padding-top: 72px;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        padding-top: 86px;
    }
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 2. Page Cover --- */
.page-cover {
    width: 100%;
    height: 200px;
    margin: -40px 0 0 0;
    background-image: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('assets/images/cover-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    border-radius: 0;
}

.cover-content h1 { font-size: 3rem; font-weight: 900; letter-spacing: 2px; }
.cover-content p { font-size: 1.2rem; color: var(--accent-gold); }

/* --- 3. News Ticker --- */
.ticker-wrap {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--primary-navy);
    color: var(--white);
    display: flex;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* When WordPress admin bar is showing */
.admin-bar .ticker-wrap {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .ticker-wrap {
        top: 46px;
    }
}

.ticker-title {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-view { flex-grow: 1; overflow: hidden; white-space: nowrap; position: relative; }
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 25s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-move { display: flex; white-space: nowrap; }
.ticker-item { display: inline-block; padding: 0 2rem; font-size: 0.9rem; border-left: 1px solid rgba(255,255,255,0.3); }
.ticker-item a { color: var(--white); }
.ticker-item a:hover { color: var(--accent-gold); }

@keyframes ticker-scroll {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* --- 4. Header --- */
header {
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    z-index: 9000;
    padding: 10px 0;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.header-center {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}
.logo img, .logo .site-logo, .logo .custom-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.main-nav { position: relative; z-index: 1000; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav > ul > li { position: relative; }
.main-nav a {
    font-weight: 700; color: var(--primary-navy); font-size: 1rem; padding: 5px 0; position: relative;
}
.main-nav a:hover { color: var(--accent-gold); }
.main-nav .current-menu-item a,
.main-nav .current_page_item a { color: var(--accent-gold); }

/* Dropdown submenu */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    padding: 10px 0;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 9999;
}
.main-nav .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
    font-size: 0.8rem;
}
.main-nav .menu-item-has-children:hover .sub-menu { display: flex; }
.main-nav .sub-menu li { padding: 0; }
.main-nav .sub-menu a { display: block; padding: 8px 20px; font-size: 0.95rem; white-space: nowrap; }
.main-nav .sub-menu a:hover { background: var(--secondary-gray); }

.icon-btn {
    width: 40px; height: 40px; border-radius: 50%; background: var(--secondary-gray);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-navy); cursor: pointer; border: none;
}
.icon-btn:hover { background: var(--primary-navy); color: var(--white); }

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

/* --- 5. Section Titles --- */
.section-title {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 25px;
    background-color: var(--accent-gold);
    margin-left: 10px;
    border-radius: 2px;
}

.section-title a {
    font-size: 0.9rem;
    color: var(--accent-gold);
    margin-right: auto;
}

/* --- 6. Hero Slider --- */
.hero-section {
    position: relative; height: 500px; border-radius: var(--border-radius);
    overflow: hidden; margin-bottom: 40px; background: #000;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.8s ease-in-out; display: flex; align-items: flex-end;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img {
    width: 100%; height: 100%; object-fit: cover; position: absolute;
    top: 0; left: 0; filter: brightness(0.6);
}
.slide-content {
    position: relative; z-index: 2; padding: 40px; color: var(--white); max-width: 800px;
}
.category-tag {
    background-color: var(--accent-gold); color: var(--primary-navy); padding: 5px 10px;
    border-radius: 4px; font-size: 0.8rem; font-weight: bold; display: inline-block; margin-bottom: 10px;
}
.category-tag a { color: var(--primary-navy); }
.slide-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; line-height: 1.2; }
.slide-title a { color: var(--white); }
.slide-title a:hover { color: var(--accent-gold); }

.slider-dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 10;
}
.dot {
    width: 12px; height: 12px; background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%; cursor: pointer; transition: var(--transition);
}
.dot.active { background-color: var(--accent-gold); transform: scale(1.3); }

/* --- 7. Secondary News --- */
.secondary-hero-static {
    margin-bottom: 50px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sub-static-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.sub-static-card:hover { transform: translateY(-5px); }
.sub-static-card a { display: block; overflow: hidden; }
.sub-static-card img {
    width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s ease;
}
.sub-static-card:hover img { transform: scale(1.1); }
.sub-card-body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.sub-card-body h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary-navy); }
.sub-card-body h3 a { color: var(--primary-navy); }
.sub-card-body h3 a:hover { color: var(--accent-gold); }
.sub-card-body .meta { margin-top: auto; font-size: 0.8rem; color: var(--text-light); }

/* --- 8. Weather Section --- */
.weather-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 50px;
    color: var(--white);
}
.weather-section .section-title { color: white; border-color: rgba(255,255,255,0.3); }
.weather-section .section-title::before { background-color: var(--white); }
.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    text-align: center;
}
.weather-card {
    background: rgba(255,255,255,0.2);
    padding: 15px 10px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}
.city-name { font-weight: bold; margin-bottom: 5px; display: block; }
.temp { font-size: 1.4rem; font-weight: bold; }
.weather-icon { font-size: 2rem; margin: 5px 0; display: block; }

/* --- 9. Latest News Grid --- */
.latest-news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-bottom: 50px; }
.news-list-item { display: flex; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; align-items: flex-start; transition: var(--transition); }
.news-list-item:hover { background-color: rgba(0,0,0,0.02); }
.news-list-item a.post-thumbnail { display: block; overflow: hidden; border-radius: 4px; flex-shrink: 0; }
.news-list-item img { width: 100px; height: 70px; object-fit: cover; border-radius: 4px; flex-shrink: 0; transition: transform 0.4s ease; }
.news-list-item:hover img { transform: scale(1.1); }
.news-list-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.news-list-info h3 a { color: var(--text-dark); }
.news-list-info h3 a:hover { color: var(--accent-gold); }
.news-list-info .meta { font-size: 0.8rem; color: var(--text-light); }
.news-list-info .category-label { color: var(--accent-gold); font-size: 0.8rem; display: block; margin-bottom: 5px; }

/* --- 10. Health Section --- */
#health {
    background-color: var(--health-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #c8e6c9;
}
#health .section-title { color: var(--health-accent); border-color: var(--health-accent); }
#health .section-title::before { background-color: var(--health-accent); }

.health-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.1);
    border: none;
}
.health-card img { height: 160px; }
.health-card .card-body h3 { color: var(--health-accent); font-weight: 700; }
.health-card .card-body h3 a { color: var(--health-accent); }
.health-card .card-body { border-top: 4px solid var(--health-accent); }

/* --- 11. Card Styles --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 50px; }
.news-card { background: var(--white); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: var(--transition); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.news-card img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.4s ease; }
.news-card .post-thumbnail { width: 100%; height: 180px; overflow: hidden; }
.news-card .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover img { transform: scale(1.1); }
.card-body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
.card-body h3 a { color: var(--text-dark); }
.card-body h3 a:hover { color: var(--accent-gold); }
.card-body .meta { margin-top: auto; font-size: 0.8rem; color: var(--text-light); display: flex; justify-content: space-between; }

/* --- 12. Kurdistan Section --- */
.kurdistan-section .card-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 250px); gap: 15px; }
.kurdistan-section .news-card { height: 100%; }
.kurdistan-section .news-card:first-child { grid-column: span 2; grid-row: span 2; }
.kurdistan-section .news-card:first-child img,
.kurdistan-section .news-card:first-child .post-thumbnail { height: 100%; }
.kurdistan-section .news-card:first-child .post-thumbnail img { height: 100%; }

/* --- 13. Economy Section --- */
.economy-section { background-color: var(--primary-navy); padding: 30px; border-radius: var(--border-radius); margin: 50px 0; color: var(--white); }
.economy-section .section-title { color: var(--white); border-color: rgba(255,255,255,0.2); }
.economy-section .section-title::before { background-color: var(--accent-gold); }
.stock-ticker { display: flex; gap: 15px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 10px; }
.stock-item { background: rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 4px; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.stock-item.up { color: #4cd137; }
.stock-item.down { color: #e84118; }
.economy-section .news-card { background: rgba(255,255,255,0.05); color: var(--white); }
.economy-section .news-card h3,
.economy-section .news-card h3 a { color: var(--white); }

/* --- 14. Opinion Section --- */
.opinion-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 50px; }
.opinion-item { display: flex; align-items: center; gap: 20px; background: var(--white); padding: 15px; border-radius: var(--border-radius); border-right: 4px solid var(--accent-gold); transition: var(--transition); }
.opinion-item:hover { transform: translateX(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.opinion-thumbnail { flex-shrink: 0; width: 60px; height: 60px; overflow: hidden; border-radius: 50%; border: 2px solid #eee; }
.opinion-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.opinion-item:hover .opinion-thumbnail img { transform: scale(1.15); }
.opinion-content { flex: 1; }
.opinion-content h3 { font-size: 1.1rem; margin-bottom: 8px; }
.opinion-content h3 a { color: var(--text-dark); }
.opinion-content h3 a:hover { color: var(--accent-gold); }
.opinion-content .meta { font-size: 0.85rem; color: var(--text-light); }

/* --- 15. Sidebar & Widgets --- */
.sidebar { background: var(--white); padding: 20px; border-radius: var(--border-radius); }
.widget { margin-bottom: 30px; }
.widget-title { font-size: 1.2rem; color: var(--primary-navy); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-gold); }
.ads-placeholder { background: #ddd; border-radius: 8px; min-height: 300px; display: flex; align-items: center; justify-content: center; color: #777; }

/* --- 16. Single Post --- */
.single-post-container { max-width: 800px; margin: 40px auto; }
.single-post-header { margin-bottom: 30px; text-align: center; }
.single-post-header .category-tag { margin-bottom: 15px; }
.single-post-header h1 { font-size: 2.5rem; color: var(--primary-navy); margin-bottom: 20px; line-height: 1.4; font-weight: 700; }
.single-post-meta { display: flex; align-items: center; justify-content: center; gap: 25px; color: var(--text-light); font-size: 0.9rem; flex-wrap: wrap; padding: 15px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.single-post-meta .meta-author { display: flex; align-items: center; gap: 8px; }
.single-post-meta .meta-author img { width: 40px; height: 40px; border-radius: 50%; }
.single-post-meta .meta-date,
.single-post-meta .meta-time,
.single-post-meta .meta-views { display: flex; align-items: center; gap: 5px; }
.single-post-meta i { color: var(--accent-gold); }
.single-post-header .post-category { display: inline-block; padding: 8px 20px; border-radius: 25px; color: var(--white); font-size: 0.85rem; font-weight: 700; margin-bottom: 20px; }
.single-post-header .post-category a { color: var(--white); }
.single-post-thumbnail { margin-bottom: 40px; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.single-post-thumbnail img { width: 100%; height: auto; }
.single-post-thumbnail figcaption { background: var(--secondary-gray); padding: 12px 20px; font-size: 0.9rem; color: var(--text-light); text-align: center; }
.single-post-content { font-size: 1.15rem; line-height: 2; color: var(--text-dark); }
.single-post-content p { margin-bottom: 25px; text-align: justify; }
.single-post-content h2 { color: var(--primary-navy); margin: 40px 0 20px; font-size: 1.6rem; position: relative; padding-right: 20px; }
.single-post-content h2::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 4px; background: var(--accent-gold); border-radius: 2px; }
.single-post-content h3 { color: var(--primary-navy); margin: 35px 0 15px; font-size: 1.4rem; }
.single-post-content h4 { color: var(--primary-navy); margin: 30px 0 15px; font-size: 1.2rem; }
.single-post-content blockquote { background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%); padding: 30px 35px; border-radius: var(--border-radius); margin: 30px 0; border-right: 5px solid var(--accent-gold); font-style: italic; font-size: 1.2rem; color: var(--primary-navy); position: relative; }
.single-post-content blockquote::before { content: '"'; font-size: 4rem; color: var(--accent-gold); opacity: 0.3; position: absolute; top: 10px; right: 20px; font-family: Georgia, serif; line-height: 1; }
.single-post-content ul, .single-post-content ol { margin: 25px 0; padding-right: 30px; }
.single-post-content li { margin-bottom: 12px; line-height: 1.8; }
.single-post-content img { border-radius: var(--border-radius); margin: 30px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.single-post-content a { color: var(--accent-gold); border-bottom: 1px solid transparent; transition: var(--transition); }
.single-post-content a:hover { border-bottom-color: var(--accent-gold); }
.single-post-content > h1:first-child { display: none; }
.post-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.post-tags a { background: var(--secondary-gray); padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; margin-left: 10px; display: inline-block; margin-bottom: 10px; }
.post-tags a:hover { background: var(--accent-gold); color: var(--white); }

/* Single Post Lead */
.single-post-lead { background: var(--secondary-gray); padding: 20px; border-radius: var(--border-radius); margin-bottom: 30px; border-right: 4px solid var(--accent-gold); }
.single-post-lead p { margin: 0; font-size: 1.15rem; font-weight: 500; color: var(--text-dark); line-height: 1.8; }

/* Single Post Tags */
.single-post-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.single-post-tags .tags-label { font-weight: 700; color: var(--primary-navy); }
.single-post-tags .tag-link { background: var(--secondary-gray); padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; }
.single-post-tags .tag-link:hover { background: var(--accent-gold); color: var(--white); }

/* Single Post Share */
.single-post-share { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; display: flex; align-items: center; gap: 15px; }
.single-post-share .share-label { font-weight: 700; color: var(--primary-navy); }
.single-post-share .share-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1rem; }
.single-post-share .share-btn.facebook { background: #3b5998; }
.single-post-share .share-btn.twitter { background: #1da1f2; }
.single-post-share .share-btn.telegram { background: #0088cc; }
.single-post-share .share-btn.whatsapp { background: #25d366; }
.single-post-share .share-btn:hover { opacity: 0.8; }

/* Author Box */
.author-box { background: var(--white); padding: 30px; border-radius: var(--border-radius); margin-top: 40px; display: flex; align-items: center; gap: 20px; border: 1px solid #eee; }
.author-box .author-avatar { width: 100px; height: 100px; flex-shrink: 0; }
.author-box .author-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-box .author-info { flex: 1; }
.author-box .author-info h4 { font-size: 1.3rem; color: var(--primary-navy); margin-bottom: 10px; }
.author-box .author-info p { color: var(--text-light); margin-bottom: 10px; line-height: 1.6; }
.author-box .author-posts-link { color: var(--accent-gold); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.author-box .author-posts-link:hover { color: var(--primary-navy); }

/* Related Posts */
.related-posts { margin-top: 50px; }
.related-posts .section-title { margin-bottom: 20px; }
.related-posts .section-title h3 { font-size: 1.5rem; color: var(--primary-navy); padding-bottom: 10px; border-bottom: 3px solid var(--accent-gold); display: inline-block; }

/* --- 17. Archive Page --- */
.archive-header { background: var(--primary-navy); color: var(--white); padding: 40px 20px; text-align: center; margin-bottom: 40px; border-radius: var(--border-radius); position: relative; z-index: 1; }
.archive-header h1 { font-size: 2rem; margin-bottom: 10px; }
.archive-header p { color: var(--text-light); }

/* --- 18. Pagination --- */
.pagination { display: flex; justify-content: center; gap: 10px; margin: 40px 0; }
.pagination a, .pagination span { padding: 10px 15px; background: var(--white); border-radius: 4px; color: var(--text-dark); }
.pagination a:hover { background: var(--accent-gold); color: var(--white); }
.pagination .current { background: var(--primary-navy); color: var(--white); }

/* --- 19. Search Form --- */
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] { flex: 1; padding: 10px 15px; border: 1px solid #ddd; border-radius: var(--border-radius); font-family: inherit; }
.search-form button { padding: 10px 20px; background: var(--primary-navy); color: var(--white); border: none; border-radius: var(--border-radius); cursor: pointer; }
.search-form button:hover { background: var(--accent-gold); }

/* --- 20. Footer --- */
footer { background-color: var(--primary-navy); color: var(--white); padding: 50px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--accent-gold); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #ccc; }
.footer-col ul li a:hover { color: var(--white); padding-right: 5px; }
.footer-col p { color: #ccc; font-size: 0.9rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { font-size: 1.2rem; color: #ccc; }
.footer-social a:hover { color: var(--accent-gold); }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: var(--text-light); font-size: 0.9rem; }

/* --- 21. 404 Page --- */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 h1 { font-size: 8rem; color: var(--accent-gold); margin-bottom: 20px; }
.error-404 h2 { font-size: 2rem; color: var(--primary-navy); margin-bottom: 20px; }
.error-404 p { color: var(--text-light); margin-bottom: 30px; }
.error-404 .btn { display: inline-block; padding: 12px 30px; background: var(--primary-navy); color: var(--white); border-radius: var(--border-radius); }
.error-404 .btn:hover { background: var(--accent-gold); }

/* --- 22. Mobile Menu --- */
.mobile-menu-toggle { display: none; }
.mobile-menu { display: none; position: fixed; top: 0; right: 0; width: 80%; max-width: 300px; height: 100vh; background: var(--white); z-index: 2000; padding: 20px; transform: translateX(100%); transition: var(--transition); }
.mobile-menu.active { display: block; transform: translateX(0); }
.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1999; }
.mobile-menu-overlay.active { display: block; }
.mobile-menu .close-btn { position: absolute; top: 15px; left: 15px; font-size: 1.5rem; cursor: pointer; background: none; border: none; color: var(--primary-navy); }
.mobile-menu ul { margin-top: 50px; }
.mobile-menu ul li { margin-bottom: 15px; }
.mobile-menu ul li a { font-size: 1.2rem; color: var(--primary-navy); font-weight: 700; }

/* --- 23. Responsive --- */
@media (max-width: 992px) {
    .kurdistan-section .card-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .kurdistan-section .news-card:first-child { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
    .page-cover { width: 100%; height: 150px; border-radius: 0; margin: 0; }
    .cover-content h1 { font-size: 2rem; }
    .hero-section { height: 350px; }
    .slide-title { font-size: 1.5rem; }
    .header-container { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; }
    .header-actions { flex: 0 0 auto; }
    .header-center { display: none; }
    .header-right { flex: 0 0 auto; width: auto; }
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .secondary-grid { grid-template-columns: 1fr; }
    .latest-news-grid { grid-template-columns: 1fr; }
    .kurdistan-section .card-grid { grid-template-columns: 1fr; }
    .kurdistan-section .news-card:first-child { grid-column: span 1; }
    .single-post-header h1 { font-size: 1.8rem; }
    .opinion-item { flex-direction: column; text-align: center; }
}

/* --- 24. WordPress Core Styles --- */
.alignleft { float: left; margin-right: 20px; margin-bottom: 10px; }
.alignright { float: right; margin-left: 20px; margin-bottom: 10px; }
.aligncenter { display: block; margin: 20px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-light); text-align: center; padding: 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery-item { margin: 0; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* --- 25. Comments --- */
.comments-area { margin-top: 40px; padding-top: 40px; border-top: 1px solid #eee; }
.comments-title { font-size: 1.5rem; color: var(--primary-navy); margin-bottom: 30px; }
.comment-list { list-style: none; }
.comment { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.comment-author img { border-radius: 50%; float: right; margin-left: 15px; }
.comment-meta { margin-bottom: 10px; }
.comment-author .fn { font-weight: bold; color: var(--primary-navy); }
.comment-metadata { font-size: 0.85rem; color: var(--text-light); }
.comment-content { clear: both; }
.comment-reply-link { font-size: 0.85rem; color: var(--accent-gold); }
.comment-respond { margin-top: 40px; }
.comment-form label { display: block; margin-bottom: 5px; font-weight: 600; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: var(--border-radius); margin-bottom: 15px; font-family: inherit; }
.comment-form input[type="submit"] { width: auto; background: var(--primary-navy); color: var(--white); border: none; cursor: pointer; }
.comment-form input[type="submit"]:hover { background: var(--accent-gold); }
