/*
 Theme Name:   Go4Kora - جو فور كورة
 Theme URI:    https://go4kora.com
 Description:  قالب رياضي احترافي لموقع جو فور كورة - جدول مباريات اليوم
 Author:       Go4Kora
 Author URI:   https://go4kora.com
 Template:     generatepress
 Version:      2.5.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  go4kora
*/

/* ========================================
   CSS Variables - نظام الألوان
   ======================================== */
:root {
    --g4k-primary: #07111f;
    --g4k-primary-light: #0c1e36;
    --g4k-primary-dark: #040a14;
    --g4k-secondary: #102846;
    --g4k-accent: #0796c8;
    --g4k-accent-hover: #35b2dd;
    --g4k-accent-glow: rgba(7, 150, 200, 0.16);
    --g4k-gold: #c9a84b;
    --g4k-green: #00c853;
    --g4k-red: #ff1744;
    --g4k-text: #f4f8fd;
    --g4k-text-muted: #9badc6;
    --g4k-text-dark: #1a1a2e;
    --g4k-border: #16395e;
    --g4k-card-bg: #0d2038;
    --g4k-glass: rgba(7, 17, 31, 0.96);
    --g4k-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --g4k-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --g4k-radius: 10px;
    --g4k-radius-sm: 999px;
    --g4k-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --g4k-font-ar: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    --g4k-font-en: 'Poppins', 'Segoe UI', sans-serif;
    --g4k-brand-green: #88c93f;
    --g4k-top-strip: #058fc0;
    --g4k-menu-text: #dbe8f8;
    --g4k-menu-hover-bg: rgba(5, 143, 192, 0.14);
    --g4k-menu-hover-text: #ffffff;
    --g4k-quick-link-bg: #0b1d36;
    --g4k-quick-link-text: #dbe7f7;
    --g4k-quick-link-border: #173b62;
    --g4k-quick-link-hover-bg: #112b4a;
    --g4k-quick-link-hover-text: #ffffff;
    --g4k-live-badge-text: #ff6f88;
    --g4k-live-badge-bg: rgba(163, 25, 55, 0.18);
    --g4k-live-badge-border: rgba(255, 94, 123, 0.34);
    --g4k-container-max: 980px;
}


/* ========================================
   Base & Reset
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    direction: rtl;
    text-align: right;
    font-family: var(--g4k-font-ar);
    background: radial-gradient(circle at 0% 25%, rgba(8, 42, 79, 0.22) 0%, transparent 34%), radial-gradient(circle at 100% 85%, rgba(4, 20, 42, 0.28) 0%, transparent 26%), var(--g4k-primary);
    color: var(--g4k-text);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 0% 20%, rgba(5, 143, 192, 0.14) 0%, transparent 35%),
        radial-gradient(ellipse at 100% 90%, rgba(15, 44, 78, 0.18) 0%, transparent 30%),
        linear-gradient(180deg, #050d19 0%, var(--g4k-primary) 38%, #04101d 100%);
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--g4k-accent);
    text-decoration: none;
    transition: color var(--g4k-transition);
}

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

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

/* ========================================
   Header - الهيدر
   ======================================== */
.site-header {
    background: var(--g4k-glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 55, 90, 0.9);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(5, 143, 192, 0.88), rgba(14, 181, 222, 0.95), rgba(5, 143, 192, 0.88));
    pointer-events: none;
}

.inside-header {
    max-width: var(--g4k-container-max);
    margin: 0 auto;
    padding: 16px 22px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img,
.site-title {
    max-height: 38px;
}

.site-title,
.site-branding .main-title,
.site-branding .main-title a,
.site-branding .site-title a {
    font-family: var(--g4k-font-ar);
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--g4k-brand-green) !important;
    letter-spacing: -0.3px;
    position: relative;
}

.site-branding .main-title a,
.site-branding .site-title a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-branding .main-title a::before,
.site-branding .site-title a::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--g4k-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 75, 0.15);
}

/* ========================================
   Navigation - القائمة
   ======================================== */
.main-navigation {
    font-family: var(--g4k-font-ar);
}

.main-navigation .main-nav > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .main-nav > ul > li > a {
    color: var(--g4k-menu-text) !important;
    font-size: 0.79rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: var(--g4k-radius-sm);
    transition: all var(--g4k-transition);
    display: block;
    white-space: nowrap;
}

.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.current-menu-item > a {
    background: var(--g4k-menu-hover-bg);
    color: var(--g4k-menu-hover-text) !important;
}

/* Dropdown */
.main-navigation .main-nav ul ul {
    background: #0d1e36;
    border: 1px solid rgba(22, 57, 94, 0.92);
    border-radius: var(--g4k-radius-sm);
    box-shadow: var(--g4k-shadow-lg);
    min-width: 200px;
}

.main-navigation .main-nav ul ul a {
    color: var(--g4k-text-muted) !important;
    padding: 10px 16px;
    font-size: 0.85rem;
}

.main-navigation .main-nav ul ul a:hover {
    color: var(--g4k-accent) !important;
    background: var(--g4k-accent-glow);
}

/* Mobile Menu Toggle */
.menu-toggle {
    background: var(--g4k-secondary) !important;
    color: var(--g4k-text) !important;
    border: 1px solid var(--g4k-border) !important;
    border-radius: var(--g4k-radius-sm);
    padding: 8px 16px;
    font-family: var(--g4k-font-ar);
}

/* ========================================
   Hero Section - القسم العلوي
   ======================================== */
.g4k-hero {
    text-align: center;
    padding: 32px 18px 14px;
    max-width: var(--g4k-container-max);
    margin: 0 auto;
}

.g4k-hero h1 {
    font-family: var(--g4k-font-ar);
    font-size: clamp(1.35rem, 3.2vw, 2.15rem);
    font-weight: 900;
    margin: 0 0 10px;
    line-height: 1.3;
}

.g4k-hero h1 .g4k-highlight {
    background: linear-gradient(135deg, var(--g4k-brand-green), #a7d74e 58%, var(--g4k-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g4k-hero p {
    color: var(--g4k-text-muted);
    font-size: 0.93rem;
    margin: 0 auto 16px;
    max-width: 680px;
    line-height: 1.8;
}

/* ========================================
   Live Badge - شارة البث المباشر
   ======================================== */
.g4k-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--g4k-live-badge-bg);
    border: 1px solid var(--g4k-live-badge-border);
    color: var(--g4k-live-badge-text);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.g4k-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--g4k-live-badge-text);
    border-radius: 50%;
    animation: g4k-pulse 1.5s ease-in-out infinite;
}

@keyframes g4k-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ========================================
   Matches Table iFrame Container
   ======================================== */
.g4k-matches-wrapper {
    max-width: var(--g4k-container-max);
    margin: 0 auto 30px;
    padding: 0 15px;
}

.g4k-matches-container {
    background: linear-gradient(180deg, rgba(13, 32, 56, 0.98), rgba(9, 24, 43, 0.98));
    border: 1px solid rgba(22, 57, 94, 0.95);
    border-radius: var(--g4k-radius);
    overflow: hidden;
    box-shadow: var(--g4k-shadow);
    position: relative;
}

.g4k-matches-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--g4k-accent), var(--g4k-gold), var(--g4k-accent));
}

.g4k-matches-container iframe {
    width: 100%;
    min-height: 1000px;
    border: none;
    display: block;
    background: #ffffff;
}

/* Loading state */
.g4k-matches-container.loading::after {
    content: 'جاري تحميل جدول المباريات...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--g4k-text-muted);
    font-size: 0.9rem;
    font-family: var(--g4k-font-ar);
}

/* ========================================
   Content Section - المحتوى
   ======================================== */
.g4k-content-section {
    max-width: var(--g4k-container-max);
    margin: 0 auto 40px;
    padding: 0 15px;
}

.g4k-content-card {
    background: var(--g4k-card-bg);
    border: 1px solid var(--g4k-border);
    border-radius: var(--g4k-radius);
    padding: 24px 26px;
    box-shadow: var(--g4k-shadow);
}

.g4k-content-card h2 {
    font-family: var(--g4k-font-ar);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--g4k-text);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--g4k-accent);
    display: inline-block;
}

.g4k-content-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--g4k-accent);
    margin: 20px 0 10px;
}

.g4k-content-card p {
    color: var(--g4k-text-muted);
    font-size: 0.64rem;
    line-height: 1.9;
    margin-bottom: 14px;
}

/* ========================================
   Competitor Pages Grid - شبكة المنافسين
   ======================================== */
.g4k-competitors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 8px;
    max-width: var(--g4k-container-max);
    margin: 0 auto 40px;
    padding: 0 15px;
}

.g4k-competitor-card {
    background: var(--g4k-card-bg);
    border: 1px solid var(--g4k-border);
    border-radius: var(--g4k-radius-sm);
    padding: 11px 8px;
    text-align: center;
    transition: all var(--g4k-transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.g4k-competitor-card:hover {
    background: var(--g4k-secondary);
    border-color: var(--g4k-accent);
    transform: translateY(-3px);
    box-shadow: var(--g4k-shadow-lg);
    color: var(--g4k-text);
}

.g4k-competitor-card .card-title {
    font-weight: 700;
    font-size: 0.64rem;
    color: var(--g4k-text);
    margin-bottom: 4px;
}

.g4k-competitor-card .card-subtitle {
    font-size: 0.64rem;
    color: var(--g4k-text-muted);
    font-family: var(--g4k-font-en);
    direction: ltr;
}

/* ========================================
   Quick Links - روابط سريعة
   ======================================== */
.g4k-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: var(--g4k-container-max);
    margin: 0 auto 30px;
    padding: 0 15px;
}

.g4k-quick-link {
    background: var(--g4k-card-bg);
    border: 1px solid var(--g4k-border);
    border-radius: 50px;
    padding: 7px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--g4k-text-muted);
    transition: all var(--g4k-transition);
    text-decoration: none;
    white-space: nowrap;
}

.g4k-quick-link:hover {
    background: linear-gradient(180deg, var(--g4k-quick-link-hover-bg), #0d2642);
    color: var(--g4k-quick-link-hover-text);
    border-color: var(--g4k-accent);
    transform: translateY(-1px);
}

/* ========================================
   Footer - الفوتر
   ======================================== */
.site-footer {
    background: linear-gradient(180deg, #050d19 0%, #030913 100%) !important;
    border-top: 1px solid var(--g4k-border);
    color: var(--g4k-text-muted);
}

.g4k-footer {
    max-width: var(--g4k-container-max);
    margin: 0 auto;
    padding: 32px 18px 14px;
}

.g4k-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.g4k-footer-section h4 {
    color: var(--g4k-text);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.g4k-footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--g4k-accent);
    border-radius: 2px;
}

.g4k-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.g4k-footer-section ul li {
    margin-bottom: 8px;
}

.g4k-footer-section ul li a {
    color: var(--g4k-text-muted);
    font-size: 0.88rem;
    transition: all var(--g4k-transition);
}

.g4k-footer-section ul li a:hover {
    color: var(--g4k-accent);
    padding-right: 6px;
}

.g4k-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--g4k-border);
    font-size: 0.72rem;
}

/* ========================================
   WordPress Content Overrides
   ======================================== */
.inside-article {
    background: transparent !important;
    padding: 0 0 30px !important;
}

.entry-header,
.entry-content,
.entry-meta {
    max-width: var(--g4k-container-max);
    margin-left: auto;
    margin-right: auto;
}

.entry-title {
    font-family: var(--g4k-font-ar) !important;
    font-weight: 800 !important;
    color: var(--g4k-text) !important;
}

.entry-content p {
    color: var(--g4k-text-muted);
    line-height: 1.9;
}

/* Remove GeneratePress defaults we don't need */
.site-content {
    background: transparent !important;
}

.container.grid-container {
    max-width: 100% !important;
    padding: 0 0 20px !important;
}

#page .site-content .content-area {
    width: 100% !important;
}

.no-sidebar .site-main {
    margin: 0 !important;
}

/* ========================================
   Page Template - Full Width
   ======================================== */
.page-template-page-matches .site-main {
    max-width: 100%;
    padding: 0;
}

.page-template-page-matches .inside-article {
    padding: 0 !important;
    margin: 0;
}

.page-template-page-matches .entry-header {
    display: none;
}

/* ========================================
   Breadcrumbs
   ======================================== */
.g4k-breadcrumbs {
    max-width: var(--g4k-container-max);
    margin: 10px auto;
    padding: 0 15px;
    font-size: 0.72rem;
    color: var(--g4k-text-muted);
}

.g4k-breadcrumbs a {
    color: var(--g4k-text-muted);
}

.g4k-breadcrumbs a:hover {
    color: var(--g4k-accent);
}

.g4k-breadcrumbs .separator {
    margin: 0 6px;
    opacity: 0.4;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--g4k-primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--g4k-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--g4k-accent);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .g4k-competitors-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .g4k-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .g4k-hero h1 {
        font-size: 1.4rem;
    }
    
    .g4k-matches-container iframe {
        min-height: 800px;
    }
    
    .g4k-content-card {
        padding: 20px;
    }
    
    .g4k-competitors-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
    
    .g4k-competitor-card {
        padding: 12px;
    }
    
    .g4k-quick-links {
        gap: 6px;
    }
    
    .g4k-quick-link {
        padding: 6px 14px;
        font-size: 0.64rem;
    }
    
    .g4k-footer-grid {
        grid-template-columns: 1fr;
    }
    
    .inside-header {
        padding: 12px 14px 10px;
    }
    
    .main-navigation .main-nav > ul > li > a {
        padding: 8px 10px;
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .g4k-hero {
        padding: 25px 15px 15px;
    }
    
    .g4k-hero h1 {
        font-size: 1.2rem;
    }
    
    .g4k-matches-container iframe {
        min-height: 700px;
    }
    
    .g4k-competitors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes g4k-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.g4k-animate {
    animation: g4k-fadeInUp 0.6s ease-out forwards;
}

/* ========================================
   News Section - قسم الأخبار
   ======================================== */
.g4k-news-section {
    max-width: var(--g4k-container-max);
    margin: 10px auto 35px;
    padding: 0 15px;
}

.g4k-news-header {
    margin-bottom: 18px;
}

.g4k-news-header h2 {
    font-family: var(--g4k-font-ar);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--g4k-text);
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--g4k-accent);
    display: inline-block;
}

.g4k-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.g4k-news-card {
    background: var(--g4k-card-bg);
    border: 1px solid var(--g4k-border);
    border-radius: var(--g4k-radius);
    overflow: hidden;
    transition: all var(--g4k-transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

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

.g4k-news-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.g4k-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.g4k-news-img-placeholder {
    background: var(--g4k-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.g4k-news-img-placeholder span {
    font-size: 2.5rem;
    opacity: 0.3;
}

.g4k-news-body {
    padding: 11px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.g4k-news-title {
    font-family: var(--g4k-font-ar);
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--g4k-text);
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.g4k-news-excerpt {
    font-size: 0.72rem;
    color: var(--g4k-text-muted);
    line-height: 1.7;
    margin: 0 0 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.g4k-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.g4k-news-source-tag {
    background: var(--g4k-accent-glow);
    color: var(--g4k-accent);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.g4k-news-time {
    color: var(--g4k-text-muted);
    font-size: 0.72rem;
    white-space: nowrap;
}

.g4k-news-source {
    font-size: 0.85rem;
    color: var(--g4k-text-muted);
    margin-top: 12px;
}

.g4k-news-source a {
    color: var(--g4k-accent);
}

/* =========================================
   Single News Article Page
   ========================================= */
.g4k-news-article {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.g4k-news-breadcrumbs {
    font-size: 0.82rem;
    margin-bottom: 20px;
    color: var(--g4k-text-muted);
}

.g4k-news-breadcrumbs a {
    color: var(--g4k-accent);
    text-decoration: none;
}

.g4k-news-breadcrumbs a:hover { text-decoration: underline; }

.g4k-news-article-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--g4k-text);
    line-height: 1.45;
    margin: 0 0 16px;
}

.g4k-news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.82rem;
    color: var(--g4k-text-muted);
}

.g4k-news-article-img {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
    background: var(--g4k-surface);
}

.g4k-news-article-img img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 460px;
    object-fit: cover;
}

.g4k-news-article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--g4k-text);
    background: var(--g4k-surface);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
}

.g4k-news-article-body p {
    margin-bottom: 18px;
}

.g4k-news-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.g4k-news-source-box {
    background: rgba(7, 150, 200, 0.08);
    border: 1px solid rgba(7, 150, 200, 0.25);
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 0.9rem;
    color: var(--g4k-text-muted);
    margin-top: 20px;
}

.g4k-news-source-box a {
    color: var(--g4k-accent);
    text-decoration: none;
    font-weight: 600;
}

.g4k-news-source-box a:hover { text-decoration: underline; }

.g4k-news-source-label {
    font-weight: 600;
    color: var(--g4k-text);
    margin-left: 6px;
}

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

@media (max-width: 600px) {
    .g4k-news-grid {
        grid-template-columns: 1fr;
    }
    
    .g4k-news-img {
        height: 160px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body::before,
    .site-header,
    .site-footer,
    .g4k-quick-links,
    .g4k-competitors-grid {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
}

/* ========================================
   Override GeneratePress Color Variables
   تجاوز متغيرات ألوان GeneratePress
   ======================================== */
:root {
    --base: #0c1e36;
    --base-2: #07111f;
    --base-3: #0d2038;
    --contrast: #f4f8fd;
    --contrast-2: #9badc6;
    --contrast-3: #507090;
    --accent: #0796c8;
}

/* Override GeneratePress white backgrounds */
body,
.one-container .site-content,
.one-container .container,
.one-container,
#page {
    background-color: transparent !important;
    background: transparent !important;
}

.site-header,
.main-navigation,
.main-navigation ul ul,
.main-navigation .inside-navigation {
    background-color: var(--g4k-glass) !important;
    background: var(--g4k-glass) !important;
}

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.inside-page-header,
.site-main {
    background-color: transparent !important;
    background: transparent !important;
}

.footer-widgets,
.site-info,
.footer-widgets-container,
.inside-site-info {
    background-color: transparent !important;
    background: transparent !important;
}

.sidebar .widget {
    background-color: var(--g4k-card-bg) !important;
    border-color: var(--g4k-border) !important;
    color: var(--g4k-text) !important;
}

/* Fix navigation link colors */
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
    color: var(--g4k-menu-text) !important;
}

.main-title a,
.main-title a:hover,
.site-branding .site-title a,
.site-branding .main-title a {
    color: var(--g4k-brand-green) !important;
}

/* Fix entry title color */
.entry-title a,
.entry-title a:hover {
    color: var(--g4k-text) !important;
}

/* Fix container padding overrides */
.inside-article {
    padding: 0 !important;
}

/* ========================================
   FIX: Logo Position - اللوجو على اليمين
   ========================================
   GeneratePress RTL CSS sets order:-5 on #site-navigation
   which places nav on the RIGHT in RTL flex, pushing logo LEFT.
   Fix: set branding order lower (right) and nav order higher (left).
   ======================================== */

/* Force nav to LEFT side in RTL (higher order = appears later = LEFT in RTL row) */
.nav-float-right #site-navigation {
    order: 10 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Force branding to RIGHT side in RTL (lower order = appears first = RIGHT in RTL row) */
.site-branding {
    order: -10 !important;
}

/* Keep flex row direction */
.rtl .inside-header,
.inside-header {
    flex-direction: row !important;
}

/* Separate: push nav to far left using margin */
#site-navigation.main-navigation {
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* ========================================
   FIX: Footer - تحسين الفوتر
   ======================================== */

/* Footer container needs a dark background and border */
.g4k-footer {
    background: linear-gradient(180deg, #050d19 0%, #030913 100%) !important;
    border-top: 1px solid var(--g4k-border) !important;
    color: var(--g4k-text-muted) !important;
}

/* Footer grid - 4 columns on desktop */
.g4k-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    max-width: var(--g4k-container-max) !important;
    margin: 0 auto 24px !important;
    padding: 32px 18px 0 !important;
}

@media (max-width: 900px) {
    .g4k-footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 500px) {
    .g4k-footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Footer section titles */
.g4k-footer-section h4 {
    color: var(--g4k-text) !important;
    font-family: var(--g4k-font-ar) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 0 0 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid var(--g4k-accent) !important;
    display: block !important;
    position: relative !important;
}

/* Footer section links */
.g4k-footer-section ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.g4k-footer-section ul li {
    margin-bottom: 8px !important;
}

.g4k-footer-section ul li a {
    color: var(--g4k-text-muted) !important;
    font-size: 0.87rem !important;
    text-decoration: none !important;
    transition: all var(--g4k-transition) !important;
    display: block !important;
    padding: 2px 0 !important;
}

.g4k-footer-section ul li a:hover {
    color: var(--g4k-accent) !important;
    padding-right: 6px !important;
}

.g4k-footer-section > p {
    color: var(--g4k-text-muted) !important;
    font-size: 0.87rem !important;
    line-height: 1.8 !important;
}

/* Footer bottom bar */
.g4k-footer-bottom {
    max-width: var(--g4k-container-max) !important;
    margin: 0 auto !important;
    padding: 16px 18px !important;
    border-top: 1px solid rgba(22, 57, 94, 0.6) !important;
    text-align: center !important;
}

.g4k-footer-bottom p {
    color: var(--g4k-text-muted) !important;
    font-size: 0.78rem !important;
    margin: 0 !important;
}

/* Hide empty GeneratePress site-info */
.site-footer .site-info .copyright-bar:empty,
.site-footer .inside-site-info:empty,
.site-footer .site-info:empty {
    display: none !important;
}

.site-footer {
    padding: 0 !important;
    min-height: 0 !important;
}
