/*
Theme Name: ProthomAlo News
Theme URI: https://example.com/prothomalo-news
Author: Custom Theme
Author URI: https://example.com
Description: A professional Bangla news portal theme inspired by Prothom Alo. Features breaking news ticker, category navigation, responsive grid layout, and full Bengali typography support.
Version: 1.0.0
Requires at least: 5.8
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: prothomalo-news
Tags: news, magazine, blog, responsive, custom-menu, featured-images, widgets
*/

/* =========================================
   CSS VARIABLES
   ========================================= */
:root {
    --color-primary: #d0021b;
    --color-primary-dark: #a80016;
    --color-primary-light: #f5e6e8;
    --color-secondary: #1a1a2e;
    --color-accent: #e8a000;
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-text-light: #888;
    --color-border: #e0e0e0;
    --color-border-light: #f0f0f0;
    --color-bg: #f5f5f5;
    --color-bg-white: #ffffff;
    --color-bg-dark: #1a1a2e;
    --font-bengali: 'Noto Serif Bengali', 'SolaimanLipi', 'Kalpurush', serif;
    --font-english: 'Georgia', 'Times New Roman', serif;
    --font-ui: 'Noto Sans Bengali', 'Tahoma', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --radius-sm: 3px;
    --radius-md: 6px;
    --container-width: 1200px;
    --gap: 20px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-bengali);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    direction: ltr;
}

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

a:hover {
    color: var(--color-primary);
}

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

ul { list-style: none; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-bengali);
    font-weight: 700;
    line-height: 1.3;
}

/* =========================================
   LAYOUT
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.site-wrapper {
    background: var(--color-bg);
}

/* =========================================
   TOP BAR
   ========================================= */
.top-bar {
    background: var(--color-secondary);
    color: #ccc;
    font-size: 12px;
    font-family: var(--font-ui);
    padding: 5px 0;
    border-bottom: 2px solid var(--color-primary);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-date {
    color: #aaa;
    font-size: 11px;
}

.top-bar-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar-links a {
    color: #ccc;
    font-size: 11px;
    transition: color 0.2s;
}

.top-bar-links a:hover {
    color: #fff;
}

.top-bar-links .epaper-btn {
    background: var(--color-primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 2px;
    font-weight: 600;
}

/* =========================================
   SITE HEADER
   ========================================= */
.site-header {
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.site-branding {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.site-title {
    font-size: 38px;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -1px;
    line-height: 1;
    font-family: var(--font-bengali);
}

.site-title a {
    color: var(--color-primary);
}

.site-tagline {
    font-size: 11px;
    color: var(--color-text-muted);
    font-family: var(--font-ui);
    letter-spacing: 0.5px;
}

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

.header-ad-space {
    width: 300px;
    height: 60px;
    background: linear-gradient(135deg, #f8f8f8, #eee);
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #999;
    font-family: var(--font-ui);
    border-radius: var(--radius-sm);
}

.header-search-btn,
.header-login-btn {
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-ui);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.header-search-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-search-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.header-login-btn {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.header-login-btn:hover {
    background: var(--color-primary-dark);
}

/* =========================================
   PRIMARY NAVIGATION
   ========================================= */
.primary-nav {
    background: var(--color-primary);
    position: relative;
}

.primary-nav .container {
    display: flex;
    align-items: stretch;
}

.primary-nav ul {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.primary-nav ul li {
    position: relative;
}

.primary-nav ul li a {
    display: block;
    padding: 11px 16px;
    color: #fff;
    font-size: 14px;
    font-family: var(--font-bengali);
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: background 0.2s;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item a {
    background: rgba(0,0,0,0.2);
    color: #fff;
}

.primary-nav ul li:first-child a {
    border-left: none;
}

/* Dropdown */
.primary-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    border-top: 3px solid var(--color-primary);
    flex-direction: column;
}

.primary-nav ul li:hover > ul {
    display: flex;
}

.primary-nav ul li ul li a {
    color: var(--color-text);
    padding: 10px 18px;
    border-right: none;
    border-bottom: 1px solid var(--color-border-light);
    font-weight: 500;
    font-size: 13px;
}

.primary-nav ul li ul li a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* =========================================
   BREAKING NEWS TICKER
   ========================================= */
.breaking-news {
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
    overflow: hidden;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 0;
}

.breaking-label {
    background: var(--color-primary);
    color: white;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-ui);
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.breaking-label::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    height: 100%;
    width: 8px;
    background: var(--color-primary);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.breaking-ticker-wrapper {
    flex: 1;
    overflow: hidden;
    margin-left: 20px;
}

.breaking-ticker {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.breaking-ticker a {
    display: inline-block;
    font-size: 13px;
    color: var(--color-text);
    padding: 0 30px;
    font-family: var(--font-bengali);
    font-weight: 500;
}

.breaking-ticker a::before {
    content: '|';
    margin-right: 30px;
    color: var(--color-border);
}

.breaking-ticker a:hover {
    color: var(--color-primary);
}

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

/* =========================================
   MAIN CONTENT AREA
   ========================================= */
.site-main {
    padding: 20px 0;
}

/* =========================================
   SECTION TITLES
   ========================================= */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.section-title h2 {
    font-size: 20px;
    color: var(--color-primary);
    font-weight: 800;
}

.section-title .section-more {
    margin-left: auto;
    font-size: 12px;
    color: var(--color-text-muted);
    font-family: var(--font-ui);
    border: 1px solid var(--color-border);
    padding: 3px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}

.section-title .section-more:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* =========================================
   FEATURED / HERO SECTION
   ========================================= */
.hero-section {
    background: var(--color-bg-white);
    margin-bottom: var(--gap);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
}

.hero-main {
    grid-column: 1;
    grid-row: 1 / 3;
}

.hero-main .post-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.hero-main .post-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 12px;
    color: var(--color-text);
}

.hero-main .post-excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 8px;
    line-height: 1.7;
}

.hero-secondary,
.hero-tertiary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================================
   POST CARD COMPONENTS
   ========================================= */
.post-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-card--horizontal {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.post-card--horizontal:last-child {
    border-bottom: none;
}

.post-card--horizontal .post-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.post-card--horizontal .post-content {
    flex: 1;
}

.post-card--vertical .post-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-card--vertical .post-content {
    padding: 10px 0;
}

.post-card--small {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.post-card--small .post-thumb {
    width: 80px;
    height: 55px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.post-thumb {
    transition: opacity 0.2s;
}

.post-thumb:hover {
    opacity: 0.9;
}

.post-category {
    font-size: 11px;
    font-family: var(--font-ui);
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: inline-block;
}

.post-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    transition: color 0.2s;
}

.post-title:hover,
a:hover .post-title {
    color: var(--color-primary);
}

.post-title--large {
    font-size: 20px;
}

.post-title--small {
    font-size: 13px;
    font-weight: 600;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--color-text-light);
    font-family: var(--font-ui);
}

.post-meta .dot {
    width: 3px;
    height: 3px;
    background: var(--color-border);
    border-radius: 50%;
}

.post-excerpt {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   MAIN CONTENT GRID
   ========================================= */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--gap);
    align-items: start;
}

.content-main {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

/* =========================================
   NEWS SECTIONS
   ========================================= */
.news-section {
    background: var(--color-bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

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

.news-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.news-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.news-main-side {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

/* =========================================
   OPINION SECTION
   ========================================= */
.opinion-section {
    background: var(--color-bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.opinion-card {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
    align-items: flex-start;
}

.opinion-card:last-child {
    border-bottom: none;
}

.author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--color-border);
}

.opinion-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 4px;
}

.author-name {
    font-size: 12px;
    color: var(--color-text-muted);
    font-family: var(--font-ui);
}

/* =========================================
   SIDEBAR WIDGETS
   ========================================= */
.sidebar-widget {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    background: var(--color-primary);
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-bengali);
}

.widget-content {
    padding: 12px 15px;
}

.trending-list {
    display: flex;
    flex-direction: column;
}

.trending-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-light);
    align-items: flex-start;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-num {
    font-size: 22px;
    font-weight: 900;
    color: var(--color-border);
    line-height: 1;
    flex-shrink: 0;
    font-family: 'Georgia', serif;
    min-width: 30px;
}

.trending-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-text);
    transition: color 0.2s;
}

.trending-title:hover {
    color: var(--color-primary);
}

.ad-widget {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    padding: 15px;
    text-align: center;
}

.ad-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f8f8, #ececec);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 12px;
    font-family: var(--font-ui);
    gap: 8px;
}

/* =========================================
   SPORTS SECTION
   ========================================= */
.sports-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.sports-section .section-title h2 {
    color: #fff;
}

.sports-section .section-title {
    border-bottom-color: var(--color-accent);
}

.sports-section .section-more {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
}

.sports-section .post-title {
    color: #eee;
}

.sports-section .post-meta {
    color: rgba(255,255,255,0.5);
}

.sports-section .post-card--horizontal {
    border-bottom-color: rgba(255,255,255,0.1);
}

/* =========================================
   SPECIAL MARQUEE / BANNER
   ========================================= */
.category-bar {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: var(--gap);
    display: flex;
}

.category-bar-label {
    background: var(--color-secondary);
    color: white;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--font-ui);
}

.category-bar-items {
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-bar-items a {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    font-family: var(--font-ui);
    color: var(--color-text);
    transition: all 0.2s;
}

.category-bar-items a:hover,
.category-bar-items a.active {
    background: var(--color-primary);
    color: white;
}

/* =========================================
   SITE FOOTER
   ========================================= */
.site-footer {
    background: var(--color-secondary);
    color: #ccc;
    margin-top: 40px;
}

.footer-top {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-about .footer-logo {
    font-size: 30px;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-family: var(--font-bengali);
}

.footer-about p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
}

.footer-widget h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
    font-family: var(--font-bengali);
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
    font-family: var(--font-ui);
}

.footer-widget ul li a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    cursor: pointer;
    font-family: var(--font-ui);
    text-decoration: none;
}

.social-btn.fb { background: #1877f2; color: white; }
.social-btn.tw { background: #1da1f2; color: white; }
.social-btn.yt { background: #ff0000; color: white; }
.social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }

.footer-bottom {
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    font-family: var(--font-ui);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

/* =========================================
   SINGLE POST
   ========================================= */
.single-article {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.article-header {
    margin-bottom: 20px;
}

.article-title {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 12px;
}

.article-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-light);
    font-family: var(--font-ui);
    padding: 12px 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 20px;
}

.article-author-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.article-featured-img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text);
    font-family: var(--font-bengali);
}

.article-content p {
    margin-bottom: 18px;
}

.article-content h2 {
    font-size: 22px;
    margin: 25px 0 12px;
    color: var(--color-text);
}

.article-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--color-primary-light);
    color: var(--color-text-muted);
    font-style: italic;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid var(--color-border-light);
    margin-top: 20px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-ui);
    cursor: pointer;
    border: none;
    color: white;
    font-weight: 600;
}

.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }
.share-btn.copy { background: #555; }

/* =========================================
   SEARCH FORM
   ========================================= */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-inner {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 600px;
}

.search-overlay input {
    width: 100%;
    padding: 12px 15px;
    font-size: 18px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    font-family: var(--font-bengali);
    outline: none;
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-ui);
    border: 1px solid var(--color-border);
    background: white;
    color: var(--color-text);
    transition: all 0.2s;
}

.pagination a:hover,
.pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* =========================================
   MOBILE MENU
   ========================================= */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text);
    padding: 5px;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-main {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .news-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-ad-space {
        display: none;
    }

    .site-title {
        font-size: 28px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .primary-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary);
        z-index: 999;
    }

    .primary-nav ul.open {
        display: flex;
    }

    .primary-nav ul li a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        grid-column: 1;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .news-grid-3,
    .news-grid-2 {
        grid-template-columns: 1fr;
    }

    .news-main-side {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 22px;
    }

    .top-bar {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero-main .post-title {
        font-size: 20px;
    }

    .news-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.text-red { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.clearfix::after { content: ''; display: table; clear: both; }

/* WordPress Core Classes */
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin: 0 auto 10px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--color-text-light); margin-top: 5px; font-family: var(--font-ui); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.sticky { position: relative; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
