/*
Theme Name: Satellite
Theme URI: https://example.com/satellite
Author: Your Name
Author URI: https://example.com
Description: A modern WordPress theme for satellite frequencies and news, built with performance and best practices in mind.
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: satellite
Tags: news, magazine, responsive, accessibility-ready, custom-colors, custom-menu, featured-images
*/

:root {
    /* Light Mode Colors */
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-heading: #1a202c;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --primary-color: #e67e22;
    --primary-gradient: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    --secondary-bg: #f8fafc;
    --header-bg: #ffffff;
    --footer-bg: #1a202c;
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #cbd5e1;
    --text-heading: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --secondary-bg: #1e293b;
    --header-bg: #1e293b;
    --footer-bg: #020617;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color 0.3s, color 0.3s;
}

/* ========================================
   PROFESSIONAL HEADINGS TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    color: var(--text-heading);
}

/* H1 - Main Title */
h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.entry-title,
article h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* H2 - Section Headers */
h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: #2d3748;
    position: relative;
    padding-bottom: 0.75rem;
}

.entry-content h2,
.channel-content h2 {
    display: block;
    margin: 2.5rem 0 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #fff !important;
    border-radius: 8px;
    font-size: 1.35rem;
    -webkit-text-fill-color: #fff;
}

.entry-content h2::before,
.channel-content h2::before {
    content: "📡";
    margin-left: 0.5rem;
}

/* H3 - Subsection Headers */
h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.entry-content h3,
.channel-content h3 {
    display: block;
    margin: 2rem 0 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: #fff !important;
    border-radius: 6px;
    font-size: 1.15rem;
    -webkit-text-fill-color: #fff;
}

.entry-content h3::before,
.channel-content h3::before {
    content: "📺";
    margin-left: 0.5rem;
}

/* H4 - Small Headers */
h4 {
    font-size: 1.15rem;
    margin-bottom: 0.875rem;
    color: #4a5568;
}

.entry-content h4,
.channel-content h4 {
    display: block;
    margin: 1.5rem 0 0.75rem;
    padding: 0.5rem 0;
    border-right: 4px solid #e67e22;
    padding-right: 1rem;
    color: #1a202c;
    font-size: 1.1rem;
}

/* H5 */
h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #4a5568;
    font-weight: 600;
}

.entry-content h5,
.channel-content h5 {
    color: #e67e22;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

/* H6 */
h6 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* List Layout */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.posts-list .grid-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.posts-list .post-thumbnail {
    flex: 0 0 300px;
    max-width: 300px;
}

.posts-list .post-thumbnail img {
    height: 100%;
    min-height: 200px;
}

.posts-list .entry-wrapper {
    flex: 1;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .posts-list .grid-item {
        flex-direction: column;
    }

    .posts-list .post-thumbnail {
        max-width: 100%;
        flex: 0 0 auto;
    }
}


/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

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

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    text-decoration: none;
    color: #1a202c;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.2s;
}

/* Hero Section */
.hero-section {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 400px;
}

.hero-post {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: #fff;
    width: 100%;
}

.hero-title {
    margin: 0.5rem 0;
    font-size: 2.5rem;
    line-height: 1.2;
}

.hero-title a {
    color: #fff;
    text-decoration: none;
}

.hero-content .cat-links a {
    background: #e53e3e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* News Ticker */
.news-ticker {
    background: #2d3748;
    color: #fff;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.ticker-label {
    background: #e53e3e;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 1rem;
    white-space: nowrap;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
}

.ticker-item {
    margin-right: 2rem;
}

.ticker-item a {
    color: #fff;
    text-decoration: none;
}

/* Grid Layout & Sidebar */
.content-grid-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .content-grid-wrapper {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: 1.25rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.grid-item:hover {
    transform: translateY(-2px);
}

.grid-item .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.grid-item .entry-header {
    padding: 1.25rem 1.25rem 0;
}

/* Category styling inside grid */
.grid-item .post-categories {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.grid-item .post-categories li {
    margin: 0;
}

.grid-item .post-categories a {
    background: rgba(230, 126, 34, 0.1);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s;
}

.grid-item .post-categories a:hover {
    background: var(--primary-color);
    color: #fff;
}

.grid-item .entry-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    font-weight: 700;
}

.grid-item .entry-title a {
    color: var(--text-heading);
    text-decoration: none;
}

.grid-item .entry-title a:hover {
    color: var(--primary-color);
}

.grid-item .entry-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.grid-item .entry-excerpt {
    padding: 0.75rem 1.25rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.grid-item .entry-excerpt p {
    margin: 0;
}

/* Sidebar Styling */
.widget-area .widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #f7fafc;
    padding-bottom: 0.5rem;
}

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

.widget a {
    text-decoration: none;
    color: #4a5568;
}

/* Single Post Styles */
.single-header {
    margin-bottom: 2rem;
}

.single-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.single-thumbnail img {
    width: 100%;
    display: block;
}

/* Frequency Table */
.frequency-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.freq-title {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.freq-table {
    width: 100%;
    border-collapse: collapse;
}

.freq-table th,
.freq-table td {
    border-bottom: 1px solid #edf2f7;
    padding: 0.75rem;
    text-align: left;
}

.freq-table th {
    background-color: #f7fafc;
    font-weight: 600;
}

.freq-table .highlight-freq {
    color: #e53e3e;
    font-weight: bold;
}

/* Author Box */
.author-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 4px solid #e67e22;
}

.author-avatar img {
    border-radius: 50%;
}

.author-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.author-bio {
    margin: 0;
    font-size: 0.95rem;
    color: #4a5568;
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

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

.comment-body {
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* Archive Page Header */
.page-header {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.page-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
    background: none;
    -webkit-text-fill-color: initial;
}

.archive-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Footer & Other */
.site-footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 3rem 0;
    margin-top: 4rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

/* Top Bar */
.top-bar {
    background: #1a202c;
    color: #a0aec0;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

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

.topbar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.topbar-menu a {
    color: #a0aec0;
    text-decoration: none;
}

.topbar-menu a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background 0.2s;
}

.social-icon:hover {
    background: #e67e22;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .site-header .container {
        flex-wrap: wrap;
        position: relative;
    }
}

/* Header Search */
.header-search {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #4a5568;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    min-width: 300px;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown input[type="search"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.3s;
}

.sticky-header.is-sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #d35400;
    transform: translateY(-3px);
}

/* Footer Widgets */
.footer-widgets {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

.footer-column .widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.page-loader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #e67e22;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404 .page-title {
    font-size: 8rem;
    color: #e67e22;
    margin: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.error-actions {
    margin: 2rem 0;
}

.recent-posts-404 {
    margin-top: 4rem;
    text-align: left;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #e67e22;
    color: #fff;
}

.btn-primary:hover {
    background: #d35400;
}

/* Forms */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.contact-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.contact-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Ad Slots */
.ad-slot {
    margin: 1.5rem 0;
    text-align: center;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

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

/* Category Links Styling */
.cat-links a {
    background: #e67e22;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Entry Meta */
.entry-meta {
    color: #718096;
    font-size: 0.9rem;
}

.small-meta {
    font-size: 0.8rem;
}

/* Pagination */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
    background: #e67e22;
    border-color: #e67e22;
    color: #fff;
}

/* Content Full Width */
.content-full-width {
    max-width: 900px;
    margin: 0 auto;
}

/* Tags */
.tag-links a {
    display: inline-block;
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 2px;
    transition: all 0.2s;
}

.tag-links a:hover {
    background: #e67e22;
    color: #fff;
}

/* Breadcrumbs */
.breadcrumbs-wrapper {
    background: #fff;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::before {
    content: "\\";
    margin-left: 0.5rem;
    color: #a0aec0;
}

.breadcrumb-item a {
    color: #4a5568;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #e67e22;
}

.breadcrumb-item.current {
    color: #e67e22;
    font-weight: 600;
}

/* Share Buttons */
.share-buttons {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #4a5568;
}

.share-links {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f7fafc;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.share-twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.share-whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.share-telegram:hover {
    background: #0088cc;
    color: #fff;
}

.share-linkedin:hover {
    background: #0a66c2;
    color: #fff;
}

.share-copy:hover {
    background: #e67e22;
    color: #fff;
}

/* Custom Widgets */
.recent-posts-widget {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f7fafc;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-thumb {
    flex: 0 0 70px;
}

.recent-post-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.recent-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.recent-post-title a {
    color: #2d3748;
    text-decoration: none;
}

.recent-post-title a:hover {
    color: #e67e22;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #718096;
}

/* Social Widget */
.social-widget-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-widget-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: #fff;
}

.social-facebook {
    background: #1877f2;
}

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

.social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-youtube {
    background: #ff0000;
}

.social-telegram {
    background: #0088cc;
}

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

.social-tiktok {
    background: #000;
}

.social-linkedin {
    background: #0a66c2;
}

.social-widget-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* About Widget */
.about-widget-image {
    margin-bottom: 1rem;
}

.about-widget-image img {
    width: 100%;
    border-radius: 6px;
}

.about-widget-text {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #e67e22;
    width: 0%;
    z-index: 10000;
    transition: width 0.1s;
}

/* Dark Mode Toggle (optional) */
.dark-mode-toggle {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #2d3748;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Print Styles */
@media print {

    .site-header,
    .site-footer,
    .sidebar,
    .share-buttons,
    .related-posts,
    .comments-area,
    .back-to-top,
    .ad-slot,
    .breadcrumbs {
        display: none !important;
    }

    .content-grid-wrapper {
        display: block;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}

/* Lazy Loading Images */
.lazy-image {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.lazy-image.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Image placeholder skeleton */
.post-thumbnail {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.post-thumbnail img {
    position: relative;
    z-index: 1;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Aspect ratio containers */
.aspect-ratio-16-9 {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4/3;
    overflow: hidden;
}

/* Image hover effects */
.grid-item .post-thumbnail img {
    transition: transform 0.3s ease;
}

.grid-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Responsive images */
.entry-content img {
    height: auto;
    max-width: 100%;
}

/* Figure captions */
.entry-content figure {
    margin: 1.5rem 0;
}

.entry-content figcaption {
    font-size: 0.9rem;
    color: #718096;
    text-align: center;
    padding: 0.5rem;
}

/* ========================================
   SATELLITE CHANNEL STYLES
   ======================================== */

/* Channel Hero Card */
.channel-hero-card {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.channel-hero-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.channel-logo-large {
    flex: 0 0 150px;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-logo-large img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
}

.channel-hero-info {
    flex: 1;
}

.channel-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-type {
    background: rgba(255, 255, 255, 0.15);
}

.badge-sports {
    background: #22c55e;
}

.badge-movies {
    background: #8b5cf6;
}

.badge-news {
    background: #3b82f6;
}

.badge-kids {
    background: #f472b6;
}

.badge-music {
    background: #f59e0b;
}

.badge-quality {
    background: #e67e22;
    font-weight: 700;
}

.badge-hd {
    background: #10b981;
}

.badge-fhd {
    background: #3b82f6;
}

.badge-4k {
    background: #8b5cf6;
}

.badge-fta {
    background: #22c55e;
}

.badge-encrypted {
    background: #ef4444;
}

.badge-status.badge-changed {
    background: #f59e0b;
}

.badge-status.badge-stopped {
    background: #ef4444;
}

.channel-title {
    font-size: 2rem;
    margin: 0 0 0.5rem;
    color: #fff;
}

.channel-name-en {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0 0 1rem;
}

.channel-meta-info {
    display: flex;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Frequency Card */
.frequency-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    color: #1a202c;
}

.frequency-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e67e22;
}

.frequency-card-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.last-update {
    font-size: 0.85rem;
    color: #718096;
}

.frequency-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.freq-item {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.freq-item.freq-main {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: #fff;
}

.freq-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.freq-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.freq-value small {
    font-size: 0.9rem;
    font-weight: 400;
}

.frequency-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.copy-freq-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.copy-freq-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.technical-details {
    margin-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.technical-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #4a5568;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.tech-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f7fafc;
    border-radius: 4px;
}

/* Same Satellite Section */
.same-satellite-section {
    margin: 2rem 0;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 12px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.channel-mini-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.channel-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mini-logo {
    width: 50px;
    height: 35px;
    object-fit: contain;
    border-radius: 4px;
}

.mini-info h4 {
    margin: 0;
    font-size: 0.95rem;
}

.mini-freq {
    font-size: 0.8rem;
    color: #718096;
}

.mini-fta {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ========================================
   HOMEPAGE STYLES
   ======================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #e67e22 100%);
    padding: 4rem 0;
    color: #fff;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    margin: 0 0 1rem;
}

.hero-freq-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-freq {
    display: inline-block;
    background: #e67e22;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
}

.hero-sat {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.hero-logo {
    flex: 0 0 200px;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo img {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Quick Search */
.quick-search-section {
    padding: 3rem 0;
    background: #f7fafc;
}

.search-box-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.search-box-wrapper h2 {
    margin-bottom: 1.5rem;
}

.search-form-large {
    display: flex;
    gap: 0.5rem;
}

.search-form-large input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.1rem;
}

.search-form-large input:focus {
    border-color: #e67e22;
    outline: none;
}

.search-form-large button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
}

/* Satellites Grid */
.satellites-section {
    padding: 3rem 0;
}

.satellites-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.satellite-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.satellite-card:hover {
    border-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.sat-icon {
    font-size: 2rem;
}

.sat-info h3 {
    margin: 0;
    font-size: 0.95rem;
}

.sat-position {
    font-size: 0.8rem;
    color: #718096;
}

.sat-count {
    margin-left: auto;
    background: #e67e22;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Channel Types Grid */
.channel-types-section {
    padding: 3rem 0;
    background: #1a202c;
    color: #fff;
}

.channel-types-section .section-title {
    color: #fff;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s;
}

.type-card:hover {
    background: #e67e22;
    transform: translateY(-5px);
}

.type-icon {
    font-size: 2.5rem;
}

.type-label {
    font-weight: 600;
}

/* Channels Table */
.latest-frequencies-section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all-link {
    color: #e67e22;
    text-decoration: none;
    font-weight: 500;
}

.channels-table-wrapper {
    overflow-x: auto;
}

.channels-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.channels-table th {
    background: #1a202c;
    color: #fff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.channels-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.channels-table tr:hover {
    background: #f7fafc;
}

.channel-cell {
    min-width: 200px;
}

.channel-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1a202c;
    font-weight: 500;
}

.channel-link:hover {
    color: #e67e22;
}

.table-logo {
    width: 40px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

.freq-cell {
    color: #e67e22;
    font-weight: 700;
}

.sat-badge {
    display: inline-block;
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.status-badge.fta {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.encrypted {
    background: #fee2e2;
    color: #991b1b;
}

/* FTA Section */
.fta-section {
    padding: 3rem 0;
    background: #f0fdf4;
}

.channels-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.channel-card-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    position: relative;
}

.channel-card-mini:hover {
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.card-logo {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border-radius: 6px;
}

.card-logo img {
    max-width: 50px;
    max-height: 35px;
    object-fit: contain;
}

.no-logo {
    font-size: 1.5rem;
}

.card-info h3 {
    margin: 0;
    font-size: 0.95rem;
}

.card-freq {
    margin: 0;
    font-size: 0.85rem;
    color: #e67e22;
    font-weight: 600;
}

.card-sat {
    margin: 0;
    font-size: 0.8rem;
    color: #718096;
}

.fta-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #22c55e;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* Blog Section */
.blog-section {
    padding: 3rem 0;
}

.posts-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

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

.news-card .card-content {
    padding: 1.25rem;
}

.news-card .post-date {
    font-size: 0.8rem;
    color: #718096;
}

.news-card h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.news-card h3 a {
    color: #1a202c;
    text-decoration: none;
}

.news-card h3 a:hover {
    color: #e67e22;
}

.news-card p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .frequency-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .satellites-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .types-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-logo {
        order: -1;
    }

    .hero-freq-info {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .channel-hero-header {
        flex-direction: column;
        text-align: center;
    }

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

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

    .types-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .posts-grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .search-form-large {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* ========================================
   EMPTY SECTION NOTICES
   ======================================== */

.empty-section-notice {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e0;
}

.empty-section-notice .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-section-notice h3 {
    margin: 0 0 0.5rem;
    color: #4a5568;
    font-size: 1.5rem;
}

.empty-section-notice p {
    margin: 0;
    color: #718096;
    max-width: 400px;
    margin: 0 auto;
}

.empty-section-notice.empty-fta {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.empty-section-notice.empty-fta .empty-icon {
    color: #22c55e;
}

/* ========================================
   VIEW ALL BUTTON (IMPROVED)
   ======================================== */

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #e67e22;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

.view-all-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
    color: #fff;
}

/* ========================================
   IMPROVED TYPE CARDS
   ======================================== */

.type-card {
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.type-card:hover::before {
    opacity: 1;
}

.type-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ========================================
   SATELLITE CARDS IMPROVEMENTS
   ======================================== */

.satellite-card {
    position: relative;
    overflow: hidden;
}

.satellite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e67e22;
    transform: scaleY(0);
    transition: transform 0.3s;
}

.satellite-card:hover::before {
    transform: scaleY(1);
}

.sat-count {
    font-weight: 700;
    min-width: 80px;
    text-align: center;
}

/* ========================================
   TABLE IMPROVEMENTS
   ======================================== */

.channels-table tbody tr {
    transition: background 0.2s;
}

.channels-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.channels-table tbody tr:hover {
    background: #fff3cd;
}

/* ========================================
   NEWS CARDS IMPROVEMENTS
   ======================================== */

.news-card .post-thumbnail {
    height: 180px;
    overflow: hidden;
}

.news-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.news-card .card-content h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.news-card .card-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   DARK MODE TOGGLE & OVERRIDES
   ======================================== */

.dark-mode-toggle {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
    margin-left: 0.75rem;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    background: var(--border-color);
}

.dark-mode-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle .sun-icon {
    display: none;
}

/* Component Overrides for Dark Mode */
[data-theme="dark"] .grid-item,
[data-theme="dark"] .widget-area .widget,
[data-theme="dark"] .news-card,
[data-theme="dark"] .entry-content,
[data-theme="dark"] .table-wrapper,
[data-theme="dark"] .breadcrumbs-wrapper,
[data-theme="dark"] .author-box,
[data-theme="dark"] .comment-respond {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-main);
}

[data-theme="dark"] .site-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .top-bar {
    background-color: var(--footer-bg);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .breadcrumb-item a,
[data-theme="dark"] .grid-item .entry-title a,
[data-theme="dark"] .widget ul li a,
[data-theme="dark"] .main-navigation a {
    color: var(--text-main);
}

[data-theme="dark"] .breadcrumb-item a:hover,
[data-theme="dark"] .grid-item .entry-title a:hover,
[data-theme="dark"] .widget ul li a:hover,
[data-theme="dark"] .main-navigation a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .entry-content h2,
[data-theme="dark"] .channel-content h2 {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-color) !important;
}

[data-theme="dark"] table th {
    background-color: var(--secondary-bg);
    color: var(--text-heading);
}

[data-theme="dark"] table td {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .tag-links a {
    background: var(--secondary-bg);
    color: var(--text-main);
}

/* ========================================
   FOOTER IMPROVEMENTS
   ======================================== */

.footer-navigation ul {
    flex-wrap: wrap;
}

.footer-navigation a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s;
}

.footer-navigation a:hover {
    background: #e67e22;
}

/* ========================================
   RTL SPECIFIC FIXES
   ======================================== */

[dir="rtl"] .view-all-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .satellite-card::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .channel-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .breadcrumb-item:not(:last-child)::after {
    content: "\\";
    margin-left: 0;
    margin-right: 0.5rem;
}

/* ========================================
   SINGLE POST PAGE IMPROVEMENTS
   ======================================== */

/* Channel Hero Card Improvements */
.channel-hero-card {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #3d4a5c 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.channel-badges {
    flex-wrap: wrap;
}

.channel-meta-info {
    flex-wrap: wrap;
}

.channel-meta-info .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Frequency Card Improvements */
.frequency-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.frequency-card-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.frequency-grid {
    gap: 1rem;
}

.freq-item {
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.freq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.freq-item.freq-main {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.freq-value {
    font-size: 1.35rem;
}

.copy-freq-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.copy-freq-btn:hover {
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

/* Entry Content Improvements */
.entry-content.channel-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
}

.entry-content.channel-content h2,
.entry-content.channel-content h3,
.entry-content.channel-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.entry-content.channel-content p {
    margin-bottom: 1.25rem;
    color: #4a5568;
}

.entry-content.channel-content ul,
.entry-content.channel-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.entry-content.channel-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.entry-content.channel-content table th,
.entry-content.channel-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    text-align: right;
}

.entry-content.channel-content table th {
    background: #f7fafc;
    font-weight: 600;
    color: #1a202c;
}

.entry-content.channel-content table tr:hover {
    background: #f7fafc;
}

/* Author Box Improvements */
.author-box {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: none;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.author-box .author-avatar img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Related Posts Improvements */
.related-posts {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.related-posts .section-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e67e22;
    display: inline-block;
}

.related-posts .posts-grid {
    gap: 1.25rem;
}

.related-posts .grid-item {
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.related-posts .grid-item:hover {
    border-color: #e67e22;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-posts .entry-title a {
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Same Satellite Section Improvements */
.same-satellite-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 100%);
    border: 1px solid #d5dce4;
}

.same-satellite-section .section-title {
    color: #1a202c;
    margin-bottom: 1.5rem;
}

/* Share Buttons Improvements */
.share-buttons {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-buttons .share-label {
    font-size: 1rem;
    font-weight: 600;
}

.share-buttons .share-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-buttons .share-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    transition: all 0.3s;
}

.share-buttons .share-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Entry Footer with Tags */
.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.entry-footer .tag-links {
    margin-bottom: 1rem;
}

.entry-footer .tag-links a {
    margin-bottom: 0.5rem;
}

/* Standard Post Header */
.single-header .entry-title {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.single-header .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.single-header .entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* RTL Specific for Single Page */
[dir="rtl"] .entry-content.channel-content ul,
[dir="rtl"] .entry-content.channel-content ol {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .channel-hero-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .channel-meta-info {
    flex-direction: row-reverse;
}

[dir="rtl"] .frequency-card-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .share-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .author-box {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 4px solid #e67e22;
}

/* Mobile Responsive for Single Page */
@media (max-width: 768px) {
    .channel-hero-card {
        padding: 1.5rem;
    }

    .channel-hero-header {
        flex-direction: column;
        text-align: center;
    }

    .channel-title {
        font-size: 1.5rem;
    }

    .channel-meta-info {
        justify-content: center;
    }

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

    .entry-content.channel-content {
        padding: 1.25rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-header .entry-title {
        font-size: 1.5rem;
    }
}

/* Standard line-clamp property for compatibility */
.related-posts .entry-title a,
.news-card .card-content h3,
.news-card .card-content p {
    line-clamp: 2;
}

/* ========================================
   PROFESSIONAL FREQUENCY TABLES IN CONTENT
   ======================================== */

.entry-content table,
.channel-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.entry-content table thead,
.channel-content table thead {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.entry-content table th,
.channel-content table th {
    padding: 1rem 1.25rem;
    color: #fff;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.entry-content table td,
.channel-content table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #2d3748;
    vertical-align: middle;
}

.entry-content table tbody tr,
.channel-content table tbody tr {
    transition: all 0.2s;
}

.entry-content table tbody tr:nth-child(even),
.channel-content table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.entry-content table tbody tr:hover,
.channel-content table tbody tr:hover {
    background: linear-gradient(135deg, #fff5eb 0%, #fef3c7 100%);
    transform: scale(1.01);
}

.entry-content table tbody tr:last-child td,
.channel-content table tbody tr:last-child td {
    border-bottom: none;
}

/* Frequency Value Highlight */
.entry-content table td:nth-child(2),
.channel-content table td:nth-child(2) {
    color: #e67e22;
    font-weight: 700;
    font-size: 1.05rem;
}

/* Satellite Name Styling */
.entry-content table td:first-child,
.channel-content table td:first-child {
    font-weight: 600;
    color: #1a202c;
}

/* Quality Badge */
.entry-content table td:last-child,
.channel-content table td:last-child {
    font-weight: 500;
}

/* Responsive Tables */
@media (max-width: 768px) {

    .entry-content table,
    .channel-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .entry-content table th,
    .entry-content table td,
    .channel-content table th,
    .channel-content table td {
        padding: 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* Frequency Section Headers (h2, h3 before tables) */
.entry-content h2,
.channel-content h2 {
    font-size: 1.5rem;
    color: #1a202c;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e67e22;
    display: inline-block;
}

.entry-content h3,
.channel-content h3 {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 2rem 0 1rem;
}

/* Category Badge in Single Post */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
    color: #fff;
}

/* ========================================
   COMPREHENSIVE RTL SUPPORT
   ======================================== */

/* Base RTL */
html[dir="rtl"],
body.rtl,
.rtl {
    direction: rtl;
    text-align: right;
}

/* Header RTL */
html[dir="rtl"] .site-header .container,
body.rtl .site-header .container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .main-navigation ul,
body.rtl .main-navigation ul {
    flex-direction: row-reverse;
}

html[dir="rtl"] .main-navigation li,
body.rtl .main-navigation li {
    margin-left: 0;
    margin-right: 1.5rem;
}

html[dir="rtl"] .main-navigation li:first-child,
body.rtl .main-navigation li:first-child {
    margin-right: 0;
}

/* Sub-menus RTL */
html[dir="rtl"] .main-navigation ul ul,
body.rtl .main-navigation ul ul {
    left: auto;
    right: 0;
}

html[dir="rtl"] .main-navigation ul ul ul,
body.rtl .main-navigation ul ul ul {
    left: auto;
    right: 100%;
}

/* Search & Icons RTL */
html[dir="rtl"] .header-search,
body.rtl .header-search {
    margin-left: 0;
    margin-right: auto;
}

/* Sidebar RTL */
html[dir="rtl"] .content-grid-wrapper,
body.rtl .content-grid-wrapper {
    direction: rtl;
}

html[dir="rtl"] .sidebar,
body.rtl .sidebar {
    border-left: none;
    border-right: 1px solid #e2e8f0;
    padding-left: 0;
    padding-right: 2rem;
}

/* Cards RTL */
html[dir="rtl"] .card,
html[dir="rtl"] .grid-item,
body.rtl .card,
body.rtl .grid-item {
    text-align: right;
}

/* Entry Meta RTL */
html[dir="rtl"] .entry-meta,
body.rtl .entry-meta {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .entry-meta span,
body.rtl .entry-meta span {
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .entry-meta span:first-child,
body.rtl .entry-meta span:first-child {
    margin-right: 0;
}

/* Lists RTL */
html[dir="rtl"] ul,
html[dir="rtl"] ol,
body.rtl ul,
body.rtl ol {
    padding-left: 0;
    padding-right: 1.5rem;
}

/* Blockquote RTL */
html[dir="rtl"] blockquote,
body.rtl blockquote {
    border-left: none;
    border-right: 4px solid #e67e22;
    padding-left: 0;
    padding-right: 1.5rem;
    margin-left: 0;
    margin-right: 0;
}

/* Forms RTL */
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="search"],
html[dir="rtl"] textarea,
body.rtl input[type="text"],
body.rtl input[type="email"],
body.rtl input[type="search"],
body.rtl textarea {
    text-align: right;
}

/* Buttons RTL */
html[dir="rtl"] .btn,
html[dir="rtl"] button,
body.rtl .btn,
body.rtl button {
    direction: rtl;
}

/* Share Buttons RTL */
html[dir="rtl"] .share-buttons,
body.rtl .share-buttons {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* Author Box RTL */
html[dir="rtl"] .author-box,
body.rtl .author-box {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .author-avatar,
body.rtl .author-avatar {
    margin-right: 0;
    margin-left: 1.5rem;
}

/* Related Posts RTL */
html[dir="rtl"] .related-posts .grid,
body.rtl .related-posts .grid {
    direction: rtl;
}

/* Footer RTL */
html[dir="rtl"] .footer-widgets,
body.rtl .footer-widgets {
    direction: rtl;
}

html[dir="rtl"] .footer-bottom,
body.rtl .footer-bottom {
    flex-direction: row-reverse;
}

/* Pagination RTL */
html[dir="rtl"] .pagination,
body.rtl .pagination {
    flex-direction: row-reverse;
}

html[dir="rtl"] .pagination .prev,
body.rtl .pagination .prev {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .pagination .next,
body.rtl .pagination .next {
    margin-right: 0;
    margin-left: auto;
}

/* Tags RTL */
html[dir="rtl"] .entry-tags,
html[dir="rtl"] .post-tags,
body.rtl .entry-tags,
body.rtl .post-tags {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* Categories RTL */
html[dir="rtl"] .post-categories,
body.rtl .post-categories {
    justify-content: flex-end;
}

/* Frequency Card RTL */
html[dir="rtl"] .frequency-grid,
body.rtl .frequency-grid {
    direction: rtl;
}

html[dir="rtl"] .frequency-item,
body.rtl .frequency-item {
    text-align: right;
}

/* Channel Hero RTL */
html[dir="rtl"] .channel-hero-header,
body.rtl .channel-hero-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .channel-info,
body.rtl .channel-info {
    text-align: right;
}

/* Tables RTL */
html[dir="rtl"] table,
body.rtl table {
    direction: rtl;
}

html[dir="rtl"] th,
html[dir="rtl"] td,
body.rtl th,
body.rtl td {
    text-align: right;
}

/* Comments RTL */
html[dir="rtl"] .comment-list,
body.rtl .comment-list {
    padding-right: 0;
}

html[dir="rtl"] .comment-author img,
body.rtl .comment-author img {
    margin-right: 0;
    margin-left: 1rem;
}

html[dir="rtl"] .comment-body,
body.rtl .comment-body {
    text-align: right;
}

/* Widgets RTL */
html[dir="rtl"] .widget,
body.rtl .widget {
    text-align: right;
}

html[dir="rtl"] .widget ul,
body.rtl .widget ul {
    padding-right: 0;
}

/* Back to Top RTL */
html[dir="rtl"] .back-to-top,
body.rtl .back-to-top {
    left: 2rem;
    right: auto;
}

/* Mobile Menu RTL */
@media (max-width: 992px) {

    html[dir="rtl"] .mobile-menu,
    body.rtl .mobile-menu {
        left: auto;
        right: 0;
        transform: translateX(100%);
    }

    html[dir="rtl"] .mobile-menu.active,
    body.rtl .mobile-menu.active {
        transform: translateX(0);
    }

    html[dir="rtl"] .menu-toggle,
    body.rtl .menu-toggle {
        margin-left: 0;
        margin-right: auto;
    }
}

/* Icons with text RTL */
html[dir="rtl"] .icon-text,
body.rtl .icon-text {
    flex-direction: row-reverse;
}

html[dir="rtl"] .icon-text svg,
html[dir="rtl"] .icon-text .dashicons,
body.rtl .icon-text svg,
body.rtl .icon-text .dashicons {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Topbar RTL */
html[dir="rtl"] .topbar,
body.rtl .topbar {
    direction: rtl;
}

html[dir="rtl"] .topbar-left,
body.rtl .topbar-left {
    margin-left: auto;
    margin-right: 0;
}

html[dir="rtl"] .topbar-right,
body.rtl .topbar-right {
    margin-right: auto;
    margin-left: 0;
}

/* News Ticker RTL */
html[dir="rtl"] .news-ticker,
body.rtl .news-ticker {
    direction: rtl;
}

/* Social Icons RTL */
html[dir="rtl"] .social-icons,
body.rtl .social-icons {
    flex-direction: row-reverse;
}