/*
Theme Name: Gray Tree media
Theme URI: https://example.com
Author: Gray Tree media
Author URI: https://example.com
Description: Gray Tree media WordPress theme
Version: 11.0
License: GNU General Public License v2 or later
Text Domain: gray-tree-media
*/

/* ===== CSS VARIABLES (Light Mode Default) ===== */
:root {
    --primary-blue: #1e3a8a;
    --dark-blue: #172554;
    --secondary-blue: #2563eb;
    --light-blue: #eff6ff;
    --accent-blue: #3b82f6;
    --primary-red: #dc2626;
    --dark-red: #991b1b;
    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 24px 40px -20px rgba(15, 23, 42, 0.35);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --headline-font: 'Source Serif 4', Georgia, serif;
}

/* ===== DARK MODE OVERRIDES ===== */
body.dark-mode {
    --white: #1e293b;
    --off-white: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --light-blue: rgba(37, 99, 235, 0.1);
}

/* ===== BASE STYLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.08), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, var(--off-white) 22%, #eef3f9 100%);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
::selection { background: rgba(37, 99, 235, 0.18); color: var(--text-dark); }

/* ===== TOP BAR ===== */
.top-bar { background: linear-gradient(90deg, rgba(15,23,42,0.98), rgba(30,41,59,0.94)); color: var(--white); padding: 10px 0; font-size: 0.85rem; border-bottom: 2px solid var(--secondary-blue); position: relative; z-index: 1001; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 15px; }

.dark-mode-toggle {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}
.dark-mode-toggle:hover { background: rgba(255,255,255,0.16); }

/* ===== HEADER ===== */
.site-header {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.08), transparent 32%),
        linear-gradient(135deg, #0f274f 0%, var(--primary-blue) 52%, #295fd1 100%) !important;
    padding: 44px 0 40px;
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-branding { display: flex; flex-direction: column; align-items: center; }
.site-title {
    font-family: var(--headline-font);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.03em;
    line-height: 0.95;
    margin: 0;
    max-width: 12ch;
}
.site-title a { color: var(--white) !important; }
.site-tagline { font-size: 1rem; opacity: 0.88; margin-top: 12px; color: rgba(255,255,255,0.9); max-width: 52ch; }

/* ===== NAVIGATION ===== */
.main-navigation { background: rgba(255,255,255,0.92); position: sticky; top: 0; z-index: 2000; box-shadow: 0 18px 30px -26px rgba(15, 23, 42, 0.6); border-bottom: 1px solid rgba(30,58,138,0.1); backdrop-filter: blur(12px); }
.nav-container { height: 70px; display: flex; align-items: center; justify-content: center; position: relative; }
.nav-menu { list-style: none; display: flex; margin: 0; padding: 0; }
.nav-menu a { padding: 0 18px; line-height: 70px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem; color: var(--text-dark); display: block; position: relative; }
.nav-menu a:hover { color: var(--primary-blue); background: rgba(239,246,255,0.75); }

.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--text-dark); position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }
.search-toggle { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-dark); position: absolute; right: 15px; top: 50%; transform: translateY(-50%); }

/* ===== SEARCH UI ===== */
.search-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(30, 58, 138, 0.98); z-index: 9999; display: none; align-items: center; justify-content: center; }
.search-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
.search-form-overlay { display: flex; flex-direction: row; width: 90%; max-width: 800px; gap: 10px; padding: 20px; }
.search-input { flex: 1; padding: 18px 30px; border-radius: 50px; border: none; font-size: 1.2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.search-submit { background: var(--primary-red); color: #fff; padding: 0 35px; border-radius: 50px; border: none; font-weight: 900; cursor: pointer; }
.search-close { position: absolute; top: 30px; right: 40px; background: none; border: none; color: #fff; font-size: 3.5rem; cursor: pointer; line-height: 1; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== TICKER (EN DIRECT) ===== */
.breaking-news-bar { background: var(--primary-red); color: var(--white); height: 45px; display: flex; align-items: center; overflow: hidden; position: relative; z-index: 1500; }
.breaking-label { background: var(--dark-red); padding: 0 20px; height: 100%; display: flex; align-items: center; font-weight: 900; font-size: 0.75rem; z-index: 10; position: absolute; left: 0; }
.ticker-wrap { display: flex; white-space: nowrap; padding-left: 100%; animation: ticker-scroll 30s linear infinite; }
.ticker-item { margin-right: 50px; font-weight: 600; display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-200%); } }

/* ===== CONTENT AREA ===== */
.main-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 44px; }
.content-area { width: 100%; min-width: 0; }
.section-title {
    font-family: var(--headline-font);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(30,58,138,0.14);
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: none;
    letter-spacing: -0.02em;
}

/* ===== ARTICLE CARDS ===== */
.hero-main-article { background: rgba(255,255,255,0.96); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); margin-bottom: 42px; border: 1px solid rgba(255,255,255,0.75); }
.hero-image { position: relative; }
.hero-image::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(15,23,42,0.18)); pointer-events: none; }
.hero-image img { width: 100%; height: 500px; object-fit: cover; }
.hero-details { padding: 30px; }
.hero-details h3 { font-family: var(--headline-font); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 700; margin-bottom: 15px; line-height: 1.06; letter-spacing: -0.03em; }
.hero-details .synthesis { color: var(--text-light); font-size: 1rem; margin-bottom: 20px; }

.featured-grid-3, .editor-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 50px; }
.featured-card, .editor-card-compact { background: rgba(255,255,255,0.96); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 28px -22px rgba(15,23,42,0.38); transition: var(--transition); display: flex; flex-direction: column; border: 1px solid rgba(226,232,240,0.9); }
.featured-card:hover, .editor-card-compact:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -28px rgba(15,23,42,0.45); }
.card-thumb img { width: 100%; height: 200px; object-fit: cover; }
.card-content, .card-body { padding: 20px; flex: 1; }
.card-content h4, .card-body h4 { font-family: var(--headline-font); font-size: 1.25rem; line-height: 1.18; margin-bottom: 10px; font-weight: 700; letter-spacing: -0.02em; }
.synthesis { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* ===== VIDEO HUB ===== */
.video-hub-premium { background: linear-gradient(180deg, #061425 0%, #0b1d33 100%); padding: 50px 30px; border-radius: var(--radius-xl); color: #fff; margin-bottom: 56px; box-shadow: var(--shadow-xl); }
.section-sponsors { background: var(--white); padding: 40px 0; border-radius: var(--radius-lg); margin-bottom: 50px; box-shadow: var(--shadow); }
.sponsors-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; }
.sponsor-item { max-width: 150px; transition: var(--transition); }
.sponsor-item:hover { transform: scale(1.1); }
.sponsor-logo { width: 100%; height: auto; display: block; }
.video-container-main { display: grid; grid-template-columns: 2.2fr 1fr; gap: 30px; }
.video-player-box { background: #111; border-radius: var(--radius); overflow: hidden; border: 1px solid #334155; }
.aspect-16-9 { position: relative; padding-bottom: 56.25%; height: 0; }
.aspect-16-9 iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.v-item { display: flex; gap: 15px; padding: 12px; background: rgba(255,255,255,0.08); border-radius: 8px; cursor: pointer; transition: var(--transition); margin-bottom: 10px; width: 100%; border: 1px solid transparent; text-align: left; }
.v-thumb-container { position: relative; width: 110px; height: 70px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.v-thumb-image { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.v-thumb-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); }
.v-thumb-play { color: #fff; font-size: 24px; }
.v-thumb-duration { position: absolute; bottom: 5px; right: 5px; background: var(--secondary-blue); color: #fff; font-size: 10px; padding: 2px 5px; border-radius: 2px; font-weight: bold; }
.v-item-title { margin: 0; color: #fff; font-size: 0.85rem; line-height: 1.3; }

/* ===== SUPPORT SECTION ===== */
.support-section { background: linear-gradient(135deg, #0d2b56 0%, var(--primary-blue) 55%, #3474ff 100%); padding: 44px 20px; color: var(--white); text-align: center; margin: 40px 0; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); }
.payment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; max-width: 900px; margin: 0 auto; }
.payment-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); padding: 20px; border-radius: 18px; cursor: pointer; color: var(--white); display: flex; flex-direction: column; align-items: center; font: inherit; backdrop-filter: blur(10px); }
.payment-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.82); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.payment-modal-content { background: #fff; color: var(--text-dark); width: min(100%, 720px); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.payment-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.payment-title { margin: 0; color: #1e3a8a; }
.payment-modal-close { cursor: pointer; font-size: 30px; font-weight: bold; background: none; border: 0; }
.payment-form-wrapper { padding-top: 20px; }
.payment-modal-actions { margin-top: 20px; text-align: center; }
.payment-modal-back { background: #ccc; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; }
.payment-card.featured { border-color: rgba(255,255,255,0.65); transform: translateY(-2px); }

/* ===== QUI SOMMES NOUS ===== */
.about-page-wrapper { margin-bottom: 80px; }
.about-hero { padding: 100px 20px; text-align: center; color: #fff; margin-bottom: 50px; background-size: cover !important; position: relative; }
.about-title { font-size: 3.5rem; font-weight: 900; margin-bottom: 15px; text-transform: uppercase; line-height: 1.1; }
.about-subtitle { font-size: 1.3rem; opacity: 0.9; max-width: 800px; margin: 0 auto; }

.about-content-grid { display: grid; grid-template-columns: 1fr 350px; gap: 40px; margin-bottom: 80px; }
.sub-section-title { font-size: 1.8rem; color: var(--primary-blue); margin: 40px 0 25px; border-left: 6px solid var(--primary-blue); padding-left: 20px; font-weight: 800; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 50px; }
.value-card { background: var(--white); padding: 35px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); border-top: 5px solid var(--primary-blue); border: 1px solid var(--gray-100); }
.mission-vision-modern { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.m-v-card { padding: 45px; border-radius: var(--radius-lg); color: #fff; }
.m-v-card.mission { background: var(--primary-blue); }
.m-v-card.vision { background: var(--dark-blue); }

/* ===== FOOTER (STRICT LAPTOP FIX) ===== */
.site-footer { background: linear-gradient(180deg, #0b1322 0%, var(--gray-900) 100%); color: var(--white); padding: 70px 0 0; border-top: 6px solid var(--primary-blue); margin-top: 80px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}
.footer-logo { margin-top: 20px; }
.footer-newsletter { margin-top: 25px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-newsletter-title { color: #fff; margin-bottom: 10px; font-size: 0.95rem; }
.footer-newsletter-form { display: flex; gap: 5px; }
.footer-newsletter-input { flex: 1; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.08); color: #fff; border-radius: 10px; font-size: 0.85rem; }
.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.66); }
.footer-newsletter-button { background: var(--primary-blue); color: #fff; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; }
.footer-credits { opacity: 0.7; margin-top: 5px; display: block; }

.sidebar .widget { background: rgba(255,255,255,0.96); border-radius: 18px; border: 1px solid rgba(226,232,240,0.9); box-shadow: 0 16px 34px -26px rgba(15,23,42,0.35); padding: 22px; margin-bottom: 24px; }
.sidebar .widget .widget-title { margin: -22px -22px 18px; padding: 16px 22px; border-bottom: 1px solid rgba(226,232,240,0.9); background: rgba(248,250,252,0.9); color: var(--text-dark); }
.radio-widget-sidebar { background: #111 !important; color: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #333; box-shadow: var(--shadow-xl); padding: 0 !important; }
.radio-widget-title { background: var(--primary-blue); color: #fff; margin: 0; padding: 15px; display: flex; align-items: center; gap: 10px; border: none; font-size: 1rem; }
.radio-widget-icon { font-size: 20px; }
.live-pulse-container { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 900; background: rgba(0,0,0,0.3); padding: 4px 8px; border-radius: 20px; }
.pulse-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 rgba(34, 197, 94, 0.4); animation: pulse-green 2s infinite; }
.radio-player-container { padding: 20px; }
.radio-widget-note { font-size: 11px; color: #888; margin-top: 15px; text-align: center; font-style: italic; }
.radio-widget-note-icon { font-size: 14px; }
.radio-widget-sidebar .afpr-play-btn { background: var(--primary-blue) !important; color: #fff !important; }
.radio-widget-sidebar .afpr-radio-player { background: transparent !important; border: none !important; }
.radio-widget-sidebar .afpr-station-item { background: rgba(255,255,255,0.05) !important; border: 1px solid rgba(255,255,255,0.1) !important; border-radius: 8px !important; margin-bottom: 10px !important; }
.sidebar-recent-list { display: flex; flex-direction: column; gap: 15px; }
.sidebar-recent-item { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--gray-100); }
.sidebar-recent-item:last-child { border-bottom: none; }
.sidebar-recent-thumb { width: 80px; height: 60px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.sidebar-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent-content h4 { font-size: 0.9rem; line-height: 1.3; font-weight: 700; margin-bottom: 5px; color: var(--text-dark); }
.sidebar-recent-content .date { font-size: 0.75rem; color: var(--text-light); }
.sidebar-video-item { margin-bottom: 15px; }
.sidebar-video-thumb { position: relative; cursor: pointer; border-radius: 6px; overflow: hidden; display: block; }
.play-icon-overlay { position: absolute; top:50%; left:50%; transform: translate(-50%, -50%); background: rgba(30, 58, 138, 0.8); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.search-header { background: linear-gradient(135deg, #0d2d5a, var(--primary-blue), var(--secondary-blue)); color: #fff; padding: 40px; border-radius: var(--radius-xl); margin-bottom: 40px; text-align: center; box-shadow: var(--shadow-xl); }
.search-header-title { font-size: 2rem; margin-bottom: 10px; }
.search-header-icon { margin-right: 10px; }
.search-header-text { opacity: 0.9; }
.search-header-stats { margin-top: 15px; font-size: 0.9rem; opacity: 0.8; }
.search-form-card { background: var(--white); padding: 30px; border-radius: var(--radius-lg); margin-bottom: 40px; box-shadow: var(--shadow); }
.search-page-form { display: flex; gap: 10px; }
.search-page-input { flex: 1; padding: 15px; border: 2px solid var(--gray-200); border-radius: var(--radius); }
.search-page-button { background: var(--primary-red); color: #fff; border: none; padding: 15px 30px; border-radius: var(--radius); font-weight: 700; }
.search-results-grid { grid-template-columns: repeat(2, 1fr); }
.search-result-excerpt { color: var(--text-light); font-size: 0.9rem; }
.search-pagination { margin-top: 50px; text-align: center; }
.search-empty-state { text-align: center; padding: 60px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.search-empty-icon { font-size: 4rem; color: var(--gray-300); margin-bottom: 20px; }
.search-empty-text { color: var(--text-light); }
.search-empty-link { display: inline-block; margin-top: 20px; background: var(--primary-blue); }

.not-found-layout { display: block; max-width: 800px; }
.not-found-card { text-align: center; padding: 80px 20px; background: rgba(255,255,255,0.96); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); margin: 40px auto; }
.not-found-code { font-size: 8rem; font-weight: 900; color: var(--primary-red); line-height: 1; margin-bottom: 20px; text-shadow: 4px 4px 0 var(--light-blue); }
.not-found-icon { font-size: 4rem; color: var(--gray-300); margin-bottom: 30px; }
.not-found-title { font-size: 2rem; color: var(--text-dark); margin-bottom: 20px; }
.not-found-text { color: var(--text-light); font-size: 1.1rem; margin-bottom: 40px; }
.not-found-search-wrap { max-width: 500px; margin: 0 auto 40px; }
.not-found-search-form { display: flex; gap: 10px; }
.not-found-search-input { flex: 1; padding: 15px; border: 2px solid var(--gray-200); border-radius: var(--radius); }
.not-found-search-button { background: var(--primary-red); color: #fff; border: none; padding: 15px 25px; border-radius: var(--radius); font-weight: 700; }
.not-found-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.not-found-action { color: #fff; padding: 12px 25px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.not-found-action-primary { background: var(--primary-blue); }
.not-found-action-secondary { background: var(--primary-red); }
.not-found-popular { margin-top: 60px; text-align: left; }
.not-found-popular-title { color: var(--primary-blue); margin-bottom: 25px; text-align: center; }
.not-found-popular-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.not-found-popular-item { background: var(--gray-100); padding: 20px; border-radius: var(--radius); border-left: 4px solid var(--primary-red); }
.not-found-popular-item-title { font-size: 1rem; margin-bottom: 10px; }
.not-found-popular-item-title a { color: var(--text-dark); }
.not-found-popular-meta { font-size: 0.85rem; color: var(--text-light); }

.post-thumbnail-caption { font-size: 0.9rem; color: var(--text-light); margin-top: 10px; text-align: center; font-style: italic; }
.post-page-links { margin: 30px 0; padding: 20px; background: var(--gray-100); border-radius: var(--radius); }
.post-tags-list { margin-top: 10px; }

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.footer-column h3 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; margin-bottom: 25px; border-bottom: 2px solid var(--primary-blue); padding-bottom: 10px; display: flex; align-items: center; gap: 10px; color: #fff; }
.footer-bottom { background: rgba(0,0,0,0.3); padding: 30px 0; text-align: center; font-size: 0.9rem; color: var(--gray-400); border-top: 1px solid rgba(255,255,255,0.05); }

/* ===== GLOBAL MEDIA QUERIES ===== */
@media (max-width: 1200px) {
    .container { padding: 0 30px; }
    .footer-grid { gap: 20px; }
}

@media (max-width: 1100px) {
    .main-container, .about-content-grid { grid-template-columns: 1fr; gap: 50px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar, .about-sidebar { order: 2; }
}

@media (max-width: 768px) {
    /* Responsive Text and Titles */
    .site-title { font-size: 1.8rem; }
    .site-header { padding: 30px 0; }
    .section-title { font-size: 1.2rem; }

    .hero-details h3 { font-size: 1.3rem !important; }
    .hero-image img { height: 250px; }
    .hero-details { padding: 20px; }

    .nav-container { justify-content: space-between; height: 60px; }
    .mobile-menu-toggle { display: block; position: static; transform: none; }
    .search-toggle { position: static; transform: none; }

    .nav-menu {
        display: none;
        position: absolute; top: 60px; left: 0; width: 100%;
        background: var(--white); flex-direction: column;
        box-shadow: var(--shadow-lg); z-index: 3000;
        border-top: 1px solid var(--gray-200);
    }
    .nav-menu.active { display: flex; }
    .nav-menu a { line-height: 50px; border-bottom: 1px solid var(--gray-100); padding: 0 20px; text-align: left; }

    /* Force grids to 1 column on phone */
    .featured-grid-3, .editor-grid-3, .values-grid, .mission-vision-modern, .payment-grid, .search-results-grid { grid-template-columns: 1fr !important; width: 100%; }
    .video-container-main { grid-template-columns: 1fr; }
    .search-page-form, .not-found-search-form { flex-direction: column; }
    .search-page-button, .not-found-search-button { width: 100%; }

    .about-title { font-size: 2.2rem; }
    .about-subtitle { font-size: 1.1rem; }
    .sub-section-title { font-size: 1.5rem; }
    .m-v-card { padding: 30px; }
    .about-hero { padding: 60px 15px; border-radius: 0; }

    .support-section { border-radius: 0; margin: 20px -15px; padding: 40px 15px; }
    .support-title { font-size: 1.4rem; }

    .footer-grid { grid-template-columns: 1fr !important; gap: 40px; text-align: center; }
    .footer-column h3 { justify-content: center; }
}

@media (max-width: 480px) {
    .site-title { font-size: 1.5rem; letter-spacing: 1px; }
    .top-bar-left span:not(:first-child) { display: none; }
    .container { padding: 0 15px; }
    .article-meta { flex-direction: column; gap: 5px; }
}
