/*
Theme Name: UrduCoverage
Theme URI: https://www.urducoverage.com/
Author: Antigravity AI
Author URI: https://www.urducoverage.com/
Description: A premium, modern, and extremely fast RTL WordPress theme built from scratch for UrduCoverage, a Pakistani Urdu news, poetry, and jobs portal.
Version: 1.0.0
Text Domain: urducoverage
*/

/* ==========================================================================
   1. COLOR PALETTE & VARIABLES
   ========================================================================== */
:root {
  /* --- HEADER & NAVIGATION --- */
  --color-topbar-bg: #CC0000;         /* red top bar */
  --color-topbar-text: #FFFFFF;       /* top bar text */
  --color-header-bg: #FFFFFF;         /* white header */
  --color-header-border: #CC0000;     /* bottom border */
  --color-nav-bg: #FFFFFF;            /* nav background */
  --color-nav-text: #1A1A1A;          /* all nav items */
  --color-nav-active: #CC0000;        /* active underline */
  --color-nav-hover-bg: #F0F0F0;      /* hover state */
  --color-nav-border: #CC0000;        /* nav bottom line */

  /* --- BODY & CONTENT --- */
  --color-page-bg: #F7F7F7;           /* page background */
  --color-card-bg: #FFFFFF;           /* card background */
  --color-card-border: #E0E0E0;       /* card border */
  --color-text-primary: #212121;      /* body text */
  --color-text-muted: #757575;        /* date, meta text */
  --color-border: #E0E0E0;            /* dividers */

  /* --- BREAKING NEWS --- */
  --color-breaking-bg: #CC0000;       /* ticker background */
  --color-breaking-text: #FFFFFF;     /* ticker text */
  --color-breaking-badge: #FF1744;    /* LIVE badge */

  /* --- SECTION COLORS --- */
  --color-news: #CC0000;              /* خبریں News */
  --color-poetry: #6A1B9A;            /* شاعری Poetry */
  --color-islam: #1B6B3A;             /* اسلام Islam */
  --color-jobs: #00838F;              /* ملازمتیں Jobs */
  --color-books: #E65100;             /* کتب Books */
  --color-health: #C2185B;            /* صحت Health */

  /* --- SPECIAL ELEMENTS --- */
  --color-primary: #CC0000;           /* brand primary */
  --color-featured: #FFB300;          /* gold/featured */
  --color-logo-accent: #CC0000;       /* logo orbit red */
  --color-footer-bg: #263238;         /* footer dark */
  --color-footer-text: #FFFFFF;       /* footer text */
  --color-footer-muted: #90A4AE;      /* footer meta */
  --color-button-bg: #CC0000;         /* buttons */
  --color-button-text: #FFFFFF;       /* button text */
  --color-link: #CC0000;              /* all links */
  --color-link-hover: #990000;        /* link hover */

  /* --- SPACING & BORDER RADIUS --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --max-width: 1200px;
}

/* --- DARK MODE OVERRIDES --- */
body.dark-mode {
  --color-page-bg: #121212;
  --color-card-bg: #1E1E1E;
  --color-card-border: #2D2D2D;
  --color-text-primary: #E0E0E0;
  --color-text-muted: #A0A0A0;
  --color-border: #2D2D2D;
  --color-header-bg: #1A1A1A;
  --color-nav-bg: #1A1A1A;
  --color-nav-text: #E0E0E0;
  --color-nav-hover-bg: #2C2C2C;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans Arabic', sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--color-page-bg);
  color: var(--color-text-primary);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

ul, ol {
  list-style: none;
}

/* ==========================================================================
   3. STRUCTURE & LAYOUT
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

.site-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 30px 0;
}

@media (min-width: 992px) {
  .site-main {
    grid-template-columns: 8fr 4fr;
  }
}

/* ==========================================================================
   4. HEADER & TOPBAR & NAVIGATION
   ========================================================================== */
.top-bar {
  background-color: var(--color-topbar-bg);
  color: var(--color-topbar-text);
  padding: 8px 0;
  font-size: 14px;
}

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

.top-bar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 15px;
  align-items: center;
}

.dark-mode-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  transition: background var(--transition-fast);
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main-header {
  background-color: var(--color-header-bg);
  border-bottom: 2px solid var(--color-header-border);
  padding: 20px 0;
  transition: background var(--transition-normal);
}

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

.logo a {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-logo-accent);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.logo-icon::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--color-logo-accent);
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
}

/* Nav Menu */
.main-navigation {
  background-color: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-nav-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: background var(--transition-normal);
}

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

.main-navigation .logo {
  margin-left: 20px;
}

.main-navigation .logo a {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-navigation .logo-icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--color-logo-accent);
}

.main-navigation .logo-icon::after {
  width: 6px;
  height: 6px;
  top: 4px;
  left: 4px;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1; /* Takes remaining space to allow search box to push left */
  align-items: center;
}

.nav-menu li a {
  display: block;
  padding: 15px 20px;
  color: var(--color-nav-text);
  font-weight: 500;
  font-size: 16px;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  color: var(--color-primary);
  background-color: var(--color-nav-hover-bg);
  border-bottom-color: var(--color-nav-active);
}

/* Dropdown Sub-menu Setup (Desktop) */
.nav-menu li {
  position: relative;
}

.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0; /* RTL dropdown alignment */
  background-color: var(--color-card-bg);
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 2px solid var(--color-primary);
}

.nav-menu li:hover > .sub-menu,
.nav-menu li.focus > .sub-menu {
  display: block;
}

.nav-menu .sub-menu li {
  width: 100%;
}

.nav-menu .sub-menu li a {
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}

.nav-menu .sub-menu li a:hover {
  background-color: var(--color-page-bg);
  color: var(--color-primary);
}

/* Level 3+ Sub-menus fly out to the left in RTL */
.nav-menu .sub-menu .sub-menu {
  top: 0;
  right: 100%;
  border-top: none;
  border-right: 2px solid var(--color-primary);
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  color: var(--color-text-primary);
}

@media (max-width: 768px) {
  .nav-container {
    position: relative;
    flex-wrap: wrap;
    justify-content: center; /* Center the logo */
    padding: 15px; /* Add some breathing room */
  }
  .menu-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
  }
  .nav-menu {
    display: none;
    width: 60%;
    flex-direction: column;
    background-color: var(--color-card-bg);
    position: absolute;
    top: 100%;
    right: 0;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
    border-top: 2px solid var(--color-primary);
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu li a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-border);
  }

  /* Mobile Sub-menu Overrides */
  .nav-menu .sub-menu {
    position: relative;
    top: auto;
    right: auto;
    box-shadow: none;
    border-top: none;
    background-color: var(--color-page-bg); /* Slight contrast */
    min-width: 100%;
    display: none;
  }
  
  .nav-menu li:hover > .sub-menu {
    display: block;
  }

  .nav-menu .sub-menu li a {
    padding-right: 40px; /* Indent child items in RTL */
    font-size: 15px;
    border-bottom: 1px solid var(--color-border);
  }
}

/* Search Form in Navigation */
.menu-search-item {
  display: flex;
  align-items: center;
  padding: 0 15px;
  margin-right: auto; /* Pushes the search box to the far left in RTL */
}
.menu-search-item .search-form-header {
  display: flex;
  width: 100%;
  align-items: center;
}
.menu-search-item .search-field {
  padding: 8px 15px;
  border: 1px solid #CFD8DC; /* Beautiful grey border */
  border-radius: 0 4px 4px 0;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  width: 220px;
  background: #F8F9FA;
  color: var(--color-text-primary);
  transition: border-color var(--transition-fast);
}
.menu-search-item .search-field:focus {
  border-color: var(--color-primary);
}
.menu-search-item .search-submit {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
  padding: 8px 18px;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .menu-search-item {
    padding: 15px;
    border-bottom: none;
    justify-content: center;
    margin-right: 0; /* Reset for mobile */
  }
  .menu-search-item .search-form-header {
    width: 90%;
    max-width: 400px;
  }
  .menu-search-item .search-field {
    width: 100%;
    font-size: 16px;
    padding: 10px 15px;
  }
  .menu-search-item .search-submit {
    font-size: 16px;
    padding: 10px 15px;
  }
}

/* ==========================================================================
   5. BREAKING NEWS TICKER
   ========================================================================== */
.breaking-news-ticker {
  background-color: var(--color-breaking-bg);
  color: var(--color-breaking-text);
  overflow: hidden;
  height: 45px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
}

.breaking-label {
  background-color: var(--color-breaking-badge);
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: bold;
  white-space: nowrap;
  position: relative;
  z-index: 10;
}

.ticker-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
}

.ticker-slide-container {
  display: flex;
  width: 100%;
  position: absolute;
  animation: tickerAnimation 25s linear infinite;
  white-space: nowrap;
}

.ticker-slide-container:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-block;
  padding: 0 30px;
  color: var(--color-breaking-text);
  font-weight: 500;
}

.ticker-item::after {
  content: '★';
  margin-right: 20px;
  color: var(--color-featured);
}

@keyframes tickerAnimation {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==========================================================================
   6. CARDS & HERO BLOCKS
   ========================================================================== */
/* Section Headers */
.section-title {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 80px;
  height: 2px;
  background-color: var(--color-primary);
}

.section-title.news-sec::after { background-color: var(--color-news); }
.section-title.poetry-sec::after { background-color: var(--color-poetry); }
.section-title.islam-sec::after { background-color: var(--color-islam); }
.section-title.jobs-sec::after { background-color: var(--color-jobs); }
.section-title.books-sec::after { background-color: var(--color-books); }
.section-title.health-sec::after { background-color: var(--color-health); }

/* Card Component */
.card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--color-primary);
  color: #fff;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 10px;
}

.card-title a {
  color: var(--color-text-primary);
}

.card-title a:hover {
  color: var(--color-primary);
}

.card-excerpt {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Homepage Hero Grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.hero-featured {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hero-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-featured-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-featured-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
}

.hero-featured-title a {
  color: #fff;
}

.hero-sub-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-sub-item {
  display: flex;
  gap: 15px;
  background-color: var(--color-card-bg);
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-card-border);
}

.hero-sub-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.hero-sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-sub-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-sub-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.hero-sub-title a {
  color: var(--color-text-primary);
}

/* Grid layout for standard sections */
.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 576px) {
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .section-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* List Style for News/Articles */
.section-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.list-item {
  display: flex;
  gap: 20px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 15px;
  transition: transform var(--transition-fast);
}

.list-item:hover {
  transform: translateX(-5px);
}

.list-item-img {
  width: 150px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.list-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-item-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   7. POETRY LAYOUT & NASTALEEQ TYPOGRAPHY
   ========================================================================== */
.poetry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .poetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.poetry-card {
  border-top: 4px solid var(--color-poetry);
}

.poetry-verses {
  font-family: 'Noto Sans Arabic', 'Jameel Noori Nastaleeq', serif;
  text-align: center;
  padding: 20px 0;
  font-size: 20px;
  line-height: 2.2;
}

.poetry-verse-line {
  margin-bottom: 12px;
}

.poetry-verse-line:nth-child(even) {
  padding-right: 40px;
}

.poetry-poet-link {
  text-align: left;
  font-size: 14px;
  font-weight: bold;
  color: var(--color-poetry);
}

/* Single Poetry Post Page */
.single-poetry-box {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.single-poetry-title {
  font-size: 28px;
  margin-bottom: 25px;
  color: var(--color-poetry);
  font-weight: 700;
}

.single-poetry-body {
  font-size: 24px;
  line-height: 2.5;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.single-poetry-meta {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* Poet Bio Card */
.poet-bio-card {
  display: flex;
  gap: 20px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 30px;
}

.poet-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-poetry);
}

/* ==========================================================================
   8. JOBS & BOOKS SECTIONS
   ========================================================================== */
/* Jobs Section */
.jobs-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  margin-bottom: 30px;
  border: 1px solid var(--color-card-border);
}

.jobs-table th, .jobs-table td {
  padding: 15px;
  text-align: right;
  border-bottom: 1px solid var(--color-border);
}

.jobs-table th {
  background-color: #ECEFF1;
  color: var(--color-text-primary);
  font-weight: bold;
}

.jobs-table tr:last-child td {
  border-bottom: none;
}

.jobs-table tr:hover {
  background-color: #F5F7F8;
}

.job-badge {
  background-color: var(--color-jobs);
  color: #fff;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.last-date-badge {
  color: #D32F2F;
  font-weight: bold;
  font-size: 14px;
}

/* Books Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 576px) {
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .books-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.book-card {
  text-align: center;
  border-bottom: 4px solid var(--color-books);
}

.book-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 15px;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   9. SIDEBAR WIDGETS
   ========================================================================== */
.widget {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: background var(--transition-normal);
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-primary);
}

/* Prayer Times Widget */
.prayer-times-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prayer-time-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background-color: var(--color-page-bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.prayer-time-row.active {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: bold;
}

/* Weather Widget */
.weather-widget {
  text-align: center;
}

.weather-header {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.weather-temp {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 10px 0;
}

.weather-desc {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Hadith/Ayah Widget */
.hadith-widget {
  background: linear-gradient(135deg, #E8F5E9, #FFF);
  border-right: 4px solid var(--color-islam);
}
body.dark-mode .hadith-widget {
  background: linear-gradient(135deg, #1B3B26, #1E1E1E);
}

.hadith-text {
  font-size: 16px;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 10px;
}

.hadith-source {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: left;
  font-weight: bold;
}

/* ==========================================================================
   10. GOOGLE ADS PLACEMENTS
   ========================================================================== */
.ad-slot {
  background-color: #F0F0F0;
  border: 1px dashed var(--color-border);
  text-align: center;
  padding: 10px;
  margin: 20px 0;
  color: var(--color-text-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  min-height: 50px;
}
body.dark-mode .ad-slot {
  background-color: #2D2D2D;
}

.ad-slot::before {
  content: 'اشتہار (Ad Slot)';
}

.ad-728-90 {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin-left: auto;
  margin-right: auto;
}

.ad-300-250 {
  width: 300px;
  height: 250px;
  margin-left: auto;
  margin-right: auto;
}

.ad-336-280 {
  width: 336px;
  height: 280px;
  margin-left: auto;
  margin-right: auto;
}

.ad-320-50 {
  width: 320px;
  height: 50px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  background-color: var(--color-card-bg);
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 60px 0 80px 0; /* extra padding bottom for mobile sticky ad */
  font-size: 15px;
  border-top: 4px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-widget-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFF;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
  position: relative;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: var(--color-footer-muted);
}

.footer-links li a:hover {
  color: #FFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--color-footer-muted);
}

/* ==========================================================================
   12. UTILITY CLASSES
   ========================================================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 10px; }

/* Custom button style */
.btn-primary {
  background-color: var(--color-button-bg);
  color: var(--color-button-text) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  opacity: 0.9;
}
