/*
Theme Name: MediaHook
Theme URI: https://mediahook.local
Author: MediaHook Team
Author URI: https://mediahook.local
Description: A professional news and think tank theme with editorial design
Version: 1.0.0
Requires at least: 6.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: think-tank
Tags: news, editorial, magazine, think-tank
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: #1a1a1a; background: #fafafa; }
h1,h2,h3,h4,h5,h6 { font-family: Georgia, serif; font-weight: 700; line-height: 1.2; margin-bottom: 0.5em; color: #0d0d0d; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.5rem; } h4 { font-size: 1.25rem; }
p { margin-bottom: 1em; }
a { color: #c0392b; text-decoration: none; transition: color 0.2s; }
a:hover { color: #a93226; text-decoration: underline; }

.site-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-header { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 1rem 0; position: sticky; top: 0; z-index: 1000; text-align: center !important; }
.site-header .site-container { display: block !important; text-align: center !important; }
.site-branding { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; padding: 0.5rem 0; width: 100% !important; }
.site-title { font-size: 1.8rem; font-weight: 700; font-family: Georgia, serif; }
.site-title a { color: #0d0d0d; }
.site-description { font-size: 0.9rem; color: #666; font-style: italic; }
.site-logo-link { display: block !important; text-align: center !important; margin: 0 auto !important; float: none !important; }
.site-logo { display: block !important; margin: 0 auto !important; max-width: 280px !important; width: 280px !important; height: auto !important; float: none !important; }
.site-tagline { font-family: Georgia, serif; font-size: 0.85rem; color: #999; letter-spacing: 3px; text-transform: uppercase; text-align: center !important; margin: -0.3rem auto 0 auto !important; float: none !important; white-space: nowrap; }

.main-navigation { display: flex; justify-content: center; padding: 1rem 0; background: #0d0d0d; }
.main-navigation ul { list-style: none; display: flex; gap: 2rem; }
.main-navigation a { color: #fff; font-weight: 500; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
.main-navigation a:hover { color: #c0392b; text-decoration: none; }

.breaking-news { background: #c0392b; color: #fff; padding: 0.5rem 0; overflow: hidden; }
.breaking-news-inner { display: flex; align-items: center; }
.breaking-label { background: #0d0d0d; padding: 0.25rem 1rem; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; margin-right: 1rem; flex-shrink: 0; }
.breaking-text { white-space: nowrap; animation: ticker 30s linear infinite; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

.featured-section { padding: 2rem 0; }
.featured-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.featured-main { position: relative; border-radius: 4px; overflow: hidden; min-height: 500px; }
.featured-main img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.featured-main .overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; }
.featured-stack { display: flex; flex-direction: column; gap: 1rem; }
.featured-secondary { position: relative; flex: 1; border-radius: 4px; overflow: hidden; min-height: 150px; }
.featured-secondary img { width: 100%; height: 100%; object-fit: cover; position: absolute; }

.content-area { padding: 3rem 0; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }

.article-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; margin-bottom: 2rem; overflow: hidden; transition: box-shadow 0.3s; }
.article-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.article-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.article-card .content { padding: 1.5rem; }
.article-meta { font-size: 0.85rem; color: #666; margin-bottom: 0.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.article-meta .category { color: #c0392b; font-weight: 600; text-transform: uppercase; font-size: 0.75rem; }
.article-card h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.article-card h2 a { color: #0d0d0d; }
.article-card .excerpt { color: #444; font-size: 0.95rem; }

.sidebar { position: sticky; top: 100px; }
.sidebar-widget { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 1.5rem; margin-bottom: 2rem; }
.sidebar-widget h3 { font-size: 1.1rem; border-bottom: 2px solid #c0392b; padding-bottom: 0.5rem; margin-bottom: 1rem; }
.sidebar-widget ul { list-style: none; }
.sidebar-widget li { padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; }
.sidebar-widget li:last-child { border-bottom: none; }

.opinion-section { background: #f5f5f5; padding: 3rem 0; margin: 2rem 0; }
.opinion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.opinion-card { background: #fff; padding: 1.5rem; border-left: 4px solid #c0392b; }
.opinion-card .author { font-weight: 700; margin-bottom: 0.5rem; }
.opinion-card .author-bio { font-size: 0.85rem; color: #666; }

.single-post .entry-header { padding: 2rem 0; border-bottom: 1px solid #e0e0e0; margin-bottom: 2rem; }
.single-post .entry-title { font-size: 2.5rem; margin-bottom: 1rem; }
.single-post .featured-image { margin-bottom: 2rem; }
.single-post .featured-image img { width: 100%; max-height: 500px; object-fit: cover; }
.single-post .entry-content { font-size: 1.1rem; line-height: 1.8; }
.single-post .entry-content p { margin-bottom: 1.5em; }
.single-post .entry-content h2,.single-post .entry-content h3 { margin-top: 2em; }

.site-footer { background: #0d0d0d; color: #fff; padding: 3rem 0 1rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-widget h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-widget ul { list-style: none; }
.footer-widget a { color: #aaa; font-size: 0.9rem; }
.footer-widget a:hover { color: #c0392b; }
.site-info { text-align: center; padding-top: 2rem; border-top: 1px solid #333; font-size: 0.85rem; color: #666; }

.newsletter-section { background: linear-gradient(135deg, #c0392b, #8e44ad); color: #fff; padding: 4rem 0; text-align: center; }
.newsletter-section h2 { color: #fff; margin-bottom: 1rem; }
.newsletter-form { max-width: 500px; margin: 2rem auto 0; display: flex; gap: 0.5rem; }
.newsletter-form input[type="email"] { flex: 1; padding: 1rem; border: none; border-radius: 4px; font-size: 1rem; }
.newsletter-form button { background: #0d0d0d; color: #fff; border: none; padding: 1rem 2rem; border-radius: 4px; cursor: pointer; font-weight: 600; transition: background 0.3s; }
.newsletter-form button:hover { background: #333; }

.category-header { background: #0d0d0d; color: #fff; padding: 3rem 0; text-align: center; }
.category-header h1 { color: #fff; margin-bottom: 0.5rem; }
.category-header p { color: #aaa; }

@media (max-width: 768px) {
    .featured-grid,.content-grid,.opinion-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 2fr; }
    .main-navigation ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .newsletter-form { flex-direction: column; }
}

.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; }
.clearfix::after { content: ""; display: table; clear: both; }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }


/* Latest Articles Section - 3 Column Grid */
.latest-section { padding: 3rem 0; }
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.latest-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; overflow: hidden; transition: box-shadow 0.3s; }
.latest-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.latest-card img { width: 100%; height: 180px; object-fit: cover; }
.latest-card .content { padding: 1.5rem; }
.latest-card h3 { font-size: 1.2rem; margin: 0.5rem 0; line-height: 1.4; }
.latest-card h3 a { color: #0d0d0d; }
.latest-card h3 a:hover { color: #c0392b; }
.latest-card .excerpt { font-size: 0.9rem; color: #666; line-height: 1.6; }

/* Featured Sidebar - Popular Articles */
.featured-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.featured-sidebar { display: flex; flex-direction: column; }
.featured-sidebar .sidebar-widget { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 1.5rem; height: 100%; }
.featured-sidebar h3 { font-size: 1.1rem; border-bottom: 2px solid #c0392b; padding-bottom: 0.5rem; margin-bottom: 1rem; }
.popular-list { list-style: none; margin: 0; padding: 0; }
.popular-list li { padding: 0.75rem 0; border-bottom: 1px solid #f0f0f0; }
.popular-list li:last-child { border-bottom: none; }
.popular-list a { color: #0d0d0d; font-weight: 500; }
.popular-list a:hover { color: #c0392b; }

/* Responsive */
@media (max-width: 992px) {
    .featured-grid { grid-template-columns: 1fr; }
    .latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .latest-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 2fr; }
}


/* About Page Styles */
.about-page { max-width: 800px; margin: 0 auto; }
.about-page h2 { font-family: Georgia, serif; font-size: 2.2em; margin-bottom: 0.5em; }
.about-page h3 { font-family: Georgia, serif; font-size: 1.5em; margin-top: 1.5em; border-bottom: 2px solid #1a1a1a; padding-bottom: 0.3em; }
.about-page p { line-height: 1.8; margin-bottom: 1em; font-size: 1.05em; }
.about-page ul { line-height: 2; }
.about-page ul li { margin-bottom: 0.5em; }
.about-header { background: #f8f8f8; padding: 2em; border-left: 4px solid #1a1a1a; margin-bottom: 2em; }

/* Privacy Policy Page Styles */
.privacy-page { max-width: 800px; margin: 0 auto; }
.privacy-page h2 { font-family: Georgia, serif; font-size: 2.2em; margin-bottom: 0.5em; }
.privacy-page h3 { font-family: Georgia, serif; font-size: 1.4em; margin-top: 1.5em; border-bottom: 2px solid #1a1a1a; padding-bottom: 0.3em; }
.privacy-page h4 { font-size: 1.1em; margin-top: 1.2em; color: #444; }
.privacy-page p { line-height: 1.8; margin-bottom: 1em; font-size: 1.02em; }
.privacy-page ul { line-height: 2; }
.privacy-page ul li { margin-bottom: 0.4em; }
.privacy-header { background: #f8f8f8; padding: 2em; border-left: 4px solid #1a1a1a; margin-bottom: 2em; }


/* Advertise Page Styles */
.advertise-page { max-width: 800px; margin: 0 auto; }
.advertise-page h2 { font-family: Georgia, serif; font-size: 2.2em; margin-bottom: 0.5em; }
.advertise-page h3 { font-family: Georgia, serif; font-size: 1.5em; margin-top: 1.5em; border-bottom: 2px solid #1a1a1a; padding-bottom: 0.3em; }
.advertise-page h4 { font-size: 1.2em; margin-top: 1.2em; color: #444; }
.advertise-page p { line-height: 1.8; margin-bottom: 1em; font-size: 1.05em; }
.advertise-page ul { line-height: 2; }
.advertise-page ul li { margin-bottom: 0.5em; }
.advertise-header { background: #f8f8f8; padding: 2em; border-left: 4px solid #1a1a1a; margin-bottom: 2em; }

/* Get Started CTA Box */
.advertise-cta { background: #f8f8f8; padding: 2em; border-left: 4px solid #1a1a1a; margin: 2em 0; }
.advertise-cta h3 { border-bottom: none; margin-top: 0; padding-bottom: 0; }
.advertise-cta p { margin-bottom: 0; }
/* ===== MOBILE RESPONSIVE - SINGLE POST PAGES ===== */
@media (max-width: 768px) {
    /* STOP ALL HORIZONTAL SCROLL */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    #page, .site, .site-container, #main, .content-area {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .site-container {
        padding: 0 15px;
        max-width: 100%;
    }

    /* Force single column - sidebar below content */
    .content-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .content-grid .site-main,
    .content-grid .widget-area {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .content-grid .widget-area {
        margin-left: 0 !important;
        margin-top: 40px !important;
        padding: 0 15px !important;
    }

    .single-post .entry-header {
        padding: 1rem 0;
    }
    .single-post .entry-title {
        font-size: 1.6rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 15px;
    }
    .single-post .entry-content {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 15px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .single-post .entry-content * {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .single-post .entry-content h2 {
        font-size: 1.3rem;
    }
    .single-post .entry-content h3 {
        font-size: 1.15rem;
    }
    .single-post .featured-image {
        margin-bottom: 1rem;
    }
    .single-post .featured-image img {
        max-height: 250px;
        max-width: 100% !important;
    }
    .author-bio {
        padding: 1rem;
        font-size: 0.9rem;
        margin: 20px 15px;
    }
    .key-questions {
        padding: 1rem;
        margin: 20px 15px;
    }
    .key-questions h2 {
        font-size: 1.1rem;
    }
    .post-tags {
        padding: 0.5rem 0;
    }
    .post-tags a {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}
@media (max-width: 480px) {
    .single-post .entry-title {
        font-size: 1.4rem;
    }
    .single-post .entry-content {
        font-size: 0.95rem;
    }
    .site-header .site-logo {
        max-width: 200px;
    }
}
