/*
Theme Name: Atlaseconomiste
Theme URI: https://www.atlaseconomiste.com
Author: Antigravity
Author URI: https://www.atlaseconomiste.com
Description: A custom Arabic news theme, optimized for SEO and Mobile.
Version: 3.7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atlaseconomiste
Tags: news, arabic, rtl, two-columns, custom-background
*/

/* Base Setup & Variables */
@font-face {
  font-family: 'Mizan';
  src: url('inc/fonts/MizanAR+LT-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'MizanSemiBold';
  src: url('inc/fonts/SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}



:root {
  --primary-color: #1a4d80;
  /* Deep Blue typical of news sites */
  --accent-color: #b31d1d;
  /* Red from Magazilla style */
  --nav-bg: #9b1b1b;
  /* Darker red for nav */
  --white: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --bg-light: #f4f4f4;
  --header-text: #ffffff;
  --border-color: #e0e0e0;
  --container-width: 1200px;
  --spacing-unit: 1rem;
}

/* --- Mizan Utility Classes --- */
.mizan-regular {
  font-family: "Mizan", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.mizan-bold {
  font-family: "Mizan", sans-serif;
  font-weight: 700;
  font-style: normal;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Mizan", sans-serif;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  color: #2b2b2b;
  background-color: var(--bg-light);
  direction: rtl;
  /* Crucial for Arabic */
  text-align: right;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.block-title,
.widget-title,
.nav-link {
  font-family: "MizanSemiBold", "Mizan", sans-serif;
  letter-spacing: 0;
  font-weight: 600;
  font-style: normal;
}

h3 {
  font-family: "MizanSemiBold", "Mizan", sans-serif;
  letter-spacing: 0;
  font-weight: 600;
  font-style: normal;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

/* Header */
header.site-header {
  background: var(--accent-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
  color: var(--header-text);
}

.top-bar {
  background: var(--nav-bg);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.main-header {
  padding: 1.5rem 0;
  background: var(--accent-color);
}

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

.text-logo {
  font-family: 'Mizan', serif;
  font-size: 2.8rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-logo:hover {
  color: #ffffff;
  opacity: 0.9;
}

.logo img.desktop-logo {
  max-height: 80px;
  width: auto;
  transition: all 0.3s ease;
}

.logo-link-mobile {
  display: none;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}


@media (max-width: 768px) {
  .text-logo {
    font-size: 2.2rem;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-btn,
.search-btn-trigger,
.mobile-toggle {
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--white);
}

.main-nav {
  background: var(--nav-bg);
  width: 100%;
  position: relative;
}

.main-nav .container {
  display: flex;
  justify-content: flex-start;
}

.main-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav li:last-child {
  border-left: none;
}

.main-nav a {
  font-family: "MizanSemiBold", "Mizan", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--header-text);
  padding: 0.75rem 1.5rem;
  display: block;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav li:hover>a {
  background: rgba(0, 0, 0, 0.1);
  color: var(--white);
}

/* Inline Desktop Nav */
.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  /* Allow left side to grow */
  justify-content: flex-start;
  /* Push items to the right (RTL context: flex-start = right) */
}

/* Ensure the search button stays on the far left if needed, but the menu is right-aligned */
.desktop-inline-nav {
  margin-left: auto;
  /* Pushes the remaining items (search) to the left */
}

/* Base Nav settings to match the header bg */
.desktop-inline-nav {
  background: transparent !important;
  /* Override standard nav bg */
  width: auto;
}

/* Specific styling for the inline desktop nav */
.desktop-inline-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-inline-nav li {
  position: relative;
  /* border-left: 1px solid rgba(255, 255, 255, 0.1); */
  /* Optional: remove borders in inline nav */
  border: none !important;
}

.desktop-inline-nav a {
  padding: 0.5rem 1rem !important;
  /* Smaller paddings for inline nav */
}

/* Hide the old bottom main-nav structure if it's there via CSS incase some plugin relies on it */
.hide-on-mobile {
  display: block;
}

@media (max-width: 991px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* Sub-menu Styles */
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--nav-bg);
  min-width: 200px;
  display: block;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main-nav li:hover>.sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.main-nav .sub-menu li {
  width: 100%;
  border-left: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-nav .sub-menu li:last-child {
  border-bottom: none;
}

.main-nav .sub-menu a {
  font-family: "MizanSemiBold", "Mizan", sans-serif;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Indicators for items with children */
.main-nav .menu-item-has-children>a:after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Deep nested menus (optional) */
.main-nav .sub-menu .sub-menu {
  top: 0;
  right: 100%;
  transform: translateX(10px);
}

.main-nav .sub-menu li:hover>.sub-menu {
  transform: translateX(0);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile nav: hidden on desktop */
.mobile-nav {
  display: none;
}

/* --- TICKER RESET --- */
.news-ticker-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .news-ticker-header {
    display: none !important;
  }
}

.ticker-flex-row {
  display: flex;
  align-items: center;
}

.ticker-label-new {
  font-family: "MizanSemiBold", "Mizan", sans-serif;
  background: var(--accent-color, #d32f2f);
  color: #fff;
  padding: 5px 15px;
  font-weight: 600;
  border-radius: 4px;
  margin-left: 15px;
  white-space: nowrap;
  z-index: 10;
}

.ticker-h-container {
  flex: 1;
  overflow: hidden;
  height: 32px;
}

.ticker-h-content {
  display: flex;
  flex-direction: column;
  animation: slide-one-by-one 15s cubic-bezier(1, 0, 0, 1) infinite;
}

.ticker-item-new {
  height: 32px;
  line-height: 32px;
  padding: 0 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-item-new a {
  color: #333;
}

@keyframes slide-one-by-one {

  0%,
  15% {
    transform: translateY(0);
  }

  20%,
  35% {
    transform: translateY(-32px);
  }

  40%,
  55% {
    transform: translateY(-64px);
  }

  60%,
  75% {
    transform: translateY(-96px);
  }

  80%,
  95% {
    transform: translateY(-128px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Vertical Widget Ticker */
.stock-ticker-widget-container {
  background: #fdfdfd;
  padding: 15px;
  border-radius: 8px;
  overflow: hidden;
  height: 300px;
  border: 1px solid #eee;
}

.ticker-vertical-wrapper {
  height: 100%;
  overflow: hidden;
}

.ticker-vertical-content {
  display: flex;
  flex-direction: column;
  animation: scroll-stock-ticker 20s linear infinite;
}

.ticker-vertical-content:hover {
  animation-play-state: paused;
}

.stock-item {
  background: #fff !important;
  border: 1px solid #eee !important;
  padding: 12px 15px !important;
  margin-bottom: 10px !important;
  border-radius: 8px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
}

.stock-name {
  font-weight: 800;
  color: #444;
  font-size: 0.9rem;
}

.stock-price {
  font-weight: 700;
  color: #111;
  font-size: 0.9rem;
}

.stock-change.up {
  color: #2ecc71;
  font-weight: bold;
  font-size: 0.8rem;
}

.stock-change.down {
  color: #e74c3c;
  font-weight: bold;
  font-size: 0.8rem;
}

.stock-change.neutral {
  color: #777;
  font-weight: bold;
  font-size: 0.8rem;
}

@keyframes scroll-stock-ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(0, -50%, 0);
  }
}

.sidebar .hero-col-title {
  margin: 1.5rem 0 1rem 0;
}

/* --- END TICKER RESET --- */


.ticker-content:hover .ticker-scroll,
.ticker-content:hover .ticker-vertical {
  animation-play-state: paused;
}

/* New 3-Column Hero Redesign */
.hero-section-new {
  padding: 1rem 0;
  background: #fff;
}

.hero-new-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 280px;
  /* Visual Order (RTL): Right (Slider: 2fr) | Center (News: 1.2fr) | Left (Magazine: 280px) */
  gap: 2rem;
  align-items: start;
}

.hero-col-title,
.section-title,
.widget-title,
.footer-widget-title,
.block-title {
  display: inline-block;
  background: #f5f5f5;
  border-right: 8px solid var(--accent-color);
  padding: 8px 25px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.5rem;
  min-width: 150px;
  text-align: center;
  position: relative;
}

.title-align-center {
  text-align: center;
  width: 100%;
}

.title-align-center .hero-col-title,
.title-align-center .section-title,
.title-align-center .widget-title,
.title-align-center .footer-widget-title,
.title-align-center .block-title {
  margin-left: auto !important;
  margin-right: auto !important;
  display: inline-block !important;
  /* Keep as inline-block to preserve width: fit-content behavior */
}

.title-align-right {
  text-align: right;
  width: 100%;
}

.title-align-right .hero-col-title,
.title-align-right .section-title,
.title-align-right .widget-title,
.title-align-right .footer-widget-title,
.title-align-right .block-title {
  display: inline-block !important;
}

.hero-col-title span,
.section-title span,
.block-title span {
  position: relative;
}

/* About Column (Demo Space) */
.about-demo-content {
  background: #fdfdfd;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px dashed #ddd;
  color: #555;
}

.about-demo-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.demo-list li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-list i {
  color: var(--accent-color);
  font-size: 0.8rem;
}

/* Hero Widget Styles */
.hero-left-widget-wrapper {
  margin-bottom: 2rem;
}

.hero-left-widget-wrapper:last-child {
  margin-bottom: 0;
}

.hero-left-widget-wrapper .widget-title {
  display: none;
  /* We use the hero-col-title wrapper instead */
}

/* News List Column - Enhanced with Thumbnails */
.news-list-items {
  display: flex;
  flex-direction: column;
}

.news-item-enhanced {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.news-item-enhanced:first-child {
  padding-top: 0;
}

.news-item-enhanced:last-child {
  border-bottom: none;
}

.news-item-enhanced .news-item-info {
  flex: 1;
}

.news-item-enhanced .news-item-date {
  display: block;
  font-size: 0.75rem;
  color: #a5a5a5;
  margin-bottom: 0.2rem;
  font-family: "Cairo", sans-serif;
}

.news-item-enhanced .news-item-title {
  margin: 0;
}

.news-item-enhanced .news-item-title a {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
  display: block;
  transition: color 0.3s;
}

.news-item-enhanced .news-item-title a:hover {
  color: var(--accent-color);
}

.news-item-enhanced .news-item-thumb img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0f0f0;
}

/* Slider Column */
.slider-col {
  overflow: hidden;
  border-radius: 12px;
}

.hero-slide-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  /* Responsive Height: Use aspect-ratio instead of fixed height */
  aspect-ratio: 16 / 9;
  min-height: 300px;
  max-height: 500px;
  width: 100%;
}



.slide-image {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-image:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  z-index: 1;
}

.slide-info {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 1.5rem 2rem;
  z-index: 2;
  text-align: right;
}

.slide-info h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.slide-info h2 a {
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-info h2 a {
  color: #111;
  text-decoration: none;
  background-image: linear-gradient(var(--accent-color), var(--accent-color));
  background-position: 0% 95%;
  background-repeat: no-repeat;
  background-size: 0% 3px;
  transition: background-size 0.4s ease;
}

.slide-info h2 a:hover {
  background-size: 100% 3px;
}

.slide-meta {
  display: none !important;
}

/* Hero Slider Outer Wrapper — contains swiper + dots */
.hero-slider-outer {
  position: relative;
}

/* Custom Dots Pagination */
/* Dots are now OUTSIDE the swiper div, positioned relative to .hero-slider-outer */
.hero-dots {
  position: absolute !important;
  bottom: 20px !important;
  left: 20px !important;
  text-align: left;
  z-index: 10;
  width: auto !important;
}

.hero-dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 0 4px !important;
  transition: all 0.3s ease;
}

.hero-dots .swiper-pagination-bullet-active {
  background: #fff;
  width: 25px;
  border-radius: 5px;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-new-grid {
    grid-template-columns: 1fr 1.5fr;
  }

  .magazine-col {
    display: none;
  }
}

@media (max-width: 768px) {

  /* ========================================
     1. LAYOUT — Strip container padding
     so sliders can touch the screen edges
     ======================================== */
  .hero-section-new,
  .hero-section-new .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .hero-new-grid {
    display: block !important;
    width: 100% !important;
    gap: 0 !important;
    margin: 0 !important;
  }

  /* ========================================
     2. SLIDER WRAPPERS — Full width, no gap
     ======================================== */
  .slider-col,
  .hero-col.slider-col,
  .hero-slider-outer,
  .adv-swiper-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  
  .news-list-col,
  .widget-side-col {
    margin-top: 15px !important;
    padding: 0 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Dots area below slider */
  .hero-slider-outer {
    padding-bottom: 40px !important;
    background: #fff !important;
  }

  .adv-swiper-container {
    padding-bottom: 40px !important;
    background: #fff !important;
  }

  /* ========================================
     3. SLIDE CARDS — Strict Mobile Landscape Height
     ======================================== */
  .hero-slide-card,
  .widget-main-card,
  .slider-col .swiper,
  .slider-col .swiper-wrapper,
  .slider-col .swiper-slide {
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
    aspect-ratio: unset !important;
    border-radius: 0 !important;
    border: none !important;
    width: 100% !important;
  }

  .slider-col {
    height: auto !important;
    min-height: 230px !important;
  }

  /* Swiper slides: Strict fixed sizing */
  .adv-swiper-container .swiper-slide {
    position: relative !important;
    width: 100% !important;
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
    aspect-ratio: unset !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    border: none !important;
    display: block !important;
  }

  /* ========================================
     4. IMAGES inside slides — fill correctly
        The thumb must be absolute to fill slide
     ======================================== */
  .adv-slide-thumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    display: block !important;
  }

  .adv-slide-thumb>a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .adv-slide-thumb img,
  .adv-slide-thumb a img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 0 !important;
    max-width: none !important;
  }

  /* ========================================
     5. TEXT OVERLAY — Position over image
     ======================================== */
  .adv-slide-inner {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 1rem 1rem 1.5rem !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%) !important;
    z-index: 10 !important;
  }

  /* Shrink text for mobile immediately to resolve 'too big' issue */
  .slide-info h2,
  .slide-info h2 a {
    font-size: 1.25rem !important; /* Shrunk from 1.8rem */
    line-height: 1.4 !important;
  }
  
  .news-item-enhanced .news-item-title a {
    font-size: 0.95rem !important; /* Shrunk from 1.15rem */
    line-height: 1.4 !important;
  }
    text-align: right !important;
    box-sizing: border-box !important;
  }

  .adv-slide-title a {
    color: #fff !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
    display: block !important;
  }

  .adv-slide-meta,
  .adv-slide-meta span,
  .adv-slide-meta i {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.78rem !important;
  }

  /* Hide excerpt & read-more for clean look */
  .adv-slide-content,
  .adv-readmore {
    display: none !important;
  }

  /* Existing hero slider text overlay */
  .slide-info {
    padding: 1rem 1rem 2.5rem !important;
  }

  .slide-info h2 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
  }

  /* ========================================
     6. PAGINATION DOTS
     ======================================== */
  .hero-dots,
  .adv-swiper-container .swiper-pagination {
    text-align: center !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    bottom: 8px !important;
    position: absolute !important;
  }

  .hero-dots .swiper-pagination-bullet,
  .adv-swiper-container .swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.25) !important;
    width: 9px !important;
    height: 9px !important;
    opacity: 1 !important;
  }

  .hero-dots .swiper-pagination-bullet-active,
  .adv-swiper-container .swiper-pagination-bullet-active {
    background: var(--accent-color, #b31d1d) !important;
    width: 22px !important;
    border-radius: 5px !important;
  }

  /* ========================================
     FEATURED NEWS BLOCK (HERO) - Mobile
     Move title below image for legibility
     ======================================== */
  .hero-block-widget-inner .widget-main-card {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    display: flex;
    flex-direction: column;
    background: #fff;
  }

  .hero-block-widget-inner .slider-col .swiper,
  .hero-block-widget-inner .slider-col .swiper-wrapper,
  .hero-block-widget-inner .slider-col .swiper-slide {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
  }

  .hero-block-widget-inner .widget-main-card .slide-image {
    position: relative !important;
    height: 220px !important; 
    flex-shrink: 0;
  }

  .hero-block-widget-inner .widget-main-card .slide-image:after {
    display: none !important;
  }

  .hero-block-widget-inner .widget-main-card .slide-info {
    position: relative !important;
    padding: 1rem 1rem 3rem !important;
    background: #fff !important;
    text-align: right;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .hero-block-widget-inner .widget-main-card .slide-info h2 {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .hero-block-widget-inner .widget-main-card .slide-info h2 a {
    color: #111 !important;
    text-shadow: none !important;
    background-image: none !important;
  }
  
  .hero-block-widget-inner .widget-dots {
    bottom: 12px !important;
    right: 15px !important;
  }
  
  .hero-block-widget-inner .widget-dots .swiper-pagination-bullet {
    background: #f0f0f0 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
  }
  
  .hero-block-widget-inner .widget-dots .swiper-pagination-bullet-active {
    background: var(--accent-color, #b31d1d) !important;
    color: #fff !important;
    border-color: var(--accent-color, #b31d1d) !important;
  }
}

/* Main Content Layout */
.main-content-area {
  padding: 1.2rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.section-title {
  font-size: 1.5rem;
  padding: 10px 25px;
  margin-bottom: 2rem;
  min-width: 180px;
}

/* Article List */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.article-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-thumb {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}

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

.article-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  color: white;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

/* Featured Block Widget Styles (Hero Layout) */
.home-middle-widget {
  margin-bottom: 1rem;
}

.widget-hero-grid {
  grid-template-columns: 2fr 1fr !important;
  gap: 1.5rem !important;
}

.widget-main-card {
  height: 400px !important;
}

.widget-tag {
  font-family: "MizanSemiBold", "Mizan", sans-serif;
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color, #d32f2f);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
  z-index: 5;
}

.widget-main-card .slide-info {
  padding: 1.5rem 1.5rem 3rem 1.5rem !important;
}

.widget-main-card .slide-info h2 {
  font-size: 1.5rem !important;
  line-height: 1.3;
}

/* Category Tag Utility */
.category-tag {
  font-family: "MizanSemiBold", "Mizan", sans-serif;
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 2px;
  margin-bottom: 10px;
}

/* Numbered Slider Dots (like in the picture) */
.widget-dots {
  position: absolute !important;
  bottom: 15px !important;
  right: 20px !important;
  /* Visual Right in RTL */
  left: auto !important;
  width: auto !important;
  display: flex !important;
  gap: 5px;
  z-index: 10;
}

.widget-dots .swiper-pagination-bullet {
  width: 24px !important;
  height: 24px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 4px !important;
  color: #fff !important;
  opacity: 1 !important;
  font-size: 11px;
  font-weight: bold;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.widget-dots .swiper-pagination-bullet:after {
  content: counter(bullet-counter);
  counter-increment: bullet-counter;
}

.widget-dots {
  counter-reset: bullet-counter;
}

.widget-dots .swiper-pagination-bullet-active {
  background: #fff !important;
  color: #000 !important;
}

@media (max-width: 992px) {
  .widget-hero-grid {
    grid-template-columns: 1fr !important;
  }
}

.article-info h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.article-info h3 a {
  color: white !important;
}

.article-info p {
  display: none !important;
  /* Reference shows titles + meta only */
}

.meta {
  font-family: "MizanSemiBold", "Mizan", sans-serif;
  font-size: 0.85rem;
  color: #eee;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta i {
  font-size: 0.85rem;
  color: #fff;
}

.meta a {
  color: white;
}

.meta ul,
.meta li {
  display: inline;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Sidebar */
.sidebar-widget {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.mini-post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mini-post {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.mini-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-thumb {
  width: 100px !important;
  height: 100px !important;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: block;
}

.mini-thumb-link {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: block;
}

.mini-thumb:hover {
  transform: scale(1.05);
}

/* Simple Centered Footer */
.site-footer-simple {
  background: #fff;
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid #eee;
  margin-top: 3rem;
  color: #333;
}

.footer-nav-simple {
  margin-bottom: 1rem;
}

.footer-menu-inline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.footer-menu-inline li {
  position: relative;
  display: flex;
  align-items: center;
}

.footer-menu-inline li:not(:last-child):after {
  content: "";
  height: 18px;
  width: 1px;
  background-color: #eee;
  margin: 0 15px;
  display: inline-block;
}

.footer-menu-inline a {
  font-family: "MizanSemiBold", "Mizan", sans-serif;
  font-weight: 600;
  color: #111;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  text-decoration: none;
}


.footer-menu-inline a:hover {
  color: var(--accent-color);
}

.footer-copyright-simple {
  font-size: 1rem;
  color: #777;
  font-family: "Cairo", sans-serif;
  margin-top: 0.5rem;
}


/* Video Section Refined (Image 2 Style) */
.video-section {
  background: #141414;
  padding: 5rem 0;
  margin-top: 1.5rem;
  color: #fff;
  overflow: hidden;
}

.video-container-flex {
  display: flex;
  gap: 3rem;
  align-items: stretch;
}

.vertical-title {
  font-family: "MizanSemiBold", "Mizan", sans-serif;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 3.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 2rem;
  white-space: nowrap;
}

.video-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 250px);
  gap: 1.5rem;
  flex: 1;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.video-card a {
  display: block;
  height: 100%;
}

.video-card.large {
  grid-row: span 2;
}

.video-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-tag {
  font-family: "MizanSemiBold", "Mizan", sans-serif;
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: #fff;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 10;
  border-radius: 2px;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.play-overlay i {
  font-size: 4rem;
  color: #fff;
  opacity: 0.8;
  filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.6));
  transition: all 0.3s ease;
}

.video-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  z-index: 5;
}

.video-content-overlay .date {
  font-size: 0.8rem;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.6rem;
}

.video-content-overlay h3 {
  font-size: 1.6rem;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
}

.video-card.small .video-content-overlay h3 {
  font-size: 1.2rem;
}

.video-card:hover .video-thumb img {
  transform: scale(1.08);
}

.video-card:hover .play-overlay i {
  transform: scale(1.15);
  opacity: 1;
}

@media (max-width: 1100px) {
  .vertical-title {
    display: none;
  }
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1rem;
  }

  .video-card.large {
    grid-row: auto;
    height: 350px;
  }

  .video-card.small {
    height: 250px;
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .top-bar {
    padding: 0 !important;
  }

  .main-header,
  header.site-header .main-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .container {
    width: 100%;
    padding: 0 1rem;
  }

  /* Vertical ticker on mobile */
  .ticker-content {
    height: 40px;
  }

  .ticker-scroll {
    flex-direction: column;
    white-space: normal;
    -webkit-animation: ticker-vertical 5s linear infinite;
    animation: ticker-vertical 5s linear infinite;
  }

  .stock-item {
    padding: 0 1rem;
    height: 40px;
    border-left: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .ticker-label {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  .hero-grid,
  .content-grid,
  .article-list {
    grid-template-columns: 1fr;
  }

  /* Hide Sidebar on Mobile */
  .sidebar {
    display: none;
  }

  /* Make logo bigger on mobile */
  /* Align header RTL on mobile - Remove centered logo */
  .header-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
    min-height: 60px;
  }

  .header-right {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    order: 1;
  }

  .logo {
    flex: 2;
    display: flex;
    justify-content: center;
    order: 2;
    margin: 0;
    height: 60px;
    align-items: center;
  }

  .logo-link-desktop {
    display: none !important;
  }

  .logo-link-mobile {
    display: block !important;
    line-height: 0;
  }

  .header-left {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    order: 3;
  }

  .logo img {
    max-width: 150px !important;
    max-height: 60px !important;
    height: auto !important;
    margin: 0 auto;
  }

  /* Hide only excerpt text on mobile - keep title visible */
  .featured-content p {
    display: none !important;
  }

  /* Slider on Mobile */
  .hero-slide-card {
    height: 300px;
  }

  .slide-info h2 {
    font-size: 1.2rem;
  }

  /* Mobile Article Card Style */
  .article-card {
    flex-direction: column;
    position: relative;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
  }

  .article-thumb {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
  }

  .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }

  .article-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .article-info h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  .article-info p {
    display: none;
    /* Hide excerpt on mobile */
  }

  .article-info .meta {
    color: #ddd;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .article-card:hover {
    transform: none;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    z-index: 1001;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    width: 100%;
    background: #ffffff !important;
  }

  .main-nav ul li {
    width: 100%;
    text-align: right;
    border-left: none;
    border-bottom: 1px solid #eee;
    margin: 0;
    background: #ffffff !important;
  }

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

  .main-nav a {
    color: #333 !important;
    display: block;
    padding: 0.8rem 1.5rem;
    text-align: right;
  }

  .main-nav a:hover,
  .main-nav li:hover>a {
    background: #f5f5f5 !important;
    color: var(--accent-color) !important;
  }

  /* Mobile Sub-menu styling */
  .main-nav .sub-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: #f9f9f9;
    box-shadow: none;
    display: none;
    /* Initially hidden, can be toggled or shown if simple */
    min-width: 0;
  }

  .main-nav .menu-item-has-children.active>.sub-menu {
    display: block;
  }

  .main-nav .sub-menu a {
    padding-right: 2.5rem;
    font-size: 0.9rem;
    font-weight: 400;
  }

  .main-nav .menu-item-has-children>a:after {
    float: left;
    margin-top: 5px;
  }

  .entry-title {
    font-size: 1.4rem !important;
    line-height: 1.4;
  }

  .section-title {
    font-size: 1.2rem !important;
  }

  .block-title {
    font-size: 1.3rem !important;
  }
}

/* -----------------------------------------------------------
   Single Post Styles
----------------------------------------------------------- */

/* Breadcrumbs */
.breadcrumb-area {
  background: #f9f9f9;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li.active {
  color: var(--text-color);
  font-weight: 600;
}

/* Single Article Header */
.single-article {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.article-header {
  margin-bottom: 2rem;
}

.category-label {
  background: var(--accent-color);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 1rem;
}

.entry-title {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  color: #111;
}

.entry-meta {
  display: flex;
  flex-wrap: nowrap;
  /* Prevent stacking */
  align-items: center;
  gap: 1.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
  /* Reset for resizer container */
  border-bottom: none;
  /* Removed as requested */
  padding-bottom: 0;
  /* Reset for resizer container */
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.share-buttons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}

.share-fb {
  background: #3b5998;
}

.share-tw {
  background: #1da1f2;
}

.share-wa {
  background: #25d366;
}


/* Featured Image */
.featured-image {
  margin-bottom: 2rem;
}

.featured-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.featured-image figcaption {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .breadcrumb-area {
    display: none !important;
  }

  .main-content-area {
    padding-top: 0 !important;
  }

  /* Compact Container */
  .single-article {
    padding: 0 10px 1.5rem 10px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Compact Header */
  .article-header {
    margin-bottom: 0.5rem !important;
  }

  .category-label {
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  /* Reduced Title Size */
  .entry-title {
    font-size: 1.4rem !important;
    line-height: 1.3;
    margin-bottom: 0.5rem !important;
  }

  .entry-meta {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    font-size: 0.8rem;
    gap: 0.8rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
  }

  /* Featured Image: Normal width with rounded corners */
  .featured-image {
    margin: 0 0 1rem 0 !important;
    width: 100% !important;
    position: static;
    left: auto;
    right: auto;
  }

  .featured-image img {
    border-radius: 8px !important;
  }
}

/* Entry Content Typography */
.entry-content {
  font-family: "Mizan", "Almarai", sans-serif;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #222;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content .lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
}

.entry-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.entry-content h4 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.entry-content blockquote {
  background: #f1f8ff;
  padding: 1.2rem 1.5rem;
  border-right: 4px solid var(--primary-color);
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.05rem;
  color: #333;
}

/* Tags */
.entry-tags {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.entry-tags a {
  background: #eee;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #555;
}

.entry-tags a:hover {
  background: var(--primary-color);
  color: white;
}

/* Author Box */
.author-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin: 3rem 0;
  border-radius: 8px;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.author-info p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* Related Posts */
.related-posts {
  margin-top: 3rem;
}

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

.related-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 180px;
}

.related-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.related-item h4 {
  margin: 0;
}

/* Comments */
.comments-area {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.comment-list {
  margin-bottom: 3rem;
  padding: 0;
}

.comment-list .comment {
  list-style: none;
  background: var(--white);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.comment-list .children {
  margin-right: 2rem;
  padding-right: 1rem;
  border-right: 2px solid #eee;
}

.comment-body {
  display: flex;
  gap: 1.5rem;
}

.comment-meta {
  flex-shrink: 0;
}

.comment-meta img {
  border-radius: 50%;
  border: 3px solid #f8f8f8;
}

.comment-author cite {
  font-style: normal;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
  display: block;
}

.comment-metadata {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.8rem;
}

.comment-content p {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.reply {
  text-align: left;
}

.comment-reply-link {
  background: #f0f0f0;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-size: 1.15rem;
  line-height: 1.9;
  color: #222;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content .lead {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000;
}

.entry-content h3 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.entry-content h4 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content blockquote {
  background: #f1f8ff;
  padding: 1.5rem 2rem;
  border-right: 5px solid var(--primary-color);
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.25rem;
  color: #333;
}

/* Tags */
.entry-tags {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.entry-tags a {
  background: #eee;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #555;
}

.entry-tags a:hover {
  background: var(--primary-color);
  color: white;
}

/* Author Box */
.author-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin: 3rem 0;
  border-radius: 8px;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.author-info p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* Related Posts */
.related-posts {
  margin-top: 3rem;
}

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

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 220px;
}

.related-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.related-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.related-item h4 {
  margin: 0;
}

/* Comments */
.comments-area {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.comment-list {
  margin-bottom: 3rem;
  padding: 0;
}

.comment-list .comment {
  list-style: none;
  background: var(--white);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.comment-list .children {
  margin-right: 2rem;
  padding-right: 1rem;
  border-right: 2px solid #eee;
}

.comment-body {
  display: flex;
  gap: 1.5rem;
}

.comment-meta {
  flex-shrink: 0;
}

.comment-meta img {
  border-radius: 50%;
  border: 3px solid #f8f8f8;
}

.comment-author cite {
  font-style: normal;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
  display: block;
}

.comment-metadata {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.8rem;
}

.comment-content p {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.reply {
  text-align: left;
}

.comment-reply-link {
  background: #f0f0f0;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  transition: all 0.3s ease;
}

.comment-reply-link:hover {
  background: var(--accent-color);
  color: white;
}

/* -----------------------------------------------------------
   Comment Form Styles
----------------------------------------------------------- */
.comment-respond {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3rem;
  border: 1px solid #eee;
}

.comment-respond .comment-reply-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: block;
  color: var(--primary-color);
}

.comment-form p {
  margin-bottom: 1.5rem;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #444;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 77, 128, 0.1);
}

.comment-form-flex {
  display: flex;
  gap: 1.5rem;
}

.comment-form-flex p {
  flex: 1;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-form-cookies-consent input {
  width: auto;
  margin: 0;
}

/* Visibility Helpers */
.hide-always {
  display: none !important;
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-on-desktop {
    display: none !important;
  }
}

/* Multi-Category Grid Widget Styles */
.multi-cat-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1rem 0;
}

.multi-cat-column {
  display: flex;
  flex-direction: column;
}

.multi-cat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 1.5rem;
  position: relative;
}

.multi-cat-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  text-align: center;
}

.accent-bar {
  display: block;
  width: 25px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Remove the ::after if it was redundant */
.multi-cat-header::after {
  display: none;
}

.multi-cat-title a {
  color: #000;
  text-decoration: none;
}

.multi-cat-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.multi-cat-post-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.multi-cat-post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.multi-cat-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.multi-cat-post-item:hover .multi-cat-post-thumb img {
  transform: scale(1.05);
}

.multi-cat-post-title {
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 700;
  margin: 0;
}

.multi-cat-post-title a {
  color: #333;
  transition: color 0.2s ease;
}

.multi-cat-post-title a:hover {
  color: var(--accent-color);
}

@media (max-width: 991px) {
  .multi-cat-grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .multi-cat-grid-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .multi-cat-title {
    font-size: 1.2rem;
  }
}

.comment-form-cookies-consent label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: #666;
}

.submit-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background: var(--nav-bg);
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .comment-form-flex {
    flex-direction: column;
    gap: 0;
  }
}

/* Tabbed Widget RTL Style */
.tabbed-widget {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid #eee;
  background: #fcfcfc;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  color: #777;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: var(--accent-color);
  border-bottom: 3px solid var(--accent-color);
  background: #fff;
  font-weight: 800;
}

.tabs-content {
  padding: 15px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.mini-post {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f5f5f5;
}

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

.mini-post-thumb {
  flex: 0 0 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
}

.mini-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-avatar {
  flex: 0 0 50px;
  height: 50px;
}

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

.mini-post-info {
  flex: 1;
}

.mini-date {
  font-size: 0.75rem;
  color: #999;
  display: block;
  margin-bottom: 4px;
}

.mini-post-info h5 {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

.mini-post-info h5 a {
  color: #333;
  text-decoration: none;
}

.mini-post-info h5 a:hover {
  color: var(--accent-color);
}

.mini-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-color);
  margin-bottom: 3px;
  display: block;
}

.mini-comment-text {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.mini-comment-text a {
  color: inherit;
  text-decoration: none;
}

/* Ad Styling */
.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  max-width: 100%;
  overflow: hidden;
  clear: both;
}

.ad-container img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.ad-placeholder {
  background: #f9f9f9;
  border: 2px dashed #ddd;
  color: #bbb;
  text-align: center;
  padding: 2.5rem;
  font-weight: 700;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ad-header {
  max-width: 728px;
  margin: 1rem auto;
}

.ad-sidebar {
  max-width: 300px;
  margin: 1.5rem 0;
}

.ad-homepage_middle {
  max-width: 1100px;
  margin: 1rem auto;
}

/* Category Block Sections */
.category-block-section {
  padding: 0.8rem 0;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.category-block-section:last-child {
  border-bottom: none;
}

.block-title {
  display: inline-block;
  background: #e0e0e0;
  border-right: 8px solid var(--accent-color);
  padding: 10px 25px;
  border-radius: 6px;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  min-width: 180px;
  text-align: center;
}

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

.block-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.block-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16/10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.block-card:hover .block-img {
  transform: scale(1.08);
}

.block-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.block-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--text-color);
}

.block-content h3 a {
  transition: color 0.2s;
}

.block-content h3 a:hover {
  color: var(--accent-color);
}

.block-content .date {
  font-size: 0.75rem;
  color: #999;
}

/* Responsive for Blocks */
@media (max-width: 1100px) {
  .block-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 500px) {
  .block-grid {
    grid-template-columns: 1fr;
  }
}

/* Pagination Styles */
.pagination {
  margin: 1rem 0;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-color);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination .page-numbers:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pagination .page-numbers.current {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  cursor: default;
  pointer-events: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  padding: 0 1.25rem;
  font-weight: 600;
}

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

/* Mobile Logo Adjustments */
@media (max-width: 900px) {
  .header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1rem 0;
  }

  /* Toggle Button (Hamburger) on the Right */
  .header-right {
    order: 1;
    /* First item in flex row = Right in RTL */
    width: auto;
    gap: 1rem;
    display: flex;
    align-items: center;
  }

  .mobile-toggle {
    display: block;
    font-size: 1.5rem;
  }

  /* Logo Centered */
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
    margin: 0;
  }

  .logo img {
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Mobile Menu Styles */
  /* Desktop nav: always hidden on mobile */
  .main-nav {
    display: none !important;
  }

  /* Mobile nav: hidden by default, shown when toggled active */
  .mobile-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    z-index: 9999;
    border-top: 3px solid var(--accent-color);
  }

  .mobile-nav.active {
    display: block;
  }

  .mobile-nav ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-nav li {
    border-left: none;
    border-bottom: 1px solid #eee;
    width: 100%;
    display: block;
  }

  .mobile-nav li:last-child {
    border-bottom: none;
  }

  /* Align menu items to the right for RTL */
  .mobile-nav a {
    color: #333 !important;
    padding: 1rem 1.5rem;
    display: block;
    font-size: 1.1rem;
    text-align: right;
  }

  .mobile-nav a:hover {
    background: #f5f5f5;
    color: var(--accent-color) !important;
  }

  /* Reset container flex for mobile so items can take full width */
  .mobile-nav .container {
    display: block;
    width: 100%;
    padding: 0;
    max-width: 100%;
  }

  /* Mobile Sub-menu styling */
  .mobile-nav .sub-menu {
    display: none;
    padding-right: 1rem;
    background: #f9f9f9;
  }

  .mobile-nav .menu-item-has-children.active>.sub-menu {
    display: block;
  }
}

/* --- HIDE POST DATES ON HOMEPAGE --- */
.home .date,
.home .news-item-date,
.home .mini-date,
.home .slide-meta,
.home .news-item-info span:first-child {
  display: none !important;
}

/* Ensure spacing is preserved in news list if date is hidden */
.home .news-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hide section titles on mobile for a cleaner homepage - overridden by body class if enabled */
.mobile-title-text {
  display: none;
}

@media (max-width: 768px) {

  body:not(.show-mobile-titles) .home .section-title,
  .breadcrumb-area {
    display: none !important;
  }

  .desktop-title {
    display: none;
  }

  .mobile-title-text {
    display: inline-block;
  }

  /* Improved Mobile Section Title Styling */
  .home .section-title {
    font-size: 1rem;
    /* Smaller font size on mobile */
    margin-bottom: 0.5rem;
    /* Tighter spacing */
    padding-bottom: 0.25rem;
    border-bottom-width: 2px;
    /* Thinner border */
  }

  .hero-main-title {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    /* Slightly larger for Hero */
    text-align: center;
    /* Center align for better mobile look */
  }
}

/* --- PRO SEARCH OVERLAY --- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-close {
  position: absolute;
  top: 30px;
  left: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.search-overlay-close:hover {
  transform: rotate(90deg);
  color: var(--accent-color);
}

.search-overlay-content {
  width: 100%;
  max-width: 800px;
  padding: 0 2rem;
  text-align: center;
}

.search-overlay-title {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 2rem;
  font-family: "MizanSemiBold", sans-serif;
}

.search-form-pro {
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field-pro {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
  font-size: 2rem;
  color: #fff;
  font-family: "Mizan", sans-serif;
  transition: border-color 0.3s ease;
  outline: none;
}

.search-field-pro:focus {
  border-bottom-color: var(--accent-color);
}

.search-submit-pro {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-submit-pro:hover {
  color: var(--accent-color);
}

.search-help-text {
  color: #888;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Mobile Header Refinement for 'ARIJ' Layout with Brand Red */
@media (max-width: 900px) {
  .main-header {
    background: var(--accent-color, #b31d1d) !important;
    /* Brand Red */
    padding: 0 !important;
    border-bottom: 3px solid rgba(0, 0, 0, 0.1) !important;
    height: 121px !important;
    min-height: 121px !important;
    display: flex !important;
    align-items: center !important;
  }

  .main-header .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .header-inner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    height: 100% !important;
    width: 100% !important;
    position: relative !important;
  }

  /* RIGHT SIDE - Toggle */
  .header-right {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
  }

  /* CENTER - Logo */
  .logo {
    width: 100% !important;
    flex: 0 0 100% !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 !important;
    z-index: 1 !important;
  }

  /* LEFT SIDE - Search */
  .header-left {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
  }

  .logo-link-desktop {
    display: none !important;
    visibility: hidden !important;
  }

  .logo-link-mobile {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .logo img.mobile-logo {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-width: 100% !important;
    object-fit: contain !important;
    /* Contain ensures full logo is visible while taking full width */
    max-width: none !important;
    /* Cap height to avoid overlapping content */
  }

  .search-btn-trigger,
  .mobile-toggle {
    font-size: 1.8rem !important;
    /* Slightly larger for better alignment */
    color: #fff !important;
    line-height: normal !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 1 !important;
    height: 100% !important;
    width: 100% !important;
  }
}

/* --- PRO SEARCH RESULTS --- */
.search-results-header {
  padding: 4rem 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  margin-bottom: 3rem;
  text-align: center;
}

.search-results-title {
  font-size: 2.5rem;
  font-family: "MizanSemiBold", sans-serif;
  color: #111;
}

.search-results-title span {
  color: var(--accent-color);
}

.no-results-found {
  padding: 5rem 0;
  text-align: center;
}

.no-results-icon {
  font-size: 5rem;
  color: #ddd;
  margin-bottom: 2rem;
}

.no-results-text {
  font-size: 1.5rem;
  color: #666;
}

/* --- HIDE ONLY WIDGET SEARCH --- */
.widget_search {
  display: none !important;
}

/* --- New Widget Areas --- */

/* Header Widget */
.header-widget-area {
  margin: 1rem 0;
  text-align: center;
}

.header-widget-area img {
  margin: 0 auto;
}

/* Home Main Content Widgets */
.home-main-content-widgets .widget {
  margin-bottom: 2rem;
}

/* Ensure widget titles match section titles */
.home-main-content-widgets .widget-title,
.home-main-content-widgets h2 {
  display: inline-block;
  background: #e0e0e0;
  border-right: 8px solid var(--accent-color);
  padding: 10px 25px;
  border-radius: 6px;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
}

/* Footer Widgets */
.site-footer-widgets {
  background: #111;
  color: #fff;
  padding: 4rem 0;
  border-top: 4px solid var(--accent-color);
}

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

.footer-col .widget-title {
  color: #fff;
  border-right: 4px solid var(--accent-color);
  padding-right: 15px;
  margin-bottom: 2rem;
  font-size: 1.3rem;
  background: transparent;
  /* Override default if needed */
  display: block;
  width: 100%;
}

.footer-col .widget {
  margin-bottom: 2rem;
}

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

.footer-col ul li {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

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

.footer-col ul li a {
  color: #aaa;
  transition: all 0.3s;
  display: block;
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  transform: translateX(-5px);
}

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

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

  /* Titles Only Widget */
  .titles-only-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .titles-only-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .titles-only-item:last-child {
    border-bottom: none;
  }

  .titles-only-item i {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-left: 5px;
  }

  .titles-only-item a {
    color: #333;
    transition: color 0.3s;
  }

  .titles-only-item a:hover {
    color: var(--accent-color);
  }

  .post-date-small {
    font-size: 0.8rem;
    color: #999;
    font-weight: normal;
    margin-right: 5px;
  }

  /* End footer-widgets-grid */
}

/* Add space before title in single post */
.single-article .article-header {
  padding-top: 15px;
}

/* --- New Custom Footer Design --- */
.site-footer-custom {
  background-color: #000000;
  color: #ffffff;
  padding: 3rem 0;
  text-align: center;
  margin-top: 3rem;
  direction: rtl;
}

.footer-centered-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-social-title {
  font-family: "MizanSemiBold", "Mizan", sans-serif;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid #ffffff;
  font-size: 1.2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
  color: #ffffff;
}

/* .social-icon i maintained by flex in parent */

.footer-branding {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo-img {
  max-width: 180px;
  height: auto;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-family: "MizanSemiBold", "Mizan", sans-serif;
  font-size: 1.8rem;
  color: #ffffff;
  margin: 0;
  font-weight: 700;
}

.footer-copyright-custom p {
  color: #888888;
  font-size: 0.95rem;
  font-family: "Mizan", sans-serif;
  margin: 0;
}

/* Mobile Adjustments for Footer */
@media (max-width: 768px) {
  .site-footer-custom {
    padding: 2rem 0;
  }

  .footer-social-title {
    font-size: 1.2rem;
  }

  .footer-social-icons {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .footer-tagline {
    font-size: 1.5rem;
  }
}

/* --- Font Resizer UI --- */
.entry-meta-resizer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  /* Minimal vertical spacing */
  margin-bottom: 0.8rem;
  flex-wrap: nowrap;
  /* Strict horizontal level */
}

.font-resizer-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f9f9f9;
  padding: 8px 15px;
  border-radius: 30px;
  direction: ltr;
  /* Force Small=Left/Min, Large=Right/Max */
}

.resizer-label {
  font-family: var(--title-font-family);
  font-weight: bold;
  color: #333;
  user-select: none;
  line-height: 1;
}

.resizer-label.small {
  font-size: 14px !important;
}

.resizer-label.large {
  font-size: 24px !important;
}

.range-container {
  position: relative;
  width: 140px;
  display: flex;
  align-items: center;
}

#font-resizer-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  z-index: 5;
  position: relative;
}

#font-resizer-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

#font-resizer-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

#font-resizer-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.range-marks {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0 5px;
  z-index: 1;
}

.range-marks span {
  width: 1px;
  height: 12px;
  background: #bbb;
}

@media (max-width: 768px) {
  .entry-meta-resizer {
    flex-direction: column;
    /* Stack on mobile */
    align-items: flex-start;
    /* Align to the right in RTL */
    gap: 15px;
    /* Space between meta and resizer */
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 2rem;
  }
}

/* --- Social Connect Widget --- */
.social-connect-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  gap: 20px;
}

.sc-info {
  flex: 0 0 auto;
  max-width: 300px;
}

.sc-title {
  font-family: var(--title-font-family);
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.sc-subtitle {
  font-size: 0.9rem;
  color: #666;
}

.sc-links {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.sc-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff !important;
  text-decoration: none !important;
  flex: 1;
  min-width: 120px;
  height: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  justify-content: center;
}

.sc-item i {
  font-size: 1.1rem;
  margin-left: 6px;
  /* Push text to left in RTL */
}

.sc-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sc-name {
  font-weight: 700;
  font-size: 0.85rem;
}

.sc-action {
  font-size: 0.65rem;
  opacity: 0.8;
}

/* Colors */
.sc-facebook {
  background: #4267B2;
}

.sc-x {
  background: #000;
}

.sc-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sc-youtube {
  background: #FF0000;
}

.sc-linkedin {
  background: #0077b5;
}

.sc-pinterest {
  background: #BD081C;
}

/* Hover Effects */
.sc-hover-scale:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.sc-hover-slide:hover {
  padding-right: 25px;
}

.sc-hover-shine::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 50%;
  height: 300%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
  transition: none;
  opacity: 0;
}

.sc-hover-shine:hover::after {
  left: 150%;
  transition: all 0.6s ease-in-out;
  opacity: 1;
}

@media (max-width: 1150px) {
  .social-connect-widget {
    padding: 1rem;
    gap: 15px;
  }

  .sc-info {
    max-width: 180px;
  }

  .sc-title {
    font-size: 1.2rem;
  }

  .sc-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 950px) {
  .social-connect-widget {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .sc-info {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .sc-links {
    width: 100%;
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .sc-item {
    min-width: 0;
    height: 50px;
  }
}

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

@media (max-width: 400px) {
  .sc-links {
    grid-template-columns: 1fr;
  }
}

/* Full Width Area Styling */
.site-full-width-area {
  width: 100%;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.full-width-widget-area {
  padding: 0;
}

.full-width-widget-area .container {
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Adjust Social Connect for Full Width */
.full-width-widget-area .social-connect-widget {
  width: 100%;
  margin-bottom: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Exchange Rates Widget --- */
.exchange-rates-widget {
  background: #0e1525;
  border-radius: 12px;
  padding: 15px 12px;
  color: #fff;
  direction: rtl;
  font-family: var(--title-font-family);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  max-width: 400px;
  margin: 0 auto;
}

.er-header {
  text-align: center;
  margin-bottom: 15px;
}

.er-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: #fff;
  letter-spacing: -0.5px;
}

.er-date {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 5px;
}

.er-table-header {
  display: flex;
  justify-content: space-between;
  padding: 0 0 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 700;
}

.er-h-label {
  flex: 1;
  margin-right: 45px;
  /* offset for flag */
}

.er-h-buy {
  width: 70px;
  text-align: center;
}

.er-h-sale {
  width: 70px;
  text-align: center;
}

.er-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.er-row {
  display: flex;
  align-items: center;
  background: #e1b12c;
  /* Gold */
  background: linear-gradient(90deg, #c2931a 0%, #f1c40f 100%);
  border-radius: 4px;
  overflow: hidden;
  color: #000;
  height: 40px;
  transition: transform 0.2s;
}

.er-row:hover {
  transform: translateX(-5px);
}

.er-currency-info {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
}

.er-flag {
  width: 45px;
  height: 100%;
  background: #000;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.er-flag.fib {
  font-size: 1.1rem;
  border-radius: 0;
  width: 45px !important;
  height: 100% !important;
}

.er-name {
  padding: 0 10px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.er-rates-box {
  display: flex;
  align-items: center;
  height: 100%;
}

.er-buy,
.er-sale {
  width: 70px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.er-sale {
  border-right: none;
}

@media (max-width: 480px) {
  .er-title {
    font-size: 1.6rem;
  }

  .er-name {
    font-size: 0.85rem;
    padding: 0 8px;
  }

  .er-buy,
  .er-sale {
    width: 70px;
    font-size: 0.9rem;
  }

  .er-flag {
    width: 45px;
  }

  .er-h-buy,
  .er-h-sale {
    width: 70px;
  }
}

/* -------------------------------------------------------------------------- */
/* Tabbed Market Data Widget Styles
/* -------------------------------------------------------------------------- */

.tabbed-market-container {
  background: transparent;
  width: 100%;
  font-family: var(--base-font-family);
  direction: rtl;
  padding: 0;
  overflow: hidden;
}

/* Tabs Header */
.tmd-tabs-header {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tmd-tabs-header::-webkit-scrollbar {
  height: 4px;
}

.tmd-tabs-header::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.tmd-tabs-header::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.tmd-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-family: var(--title-font-family);
}

.tmd-tab-btn:first-child {
  padding-right: 0;
}

.tmd-tab-btn:hover {
  color: #1e293b;
}

.tmd-tab-btn.active {
  color: var(--primary-color, #0f172a);
  border-bottom-color: var(--primary-color, #0f172a);
}

/* Tabs Content */
.tmd-tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tmd-tab-pane.active {
  display: block;
}

/* Grid Layout */
.tmd-tab-pane.active {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  min-width: 0;
}

/* Data Card */
.tmd-card {
  padding: 8px 10px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: right;
  position: relative;
  overflow: hidden;
}

.tmd-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

.tmd-name {
  font-weight: 800;
  line-height: 1.1;
}

.tmd-val {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-align: left;
}

.tmd-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.tmd-det {
  font-weight: 600;
  text-align: left;
  line-height: 1.1;
}

.tmd-row-time {
  margin-top: 2px;
}

.tmd-time {
  font-size: 0.70rem;
  opacity: 0.8;
  line-height: 1;
  text-align: left;
}

/* Grid Responsiveness */
@media (max-width: 576px) {
  .tmd-card {
    padding: 6px 8px;
  }
}

@media (max-width: 400px) {
  .tmd-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Below Ticker 2-Column Layout (Right 70% | Left 30%)
/* -------------------------------------------------------------------------- */

.below-ticker-2col-container {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 20px;
  direction: rtl;
  align-items: start;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 991px) {
  .below-ticker-2col-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Responsive: single column on mobile */
@media (max-width: 600px) {
  .below-ticker-2col-container {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Hero Block Widget (بلوك أخبار هيرو) - RTL Text Alignment Fix
/* -------------------------------------------------------------------------- */

/* Slider titles */
.hero-block-widget-inner .slide-info,
.hero-block-widget-inner .slide-info h2,
.hero-block-widget-inner .slide-info h2 a {
  text-align: right !important;
  direction: rtl;
}

/* Side list titles */
.hero-block-widget-inner .news-item-info,
.hero-block-widget-inner .news-item-title,
.hero-block-widget-inner .news-item-title a,
.hero-block-widget-inner .news-item-date {
  text-align: right !important;
  direction: rtl;
}

/* -------------------------------------------------------------------------- */
/* Post Content Links - Yellow
/* -------------------------------------------------------------------------- */
.entry-content a {
  color: #f0c000 !important;
  text-decoration: underline;
}

.entry-content a:hover {
  color: #c89a00 !important;
}

/* -------------------------------------------------------------------------- */
/* Custom Footer Styles
/* -------------------------------------------------------------------------- */

/* Set footer background to match header */
.site-footer-widgets,
.site-footer-simple {
  background-color: var(--nav-bg, #b31d1d) !important;
  color: #ffffff !important;
}

/* Add some padding */
.site-footer-widgets {
  padding-top: 40px;
  padding-bottom: 20px;
}

.site-footer-simple {
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Make footer text and links white, and use a different font */
.site-footer-widgets *,
.site-footer-simple * {
  color: #ffffff !important;
  /* Making font different from the main body font (as requested) */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Ensure links stay white and have hover effect */
.site-footer-widgets a,
.site-footer-simple a {
  text-decoration: none !important;
  color: #ffffff !important;
  transition: opacity 0.3s ease;
}

.site-footer-widgets a:hover,
.site-footer-simple a:hover {
  opacity: 0.7 !important;
}

/* -------------------------------------------------------------------------- */
/* Clean Footer Menu (Desktop & Mobile)
/* -------------------------------------------------------------------------- */

.footer-centered-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Default to desktop logo, hide mobile */
.footer-logo-link-desktop {
  display: block;
}

.footer-logo-link-mobile {
  display: none !important;
}

/* Base sizes to match the header exactly */
.footer-desktop-logo,
.footer-mobile-logo {
  max-width: 150px !important;
  max-height: 60px !important;
  height: auto !important;
  object-fit: contain;
}

/* Switch on mobile */
@media (max-width: 768px) {
  .footer-logo-link-desktop {
    display: none !important;
  }

  .footer-logo-link-mobile {
    display: block !important;
  }
}

.footer-nav-simple {
  width: 100%;
  display: flex;
  justify-content: center;
}

ul.footer-menu-inline {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 15px !important;
}

ul.footer-menu-inline li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

ul.footer-menu-inline li a {
  font-size: 1.05rem !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  ul.footer-menu-inline {
    gap: 10px !important;
  }

  ul.footer-menu-inline li {
    /* Subtle background and structure for mobile tap targets */
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
  }

  ul.footer-menu-inline li a {
    padding: 10px 15px !important;
    font-size: 1rem !important;
    width: 100%;
    text-align: center;
  }
}