?????/*
Theme Name: Tecakhbar News
Theme URI: https://tecakhbar.com/
Author: Tecakhbar
Author URI: https://tecakhbar.com/
Description: ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ط£آ¯ط·ع؛ط¢آ½ ط£آ¯ط·ع؛ط¢آ½ RTL.
Version: 1.1.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tecakhbar-news
Tags: news, blog, magazine, rtl-language-support, translation-ready, one-column, two-columns, right-sidebar, custom-logo, featured-images, theme-options, footer-widgets, full-width-template
*/

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --tec-primary: #58b6ff;
    --tec-secondary: #ff5f7d;
    --tec-accent: #18263b;
    --tec-text: #e9f1fb;
    --tec-muted: #97a9c1;
    --tec-border: #24354d;
    --tec-white: #ffffff;
    --tec-dark: #050a12;
    --tec-radius: 8px;
    --tec-shadow-sm: 0 12px 28px rgba(0, 0, 0, .24);
    --tec-shadow: 0 20px 52px rgba(0, 0, 0, .34);
    --tec-transition: .2s ease;
    --tec-primary-hover: #7bc7ff;
    --tec-page-bg: #0a1019;
    --tec-surface: #111b2c;
    --tec-surface-2: #162339;
    --tec-header-bg: rgba(10, 16, 25, 0.96);
    
    /* Footer & Brand Colors */
    --tec-footer-bg: #040812;
    --tec-footer-text: #c1cde0;
    --tec-footer-border: rgba(255, 255, 255, 0.12);
    --tec-brand-fb: #1877f2;
    --tec-brand-tw: #000;
    --tec-brand-wa: #25d366;
    --tec-always-white: #ffffff;
    --tec-breaking-hover: #0b1220;
}

/* ============================================================
   Dark / Night Theme (toggle with `html.dark-theme`)
   ============================================================ */
body.dark-theme {
    --tec-primary: #6fc3ff;
    --tec-primary-hover: #94d3ff;
    --tec-secondary: #ff7691;
    --tec-accent: #1b2a40;
    --tec-text: #eef4ff;
    --tec-muted: #a8b6ca;
    --tec-border: #2a3c57;
    --tec-dark: #030711;
    --tec-page-bg: #070d17;
    --tec-surface: #0f1828;
    --tec-surface-2: #162338;
    --tec-header-bg: rgba(7, 13, 23, 0.98);
    --tec-footer-bg: #02060d;
    --tec-footer-text: #c8d3e4;
    --tec-footer-border: rgba(255, 255, 255, 0.14);
    --tec-brand-tw: #000;
    --tec-breaking-hover: #02060d;
    color-scheme: dark;
}

/* ============================================================
   Default Dark Tech Skin
   ============================================================ */
body,
.site,
.home-page,
.single-page,
.archive-page,
.search-page,
.page {
    background-color: var(--tec-page-bg);
    color: var(--tec-text);
}

.site-header,
.site-header > .container,
.site-branding,
.header-search-bar {
    background-color: var(--tec-header-bg) !important;
}

.site-header,
.primary-nav,
.search-toggle,
.theme-toggle,
.menu-toggle,
.header-search-input,
.newsletter-input,
.page-header,
.single-content blockquote {
    border-color: var(--tec-border);
}

.news-card,
.grid-news-card,
.sidebar-widget,
.single-article,
.related-card,
.archive-card,
.main-post-content,
.news-card-body,
.related-card-body,
.archive-card-body,
.page-header,
.header-search-bar,
.header-search-input,
.newsletter-input,
.comment-textarea,
.single-content blockquote {
    background-color: var(--tec-surface);
    color: var(--tec-text);
    box-shadow: var(--tec-shadow-sm);
}

.main-post-card,
.grid-news-card,
.news-card,
.sidebar-widget,
.single-article,
.related-card,
.archive-card,
.page-header {
    border: 1px solid var(--tec-border);
}

.news-card:hover,
.grid-news-card:hover,
.related-card:hover,
.archive-card:hover,
.main-post-card:hover {
    box-shadow: var(--tec-shadow);
}

.site-description,
.sidebar-post-date,
.single-meta,
.sub-post-meta,
.related-card-date,
.archive-desc,
.archive-count,
.footer-dev {
    color: var(--tec-muted);
}

.header-search-input::placeholder,
.newsletter-input::placeholder,
.footer-newsletter-form input::placeholder {
    color: var(--tec-muted);
}

.search-toggle,
.theme-toggle,
.menu-toggle {
    background: var(--tec-surface-2);
    color: var(--tec-text);
}

.primary-nav {
    background-color: #02060d;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.primary-menu a:hover {
    background: rgba(88, 182, 255, 0.12);
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    background: rgba(88, 182, 255, 0.18);
}

.site-footer,
.footer-widgets,
.footer-bottom {
    background-color: var(--tec-footer-bg);
    color: var(--tec-footer-text);
}

.footer-links a,
.footer-bottom-menu li a,
.footer-about-text,
.footer-dev {
    color: var(--tec-footer-text);
}

.footer-newsletter-form {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.single-page th,
.single-page td {
    background-color: var(--tec-surface);
    color: var(--tec-text);
    border-color: var(--tec-border);
}

.single-page th {
    background-color: var(--tec-surface-2);
}

body {
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 85% 12%, rgba(88, 182, 255, 0.10), transparent 28%),
        radial-gradient(circle at 18% 20%, rgba(255, 95, 125, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 22%);
    opacity: 0.95;
    z-index: 0;
}

#page,
.site-header,
.primary-nav,
.site-footer {
    position: relative;
    z-index: 1;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    :root {
        --tec-transition: none;
    }
    /* ============================================================
   Reduced Motion
   ============================================================ */
*, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Specific overrides for Dark Mode */
body.dark-theme .news-card,
body.dark-theme .sidebar-widget,
body.dark-theme .site-header,
body.dark-theme .primary-nav,
body.dark-theme .primary-menu .sub-menu,
body.dark-theme .share-section,
body.dark-theme .newsletter-input,
body.dark-theme .header-search-input,
body.dark-theme .single-content blockquote {
    background-color: var(--tec-accent);
}

/* Footer Dark Mode Visibility Fixes */
body.dark-theme .footer-bottom {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-theme .footer-bottom-menu li a {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-theme .social-icon {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .site-header,
body.dark-theme .primary-nav {
    border-color: var(--tec-border);
}

body.dark-theme img {
    opacity: .9;
    transition: opacity .3s ease;
}

body.dark-theme img:hover {
    opacity: 1;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--tec-accent); 
}

::-webkit-scrollbar-thumb {
    background: var(--tec-muted); 
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tec-primary); 
}

/* Text Selection */
::selection {
    background: var(--tec-primary);
    color: var(--tec-always-white);
}

/* Smooth theme transitions */
body,
.site-header,
.primary-nav,
.breaking-news-bar,
.news-card,
.sidebar-widget,
.header-search-input,
.newsletter-input,
a,
button {
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

/* Theme toggle button visuals */
.theme-toggle {
    background: none;
    border: 1px solid var(--tec-border);
    border-radius: var(--tec-radius);
    cursor: pointer;
    padding: .35rem .5rem;
    color: var(--tec-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--tec-transition), color var(--tec-transition);
}
.theme-toggle svg { display: block; }
.theme-toggle:hover { background-color: var(--tec-accent); }

/* Dark mode is the only supported theme */
.theme-toggle {
    display: none !important;
}

/* ============================================================
   Back to Top Button
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 45px;
    height: 45px;
    background-color: var(--tec-primary);
    color: var(--tec-always-white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--tec-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}
    /* ============================================================
   Base
   ============================================================ */
html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    background-color: var(--tec-white);
    color: var(--tec-text);
    line-height: 1.7;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--tec-primary);
    text-decoration: none;
    transition: color var(--tec-transition);
}

a:hover {
    color: var(--tec-secondary);
}

/* ============================================================
   Grid / Layout
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -.5rem;
    margin-left: -.5rem;
}

[class*="col-"] {
    padding-right: .5rem;
    padding-left: .5rem;
}

.col-12,
.col-lg-8,
.col-lg-4,
.col-md-6 {
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-8 {
        width: 66.6667%;
    }

    .col-lg-4 {
        width: 33.3333%;
    }
}

/* ============================================================
   Breaking News Bar
   ============================================================ */
.breaking-news-bar {
    background-color: var(--tec-primary);
    color: var(--tec-always-white);
    font-size: .9rem;
    overflow: hidden;
}

.breaking-inner {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 0;
}

/* ============================================================
   Scroll Progress Bar
   ============================================================ */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tec-secondary), var(--tec-primary));
    width: 0%;
    transition: width 0.1s;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.breaking-label {
    background-color: var(--tec-secondary);
    border-radius: 4px;
    padding: .1rem .5rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    animation: pulse-red 2s infinite;
}

.breaking-ticker-wrap {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.breaking-ticker {
    display: flex;
    gap: 3rem;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
    flex-wrap: nowrap;              /* prevent items from wrapping into multiple rows */
    overflow-x: hidden;            /* hide any horizontal overflow so duplicates stay off-screen */
}

.breaking-ticker:hover {
    animation-play-state: paused;
}

.breaking-item {
    color: var(--tec-always-white);
    flex-shrink: 0;
    white-space: nowrap;           /* keep the headline on one line */
}

.breaking-item:hover {
    color: var(--tec-breaking-hover);
}

@keyframes ticker-scroll {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-card, .sidebar-widget, .single-article, .related-card, .archive-card {
    animation: fadeIn 0.6s ease backwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================================
   Main News Grid (3x2)
   ============================================================ */
.main-news-section {
    margin-bottom: 2.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-news-card {
    background: var(--tec-white);
    border-radius: var(--tec-radius);
    overflow: hidden;
    box-shadow: var(--tec-shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.grid-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tec-shadow);
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.grid-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-news-card:hover .grid-card-img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--tec-secondary);
    color: var(--tec-white);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.grid-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.grid-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.grid-card-title a {
    color: var(--tec-text);
}

.grid-card-title a:hover {
    color: var(--tec-secondary);
}

.grid-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--tec-muted);
    margin-bottom: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.grid-card-excerpt {
    font-size: 0.85rem;
    color: var(--tec-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.grid-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--tec-border);
}

.read-more-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tec-primary);
}

.card-share-btns {
    display: flex;
    gap: 8px;
}

.share-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--tec-white);
    transition: opacity 0.2s;
}

.share-icon:hover {
    opacity: 0.8;
    color: var(--tec-white);
}

.share-icon.fb { background: #1877f2; }
.share-icon.tw { background: #000; }
.share-icon.wa { background: #25d366; }

/* Responsive Grid */
@media (max-width: 991.98px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .card-thumb-wrap {
        height: 220px;
    }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    background-color: var(--tec-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    isolation: isolate;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.site-header > .container {
    background-color: var(--tec-white);
    position: relative;
    z-index: 2;
}

.site-branding {
    background-color: var(--tec-white);
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}

.site-identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--tec-primary);
    margin: 0;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.site-title:hover {
    color: var(--tec-secondary);
}

.site-description {
    font-size: 0.85rem;
    color: var(--tec-muted);
    margin: 0;
    font-weight: 500;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-toggle,
.theme-toggle,
.menu-toggle {
    background: var(--tec-accent);
    border: 1px solid var(--tec-border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    color: var(--tec-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-toggle:hover,
.theme-toggle:hover,
.menu-toggle:hover {
    background-color: var(--tec-primary);
    color: var(--tec-white);
    border-color: var(--tec-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hamburger bars */
.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle {
    flex-direction: column;
    gap: 4px;
}

.menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Search Bar */
.header-search-bar {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--tec-accent);
    border-radius: 0 0 15px 15px;
}

.header-search-bar.search-open {
    max-height: 100px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

.header-search-bar form {
    display: flex;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.header-search-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 2px solid var(--tec-border);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.header-search-input:focus {
    border-color: var(--tec-primary);
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
    outline: none;
}

.header-search-btn {
    padding: 0.75rem 2rem;
    background-color: var(--tec-primary);
    color: var(--tec-white);
    border: none;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-search-btn:hover {
    background-color: var(--tec-primary-hover);
    transform: scale(1.05);
}

/* ============================================================
   Primary Navigation (Enhanced Pitch Black Theme)
   ============================================================ */
.primary-nav {
    background-color: #000000; /* Pitch black for maximum professionalism */
    border-top: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    z-index: 99;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.primary-menu li {
    margin: 0;
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 1.1rem 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.2px;
}

/* Hover & Active Effects */
.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: var(--tec-secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.primary-menu a:hover {
    color: var(--tec-white);
    background: rgba(255, 255, 255, 0.1);
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item>a::after,
.primary-menu .current_page_item>a::after {
    width: 100%;
}

.primary-menu .current-menu-item>a,
.primary-menu .current_page_item>a {
    color: var(--tec-white);
    background: rgba(255, 255, 255, 0.15);
}

/* Sub-menus (Dark Themed) */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #000000;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0 0 12px 12px;
    min-width: 220px;
    z-index: 2000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    padding: 0.5rem 0;
    list-style: none;
    animation: navSlideUp 0.3s ease;
}

@keyframes navSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.primary-menu li:hover>.sub-menu {
    display: block;
}

.primary-menu .sub-menu a {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.primary-menu .sub-menu a::after {
    display: none;
}

.primary-menu .sub-menu a:hover {
    padding-right: 2rem;
    background: var(--tec-primary);
}

/* Mobile Nav */
@media (max-width: 767.98px) {
    .primary-nav {
        display: none;
        background-color: #000000;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    }

    .primary-nav.nav-open {
        display: block;
        animation: navSlideDown 0.4s ease;
    }

    @keyframes navSlideDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .primary-menu {
        flex-direction: column;
        padding: 1rem 0;
    }

    .primary-menu a {
        padding: 1.1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .primary-menu a::after {
        left: auto;
        right: 0;
        bottom: auto;
        top: 50%;
        width: 4px;
        height: 0;
        transform: translateY(-50%);
    }
    
    .primary-menu a:hover::after {
        height: 70%;
    }
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* ============================================================
   Category News Sections (Al Jazeera Style)
   ============================================================ */
.category-news-section {
    margin-bottom: 2.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--tec-border);
}

.category-news-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-right: 4px solid var(--tec-primary);
    padding-right: 1rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: var(--tec-text);
}

.view-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tec-secondary);
    transition: all 0.3s ease;
}

.view-more:hover {
    color: var(--tec-primary);
    transform: translateX(-5px);
}

.category-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center; /* Center main card vertically against taller column */
}

.main-post-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--tec-shadow-sm);
    height: 100%;
    align-self: center; /* Keep the featured post vertically centered within its grid cell */
}

.main-post-card .card-thumb {
    height: 300px;
    position: relative;
}

.main-post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-post-card:hover img {
    transform: scale(1.05);
}

.main-post-content {
    padding: 1.5rem;
    background: var(--tec-white);
}

.main-post-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.sub-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sub-post-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    align-items: start;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sub-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sub-post-thumb {
    width: 100px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
}

.sub-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-post-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 5px;
}

.sub-post-meta {
    font-size: 0.75rem;
    color: var(--tec-muted);
    display: flex;
    gap: 10px;
}

/* Responsive News Sections */
@media (max-width: 991px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    .main-post-card .card-thumb {
        height: 250px;
    }
}

@media (max-width: 575px) {
    .sub-post-item {
        grid-template-columns: 80px 1fr;
    }
    .sub-post-thumb {
        width: 80px;
        height: 60px;
    }
    .main-post-title {
        font-size: 1.1rem;
    }
}
/* Ad Placeholders */
.ad-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    color: #999;
    text-align: center;
    padding: 20px;
    margin: 1.5rem 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dark-theme .ad-placeholder {
    background: #222;
    border-color: #444;
    color: #666;
}

/* ============================================================
   FEATURED SLIDER
   ============================================================ */
.featured-slider-section {
    margin-bottom: 1.5rem;
}

.featured-slider {
    position: relative;
    border-radius: var(--tec-radius);
    overflow: hidden;
    background: #000;
    height: 420px;
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}

.slider-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-image-link {
    display: block;
    height: 100%;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .1) 60%, transparent 100%);
}

.slider-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 1.5rem 1.75rem;
    color: var(--tec-white);
}

.slider-category {
    margin-bottom: .5rem;
}

.slider-title {
    font-size: clamp(1.1rem, 3vw, 1.7rem);
    font-weight: 700;
    margin: 0 0 .5rem;
    line-height: 1.3;
}

.slider-title a {
    color: var(--tec-always-white);
}

.slider-title a:hover {
    color: #ffd;
}

.slider-meta {
    font-size: .85rem;
    opacity: .85;
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .2);
    border: none;
    color: var(--tec-white);
    font-size: 2rem;
    padding: .3rem .8rem;
    cursor: pointer;
    border-radius: var(--tec-radius);
    backdrop-filter: blur(4px);
    transition: background var(--tec-transition);
    z-index: 10;
    line-height: 1;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, .4);
}

.slider-btn-prev {
    right: .75rem;
}

.slider-btn-next {
    left: .75rem;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: .75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .4rem;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--tec-transition), transform var(--tec-transition);
}

.slider-dot.active {
    background: var(--tec-white);
    transform: scale(1.3);
}

@media (max-width: 767.98px) {
    .featured-slider {
        height: 260px;
    }

    .slider-caption {
        padding: 1rem;
    }
}

/* ============================================================
   Section Headers
   ============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--tec-primary);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--tec-primary);
}

.section-link {
    font-size: .85rem;
    color: var(--tec-secondary);
    font-weight: 600;
}

/* ============================================================
   News Cards (Homepage Highlights)
   ============================================================ */
.home-page {
    padding: 1.5rem 0;
}

.news-card {
    border-radius: var(--tec-radius);
    box-shadow: var(--tec-shadow-sm);
    overflow: hidden;
    background-color: var(--tec-white);
    margin-bottom: 1.25rem;
    transition: box-shadow var(--tec-transition), transform var(--tec-transition);
}

.news-card:hover {
    box-shadow: var(--tec-shadow);
    transform: translateY(-2px);
}

.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .3s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.02);
}

.news-card-body {
    padding: 1rem 1.1rem 1.2rem;
}

.news-category {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    color: var(--tec-secondary);
    margin-bottom: .4rem;
}

.news-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.news-title a {
    color: var(--tec-text);
}

.news-title a:hover {
    color: var(--tec-secondary);
}

.news-meta {
    font-size: .8rem;
    color: var(--tec-muted);
}

/* ============================================================
   Latest Section
   ============================================================ */
.latest-section {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
}

.latest-item {
    display: flex;
    gap: .75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--tec-border);
}

.latest-thumb {
    flex-shrink: 0;
}

.latest-thumb a img,
.latest-thumb-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform .3s ease;
}

.latest-item:hover .latest-thumb-image {
    transform: scale(1.04);
}

.latest-no-image {
    width: 120px;
    height: 80px;
    background-color: var(--tec-accent);
    border-radius: 6px;
}

.latest-category {
    display: block;
    font-size: .78rem;
    color: var(--tec-secondary);
    margin-bottom: .25rem;
    font-weight: 600;
}

.latest-title {
    font-size: .95rem;
    margin: 0 0 .25rem;
}

.latest-title a {
    color: var(--tec-text);
}

.latest-title a:hover {
    color: var(--tec-secondary);
}

/* ============================================================
   Badge
   ============================================================ */
.badge-category {
    display: inline-block;
    background-color: var(--tec-secondary);
    color: var(--tec-white);
    border-radius: 999px;
    padding: .15rem .7rem;
    font-size: .8rem;
    font-weight: 700;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar-widget {
    background-color: var(--tec-accent);
    border-radius: var(--tec-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .75rem;
    color: var(--tec-primary);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--tec-primary);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    font-size: .9rem;
    margin-bottom: .5rem;
}

.sidebar-list li a {
    color: var(--tec-text);
}

.sidebar-list li a:hover {
    color: var(--tec-secondary);
}

.sidebar-post-date {
    display: block;
    font-size: .75rem;
    color: var(--tec-muted);
}

.sidebar-list.numbered {
    counter-reset: sidebar-counter;
}

.sidebar-list.numbered li {
    counter-increment: sidebar-counter;
    position: relative;
    padding-right: 2rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--tec-border);
}

.sidebar-list.numbered li::before {
    content: counter(sidebar-counter);
    position: absolute;
    top: .1rem;
    right: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--tec-primary);
    color: var(--tec-white);
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Newsletter */
.newsletter-description {
    font-size: .9rem;
    margin-bottom: .75rem;
}

.newsletter-input {
    width: 100%;
    padding: .5rem .75rem;
    border-radius: 4px;
    border: 1px solid var(--tec-border);
    margin-bottom: .75rem;
    font-size: .9rem;
    font-family: 'Cairo', sans-serif;
    background-color: var(--tec-white);
    color: var(--tec-text);
}

.newsletter-button {
    display: block;
    width: 100%;
    padding: .55rem .9rem;
    border-radius: 4px;
    border: none;
    background-color: var(--tec-primary);
    color: var(--tec-white);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: background var(--tec-transition);
}

.newsletter-button:hover {
    background-color: var(--tec-primary-hover);
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem;
    font-size: .85rem;
    color: var(--tec-muted);
    margin-bottom: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--tec-border);
}

.breadcrumb a {
    color: var(--tec-muted);
}

.breadcrumb a:hover {
    color: var(--tec-secondary);
}

.breadcrumb-sep {
    opacity: .5;
}

/* ============================================================
   Single Post
   ============================================================ */
.single-page,
.static-page {
    padding: 1.5rem 0 3rem;
}

.single-hero-image {
    position: relative;
    border-radius: var(--tec-radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.single-featured-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.single-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--tec-secondary);
    color: var(--tec-white);
    border-radius: 999px;
    padding: .2rem .8rem;
    font-size: .8rem;
    font-weight: 700;
}

.single-header {
    margin-bottom: 1.5rem;
}

.single-title {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 .75rem;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    color: var(--tec-muted);
}

.single-meta a {
    color: var(--tec-primary);
}

.single-meta-sep {
    opacity: .4;
}

.single-meta-icon {
    font-size: .8rem;
}

.single-content {
    font-size: 1.05rem;
    line-height: 1.85;
    border-bottom: 1px solid var(--tec-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.single-content p {
    margin-bottom: 1.1rem;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    color: var(--tec-primary);
    margin-top: 1.5rem;
}

.single-content blockquote {
    border-right: 4px solid var(--tec-primary);
    padding: .75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--tec-accent);
    border-radius: 0 var(--tec-radius) var(--tec-radius) 0;
    font-style: italic;
}

.single-content img {
    border-radius: var(--tec-radius);
    margin: 1rem auto;
}

/* Tags */
.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.tag-pill {
    background: var(--tec-accent);
    border: 1px solid var(--tec-border);
    border-radius: 999px;
    padding: .25rem .75rem;
    font-size: .85rem;
    color: var(--tec-text);
}

.tag-pill:hover {
    background: var(--tec-primary);
    color: var(--tec-white);
    border-color: var(--tec-primary);
}

/* Share */
.share-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--tec-accent);
    border-radius: var(--tec-radius);
}

.share-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.share-buttons {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem 1.1rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--tec-white);
    border: 1px solid transparent;
    transition: opacity var(--tec-transition), border-color var(--tec-transition), background-color var(--tec-transition);
}

.share-btn:hover {
    opacity: .85;
    color: var(--tec-white);
}

.share-fb {
    background: var(--tec-brand-fb);
}

.share-tw {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.share-wa {
    background: var(--tec-brand-wa);
}

.share-tg {
    background: #229ED9;
}

.share-ln {
    background: #0A66C2;
}

.share-mail {
    background: #6c5ce7;
}

.share-copy {
    background: rgba(255,255,255,0.05);
    color: var(--tec-text);
    border: 1px solid var(--tec-border);
}

body.dark-theme .share-copy {
    color: var(--tec-always-white);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
}

.share-copy.copied {
    background: var(--tec-primary);
    color: var(--tec-always-white);
    border-color: var(--tec-primary);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--tec-accent);
    border-radius: var(--tec-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.author-avatar {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.author-name {
    margin: 0 0 .3rem;
    font-size: 1rem;
}

.author-bio {
    font-size: .9rem;
    color: var(--tec-muted);
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-nav-link {
    flex: 1 1 45%;
    padding: 1rem;
    border: 1px solid var(--tec-border);
    border-radius: var(--tec-radius);
    display: flex;
    flex-direction: column;
    gap: .25rem;
    color: var(--tec-text);
    transition: border-color var(--tec-transition), background var(--tec-transition);
}

.post-nav-link:hover {
    border-color: var(--tec-primary);
    background: var(--tec-accent);
    color: var(--tec-text);
}

.post-nav-label {
    font-size: .8rem;
    color: var(--tec-muted);
}

.post-nav-title {
    font-size: .95rem;
    font-weight: 600;
}

.post-nav-next {
    text-align: left;
}

/* Related Posts */
.related-section {
    margin-top: 2rem;
}

.related-title {
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--tec-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 575px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-card {
    border-radius: var(--tec-radius);
    overflow: hidden;
    box-shadow: var(--tec-shadow-sm);
    background: var(--tec-white);
}

.related-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform .3s;
}

.related-card:hover .related-card-img {
    transform: scale(1.04);
}

.related-card-body {
    padding: .75rem;
}

.related-card-title {
    font-size: .9rem;
    margin: 0 0 .25rem;
}

.related-card-title a {
    color: var(--tec-text);
}

.related-card-title a:hover {
    color: var(--tec-secondary);
}

.related-card-date {
    font-size: .78rem;
    color: var(--tec-muted);
}

/* ============================================================
   Archive / Search
   ============================================================ */
.archive-page {
    padding: 1.5rem 0 3rem;
}

.archive-hero {
    background: linear-gradient(135deg, var(--tec-primary) 0%, #005599 100%);
    border-radius: var(--tec-radius);
    padding: 1.5rem 2rem;
    margin: 0 auto 1.5rem;
    max-width: 980px;
    color: var(--tec-white);
}

.archive-title {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 700;
    margin: .5rem 0;
    color: var(--tec-white);
}

.archive-desc {
    margin: .5rem 0 0;
    opacity: .85;
}

.archive-count {
    font-size: .85rem;
    opacity: .75;
    display: block;
    margin-top: .5rem;
}

.archive-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.archive-card {
    border-radius: var(--tec-radius);
    box-shadow: var(--tec-shadow-sm);
    overflow: hidden;
    background: var(--tec-white);
    transition: box-shadow var(--tec-transition), transform var(--tec-transition);
}

.archive-card:hover {
    box-shadow: var(--tec-shadow);
    transform: translateY(-2px);
}

.archive-card-inner {
    display: flex;
}

.archive-card-thumb {
    flex-shrink: 0;
}

.archive-card-img {
    width: 200px;
    height: 140px;
    object-fit: cover;
}

.archive-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
}

.archive-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: .25rem 0 .5rem;
}

.archive-card-title a {
    color: var(--tec-text);
}

.archive-card-title a:hover {
    color: var(--tec-secondary);
}

.archive-card-excerpt {
    font-size: .9rem;
    color: var(--tec-muted);
    margin: 0 0 .5rem;
}

@media (max-width: 575px) {
    .archive-card-inner {
        flex-direction: column;
    }

    .archive-card-img {
        width: 100%;
        height: 180px;
    }
}

/* Pagination */
.archive-pagination {
    margin-top: 2rem;
}

.archive-pagination .nav-links {
    display: flex;
    gap: .5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers {
    padding: .4rem .85rem;
    border-radius: var(--tec-radius);
    border: 1px solid var(--tec-border);
    font-size: .9rem;
    color: var(--tec-text);
    transition: background var(--tec-transition), color var(--tec-transition);
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: var(--tec-primary);
    color: var(--tec-white);
    border-color: var(--tec-primary);
}

/* No Results */
.no-results {
    padding: 3rem;
    text-align: center;
}

.no-results-inner {
    max-width: 400px;
    margin: auto;
}

.no-results-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* ============================================================
   Static Page
   ============================================================ */
.page-hero-image {
    border-radius: var(--tec-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.page-featured-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.page-content {
    font-size: 1.05rem;
    line-height: 1.85;
}

.page-header {
    border-bottom: 2px solid var(--tec-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

/* ============================================================
   404 Page
   ============================================================ */
.error-page {
    padding: 5rem 0;
    text-align: center;
}

.error-inner {
    max-width: 500px;
    margin: auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--tec-primary);
    line-height: 1;
    opacity: .15;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.error-desc {
    color: var(--tec-muted);
    margin-bottom: 1.5rem;
}

.error-search-wrap {
    display: flex;
    gap: .5rem;
}

.error-home-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: .6rem 2rem;
    border-radius: 999px;
    background: var(--tec-primary);
    color: var(--tec-white);
    font-weight: 600;
}

.error-home-btn:hover {
    background: var(--tec-primary-hover);
    color: var(--tec-white);
}

/* ============================================================
   Comments
   ============================================================ */
.comments-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--tec-border);
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tec-comment {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--tec-accent);
    border-radius: var(--tec-radius);
}

.tec-comment-inner {
    display: flex;
    gap: .75rem;
}

.tec-comment-meta {
    display: flex;
    gap: .75rem;
    align-items: center;
    font-size: .85rem;
    margin-bottom: .5rem;
    flex-wrap: wrap;
}

.tec-comment-author {
    font-weight: 700;
}

.tec-comment-date {
    color: var(--tec-muted);
}

.tec-comment-reply a {
    color: var(--tec-secondary);
    font-size: .8rem;
}

.tec-comment-content {
    font-size: .95rem;
}

.comment-form {
    margin-top: 2rem;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.comment-textarea {
    width: 100%;
    border-radius: var(--tec-radius);
    border: 1px solid var(--tec-border);
    padding: .5rem .75rem;
    font-family: 'Cairo', sans-serif;
    font-size: .95rem;
    min-height: 120px;
    background-color: var(--tec-white);
    color: var(--tec-text);
    transition: border-color var(--tec-transition), background-color var(--tec-transition);
}

.comment-textarea:focus {
    border-color: var(--tec-primary);
    outline: none;
}

@media (max-width: 575px) {
    .comment-form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    margin-top: 4rem;
    background-color: var(--tec-footer-bg);
    color: var(--tec-footer-text);
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
    border-top: 4px solid var(--tec-primary);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: var(--tec-always-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--tec-secondary);
}

.footer-logo {
    margin-bottom: 1.25rem;
}

.footer-site-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--tec-always-white);
    letter-spacing: -0.5px;
}

.footer-about-text {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--tec-footer-text);
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--tec-always-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--tec-primary);
    transform: translateY(-3px);
    color: var(--tec-always-white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--tec-footer-text);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-links a::before {
    content: '?';
    margin-left: 8px;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--tec-always-white);
    padding-right: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.newsletter-col .footer-desc {
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.6rem 0.75rem;
    color: var(--tec-always-white);
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
}

.footer-newsletter-form input:focus {
    outline: none;
}

.footer-newsletter-form button {
    background: var(--tec-primary);
    color: var(--tec-always-white);
    border: none;
    padding: 0 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s;
}

.footer-newsletter-form button:hover {
    background: var(--tec-primary-hover);
}

.footer-bottom {
    border-top: 1px solid var(--tec-footer-border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-dev {
    font-weight: 600;
}

@media (max-width: 991px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .about-col {
        grid-column: span 2;
        margin-bottom: 1rem;
    }
}

@media (max-width: 575px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
    .about-col {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* ============================================================
   WooCommerce
   ============================================================ */
.woocommerce .products {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.woocommerce ul.products li.product {
    background: var(--tec-white);
    border-radius: var(--tec-radius);
    padding: .75rem;
    box-shadow: var(--tec-shadow-sm);
}

.woocommerce ul.products li.product a img {
    border-radius: 6px;
}

.woocommerce ul.products li.product .price {
    color: var(--tec-secondary);
    font-weight: 700;
}

.woocommerce div.product .summary .price {
    color: var(--tec-secondary);
    font-weight: 700;
    font-size: 1.2rem;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--tec-primary);
    color: var(--tec-white);
    border-radius: 4px;
    border: none;
    padding: .5rem 1rem;
    font-weight: 600;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--tec-primary-hover);
    color: var(--tec-white);
}

/* ============================================================
   Stream Belts
   ============================================================ */
.stream-belts-section {
    margin: 2.2rem 0 2.75rem;
    position: relative;
}

.stream-belts-head {
    max-width: 760px;
    margin: 0 auto 1.4rem;
    text-align: center;
}

.stream-belts-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    padding: 0.38rem 0.95rem;
    border-radius: 999px;
    background: rgba(88, 182, 255, 0.08);
    border: 1px solid rgba(88, 182, 255, 0.16);
    color: var(--tec-primary);
    font-size: 0.8rem;
    font-weight: 800;
}

.stream-belts-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.5rem, 2.4vw, 2.35rem);
    line-height: 1.3;
    color: var(--tec-always-white);
}

.stream-belts-desc {
    margin: 0;
    color: var(--tec-muted);
    font-size: 0.98rem;
    line-height: 1.85;
}

.stream-belts-stack {
    display: grid;
    gap: 1rem;
}

.stream-belt {
    position: relative;
    overflow: hidden;
    padding: 0.2rem 0;
    mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
}

.stream-belt-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    will-change: transform;
}

.stream-belt[data-direction="left"] .stream-belt-track {
    animation: tec-stream-belt-left 42s linear infinite;
}

.stream-belt[data-direction="right"] .stream-belt-track {
    animation: tec-stream-belt-right 42s linear infinite;
}

.stream-belt:hover .stream-belt-track {
    animation-play-state: paused;
}

.stream-belt-item {
    flex: 0 0 auto;
    min-width: min(30rem, 78vw);
    max-width: 36rem;
    display: grid;
    gap: 0.55rem;
    padding: 1rem 1.2rem;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        rgba(9, 16, 28, 0.92);
    border: 1px solid rgba(120, 170, 220, 0.18);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform var(--tec-transition), border-color var(--tec-transition), background-color var(--tec-transition), box-shadow var(--tec-transition);
}

.stream-belt-item:hover {
    transform: translateY(-2px);
    border-color: rgba(95, 183, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(88, 182, 255, 0.1), rgba(255, 255, 255, 0.03)),
        rgba(10, 18, 32, 0.96);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.stream-belt-title {
    color: var(--tec-always-white);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


@keyframes tec-stream-belt-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes tec-stream-belt-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (max-width: 767px) {
    .stream-belts-section {
        margin: 2rem 0 2.2rem;
    }

    .stream-belts-head {
        margin-bottom: 1.1rem;
    }

    .stream-belt-item {
        min-width: min(24rem, 86vw);
        padding: 0.95rem 1rem;
        border-radius: 18px;
    }

    .stream-belt-title {
        font-size: 0.94rem;
    }

}

/* ============================================================
   Footer Widgets Area
   ============================================================ */
.footer-widgets {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.footer-widgets .footer-title {
    color: var(--tec-white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-widgets .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--tec-secondary);
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: block;
}

.footer-widget ul li a:hover {
    color: var(--tec-secondary);
    padding-right: 10px;
}

/* ============================================================
   Footer Bottom Menu
   ============================================================ */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
}

.footer-bottom-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-menu li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-bottom-menu li a:hover {
    color: var(--tec-secondary);
}

@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom-menu {
        justify-content: center;
        gap: 1rem;
    }
}

/* -----------------------------------------------------------
   Tables inside articles (ensure readable in light & dark)
   ----------------------------------------------------------- */
.single-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.single-page th,
.single-page td {
    padding: 0.6rem 0.8rem;
    color: var(--tec-text) !important;
    border: 1px solid var(--tec-border);
    background-color: var(--tec-surface);
}

.single-page th {
    font-weight: 700;
    background-color: var(--tec-surface-2);
}

body.dark-theme .single-page th,
body.dark-theme .single-page td {
    color: var(--tec-text) !important;
    border-color: var(--tec-border);
    background-color: var(--tec-surface);
}

body.dark-theme .single-page th {
    background-color: var(--tec-surface-2);
}

/* -----------------------------------------------------------
   Dark Tech Polish
   Inspired by black-background editorial layouts: off-black surfaces,
   strong contrast for type, and restrained glow for focus areas.
   ----------------------------------------------------------- */
.site-title,
.footer-site-title {
    color: var(--tec-always-white);
    text-shadow: 0 0 18px rgba(88, 182, 255, 0.14);
}

.site-title:hover,
.footer-site-title:hover {
    color: var(--tec-primary-hover);
}

.custom-logo,
.custom-logo-link img {
    max-height: 56px;
    width: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
}

body.dark-theme img,
img {
    opacity: 1;
    filter: saturate(1.03) contrast(1.04);
}

.site-header,
.site-header > .container,
.site-branding {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.section-title,
.sidebar-title,
.main-post-title,
.single-title,
.archive-title,
.grid-card-title a,
.related-card-title a {
    color: var(--tec-always-white);
}

.view-more,
.read-more-link,
.badge-category,
.single-badge {
    filter: saturate(1.08);
}

.social-icon {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.footer-widgets {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
        var(--tec-footer-bg);
}

.footer-widget ul li a,
.footer-bottom-menu li a,
.footer-links a {
    color: var(--tec-footer-text);
}

.footer-widget ul li a:hover,
.footer-bottom-menu li a:hover,
.footer-links a:hover {
    color: var(--tec-always-white);
}



