/*
Theme Name: Umati Club
Theme URI: https://www.youtube.com/@UmatiClub
Author: Umati Club
Author URI: https://www.youtube.com/@UmatiClub
Description: A mobile first, bilingual Urdu and English WordPress theme for Umati Club, a Sufi Barelvi Hanafi Islamic channel sharing Urdu Naat about Madina, Islamic reminders, Kalam-e-Iqbal, Kalam-e-Ala Hazrat, Waqiyat-e-Awliya, Seerah and Quran. Deep emerald green, gold accents, warm cream background, Islamic geometric pattern in CSS and SVG only, rounded cards, generous spacing, RTL ready and accessible.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: umati-club
Tags: islamic, urdu, naat, seerah, quran, bilingual, rtl-language-support, custom-logo, custom-background, custom-menu, featured-images, threaded-comments, translation-ready, blog, education
*/

/* ============================================================
   Umati Club 1.1.0
   Tokens, base, layout, header, hero, cards, archives,
   single posts, comments, widgets, footer, dark mode, RTL.
   No copied images. Pattern is pure CSS and inline SVG.
   ============================================================ */

:root {
  --uc-green: #0b3d2e;
  --uc-green-deep: #072a20;
  --uc-green-mid: #145c45;
  --uc-green-soft: #e6f0eb;
  --uc-gold: #c9a227;
  --uc-gold-soft: #f6ecd0;
  --uc-cream: #fdf8ee;
  --uc-cream-2: #f7efdd;
  --uc-ink: #16261e;
  --uc-ink-soft: #42544c;
  --uc-sage: #dcebe2;
  --uc-sage-card: #eef5f0;
  --uc-white: #ffffff;
  --uc-border: #d9e2d9;
  --uc-shadow: 0 10px 30px rgba(11, 61, 46, 0.10);
  --uc-shadow-sm: 0 4px 14px rgba(11, 61, 46, 0.08);
  --uc-radius: 18px;
  --uc-radius-sm: 12px;
  --uc-font-en: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --uc-font-ar: "Amiri", "Noto Nastaliq Urdu", serif;
  --uc-font-ur: "Noto Nastaliq Urdu", "Amiri", serif;
  --uc-max: 1180px;
  --uc-gap: 1.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--uc-cream);
  color: var(--uc-ink);
  font-family: var(--uc-font-en);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.dark-mode {
  --uc-cream: #10201a;
  --uc-cream-2: #162b23;
  --uc-ink: #f0f3ee;
  --uc-ink-soft: #c2cfc7;
  --uc-sage-card: #1a3329;
  --uc-white: #17291f;
  --uc-border: #2c463a;
  --uc-green-soft: #1c3a2d;
  --uc-gold-soft: #3a3013;
  --uc-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --uc-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.30);
}

img, video, iframe { max-width: 100%; height: auto; }
img { border-style: none; }
a { color: var(--uc-green-mid); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--uc-green); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--uc-gold);
  outline-offset: 2px;
}
h1, h2, h3, h4, h5, h6 { color: var(--uc-green); line-height: 1.3; margin: 0 0 0.6rem; font-weight: 800; }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4 { color: #e8f0e9; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; }
blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  border-inline-start: 4px solid var(--uc-gold);
  background: var(--uc-gold-soft); border-radius: 0 var(--uc-radius-sm) var(--uc-radius-sm) 0;
}
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--uc-green-deep); color: #f0f3ee; padding: 1rem; border-radius: var(--uc-radius-sm); overflow: auto; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1.5rem; }
th, td { border: 1px solid var(--uc-border); padding: 0.6rem 0.75rem; text-align: start; }
th { background: var(--uc-green-soft); color: var(--uc-green); }
hr { border: 0; border-top: 1px solid var(--uc-border); margin: 2rem 0; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  background: var(--uc-green); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; color: #fff; }
.skip-link:visited { color: #fff; }

/* Urdu and Arabic text */
.urdu, [lang="ur"] { font-family: var(--uc-font-ur); line-height: 2.1; direction: rtl; }
.arabic, [lang="ar"] { font-family: var(--uc-font-ar); line-height: 2; direction: rtl; }
.urdu-label { font-family: var(--uc-font-ur); }

/* Layout */
.container { width: min(100% - 2.5rem, var(--uc-max)); margin-inline: auto; }
.site-content { padding: 2rem 0 3rem; }
.content-area { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .content-area.has-sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .content-area.no-sidebar { grid-template-columns: minmax(0, 1fr); }
}
.section { padding: 2.5rem 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.35rem; }
.section-sub { color: var(--uc-ink-soft); margin-bottom: 1.5rem; max-width: 62ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }

/* Geometric pattern, pure CSS */
.pattern-band {
  background-color: var(--uc-green);
  background-image:
    linear-gradient(45deg, rgba(201, 162, 39, 0.16) 25%, transparent 25%, transparent 75%, rgba(201, 162, 39, 0.16) 75%),
    linear-gradient(-45deg, rgba(201, 162, 39, 0.16) 25%, transparent 25%, transparent 75%, rgba(201, 162, 39, 0.16) 75%);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
}
.pattern-soft {
  background-color: var(--uc-cream);
  background-image: radial-gradient(circle at 12px 12px, rgba(201, 162, 39, 0.18) 2px, transparent 3px);
  background-size: 36px 36px;
}

/* Buttons */
.button, .wp-block-button__link, button[type="submit"], input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--uc-green); color: #fff; border: 2px solid var(--uc-green);
  padding: 0.7rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  line-height: 1.3; cursor: pointer; text-decoration: none;
}
.button:hover, .button:focus-visible { background: var(--uc-green-deep); border-color: var(--uc-green-deep); color: #fff; }
.button-gold { background: var(--uc-gold); border-color: var(--uc-gold); color: #1d1a05; }
.button-gold:hover, .button-gold:focus-visible { background: #b08d1e; border-color: #b08d1e; color: #1d1a05; }
.button-outline { background: transparent; color: var(--uc-green); }
body.dark-mode .button-outline { color: #e8f0e9; }
.button-outline:hover { background: var(--uc-green); color: #fff; }
.button-light { background: #fff; color: var(--uc-green); border-color: #fff; }
.button-light:hover { background: var(--uc-gold-soft); color: var(--uc-green); border-color: var(--uc-gold-soft); }
.button-small { padding: 0.45rem 0.95rem; font-size: 0.88rem; }
.youtube-button { background: #c00; border-color: #c00; }
.youtube-button:hover { background: #a00; border-color: #a00; }

/* Header */
.top-bar { background: var(--uc-green-deep); color: #dcebe2; font-size: 0.88rem; }
.top-bar .container { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.top-bar a { color: #ffe9a8; }
.top-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; }
.top-menu a { text-decoration: none; }
.site-header { background: var(--uc-white); border-bottom: 3px solid var(--uc-gold); position: sticky; top: 0; z-index: 50; box-shadow: var(--uc-shadow-sm); }
.site-header-inner { display: flex; align-items: center; gap: 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.site-branding { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.site-logo-mark {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px;
  background: var(--uc-green); color: var(--uc-gold);
  display: grid; place-items: center; font-family: var(--uc-font-ar); font-size: 1.7rem; line-height: 1;
}
.site-title { font-size: 1.45rem; margin: 0; line-height: 1.15; }
.site-title a { color: var(--uc-green); text-decoration: none; }
body.dark-mode .site-title a { color: #e8f0e9; }
.site-title-urdu { font-family: var(--uc-font-ur); font-size: 1.05rem; color: var(--uc-gold); line-height: 1.6; }
.site-description { margin: 0; color: var(--uc-ink-soft); font-size: 0.86rem; line-height: 1.4; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 0.5rem; }
.icon-button {
  background: var(--uc-green-soft); border: 1px solid var(--uc-border); color: var(--uc-green);
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; font-size: 1.05rem;
}
body.dark-mode .icon-button { color: #e8f0e9; }
.menu-toggle { display: inline-grid; }
@media (min-width: 900px) { .menu-toggle { display: none; } }
.primary-nav { display: none; background: var(--uc-white); border-top: 1px solid var(--uc-border); }
.primary-nav.is-open { display: block; }
@media (min-width: 900px) {
  .primary-nav { display: block; border-top: 0; }
  .primary-nav .container { padding-top: 0; padding-bottom: 0; }
}
.primary-menu { list-style: none; margin: 0; display: flex; flex-direction: column; }
@media (min-width: 900px) { .primary-menu { flex-direction: row; flex-wrap: wrap; gap: 0.25rem; } }
.primary-menu a {
  display: block; padding: 0.7rem 0.85rem; color: var(--uc-ink); font-weight: 700;
  text-decoration: none; border-radius: 8px;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a {
  background: var(--uc-green-soft); color: var(--uc-green);
}
.primary-menu .sub-menu { list-style: none; margin: 0 0 0.5rem 1rem; }
@media (min-width: 900px) {
  .primary-menu .menu-item-has-children { position: relative; }
  .primary-menu .sub-menu {
    display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px;
    background: var(--uc-white); border: 1px solid var(--uc-border); border-radius: var(--uc-radius-sm);
    box-shadow: var(--uc-shadow); padding: 0.5rem; margin: 0; z-index: 60;
  }
  .primary-menu .menu-item-has-children:hover > .sub-menu,
  .primary-menu .menu-item-has-children:focus-within > .sub-menu { display: block; }
}
.header-search { display: none; padding: 0.75rem 0 1rem; }
.header-search.is-open { display: block; }
.header-search form { display: flex; gap: 0.5rem; }
.header-search input[type="search"] { flex: 1; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], select, textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--uc-border); border-radius: var(--uc-radius-sm);
  background: var(--uc-white); color: var(--uc-ink); font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--uc-gold); outline: 3px solid rgba(201, 162, 39, 0.35); outline-offset: 1px; }
label { font-weight: 700; display: block; margin-bottom: 0.35rem; }
.search-form { display: flex; gap: 0.5rem; }
.search-form label { flex: 1; margin: 0; }

/* Hero */
.hero {
  color: #fff; border-radius: 0 0 28px 28px; overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 162, 39, 0.28), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.08), transparent 40%),
    var(--uc-green);
  position: relative;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.14;
  background-image: linear-gradient(45deg, #c9a227 25%, transparent 25%, transparent 75%, #c9a227 75%), linear-gradient(-45deg, #c9a227 25%, transparent 25%, transparent 75%, #c9a227 75%);
  background-size: 28px 28px; background-position: 0 0, 14px 14px;
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 1.5rem; padding: 2.75rem 0 3rem; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.25fr 0.75fr; align-items: center; padding: 3.5rem 0 4rem; } }
.hero-eyebrow { color: var(--uc-gold); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; margin: 0 0 0.75rem; }
.hero h1, .hero .hero-title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.2; margin-bottom: 0.75rem; }
.hero-urdu { font-family: var(--uc-font-ur); font-size: clamp(1.35rem, 3vw, 1.9rem); color: #ffe9a8; line-height: 2; margin: 0 0 0.75rem; }
.hero-text { color: #dcebe2; font-size: 1.08rem; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.hero-card {
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--uc-radius); padding: 1.5rem; backdrop-filter: blur(2px);
}
.hero-card h2 { color: #fff; font-size: 1.15rem; }
.hero-card p { color: #dcebe2; }
.hero-card .arabic { color: #ffe9a8; font-size: 1.35rem; text-align: center; }
.hero-meta { list-style: none; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.hero-meta li { display: flex; gap: 0.6rem; align-items: baseline; }
.hero-meta li::before { content: "\25C6"; color: var(--uc-gold); }

/* Cards and grids */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 620px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  background: var(--uc-white); border: 1px solid var(--uc-border); border-radius: var(--uc-radius);
  overflow: hidden; box-shadow: var(--uc-shadow-sm); display: flex; flex-direction: column; height: 100%;
}
.card:hover { box-shadow: var(--uc-shadow); }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--uc-sage); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--uc-green), var(--uc-green-mid)); font-size: 2rem;
}
.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--uc-gold); margin: 0; }
.card-title { font-size: 1.12rem; margin: 0; }
.card-title a { color: var(--uc-green); text-decoration: none; }
body.dark-mode .card-title a { color: #e8f0e9; }
.card-title a:hover { text-decoration: underline; }
.card-excerpt { color: var(--uc-ink-soft); font-size: 0.95rem; margin: 0; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--uc-ink-soft); font-size: 0.85rem; margin: 0; }
.card-meta a { color: inherit; }
.card-link { font-weight: 800; text-decoration: none; }
.topic-card { text-align: center; padding: 1.5rem 1rem; }
.topic-card .topic-icon { font-size: 1.9rem; }
.topic-card h3 { margin: 0.5rem 0 0.25rem; font-size: 1.05rem; }
.topic-card p { margin: 0; color: var(--uc-ink-soft); font-size: 0.92rem; }

/* Hadith and Kalam */
.hadith-card { background: var(--uc-green); color: #fff; border-radius: var(--uc-radius); padding: 1.75rem; }
.hadith-card h2, .hadith-card h3 { color: #ffe9a8; }
.hadith-arabic { font-family: var(--uc-font-ar); font-size: 1.5rem; line-height: 2; direction: rtl; text-align: right; margin: 0 0 1rem; }
.hadith-text { font-size: 1.05rem; color: #eaf3ed; }
.hadith-source { color: var(--uc-gold); font-weight: 700; }
.copy-button { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; }
.copy-button:hover { background: rgba(255, 255, 255, 0.25); color: #fff; }
.kalam-card { background: var(--uc-sage-card); }
.kalam-urdu { font-family: var(--uc-font-ur); line-height: 2.1; font-size: 1.05rem; }

/* CTA and follow */
.cta-band { background: var(--uc-green); color: #fff; border-radius: 24px; padding: 2rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dcebe2; max-width: 56ch; margin-inline: auto; }
.follow-actions { margin-top: 1.25rem; }
.follow-note { font-size: 0.95rem; color: #dcebe2; }

/* Responsive video embed (v1.1). The .video-embed base keeps a 16/9
   ratio with the iframe filling it. Inside a card the embed sits flush
   at the top, with no extra margin or rounding. */
.card-video-embed { margin-bottom: 0; border-radius: 0; }

/* Thumbnail fallback for video posts with no featured image (v1.1).
   Emerald to gold gradient with the post title, never a broken image. */
.video-thumb-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  text-align: center; padding: 1rem;
  background: linear-gradient(135deg, var(--uc-green) 0%, var(--uc-green-mid) 70%, var(--uc-gold) 160%);
  color: #fff;
}
.video-thumb-placeholder .placeholder-play { font-size: 2rem; color: var(--uc-gold); line-height: 1; }
.video-thumb-placeholder .placeholder-title { font-weight: 800; font-size: 1rem; line-height: 1.4; color: #fff; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.88rem; color: var(--uc-ink-soft); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--uc-green-mid); }
.breadcrumbs .sep { margin: 0 0.4rem; color: var(--uc-gold); }

/* Archive filters */
.archive-filters { background: var(--uc-white); border: 1px solid var(--uc-border); border-radius: var(--uc-radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; box-shadow: var(--uc-shadow-sm); }
.archive-filters form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.filter-field { flex: 1 1 160px; }
.filter-field label { font-size: 0.86rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; list-style: none; }
.filter-chips a { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--uc-border); background: var(--uc-green-soft); color: var(--uc-green); text-decoration: none; font-weight: 700; font-size: 0.88rem; }
.filter-chips a.is-active, .filter-chips a:hover { background: var(--uc-green); color: #fff; border-color: var(--uc-green); }
.results-count { color: var(--uc-ink-soft); font-size: 0.92rem; }

/* Single post */
.entry-header { margin-bottom: 1.5rem; }
.entry-title { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; color: var(--uc-ink-soft); font-size: 0.9rem; margin: 0.75rem 0; }
.entry-meta a { color: inherit; }
.post-thumbnail { border-radius: var(--uc-radius); overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--uc-shadow-sm); }
.post-thumbnail img { width: 100%; display: block; }
.entry-content { font-size: 1.05rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { word-break: break-word; }
.entry-content img { border-radius: var(--uc-radius-sm); }
.entry-content .wp-block-embed, .entry-content iframe { border-radius: var(--uc-radius-sm); overflow: hidden; }
.entry-footer { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--uc-border); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; }
.tag-list a { padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--uc-green-soft); color: var(--uc-green); text-decoration: none; font-size: 0.88rem; font-weight: 700; }
.post-meta-box { background: var(--uc-sage-card); border: 1px solid var(--uc-border); border-radius: var(--uc-radius); padding: 1.25rem; margin: 1.5rem 0; }
.post-meta-box dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 0; }
.post-meta-box dt { font-weight: 800; color: var(--uc-green); }
.post-meta-box dd { margin: 0; }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--uc-radius); overflow: hidden; margin-bottom: 1.5rem; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.answer-box, .question-box { border-radius: var(--uc-radius); padding: 1.25rem; margin: 1.25rem 0; }
.question-box { background: var(--uc-gold-soft); border: 1px solid var(--uc-gold); }
.answer-box { background: var(--uc-sage-card); border: 1px solid var(--uc-border); }
.post-navigation { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 700px) { .post-navigation { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: block; background: var(--uc-white); border: 1px solid var(--uc-border); border-radius: var(--uc-radius-sm); padding: 1rem; text-decoration: none; }
.post-navigation .nav-label { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--uc-gold); font-weight: 800; }
.author-box { display: flex; gap: 1rem; background: var(--uc-white); border: 1px solid var(--uc-border); border-radius: var(--uc-radius); padding: 1.25rem; margin-top: 2rem; align-items: start; }
.author-box img { border-radius: 50%; }

/* Pagination */
.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.page-numbers { display: inline-block; min-width: 42px; text-align: center; padding: 0.5rem 0.8rem; border-radius: 10px; border: 1px solid var(--uc-border); background: var(--uc-white); color: var(--uc-green); text-decoration: none; font-weight: 700; }
.page-numbers.current, .page-numbers:hover { background: var(--uc-green); color: #fff; border-color: var(--uc-green); }

/* Sidebar and widgets */
.sidebar .widget { background: var(--uc-white); border: 1px solid var(--uc-border); border-radius: var(--uc-radius); padding: 1.25rem; margin-bottom: 1.5rem; box-shadow: var(--uc-shadow-sm); }
.widget-title { font-size: 1.1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--uc-gold); margin-bottom: 1rem; }
.widget ul { list-style: none; margin: 0; }
.widget li { padding: 0.45rem 0; border-bottom: 1px solid var(--uc-border); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }

/* Comments */
.comments-area { margin-top: 2.5rem; background: var(--uc-white); border: 1px solid var(--uc-border); border-radius: var(--uc-radius); padding: 1.5rem; }
.comment-list { list-style: none; margin: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.5rem; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--uc-border); }
.comment-author { display: flex; gap: 0.75rem; align-items: center; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 0.85rem; color: var(--uc-ink-soft); }
.comment-reply-link { font-weight: 700; }
.comment-form label { margin-top: 0.75rem; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form-cookies-consent input { width: auto; }

/* Search and 404 */
.search-header, .archive-header { margin-bottom: 1.5rem; }
.no-results { background: var(--uc-white); border: 1px solid var(--uc-border); border-radius: var(--uc-radius); padding: 2rem; text-align: center; }
.error-404 { text-align: center; padding: 2rem 0; }
.error-404 .big-404 { font-size: clamp(4rem, 12vw, 7rem); color: var(--uc-green); font-weight: 900; line-height: 1; margin: 0; }
.error-404 .arabic { font-size: 1.4rem; color: var(--uc-gold); }

/* Footer */
.site-footer { background: var(--uc-green-deep); color: #dcebe2; margin-top: 2rem; }
.footer-pattern { height: 10px; background: var(--uc-gold); background-image: linear-gradient(45deg, rgba(11, 61, 46, 0.35) 25%, transparent 25%, transparent 75%, rgba(11, 61, 46, 0.35) 75%), linear-gradient(-45deg, rgba(11, 61, 46, 0.35) 25%, transparent 25%, transparent 75%, rgba(11, 61, 46, 0.35) 75%); background-size: 20px 20px; }
.footer-widgets { display: grid; gap: 2rem; padding: 2.5rem 0 1.5rem; }
@media (min-width: 800px) { .footer-widgets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #ffe9a8; }
.site-footer .widget { background: transparent; border: 0; box-shadow: none; padding: 0; }
.footer-menu { list-style: none; margin: 0; display: grid; gap: 0.5rem; }
.footer-menu a { text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 1.25rem 0; font-size: 0.9rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center; }
.back-to-top { position: fixed; inset-inline-end: 1rem; bottom: 1rem; z-index: 60; display: none; }
.back-to-top.is-visible { display: inline-grid; }

/* Alignment and captions */
.alignleft { float: left; margin: 0 1.25rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.25rem; }
.aligncenter { display: block; margin-inline: auto; text-align: center; }
.wp-caption { max-width: 100%; background: var(--uc-white); border: 1px solid var(--uc-border); border-radius: var(--uc-radius-sm); padding: 0.5rem; }
.wp-caption-text { font-size: 0.88rem; color: var(--uc-ink-soft); text-align: center; margin: 0.5rem 0 0; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.sticky { border-top: 4px solid var(--uc-gold); }
.bypostauthor { font-weight: 700; }

/* Editor styles note: front end classes above also style block content. */
.wp-block-quote { border-inline-start-color: var(--uc-gold); }
.wp-block-button__link { background: var(--uc-green); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* RTL adjustments */
[dir="rtl"] .urdu, [dir="rtl"] .arabic { text-align: right; }
[dir="rtl"] ul, [dir="rtl"] ol { margin: 0 1.25rem 1rem 0; }
[dir="rtl"] .alignleft { float: right; margin: 0 0 1rem 1.25rem; }
[dir="rtl"] .alignright { float: left; margin: 0 1.25rem 1rem 0; }
