/*
Theme Name: IFJ Journalism Theme
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: A professional journalism/NGO WordPress theme inspired by IFJ.org. Features a sticky header with mega menu, hero slider, news grid, sidebar widgets, highlight band, and a full footer.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
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: ifj-theme
Tags: news, journalism, magazine, custom-menu, featured-images, footer-widgets, sticky-post, two-columns
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    --red:        #c8102e;
    --red-dark:   #a00d24;
    --red-light:  #f7e5e8;
    --dark:       #1a1a1a;
    --mid:        #444444;
    --muted:      #777777;
    --border:     #e0e0e0;
    --bg:         #f5f5f5;
    --white:      #ffffff;
    --font-body:  'Source Sans 3', 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--red);
    margin-bottom: 24px;
    padding-bottom: 10px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}
.view-all {
    font-size: 12px;
    color: var(--red);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.view-all:hover { opacity: 0.7; color: var(--red); }

/* =============================================
   UTILITY BAR
   ============================================= */
.utility-bar {
    background: var(--dark);
    color: #ccc;
    font-size: 12px;
    padding: 6px 0;
}
.utility-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.utility-bar .social-links,
.utility-bar .lang-links,
.utility-bar .action-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.utility-bar a {
    color: #aaa;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.utility-bar a:hover { color: #fff; }
.utility-bar .join-btn {
    background: var(--red);
    color: #fff !important;
    padding: 3px 10px;
    border-radius: 2px;
    font-weight: 700;
}
.utility-bar .join-btn:hover { background: var(--red-dark); }

/* =============================================
   SITE HEADER & NAV
   ============================================= */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 52px;
    height: 52px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    flex-shrink: 0;
}
.logo-mark .logo-text-inner {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -1px;
}
.site-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}
.site-description {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

/* PRIMARY NAV */
.primary-navigation { height: 70px; }
.primary-navigation > ul {
    display: flex;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-navigation > ul > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.primary-navigation > ul > li > a {
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dark);
    height: 100%;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.primary-navigation > ul > li:hover > a,
.primary-navigation > ul > li.current-menu-item > a,
.primary-navigation > ul > li.current-menu-ancestor > a {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* DROPDOWN */
.primary-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-top: 3px solid var(--red);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    min-width: 220px;
    height: auto !important;
    display: none;
    z-index: 9999;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-navigation > ul > li:hover > ul { display: block; }
.primary-navigation ul ul li {
    height: auto !important;
    width: 100%;
    display: block;
    position: relative;
}
.primary-navigation ul ul a {
    display: block;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 400;
    color: var(--mid);
    border-bottom: 1px solid var(--border);
    text-transform: none;
    letter-spacing: 0;
    height: auto !important;
    line-height: 1.4;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.primary-navigation ul ul li:last-child > a { border-bottom: none; }
.primary-navigation ul ul a:hover {
    background: var(--red-light);
    color: var(--red);
    padding-left: 26px;
}
/* Third level - position to the right */
.primary-navigation ul ul ul {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 3px solid var(--red);
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider {
    position: relative;
    background: var(--dark);
    height: 480px;
    width: 100%;
    overflow: hidden; /* only on outer wrapper */
}
.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
    will-change: transform;
    /* width set by JS */
}
.slide {
    flex-shrink: 0;
    width: 100vw; /* fallback; JS overwrites with px */
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    /* NO overflow:hidden here — it hides the image */
}
.slide-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.slide-media-color {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
    z-index: 1;
}
.slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px 48px; /* extra side padding so text clears arrows */
}
.slide-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 12px;
    border-radius: 2px;
}
.slide-title {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    max-width: 680px;
    margin-bottom: 16px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.slide-cta {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 11px 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.2s;
    border-radius: 2px;
}
.slide-cta:hover { background: var(--red-dark); color: #fff; }

/* ARROWS — must be children of .hero-slider and use z-index above slide content */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;  /* above slide content (z-index 3) and overlay (z-index 1) */
    background: rgba(0, 0, 0, 0.50);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
    width: 48px;
    height: 48px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-prev:hover,
.slider-next:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
    outline: none;
}
.slider-dot.is-active {
    background: var(--red);
    transform: scale(1.2);
}

/* =============================================
   COUNTER BAR
   ============================================= */
.counter-bar {
    background: var(--dark);
    padding: 18px 0;
}
.counter-bar .container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.counter-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #aaa;
    flex-shrink: 0;
}
.counter-digits { display: flex; gap: 4px; }
.digit-box {
    background: var(--red);
    color: #fff;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    width: 36px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}
.counter-cta {
    margin-left: auto;
    border: 1px solid rgba(255,255,255,0.25);
    color: #ddd;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: border-color 0.2s, color 0.2s;
}
.counter-cta:hover { border-color: var(--red); color: #fff; }

/* =============================================
   MAIN CONTENT LAYOUT
   ============================================= */
.content-area {
    padding: 40px 0;
}
.content-area .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* =============================================
   NEWS GRID
   ============================================= */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}
.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.news-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.news-card.is-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}
.card-thumbnail {
    background: #ccc;
    overflow: hidden;
    position: relative;
}
.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.news-card:hover .card-thumbnail img { transform: scale(1.03); }
.card-thumbnail-placeholder {
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.news-card.is-featured .card-thumbnail { padding-top: 0; min-height: 240px; }
.news-card.is-featured .card-thumbnail-placeholder { padding-top: 0; height: 100%; min-height: 240px; }

.card-body { padding: 20px; }
.news-card.is-featured .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.card-date-block {
    background: var(--red);
    color: #fff;
    text-align: center;
    padding: 4px 8px;
    line-height: 1.3;
    min-width: 44px;
    flex-shrink: 0;
}
.card-date-block .day { display: block; font-size: 16px; font-weight: 700; }
.card-date-block .mon { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.card-category {
    font-size: 11px;
    color: var(--red);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.card-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 10px;
    transition: color 0.2s;
}
.card-title a { color: inherit; }
.news-card:hover .card-title,
.card-title a:hover { color: var(--red); }
.card-excerpt {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

/* NEWS LIST (recent posts) */
.news-list { margin-bottom: 32px; }
.news-list-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.news-list-item:last-child { border-bottom: none; }
.list-date {
    flex-shrink: 0;
    background: var(--red);
    color: #fff;
    width: 40px;
    padding: 5px 0;
    text-align: center;
    border-radius: 2px;
    line-height: 1.3;
    height: fit-content;
}
.list-date .day { display: block; font-size: 15px; font-weight: 700; }
.list-date .mon { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; }
.list-title {
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 1.45;
    color: var(--dark);
    transition: color 0.2s;
    align-self: center;
}
.news-list-item:hover .list-title { color: var(--red); }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { }
.widget-area .widget {
    background: var(--white);
    border: 1px solid var(--border);
    margin-bottom: 28px;
    overflow: hidden;
}
.widget .widget-title {
    background: var(--dark);
    color: #fff;
    padding: 12px 16px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}
.widget .widget-title.is-red { background: var(--red); }
.widget-content { padding: 16px; }

.widget-stat {
    text-align: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.widget-stat:last-child { border-bottom: none; }
.widget-stat .stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    margin-bottom: 4px;
}
.widget-stat .stat-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.widget-donate-btn {
    display: block;
    background: var(--red);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 16px 16px;
    border-radius: 2px;
    transition: background 0.2s;
}
.widget-donate-btn:hover { background: var(--red-dark); color: #fff; }

.widget-region-list { }
.widget-region-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    transition: background 0.15s;
    cursor: pointer;
    color: var(--dark);
}
.widget-region-item:last-child { border-bottom: none; }
.widget-region-item:hover { background: var(--red-light); color: var(--red); }
.widget-region-item .arrow { color: var(--red); font-size: 12px; }

/* =============================================
   HIGHLIGHT BAND
   ============================================= */
.highlight-band {
    background: var(--red);
    padding: 48px 0;
}
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}
.highlight-card { color: #fff; }
.highlight-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    color: #fff;
}
.highlight-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}
.highlight-card a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 2px;
    transition: border-color 0.2s;
}
.highlight-card a:hover { border-color: #fff; color: #fff; }

/* =============================================
   REGIONS STRIP
   ============================================= */
.regions-strip {
    background: #f0f0f0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}
.regions-strip h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 14px;
}
.region-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.region-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.region-link::before { content: '›'; color: var(--red); font-size: 16px; line-height: 1; }
.region-link:hover { background: var(--red); border-color: var(--red); color: #fff; }
.region-link:hover::before { color: #fff; }

/* =============================================
   SITE FOOTER
   ============================================= */
.site-footer {
    background: #111;
    color: #ccc;
    padding: 48px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo-mark {
    width: 40px;
    height: 40px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    flex-shrink: 0;
}
.footer-logo-mark span {
    color: #fff;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}
.footer-site-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.footer-about-text {
    font-size: 13px;
    line-height: 1.7;
    color: #aaa;
    margin-bottom: 14px;
}
.footer-contact-info {
    font-size: 13px;
    color: #888;
    line-height: 1.9;
}
.footer-widget-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    font-family: var(--font-body);
}
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { font-size: 13px; color: #aaa; transition: color 0.2s; }
.footer-nav a:hover { color: var(--red); }

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 18px 0;
}
.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 12px; color: #666; margin: 0; }
.footer-legal-links { display: flex; gap: 16px; }
.footer-legal-links a { font-size: 12px; color: #666; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--red); }

.footer-company-bar {
    background: #0a0a0a;
    text-align: center;
    padding: 12px 20px;
}
.footer-company-bar p { font-size: 11px; color: #444; margin: 0; }

/* =============================================
   COOKIE NOTICE
   ============================================= */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #222;
    color: #ddd;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 9999;
    font-size: 13px;
}
.cookie-notice.is-hidden { display: none; }
.cookie-notice a { color: var(--red); }
.cookie-accept {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 7px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 2px;
    font-family: var(--font-body);
    transition: background 0.2s;
}
.cookie-accept:hover { background: var(--red-dark); }

/* =============================================
   SINGLE POST
   ============================================= */
.single-article {
    max-width: 800px;
}
.entry-header { margin-bottom: 28px; }
.entry-category {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 14px;
    border-radius: 2px;
}
.entry-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--dark);
}
.entry-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.entry-meta a { color: var(--red); }
.entry-thumbnail { margin-bottom: 28px; }
.entry-thumbnail img { width: 100%; border-radius: 2px; }
.entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--mid);
}
.entry-content h2 { font-size: 26px; margin: 28px 0 14px; color: var(--dark); }
.entry-content h3 { font-size: 21px; margin: 24px 0 12px; color: var(--dark); }
.entry-content p { margin-bottom: 1.2em; }
.entry-content a { color: var(--red); text-decoration: underline; }
.entry-content blockquote {
    border-left: 4px solid var(--red);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--red-light);
    font-style: italic;
    font-size: 18px;
    color: var(--mid);
}
.entry-content ul, .entry-content ol {
    margin: 0 0 1.2em 24px;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    margin: 32px 0;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--dark);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pagination a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }

/* =============================================
   SEARCH FORM
   ============================================= */
.search-form {
    display: flex;
    gap: 0;
}
.search-form .search-field {
    flex: 1;
    border: 1px solid var(--border);
    padding: 9px 12px;
    font-size: 13px;
    font-family: var(--font-body);
    outline: none;
    border-right: none;
}
.search-form .search-field:focus { border-color: var(--red); }
.search-form .search-submit {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 9px 16px;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: background 0.2s;
}
.search-form .search-submit:hover { background: var(--red-dark); }

/* =============================================
   404 / NO RESULTS
   ============================================= */
.not-found { text-align: center; padding: 80px 20px; }
.not-found h1 { font-size: 80px; color: var(--red); margin-bottom: 16px; }
.not-found p { font-size: 18px; color: var(--muted); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .highlight-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
.site-branding{ display: none; }
    .primary-navigation { display: none; }
    .primary-navigation.is-open {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        z-index: 900;
        height: auto;
        max-height: 70vh;
        overflow-y: auto;
    }
    .primary-navigation.is-open > ul {
        flex-direction: column;
        height: auto;
    }
    .primary-navigation.is-open > ul > li {
        height: auto;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .primary-navigation.is-open > ul > li > a {
        height: auto;
        padding: 14px 20px;
        border-bottom: none;
        justify-content: space-between;
    }
    /* Mobile dropdown */
    .primary-navigation.is-open ul ul {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border);
        background: #f9f9f9;
        display: none;
        width: 100%;
    }
    .primary-navigation.is-open ul li.is-open > ul { display: block; }
    .primary-navigation.is-open ul ul a { padding-left: 32px; }
    .menu-toggle { display: flex; }
    .content-area .container { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card.is-featured { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-slider { height: 320px; }
    .slide-title { font-size: 26px; }
    .highlight-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .region-links { flex-direction: column; }
    .utility-bar .social-links, .utility-bar .lang-links { display: none; }
}
