/*
Theme Name: BHM NEWS
Theme URI: https://example.com/bhm-news
Author: ابراهيم الهاشمي
Author URI: https://example.com
Description: قالب ووردبريس اخباري احترافي و عصري.
Version: 1.6.0
Text Domain: bhm-news
Domain Path: /languages
*/

/* =========================================
   Variables & General
   ========================================= */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --accent-color: #dc3545; /* Red like Al Hadath */
    --bg-body: #f4f6f8;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --font-primary: 'Tajawal', sans-serif;
    --nav-bg: #134d5d; /* Teal Color from Reference */
    --nav-text: #ffffff;
    --topbar-bg: #134d5d; /* Teal Color */
    --topbar-text: #ffffff;
    --qma-dark-teal: #1e5f74; /* QMA Card Color */
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #b0b0b0;
    --border-color: #333333;
    --topbar-bg: #0f3c49;
    --nav-bg: #0f3c49;
    --qma-dark-teal: #0f3c49;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none !important; /* Global reset for links */
    transition: all 0.2s ease;
    color: var(--text-main);
}

a:hover {
    color: var(--primary-color) !important;
}

/* Global Elements Using Primary Color */
.btn-primary, .bg-primary, .text-primary, .border-primary {
    border-color: var(--primary-color) !important;
}

.bg-primary { background-color: var(--primary-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.btn-primary { background-color: var(--primary-color) !important; }
.btn-outline-primary { color: var(--primary-color) !important; border-color: var(--primary-color) !important; }
.btn-outline-primary:hover { background-color: var(--primary-color) !important; color: #fff !important; }

/* Cards Professionalism */
.card {
    background-color: var(--bg-card);
    border-color: var(--border-color) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* =========================================
   Top Bar (Teal Header)
   ========================================= */
.top-bar {
    font-size: 0.95rem;
    font-weight: 500;
}

.top-menu-list li {
    display: inline-block;
    margin-left: 20px;
}

.top-menu-list li a {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 700;
    transition: color 0.2s;
}

.top-menu-list li a:hover {
    color: #fff !important;
}

/* =========================================
   Main Header (White Center)
   ========================================= */
.site-header {
    background-color: var(--bg-card);
}

.site-title a {
    font-weight: 900;
    font-size: 2.8rem;
    color: #134d5d; /* Dark Teal Logo Text */
    letter-spacing: -1px;
}

/* Weather Widget */
.weather-widget {
    min-width: 140px;
}

/* =========================================
   Off-Canvas Menu (Side Drawer)
   ========================================= */
.offcanvas {
    direction: rtl; /* Ensure RTL */
}

.side-menu-wrap .list-group-item {
    padding: 12px 20px;
    font-weight: 600;
    transition: background 0.2s;
}

.side-menu-wrap .list-group-item:hover {
    background-color: var(--light-color);
}

.side-menu-wrap .list-group-item i {
    opacity: 0.7;
}

/* =========================================
   Hero / Slider Adjustments
   ========================================= */
.bg-gradient-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.hero-main-card,
.hero-sub-card {
    background-size: cover;
    background-position: center center;
}

.hero-section.style-1 .hero-main-card { min-height: 450px; }
.hero-section.style-4 .hero-main-card { min-height: 450px; }

/* QMA Slider Style */
.news-ticker-card {
    background-color: var(--qma-dark-teal);
    border-radius: 8px;
    color: #fff;
    transition: transform 0.2s;
}
.news-ticker-card:hover {
    transform: translateX(-5px);
}
.news-ticker-card a {
    color: #fff !important;
}
.news-ticker-card .meta {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* =========================================
   Opinion Section
   ========================================= */
.opinion-card .author-avatar {
    transition: transform 0.3s;
}
.opinion-card:hover .author-avatar {
    transform: scale(1.05);
}

/* =========================================
   Breaking News
   ========================================= */
.breaking-news {
    background-color: var(--bg-card);
    border-color: var(--border-color) !important;
    font-weight: 600;
}

.breaking-label {
    background-color: var(--accent-color) !important;
    font-size: 0.9rem;
}

.breaking-link {
    color: var(--text-main);
}

/* =========================================
   Cards & Content
   ========================================= */
.card-title a {
    color: var(--text-main);
    text-decoration: none !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Sidebar Adaptation */
.sidebar-sections .col-md-3,
.sidebar-sections .col-md-4,
.sidebar-sections .col-md-6,
.sidebar-sections .col-sm-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

.sidebar-sections .card {
    margin-bottom: 1rem;
}

.sidebar-sections .section-tech-mix .col-lg-6 {
    width: 100%;
}

/* Dark Mode Specific Adjustments */
body.dark-mode .bg-light { background-color: #2c2c2c !important; }
body.dark-mode .bg-white { background-color: #1e1e1e !important; }
body.dark-mode .text-dark { color: #e0e0e0 !important; }
body.dark-mode .border-bottom, 
body.dark-mode .border-end,
body.dark-mode .border-start { border-color: #333 !important; }

/* Footer */
.site-footer {
    background-color: #000 !important;
    border-top: 4px solid var(--primary-color);
}

.copyright {
    background-color: #111;
    color: #777;
}

/* BHM Section Wrapper Styles */
.bhm-section-wrapper {
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 8px; /* Optional rounded corners for colored sections */
}

/* Dynamic Accent Colors */
.bhm-section-wrapper .section-title {
    border-color: var(--accent-color, #dc3545) !important;
}

.bhm-section-wrapper .btn-outline-dark {
    border-color: var(--accent-color, #333) !important;
    color: var(--accent-color, #333) !important;
}

.bhm-section-wrapper .btn-outline-dark:hover {
    background-color: var(--accent-color, #333) !important;
    color: #fff !important;
}

/* BHM Hover Card */
.bhm-hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bhm-hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.bhm-hover-card .card-img-top {
    transition: transform 0.5s ease;
}
.bhm-hover-card:hover .card-img-top {
    transform: scale(1.05);
}
