/*
Theme Name: Jordan Gazette Theme
Theme URI: https://github.com/google-deepmind
Author: Antigravity AI
Author URI: https://github.com/google-deepmind
Description: A modern, premium, editorial WordPress theme for business, economy, and corporate news in the Middle East region. Built with responsive layouts, gorgeous typography, and interactive components.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jordan-gazette
*/

/* ==========================================
   1. CORE VARIABLES & GLOBAL STYLES
   ========================================== */
:root {
    --primary-blue: #082464;
    --primary-blue-light: #12378c;
    --primary-blue-dark: #041233;
    --accent-red: #C00000;
    --accent-red-light: #e60000;
    --accent-red-dark: #800000;
    --bg-light: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-dark: #0F172A;
    --text-medium: #334155;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --border-color-dark: #CBD5E1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1280px;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-medium);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-red);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 0.5em;
    font-weight: 700;
}

/* ==========================================
   2. LAYOUT & GRID SYSTEM
   ========================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    padding: 40px 0;
}

.layout-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .layout-wrapper {
        grid-template-columns: 8fr 4fr;
    }
}

/* ==========================================
   3. HEADER & NAVIGATION
   ========================================== */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

/* Topbar */
.header-topbar {
    background-color: var(--primary-blue-dark);
    color: #FFFFFF;
    font-size: 13px;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-date {
    opacity: 0.8;
}

.ticker-wrapper {
    display: none;
    align-items: center;
    gap: 10px;
}

@media (min-width: 768px) {
    .ticker-wrapper {
        display: flex;
    }
}

.ticker-label {
    background-color: var(--accent-red);
    color: #FFFFFF;
    font-weight: 700;
    padding: 2px 8px;
    font-size: 11px;
    text-transform: uppercase;
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ticker-content {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    max-width: 300px;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 15s linear infinite;
    opacity: 0.9;
}

.ticker-text:hover {
    animation-play-state: paused;
}

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

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

.topbar-socials a {
    color: #FFFFFF;
    opacity: 0.7;
    margin-left: 10px;
    font-size: 14px;
}

.topbar-socials a:hover {
    opacity: 1;
    color: var(--accent-red-light);
}

/* Main Header Area — fixed height, logo centered inside */
.header-main {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 100%;
}

/* Logo: big and clear, header stays proportionate */
.site-logo img,
.site-logo .custom-logo,
.site-logo-img,
.custom-logo-link img {
    height: 100px;
    width: auto;
    max-width: 100%;
    display: block;
    background: transparent !important;
    transition: var(--transition-smooth);
    object-fit: contain;
}

.site-logo img:hover,
.custom-logo-link img:hover {
    transform: scale(1.04);
}

/* WordPress custom logo wrapper */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    max-width: 100%;
    background: transparent !important;
}

/* Responsive Logo and Header Heights */
@media (max-width: 768px) {
    .header-main {
        height: 80px;
    }
    .site-logo img,
    .site-logo .custom-logo,
    .site-logo-img,
    .custom-logo-link img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .header-main {
        height: 60px;
    }
    .site-logo img,
    .site-logo .custom-logo,
    .site-logo-img,
    .custom-logo-link img {
        height: 40px;
    }
}

/* Banner hidden — logo takes full center spotlight */
.header-banner {
    display: none !important;
}

/* Navigation Menu */
.header-navigation {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

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

.main-menu-list {
    display: flex;
    list-style: none;
}

.main-menu-list > li {
    position: relative;
}

.main-menu-list > li > a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
}

.main-menu-list > li:hover > a,
.main-menu-list > li.current-menu-item > a {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background-color: rgba(8, 36, 100, 0.02);
}

/* Dropdown Sub-menu */
.main-menu-list li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    list-style: none;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.main-menu-list li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu-list li ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-color);
}

.main-menu-list li ul li:last-child a {
    border-bottom: none;
}

.main-menu-list li ul li a:hover {
    background-color: var(--bg-light);
    color: var(--accent-red);
    padding-left: 25px;
}

/* Search Box in Nav */
.header-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
    transition: var(--transition-smooth);
}

.search-icon-btn:hover {
    color: var(--accent-red);
}

.header-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-light);
    padding: 2px 10px;
}

.header-search-form input[type="search"] {
    border: none;
    background: none;
    outline: none;
    padding: 6px 8px;
    font-size: 13px;
    width: 150px;
    transition: var(--transition-smooth);
}

.header-search-form input[type="search"]:focus {
    width: 200px;
}

.header-search-form button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 10px;
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

@media (max-width: 991px) {
    .header-navigation {
        display: none; /* Handled via Javascript mobile menu or simplified styles */
    }
}

/* ==========================================
   4. HOME PAGE / LOOP COMPONENTS
   ========================================== */

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 7fr 5fr;
    }
}

.hero-main-post {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
    background-color: var(--primary-blue-dark);
}

@media (min-width: 768px) {
    .hero-main-post {
        height: 500px;
    }
}

.hero-post-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-post-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    opacity: 0.75;
}

.hero-main-post:hover .hero-post-img-wrapper img {
    transform: scale(1.03);
    opacity: 0.65;
}

.hero-main-post::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.hero-post-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    color: #FFFFFF;
}

.category-badge {
    display: inline-block;
    background-color: var(--accent-red);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.category-badge.secondary {
    background-color: var(--primary-blue);
}

.hero-post-title {
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .hero-post-title {
        font-size: 32px;
    }
}

.hero-post-title a {
    color: #FFFFFF;
}

.hero-post-title a:hover {
    color: #E2E8F0;
}

.post-meta-light {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    opacity: 0.85;
}

.post-meta-light span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hero Secondary Sidebar */
.hero-side-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-post-card {
    display: flex;
    background-color: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.side-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color-dark);
}

.side-post-img {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    overflow: hidden;
}

.side-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.side-post-card:hover .side-post-img img {
    transform: scale(1.05);
}

.side-post-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-post-title {
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.side-post-title a {
    color: var(--text-dark);
}

.side-post-title a:hover {
    color: var(--accent-red);
}

.side-post-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Category Sections styling */
.section-header {
    border-bottom: 2px solid var(--primary-blue);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 10px;
}

.section-title-main {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-blue);
    position: relative;
    margin-bottom: -12px;
    padding-bottom: 10px;
    display: inline-block;
}

.section-title-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-red);
}

.section-view-all {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.section-view-all:hover {
    color: var(--accent-red);
}

/* Companies and Markets Section */
.companies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color-dark);
}

.news-card-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

.news-card-title a {
    color: var(--text-dark);
}

.news-card-title a:hover {
    color: var(--primary-blue);
}

.news-card-excerpt {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 15px;
    flex-grow: 1;
}

.news-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
}

/* Regional Spotlight Section */
.regional-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.regional-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

@media (min-width: 640px) {
    .regional-card {
        flex-direction: row;
        height: 200px;
    }
}

.regional-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.regional-card-img {
    height: 180px;
    overflow: hidden;
}

@media (min-width: 640px) {
    .regional-card-img {
        width: 280px;
        height: 100%;
        flex-shrink: 0;
    }
}

.regional-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.regional-card:hover .regional-card-img img {
    transform: scale(1.04);
}

.regional-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.regional-card-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.regional-card-title a {
    color: var(--text-dark);
}

.regional-card-title a:hover {
    color: var(--accent-red);
}

.regional-card-excerpt {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.regional-card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Opinions Section */
.opinions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .opinions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.opinion-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.opinion-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-blue);
}

.opinion-quote {
    font-size: 17px;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 15px;
}

.opinion-quote a {
    color: var(--text-dark);
}

.opinion-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opinion-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--border-color);
}

.opinion-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opinion-author-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
}

.opinion-author-title {
    font-size: 12px;
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #FFFFFF;
}

/* ==========================================
   5. SINGLE POST & PAGE EDITORIAL STYLING
   ========================================== */
.post-header {
    margin-bottom: 30px;
}

.post-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 15px;
}

.post-header-meta a {
    color: var(--primary-blue);
    font-weight: 600;
}

.single-post-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .single-post-title {
        font-size: 44px;
    }
}

.featured-image-wrapper {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-image-wrapper img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
}

.post-entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-medium);
}

.post-entry-content p {
    margin-bottom: 24px;
}

.post-entry-content h2,
.post-entry-content h3 {
    margin-top: 40px;
    margin-bottom: 15px;
}

.post-entry-content blockquote {
    border-left: 4px solid var(--accent-red);
    padding: 15px 24px;
    background-color: var(--bg-light);
    font-family: var(--font-heading);
    font-size: 20px;
    font-style: italic;
    color: var(--text-dark);
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tags a {
    font-size: 13px;
    background-color: var(--border-color);
    color: var(--text-medium);
    padding: 4px 12px;
    border-radius: 4px;
}

.post-tags a:hover {
    background-color: var(--primary-blue);
    color: #FFFFFF;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin: 40px 0;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-info-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-bio {
    font-size: 14px;
    color: var(--text-medium);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.nav-link-prev, .nav-link-next {
    width: 50%;
}

.nav-link-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

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

/* ==========================================
   6. SIDEBAR & WIDGET STYLING
   ========================================= */
.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 1024px) {
    .sidebar-wrapper {
        position: sticky;
        top: 220px;
        max-height: calc(100vh - 240px);
        overflow-y: auto;
        padding-right: 6px;
    }
    .sidebar-wrapper::-webkit-scrollbar {
        width: 4px;
    }
    .sidebar-wrapper::-webkit-scrollbar-track {
        background: transparent;
    }
    .sidebar-wrapper::-webkit-scrollbar-thumb {
        background-color: var(--border-color);
        border-radius: 10px;
    }
    .sidebar-wrapper::-webkit-scrollbar-thumb:hover {
        background-color: var(--border-color-dark);
    }
}

.widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-blue);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-red);
}

/* Popular Posts Widget */
.widget-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none;
}

.widget-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.widget-post-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.widget-post-info {
    display: flex;
    flex-direction: column;
}

.widget-post-title {
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 3px;
}

.widget-post-title a {
    color: var(--text-dark);
}

.widget-post-title a:hover {
    color: var(--accent-red);
}

.widget-post-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Category Widget */
.widget_categories ul {
    list-style: none;
}

.widget_categories li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
}

.widget_categories li:last-child {
    border-bottom: none;
}

.widget_categories li a {
    color: var(--text-medium);
}

.widget_categories li a:hover {
    color: var(--primary-blue);
}

.widget_categories li .count {
    background-color: var(--bg-light);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Newsletter Widget */
.newsletter-widget-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-widget-form p {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.newsletter-widget-form input[type="email"] {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.newsletter-widget-form input[type="email"]:focus {
    border-color: var(--primary-blue);
}

.newsletter-widget-form button {
    background-color: var(--primary-blue);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.newsletter-widget-form button:hover {
    background-color: var(--primary-blue-light);
}

/* ==========================================
   7. FOOTER STYLING
   ========================================= */
.site-footer {
    background-color: var(--primary-blue-dark);
    color: #CBD5E1;
    font-size: 14px;
    margin-top: 60px;
    border-top: 4px solid var(--accent-red);
}

.footer-widgets {
    padding: 60px 0 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 640px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-widget .widget-title {
    color: #FFFFFF;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.footer-about-logo {
    margin-bottom: 15px;
}

.footer-about-logo img,
.footer-about-logo .custom-logo {
    max-height: 90px;
    width: auto;
    background: transparent !important;
    filter: brightness(0) invert(1); /* white version for dark footer */
}

.footer-about-text {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 13.5px;
    color: #94A3B8;
}

.footer-widget ul {
    list-style: none;
}

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

.footer-widget ul li a {
    color: #94A3B8;
}

.footer-widget ul li a:hover {
    color: #FFFFFF;
    padding-left: 5px;
}

.footer-bottom {
    background-color: #020818;
    padding: 20px 0;
    font-size: 12px;
    color: #64748B;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

@media (min-width: 768px) {
    .footer-bottom .container {
        flex-direction: row;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
}

.footer-bottom-links a {
    color: #64748B;
}

.footer-bottom-links a:hover {
    color: #FFFFFF;
}

/* ==========================================
   8. WORDPRESS REQUIRED CUSTOM CLASSES
   ========================================= */
.aligncenter {
    display: block;
    margin: 15px auto;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.wp-caption {
    background: #FFF;
    border: 1px solid #F0F0F0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 5px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.gallery-caption {
    font-size: 11px;
}

.bypostauthor {
    font-weight: bold;
}

/* ==========================================
   9. HOME PAGE BOTTOM SECTIONS & SIDEBAR ENHANCEMENTS
   ========================================= */

/* Gazette TV Section */
.gazette-tv-section {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .tv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tv-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 16px;
    transition: var(--transition-smooth);
}

.tv-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.tv-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #05143a, #1E3A8A);
    border-radius: 6px;
    overflow: hidden;
}

.tv-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.tv-card:hover .tv-thumb-overlay {
    background: linear-gradient(to bottom, rgba(4,18,51,0.1), rgba(4,18,51,0.95)) !important;
}

.play-btn {
    width: 48px;
    height: 48px;
    background-color: var(--accent-red);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(192, 0, 0, 0.4);
    transition: var(--transition-smooth);
    padding-left: 3px; /* visual center for play icon */
}

.tv-card:hover .play-btn {
    transform: scale(1.15);
    background-color: var(--accent-red-light);
    box-shadow: 0 6px 15px rgba(230, 0, 0, 0.6);
}

.tv-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-red);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.tv-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tv-date {
    font-size: 11px;
    color: #94A3B8;
    font-weight: 500;
}

.tv-title {
    font-size: 14.5px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.4;
}

.tv-title a {
    color: #FFFFFF;
}

.tv-title a:hover {
    color: var(--accent-red-light);
}

/* Press Releases Section */
.release-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.release-item:hover {
    background-color: var(--bg-light);
}

@media (min-width: 768px) {
    .release-item {
        flex-direction: row;
        align-items: center;
        gap: 24px;
        padding: 20px 24px;
    }
}

.release-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.release-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 60px;
}

.release-company {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.release-title {
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
}

.release-title a {
    color: var(--text-dark);
}

.release-title a:hover {
    color: var(--accent-red);
}

.release-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    align-self: flex-start;
}

@media (min-width: 768px) {
    .release-tag {
        align-self: center;
    }
}

/* Sidebar Event List Widget styles */
.widget-event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-event-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.widget-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue-dark);
    color: #FFFFFF;
    border-radius: 4px;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.widget-event-day {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
}

.widget-event-month {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-event-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-event-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 2px;
}

.widget-event-title a {
    color: var(--text-dark);
}

.widget-event-title a:hover {
    color: var(--accent-red);
}

.widget-event-location {
    font-size: 11px;
    color: var(--text-muted);
}
