/*
Theme Name: Global Media Theme
Theme URI: https://globalpublishers.co.tz
Author: Yatosha Web Services
Author URI: https://yatosha.com
Description: Global Media Theme by Yatosha Web Services - A modern news/media theme built with Bootstrap 5.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: global2026
Tags: news, magazine, blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --primary-red: #cc0000;
    --dark-bg: #1a1a1a;
    --text-gray: #666;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    max-height: 60px;
    object-fit: contain;
}

.bg-primary-red {
    background-color: var(--primary-red) !important;
}

.navbar.nav-force-collapse .navbar-toggler {
    display: block;
}

.navbar.nav-force-collapse .navbar-collapse {
    display: none !important;
}

.navbar.nav-force-collapse .navbar-collapse.show {
    display: block !important;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem !important;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-section {
    padding-top: 20px;
}

.navbar {
    background-color: var(--primary-red) !important;
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    transition: box-shadow 0.15s ease-in-out;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-collapse {
    flex-grow: 1;
}

.featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    color: white;
    height: 100%;
    background-color: #333;
    min-height: 200px;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 20px;
}

.category-badge {
    background-color: var(--primary-red);
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.featured-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 5px;
}

.post-meta {
    font-size: 0.75rem;
    opacity: 0.8;
}

.news-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.news-item-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Thumbnail wrapper for overlay badge */
.news-item-thumb {
    overflow: hidden;
    height: 200px;
}

.news-item-thumb .archive-img-link {
    height: 200px;
}

.news-item-thumb:hover .news-item-img {
    transform: scale(1.04);
}

/* Image link wrapper — must be relative so badge positions inside it */
.archive-img-link {
    position: relative;
    display: block;
    overflow: hidden;
    line-height: 0;
    height: 200px;
}

.archive-img-link:hover .archive-img,
.archive-img-link:hover .news-item-img {
    transform: scale(1.04);
}

/* Category badge overlaid on image — bottom left */
.news-item-cat-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary-red);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 2;
    transition: background 0.2s ease;
    line-height: 1.4;
}

.news-item-cat-badge:hover {
    background: #a00;
    color: #fff;
}

/* Archive card image wrapper */
.archive-img-wrap {
    overflow: hidden;
    line-height: 0;
}

.archive-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.archive-no-img {
    background: linear-gradient(135deg, #c00 0%, #333 100%);
}

.news-content {
    padding: 15px;
}

.news-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    display: block;
    margin: 10px 0;
    line-height: 1.3;
}

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

.news-excerpt {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.col-lg-4 {
    min-width: 0;
    overflow: hidden;
}

.sidebar-widget {
    background: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 100%;
}

.sidebar-widget img,
.sidebar-widget iframe,
.sidebar-widget embed,
.sidebar-widget object,
.sidebar-widget video {
    max-width: 100%;
    height: auto;
}

.sidebar-widget img {
    border-radius: 4px;
}

/* Constrain all WP widget wrappers in sidebar */
#secondary .widget,
.widget_area .widget,
[id^="sidebar"] .widget {
    overflow: hidden;
    max-width: 100%;
}

[id^="sidebar"] .widget img,
[id^="sidebar"] .widget iframe,
[id^="sidebar"] .widget embed,
[id^="sidebar"] .widget video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
}

/* Responsive iframe wrapper for bare YouTube embeds in widgets */
[id^="sidebar"] .widget iframe,
.sidebar-widget iframe,
.widget_custom_html iframe,
.widget_text iframe,
.wp-block-html iframe {
    display: block;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
}

/* YouTube-specific constraints */
[id^="sidebar"] .widget iframe[src*="youtube"],
[id^="sidebar"] .widget iframe[src*="youtu.be"],
.sidebar-widget iframe[src*="youtube"],
.sidebar-widget iframe[src*="youtu.be"],
.widget_custom_html iframe[src*="youtube"],
.widget_custom_html iframe[src*="youtu.be"],
.widget_text iframe[src*="youtube"],
.widget_text iframe[src*="youtu.be"],
.wp-block-html iframe[src*="youtube"],
.wp-block-html iframe[src*="youtu.be"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    overflow: hidden;
}

/* Ensure any wrapper divs around YouTube embeds also stay contained */
[id^="sidebar"] .widget div iframe[src*="youtube"],
[id^="sidebar"] .widget div iframe[src*="youtu.be"],
.sidebar-widget div iframe[src*="youtube"],
.sidebar-widget div iframe[src*="youtu.be"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
}

/* Ultimate fallback: force ANY YouTube iframe in sidebar to be responsive */
#secondary iframe[src*="youtube"],
#secondary iframe[src*="youtu.be"],
[id^="sidebar"] iframe[src*="youtube"],
[id^="sidebar"] iframe[src*="youtu.be"],
.sidebar-widget iframe[src*="youtube"],
.sidebar-widget iframe[src*="youtu.be"],
.widget_area iframe[src*="youtube"],
.widget_area iframe[src*="youtu.be"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    clip: auto !important;
    clip-path: none !important;
}

/* Hero Section */
.hero-section {
    padding-top: 30px;
    padding-bottom: 20px;
}

/* Section Separator */
.section-separator {
    padding: 10px 0;
    background: #f8f9fa;
}

/* Sticky Posts Slider */
.sticky-slider-section {
    padding-top: 25px;
    padding-bottom: 25px;
}

.sticky-slider-section h2 {
    color: var(--primary-red, #c00);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}


.sticky-slider-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -10px;
}

.sticky-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 0 10px;
}

.sticky-slide {
    flex: 0 0 280px;
    width: 280px;
}

.sticky-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.sticky-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.sticky-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.sticky-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.sticky-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c00 0%, #333 100%);
}

.sticky-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-red);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 2;
}

.sticky-content {
    padding: 15px;
}

.sticky-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sticky-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.sticky-title a:hover {
    color: var(--primary-red);
}

.sticky-meta {
    font-size: 0.85rem;
    color: #666;
}


/* Responsive adjustments for sticky slider */
@media (max-width: 1200px) {
    .sticky-slide {
        flex: 0 0 260px;
        width: 260px;
    }
}

@media (max-width: 992px) {
    .sticky-slide {
        flex: 0 0 240px;
        width: 240px;
    }
    
    .sticky-img-wrap {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .sticky-slide {
        flex: 0 0 220px;
        width: 220px;
    }
    
    .sticky-img-wrap {
        height: 130px;
    }
    
    .sticky-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .sticky-slider-wrapper {
        margin: 0 -5px;
    }
    
    .sticky-slider {
        padding: 0 5px;
        gap: 15px;
    }
    
    .sticky-slide {
        flex: 0 0 200px;
        width: 200px;
    }
    
    .sticky-img-wrap {
        height: 120px;
    }
    
    .sticky-content {
        padding: 12px;
    }
}

/* Force any parent container of a YouTube iframe in sidebar to constrain */
#secondary iframe[src*="youtube"]:parent,
#secondary iframe[src*="youtu.be"]:parent,
[id^="sidebar"] iframe[src*="youtube"]:parent,
[id^="sidebar"] iframe[src*="youtu.be"]:parent,
.sidebar-widget iframe[src*="youtube"]:parent,
.sidebar-widget iframe[src*="youtu.be"]:parent,
.widget_area iframe[src*="youtube"]:parent,
.widget_area iframe[src*="youtu.be"]:parent {
    max-width: 100% !important;
    overflow: hidden !important;
}

.widget-title {
    font-family: 'Oswald', sans-serif;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
}

.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive videos in single post content */
.post-body iframe,
.post-body embed,
.post-body video {
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
}

.post-body iframe[src*="youtube"],
.post-body iframe[src*="youtu.be"],
.post-body iframe[src*="vimeo"],
.post-body embed[type="video"] {
    width: 100% !important;
    height: auto !important;
    min-height: 315px;
}

/* Force any video wrapper in post content to stay contained */
.post-body div iframe,
.post-body div embed,
.post-body div video {
    max-width: 100% !important;
    height: auto !important;
}

.ad-space img {
    width: 100%;
    height: auto;
}

/* Navbar Dropdowns */
@media (min-width: 992px) {
    .navbar-nav {
        flex-wrap: wrap;
    }
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.navbar-nav .dropdown-menu {
    background-color: var(--dark-bg);
    border: none;
    border-top: 3px solid var(--primary-red);
    border-radius: 0;
}

.navbar-nav .dropdown-item {
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--primary-red);
    color: white;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.search-form {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 3px solid white;
    color: white;
    font-size: 2rem;
    padding: 10px 0;
    font-family: 'Oswald', sans-serif;
}

.search-input:focus {
    outline: none;
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.search-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
}

/* Live Search Results */
.search-results-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 10000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-results-inner {
    padding: 15px 0;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 12px 20px;
    transition: background 0.2s;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 45px;
    border-radius: 3px;
    overflow: hidden;
    background: #ddd;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-category {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    margin-bottom: 4px;
}

.search-result-title {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
}

.search-result-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.search-result-title a:hover {
    color: var(--primary-red);
}

.search-result-date {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.search-results-footer {
    border-top: 1px solid #f0f0f0;
    padding: 12px 20px;
    margin-top: 8px;
}

.search-view-all {
    display: flex;
    align-items: center;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.search-view-all:hover {
    color: #a30000;
}

.search-no-results {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-gray);
}

.search-loading {
    text-align: center;
    padding: 20px;
    color: white;
}

/* Footer Styles */
.main-footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 0;
    margin-top: 50px;
    overflow: hidden;
}

.main-footer .row {
    min-width: 0;
}

.main-footer .col-lg-4,
.main-footer .col-lg-2,
.main-footer .col-md-4 {
    min-width: 0;
    overflow: hidden;
}

/* Constrain all footer widgets and media */
.main-footer img,
.main-footer iframe,
.main-footer embed,
.main-footer object,
.main-footer video {
    max-width: 100%;
    height: auto;
}

.main-footer .footer-widget,
.main-footer .widget {
    overflow: hidden;
    max-width: 100%;
}

/* App buttons should not overflow */
.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    background: #000;
    color: white;
    max-width: 100%;
    min-width: 0;
}

.app-btn i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.app-btn-text span {
    font-size: 0.7rem;
    opacity: 0.8;
}

.app-btn-text strong {
    font-weight: 700;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-btn {
    display: flex;
    align-items: center;
    background: #222;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.app-btn.btn-apple {
    background: #000;
    border-color: #333;
}

.app-btn.btn-google {
    background: #3c7e5a;
    border-color: #4a926b;
}

.app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: white;
    color: white;
}

.app-btn i {
    font-size: 2rem;
    margin-right: 15px;
}

.app-btn-text span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.app-btn-text strong {
    font-size: 1.1rem;
}

.footer-bottom {
    background: #000;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.8rem;
    color: #777;
}

.social-links a {
    color: white;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-red);
}

/* Post Content Styles */
.post-container {
    background: white;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
}

.post-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-gray);
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.post-meta-top i {
    color: var(--primary-red);
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 30px;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.4;
}

.post-body p {
    margin-bottom: 18px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.8;
    color: white;
}

.bg-facebook {
    background: #3b5998;
}

.bg-twitter {
    background: #1da1f2;
}

.bg-whatsapp {
    background: #25d366;
}

/* Related Posts */
.related-posts-section {
    margin-top: 40px;
}

.related-posts-header {
    margin-bottom: 5px;
}

.related-posts-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-posts-title span {
    background-color: var(--primary-red);
    color: white;
    padding: 6px 16px;
    display: inline-block;
}

.related-posts-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: var(--primary-red);
}

.rp-card {
    display: block;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.rp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.rp-thumb {
    position: relative;
    overflow: hidden;
    height: 170px;
    background: #ddd;
}

.rp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rp-card:hover .rp-img {
    transform: scale(1.06);
}

.rp-no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #cc0000 0%, #1a1a1a 100%);
}

.rp-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    letter-spacing: 0.5px;
}

.rp-body {
    padding: 14px 16px 16px;
}

.rp-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin: 0 0 8px;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.rp-card:hover .rp-title {
    color: var(--primary-red);
}

.rp-meta {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.rp-meta i {
    color: var(--primary-red);
}

/* Category / Archive Page */
.category-header {
    background-color: white;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.category-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-red);
}

.pagination .page-link {
    color: var(--primary-red);
    border: none;
    margin: 0 5px;
    border-radius: 4px;
    font-weight: 700;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-red);
    color: white;
}

.archive-card {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s;
}

.archive-card:hover {
    transform: translateY(-5px);
}

.archive-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.archive-body {
    padding: 20px;
}

/* 404 Page */
.error-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-code {
    font-family: 'Oswald', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 20px;
}

.error-message {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.error-description {
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto 30px;
}

.btn-home {
    background-color: var(--primary-red);
    color: white;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-home:hover {
    background-color: #a30000;
    color: white;
}

/* =============================================
   WordPress Default Widgets
   ============================================= */

/* Search Widget */
.widget_search .search-form,
.sidebar-widget .search-form {
    display: flex;
    gap: 0;
    width: 100%;
}

.widget_search .search-field,
.sidebar-widget .search-field {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.widget_search .search-field:focus,
.sidebar-widget .search-field:focus {
    border-color: var(--primary-red);
}

.widget_search .search-submit,
.sidebar-widget .search-submit {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 0 4px 4px 0;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.widget_search .search-submit:hover,
.sidebar-widget .search-submit:hover {
    background-color: #a30000;
}

/* Calendar Widget */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.widget_calendar caption {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #333;
    padding: 0 0 10px;
    caption-side: bottom;
    text-align: center;
}

.widget_calendar th {
    background-color: var(--primary-red);
    color: white;
    text-align: center;
    padding: 6px 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.widget_calendar td {
    text-align: center;
    padding: 5px 4px;
    border: 1px solid #f0f0f0;
    color: #555;
}

.widget_calendar td a {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
}

.widget_calendar td a:hover {
    text-decoration: underline;
}

.widget_calendar td#today {
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    font-weight: 700;
}

.widget_calendar td#today a {
    color: white;
}

.widget_calendar #prev,
.widget_calendar #next {
    padding: 6px 4px;
}

.widget_calendar #prev a,
.widget_calendar #next a {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
}

/* Recent Posts Widget */
.widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_entries ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

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

.widget_recent_entries ul li a {
    color: #333;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    display: block;
    margin-bottom: 3px;
    transition: color 0.2s;
}

.widget_recent_entries ul li a:hover {
    color: var(--primary-red);
}

.widget_recent_entries .post-date {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.widget_recent_entries ul li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.widget_recent_entries .rpe-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 55px;
    border-radius: 3px;
    overflow: hidden;
    background: #ddd;
}

.widget_recent_entries .rpe-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.widget_recent_entries ul li:hover .rpe-thumb img {
    transform: scale(1.08);
}

.widget_recent_entries .rpe-info {
    flex: 1;
    min-width: 0;
}

.widget_recent_entries .rpe-no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #cc0000, #1a1a1a);
}

/* Recent Comments Widget */
.widget_recent_comments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_comments ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: var(--text-gray);
}

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

.widget_recent_comments ul li a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
}

.widget_recent_comments ul li a:hover {
    text-decoration: underline;
}

/* Categories Widget */
.widget_categories ul,
.widget_archive ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories ul li,
.widget_archive ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.widget_categories ul li a,
.widget_archive ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.widget_categories ul li a:hover,
.widget_archive ul li a:hover {
    color: var(--primary-red);
}

.widget_categories ul li .post-count,
.widget_categories select {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.widget_categories select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.widget_categories select:focus {
    border-color: var(--primary-red);
}

/* Archives Widget */
.widget_archive select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

/* Pages Widget */
.widget_pages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_pages ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

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

.widget_pages ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.widget_pages ul li a:hover {
    color: var(--primary-red);
}

.widget_pages ul ul {
    padding-left: 15px;
    margin-top: 5px;
}

/* Navigation Menu Widget */
.widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_nav_menu ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

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

.widget_nav_menu ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.widget_nav_menu ul li a:hover {
    color: var(--primary-red);
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.8rem !important;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
}

.widget_tag_cloud .tagcloud a:hover {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* Text / HTML Widget */
.widget_text,
.widget_custom_html {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
}

.widget_text img,
.widget_custom_html img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.widget_text a,
.widget_custom_html a {
    color: var(--primary-red);
}

/* RSS Widget */
.widget_rss ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_rss ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

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

.widget_rss ul li a {
    color: #333;
    font-family: 'Oswald', sans-serif;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.widget_rss ul li a:hover {
    color: var(--primary-red);
}

.widget_rss .rss-date,
.widget_rss cite {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: block;
}

.widget_rss .rssSummary {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 5px;
}

/* Meta Widget */
.widget_meta ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_meta ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

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

.widget_meta ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.widget_meta ul li a:hover {
    color: var(--primary-red);
}

/* Block Widgets (WP 5.8+) */
.wp-block-widget-area .wp-block-search__inside-wrapper {
    display: flex;
}

.wp-block-widget-area .wp-block-search__input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.wp-block-widget-area .wp-block-search__button {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 0 4px 4px 0;
    font-weight: 700;
    cursor: pointer;
}

/* Pagination */
.theme-pagination .pagination {
    gap: 4px;
    flex-wrap: wrap;
}

.theme-pagination .page-item .page-link {
    border: 1px solid #e0e0e0;
    color: #333;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 3px !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1.4;
}

.theme-pagination .page-item .page-link:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.theme-pagination .page-item.active .page-link,
.theme-pagination .page-item .page-link.current {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.theme-pagination .page-item.disabled .page-link {
    color: #aaa;
    background: transparent;
    border-color: #e0e0e0;
    cursor: default;
}

/* AJAX Comment Notifications */
.comment-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
}

.comment-notification-success {
    background-color: #28a745;
    color: white;
}

.comment-notification-error {
    background-color: #dc3545;
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* WordPress Core */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
    margin-top: 5px;
}

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

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

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

/* WordPress Comments */
.comments-area {
    background: white;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.comments-title,
.comment-reply-title {
    font-family: 'Oswald', sans-serif;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.comment-author .fn {
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.comment-form .submit {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-form .submit:hover {
    background-color: #a30000;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 20px 0;
    }
    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .navbar-nav .dropdown-menu {
        background-color: rgba(0,0,0,0.2);
        border: none;
        padding-left: 20px;
    }
    .hero-section .featured-card {
        height: 300px !important;
    }
    .post-title {
        font-size: 1.8rem;
    }
    .post-container {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    .featured-title {
        font-size: 1.2rem;
    }
    .news-item-img {
        height: 180px;
    }
    .main-footer {
        padding: 40px 0 0;
    }
    .footer-heading {
        margin-top: 30px;
    }
    .app-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .app-btn {
        flex: 1;
        min-width: 140px;
        padding: 8px 12px;
    }
    .app-btn i {
        font-size: 1.5rem;
        margin-right: 10px;
    }
    .app-btn-text strong {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .post-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .post-title {
        font-size: 1.5rem;
    }
}
