/* ============================================================
   ALMOBADARAH - Main Stylesheet
   Arabic (RTL) Islamic Research Initiative Website
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --green-darkest: #0a2a12;
  --green-darker: #0f3318;
  --green-dark: #154a22;
  --green-mid: #1a5c2e;
  --green-accent: #2d7a3f;
  --green-light: #3d9951;
  --gold-dark: #a0832a;
  --gold: #c9a84c;
  --gold-light: #d4b95e;
  --gold-lighter: #e8d48b;
  --white: #ffffff;
  --white-off: #fafaf8;
  --cream: #f5f3ee;
  --gray-light: #e8e6e1;
  --gray-mid: #9ca3af;
  --gray-dark: #4b5563;
  --text-dark: #1a1a1a;
  --text-secondary: #6b7280;
  --dark-green: #154a22;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}


/* ============================================================
   1. RESET & BASE STYLES
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-feature-settings: "tnum";
}

/* Force Western/English numerals everywhere */
* {
  font-variant-numeric: lining-nums;
}
input, select, textarea, button,
input[type="datetime-local"],
input[type="date"],
input[type="time"],
input[type="number"] {
  font-variant-numeric: lining-nums;
  -moz-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
}

body {
  direction: rtl;
  font-family: 'Tajawal', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

svg {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background-color: var(--gold);
  color: var(--green-darkest);
}

::-moz-selection {
  background-color: var(--gold);
  color: var(--green-darkest);
}

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

::-webkit-scrollbar-track {
  background: var(--green-darkest);
}

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

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

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--green-darkest);
}


/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 {
  font-size: 2.75rem;
  font-weight: 800;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

h4 {
  font-size: 1.25rem;
  font-weight: 700;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  line-height: 1.9;
  color: var(--gray-dark);
}

p:last-child {
  margin-bottom: 0;
}

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

/* Section Badge */
.section-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Section Title */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0;
  position: relative;
}

.section-title.dark {
  color: var(--green-darkest);
}

.section-title.light {
  color: var(--white);
}

/* Section Divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
  margin-bottom: 0;
}

.section-divider .divider-line {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--gold);
}

.section-divider .divider-diamond {
  color: var(--gold);
  font-size: 10px;
  line-height: 1;
}

.section-divider.light .divider-line {
  background: var(--gold-light);
  opacity: 0.6;
}

.section-divider.light .divider-diamond {
  color: var(--gold-light);
}


/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-white {
  background-color: var(--white);
}

.section-cream {
  background-color: var(--cream);
}

.section-dark {
  background-color: var(--green-darkest);
  position: relative;
}

.section-dark-gradient {
  background: linear-gradient(135deg, var(--green-darkest) 0%, var(--green-darker) 50%, var(--green-dark) 100%);
  position: relative;
}

/* Section Title Wrapper */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 3rem;
}

/* Section Action */
.section-action {
  text-align: center;
  margin-top: 3rem;
}

/* Desktop / Mobile visibility */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-mid);
}

.empty-state svg {
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state p {
  font-size: 1.1rem;
  color: var(--gray-mid);
}


/* ============================================================
   4. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Tajawal', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
}

/* Gold Button */
.btn-gold {
  background-color: var(--gold);
  color: var(--green-darkest);
  border-color: var(--gold);
}

.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--green-darkest);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

/* Primary Button (alias for gold) */
.btn-primary {
  background-color: var(--gold);
  color: var(--green-darkest);
  border-color: var(--gold);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--green-darkest);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

/* Outline White */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* Outline Green */
.btn-outline-green {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-outline-green:hover {
  background-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 74, 34, 0.25);
}

/* Outline Gold */
.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold);
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--green-darkest);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

/* Outline generic */
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--gray-light);
}

.btn-outline:hover {
  border-color: var(--green-dark);
  color: var(--green-dark);
  transform: translateY(-2px);
}

/* Link Gold */
.link-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.link-gold:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
  gap: 10px;
}

.link-gold svg {
  transition: transform var(--transition);
}

.link-gold:hover svg {
  transform: translateX(-4px);
}


/* ============================================================
   5. HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  transition: all var(--transition);
}

.header-gold-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
}

.header-inner {
  background-color: rgba(10, 42, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity var(--transition);
}

.header-logo:hover {
  opacity: 0.85;
  color: inherit;
}

.logo-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}

.logo-circle-sm {
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
}

.logo-text {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Desktop Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 14px;
  left: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Social Buttons (shared) */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 6px;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}
.social-btn:hover { opacity: 0.85; transform: translateY(-2px); color: #fff !important; }
.social-btn.sb-telegram { background-color: #27A7E7 !important; }
.social-btn.sb-facebook { background-color: #1877F2 !important; }
.social-btn.sb-x { background-color: #14171A !important; }

/* Social Links in Header */
.header-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-socials .social-btn { font-size: 0.82rem; padding: 6px 16px; }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Header Scrolled State */
.site-header.header-scrolled .header-inner {
  background-color: rgba(10, 42, 18, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


/* ============================================================
   5b. MOBILE NAVIGATION
   ============================================================ */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--green-darkest);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-title {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.mobile-menu-close:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  flex: 1;
}

.mobile-link {
  display: block;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  font-weight: 500;
  transition: all var(--transition);
  border-right: 3px solid transparent;
}

.mobile-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-link.active {
  color: var(--gold);
  border-right-color: var(--gold);
  background-color: rgba(201, 168, 76, 0.06);
}

/* Mobile Social Links */
.mobile-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 24px 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-socials .social-btn { font-size: 0.95rem; padding: 10px 0; flex: 1; text-align: center; }


/* ============================================================
   6. HERO SECTION (Homepage)
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--green-darkest) 0%, var(--green-darker) 40%, var(--green-dark) 100%);
  overflow: hidden;
  padding: 80px 24px 60px;
}

/* Hero Background Pattern */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Hero Circles - large transparent radial circles */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.06);
}

.hero-circle-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -150px;
}

.hero-circle-2 {
  width: 800px;
  height: 800px;
  bottom: -300px;
  right: -200px;
}

.hero-circle-3 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Glow Dots - animated gold dots */
.glow-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

.glow-dot-1 {
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.glow-dot-2 {
  top: 25%;
  left: 20%;
  animation-delay: 0.8s;
}

.glow-dot-3 {
  bottom: 30%;
  right: 25%;
  animation-delay: 1.6s;
}

.glow-dot-4 {
  top: 60%;
  left: 10%;
  animation-delay: 2.4s;
}

.glow-dot-5 {
  bottom: 20%;
  left: 30%;
  animation-delay: 3.2s;
}

.glow-dot-6 {
  top: 40%;
  right: 35%;
  animation-delay: 4s;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(2.5);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

.hero-bismillah {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 1.25rem;
}

.hero-divider .divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero-divider .divider-diamond {
  color: var(--gold);
  font-size: 11px;
  line-height: 1;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  z-index: 1;
}

.scroll-arrow {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}


/* ============================================================
   7. INTRO SECTION
   ============================================================ */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.intro-text {
  position: relative;
  padding-right: 24px;
}

.intro-accent-bar {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  border-radius: 4px;
}

.intro-text p {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--gray-dark);
  margin-bottom: 1.25rem;
}

.intro-text .link-gold {
  margin-top: 0.5rem;
}

/* Counters */
.intro-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.counter-box {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.counter-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.counter-number {
  display: block;
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.counter-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-dark);
}


/* ============================================================
   8. ARTICLES GRID
   ============================================================ */

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

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.article-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: var(--cream);
}

.article-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.article-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-darkest), var(--green-dark));
}

.article-card-placeholder span {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.3;
}

.article-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: var(--gold);
  color: var(--green-darkest);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  z-index: 2;
}

.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.article-card:hover .article-card-title {
  color: var(--green-dark);
}

.article-card-excerpt {
  font-size: 0.92rem;
  color: var(--gray-dark);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--gray-mid);
  padding-top: 1rem;
  border-top: 1px solid var(--gray-light);
  margin-top: auto;
}

.article-card-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.meta-separator {
  margin: 0 4px;
  opacity: 0.5;
}


/* ============================================================
   9. BOOKS GRID
   ============================================================ */

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

/* On home page, 6 columns for books */
.section-white .books-grid,
.section-cream .books-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.5rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition);
}

.book-card:hover {
  transform: translateY(-4px);
  color: inherit;
}

/* Book Cover with 3D effect */
.book-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  perspective: 600px;
  transition: all 0.5s ease;
}

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

.book-card:hover .book-cover {
  box-shadow: var(--shadow-lg);
}

.book-card:hover .book-cover img {
  transform: scale(1.03);
}

.book-spine {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.2), rgba(0,0,0,0.05));
  pointer-events: none;
}

.book-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 42, 18, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.book-card:hover .book-overlay {
  opacity: 1;
}

.book-overlay span {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
}

.book-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-size: 0.82rem;
  color: var(--gray-mid);
  text-align: center;
  margin-top: 0.25rem;
}

/* Book Card (publications page variant) */
.book-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
}

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

.book-card:hover .book-card-cover {
  box-shadow: var(--shadow-lg);
}

.book-card:hover .book-card-cover img {
  transform: scale(1.03);
}

.book-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-darkest), var(--green-dark));
  color: var(--gold);
  opacity: 0.4;
}

.book-card-spine {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.2), rgba(0,0,0,0.05));
  pointer-events: none;
}

.book-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 42, 18, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.book-card:hover .book-card-overlay {
  opacity: 1;
}

.book-card-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
}

.book-card-body {
  padding: 0.75rem 0.25rem 0;
  text-align: center;
}

.book-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--gray-mid);
}

.book-card-author svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}


/* ============================================================
   10. PAGE HERO (Internal Pages)
   ============================================================ */

.page-hero {
  position: relative;
  padding: 140px 0 60px;
  background: linear-gradient(160deg, var(--green-darkest) 0%, var(--green-darker) 40%, var(--green-dark) 100%);
  text-align: center;
  overflow: hidden;
}

.page-hero .hero-bg-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero .hero-divider {
  margin-bottom: 0;
}


/* ============================================================
   11. ARTICLE HERO (Single Article)
   ============================================================ */

.article-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 73px; /* header height */
}

.article-hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 42, 18, 0.95) 0%, rgba(10, 42, 18, 0.6) 50%, rgba(10, 42, 18, 0.3) 100%);
}

.article-hero:not(:has(.article-hero-image)) {
  background: linear-gradient(160deg, var(--green-darkest), var(--green-dark));
}

.article-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
  padding-top: 4rem;
}

.article-hero-badge {
  display: inline-block;
  padding: 5px 16px;
  background: var(--gold);
  color: var(--green-darkest);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.article-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1rem;
  max-width: 800px;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.article-hero-meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.article-hero-meta .meta-separator {
  margin: 0 6px;
  opacity: 0.4;
}


/* ============================================================
   12. PROSE CONTENT (Article Body)
   ============================================================ */

.prose-content {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-dark);
}

.prose-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--green-darkest);
}

.prose-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--green-darkest);
}

.prose-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--green-darkest);
}

.prose-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--green-darkest);
}

.prose-content h5 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--green-darkest);
}

.prose-content h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--green-darkest);
}

.prose-content p {
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  line-height: 2;
}

.prose-content a {
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-lighter);
  transition: all var(--transition);
}

.prose-content a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.prose-content strong, .prose-content b {
  font-weight: 700;
  color: var(--text-dark);
}

.prose-content em, .prose-content i {
  font-style: italic;
}

.prose-content ul {
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
  list-style: disc;
}

.prose-content ul li {
  margin-bottom: 0.5rem;
  line-height: 2;
  padding-right: 0.5rem;
}

.prose-content ol {
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
  list-style: decimal;
}

.prose-content ol li {
  margin-bottom: 0.5rem;
  line-height: 2;
  padding-right: 0.5rem;
}

.prose-content blockquote {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.25rem 2rem;
  padding-right: 1.5rem;
  border-right: 4px solid var(--gold);
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem;
  color: var(--gray-dark);
  font-style: italic;
}

.prose-content blockquote p {
  margin-bottom: 0;
  color: var(--gray-dark);
}

.prose-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

.prose-content figure {
  margin: 1.5rem 0;
}

.prose-content figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-mid);
  margin-top: 0.5rem;
}

.prose-content code {
  font-family: 'Courier New', monospace;
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--green-dark);
}

.prose-content pre {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--green-darkest);
  border-radius: var(--radius-md);
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}

.prose-content pre code {
  background: none;
  padding: 0;
  color: var(--gray-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.prose-content table th {
  background: var(--green-darkest);
  color: var(--white);
  padding: 12px 16px;
  text-align: right;
  font-weight: 600;
}

.prose-content table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-light);
}

.prose-content table tr:nth-child(even) {
  background: var(--cream);
}

.prose-content hr {
  border: none;
  height: 1px;
  background: var(--gray-light);
  margin: 2rem 0;
}

.prose-content iframe {
  max-width: 100%;
  border-radius: var(--radius-md);
}


/* ============================================================
   13. ARTICLE SHARE & TAGS
   ============================================================ */

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
}

.share-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-light);
  cursor: pointer;
  transition: all var(--transition);
}

.share-btn:hover {
  background: var(--gold);
  color: var(--green-darkest);
  border-color: var(--gold);
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--cream);
  color: var(--gray-dark);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
}

.tag:hover {
  background: var(--gold-lighter);
  border-color: var(--gold);
  color: var(--green-darkest);
}


/* ============================================================
   14. PUBLICATION DETAIL (Single Book)
   ============================================================ */

.book-detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.book-detail-cover {
}

.book-detail-cover img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.book-detail-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-darkest), var(--green-dark));
  border-radius: var(--radius-md);
  color: var(--gold);
  opacity: 0.5;
}

.book-detail-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-darkest);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.book-detail-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  color: var(--gray-dark);
  margin-bottom: 1rem;
}

.book-detail-author-label {
  font-weight: 700;
  color: var(--green-darkest);
}

.book-detail-author svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.book-detail-badge {
  display: inline-block;
  padding: 5px 16px;
  background: var(--gold);
  color: var(--green-darkest);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.book-detail-description {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--gray-dark);
  margin-bottom: 2rem;
}

.book-detail-description p {
  margin-bottom: 0.75rem;
}

.book-detail-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  border-right: 4px solid var(--gold);
}

.book-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--gray-dark);
}

.book-meta-item strong {
  color: var(--dark-green);
  font-weight: 700;
}

.book-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.book-detail-actions {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.book-detail-actions .btn {
  width: 100%;
  max-width: 300px;
}

.btn-download {
  background-color: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.btn-download:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

.book-detail-back {
  margin-top: 0.5rem;
}


/* ============================================================
   15. FILTER BUTTONS
   ============================================================ */

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.filter-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-dark);
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-radius: 25px;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.filter-btn:hover {
  background: var(--gold-lighter);
  border-color: var(--gold);
  color: var(--green-darkest);
}

.filter-btn.active {
  background: var(--gold);
  color: var(--green-darkest);
  border-color: var(--gold);
  font-weight: 600;
}


/* ============================================================
   16. PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 3rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-dark);
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.page-btn:hover {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--gold-dark);
}

.page-btn.active {
  background: var(--gold);
  color: var(--green-darkest);
  border-color: var(--gold);
  font-weight: 700;
}

.page-btn svg {
  width: 16px;
  height: 16px;
}


/* ============================================================
   17. ABOUT PAGE
   ============================================================ */

.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 2;
  color: var(--gray-dark);
}

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

.vision-mission-grid .article-card {
  padding: 2.5rem;
  text-align: center;
}

.founder-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.values-grid .article-card {
  padding: 2rem;
  text-align: center;
}


/* ============================================================
   18. TRANSLATIONS PAGE
   ============================================================ */

.translations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.translation-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border-right: 4px solid var(--gold);
}

.translation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.translation-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.translation-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
}

.translation-card-language {
  font-size: 0.82rem;
  color: var(--gray-mid);
  margin-top: 0.25rem;
}

.translation-status {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.translation-status.completed {
  background: rgba(45, 122, 63, 0.1);
  color: var(--green-accent);
}

.translation-status.in-progress {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-dark);
}

.translation-status.planned {
  background: rgba(156, 163, 175, 0.15);
  color: var(--gray-mid);
}


/* ============================================================
   19. CONTACT PAGE
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-of-type {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  direction: rtl;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-mid);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--green-darkest);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}

.form-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.form-btn svg {
  width: 18px;
  height: 18px;
}

/* Contact Info Card */
.contact-info-card {
  background: var(--green-darkest);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  color: var(--white);
}

.contact-info-card h3 {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.contact-info-item a:hover {
  color: var(--gold);
}


/* ============================================================
   20. SUPPORT PAGE
   ============================================================ */

.support-hero {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(160deg, var(--green-darkest) 0%, var(--green-darker) 40%, var(--green-dark) 100%);
  text-align: center;
  overflow: hidden;
}

.support-hero .hero-bg-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.support-hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
}

.support-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Reasons Grid */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.reason-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.reason-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 50%;
  color: var(--gold);
}

.reason-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.reason-card-text {
  font-size: 0.95rem;
  color: var(--gray-dark);
  line-height: 1.8;
}

/* Achievements Section */
.achievements-section {
  text-align: center;
}

/* Quran Verse */
.quran-verse {
  text-align: center;
  padding: 2.5rem;
  background: rgba(201, 168, 76, 0.06);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 168, 76, 0.15);
  margin-bottom: 2rem;
}

.quran-verse p {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--green-darkest);
  line-height: 2.2;
}

.quran-verse cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--gold-dark);
  font-style: normal;
}

/* Donate CTA */
.donate-cta {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, var(--green-darkest), var(--green-dark));
  border-radius: var(--radius-lg);
  color: var(--white);
}

.donate-cta h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.donate-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}


/* ============================================================
   21. 404 PAGE
   ============================================================ */

.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--green-darkest) 0%, var(--green-darker) 40%, var(--green-dark) 100%);
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.page-404-number {
  font-size: 10rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  opacity: 0.2;
  margin-bottom: -1rem;
}

.page-404-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.page-404-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  max-width: 400px;
}

.page-404 .btn {
  margin-top: 0.5rem;
}


/* ============================================================
   22. VIDEO SECTION
   ============================================================ */

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(201, 168, 76, 0.3);
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-description {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  margin-top: 1.25rem;
  margin-bottom: 0;
  line-height: 1.7;
  opacity: 0.9;
}


/* ============================================================
   23. CTA SECTION
   ============================================================ */

.cta-section {
  text-align: center;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


/* ============================================================
   24. FOOTER
   ============================================================ */

.site-footer {
  background: var(--green-darkest);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.footer-gold-border {
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding: 60px 0 40px;
}

/* Footer Logo */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-logo:hover {
  opacity: 0.85;
  color: inherit;
}

.footer-logo-text {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}

/* Footer Description */
.footer-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 320px;
}

/* Footer Social Links */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
}
.footer-socials .social-btn { font-size: 0.82rem; padding: 6px 16px; }

/* Support page social links */
.support-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}
.support-socials .social-btn { font-size: 1rem; padding: 10px 28px; }

/* Footer Column */
.footer-col {
  display: flex;
  flex-direction: column;
}

/* Footer Heading */
.footer-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Footer Links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  display: inline-flex;
  align-items: center;
}

.footer-links li:not(:last-child)::after {
  content: '·';
  color: rgba(255, 255, 255, 0.25);
  margin-right: 14px;
  font-size: 1.1rem;
  line-height: 1;
}

.footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

/* Footer Support Text */
.footer-support-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* Footer Donate Button */
.footer-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--green-darkest);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  align-self: flex-start;
}

.footer-donate-btn:hover {
  background: var(--gold-light);
  color: var(--green-darkest);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.footer-donate-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}


/* ============================================================
   25. SCROLL TO TOP
   ============================================================ */

.scroll-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--green-darkest);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}


/* ============================================================
   26. DECORATIVE ELEMENTS
   ============================================================ */

/* Divider Line (standalone) */
.divider-line {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--gold);
}

.divider-diamond {
  color: var(--gold);
  font-size: 10px;
  line-height: 1;
}

/* Accent Bar */
.accent-bar {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
}


/* ============================================================
   27. ANIMATION CLASSES
   ============================================================ */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Stagger delays */
.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

.stagger-6 {
  transition-delay: 0.6s;
}


/* ============================================================
   28. RESPONSIVE - TABLET (max-width: 992px)
   ============================================================ */

@media (max-width: 992px) {
  /* Typography */
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  /* Header */
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-container {
    height: 60px;
  }

  /* Hero */
  .hero {
    padding: 100px 24px 50px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  /* Intro */
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .intro-counters {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Articles Grid */
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Books Grid */
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .section-white .books-grid,
.section-cream .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Page Hero */
  .page-hero {
    padding: 120px 0 50px;
  }

  .page-hero-title {
    font-size: 2rem;
  }

  /* Article Hero */
  .article-hero {
    min-height: 350px;
  }

  .article-hero-title {
    font-size: 2rem;
  }

  /* Book Detail */
  .book-detail-layout {
    grid-template-columns: 250px 1fr;
    gap: 2.5rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  /* CTA */
  .cta-title {
    font-size: 1.85rem;
  }

  /* Support Hero */
  .support-hero {
    padding: 140px 0 60px;
  }

  .support-hero-title {
    font-size: 2.5rem;
  }

  /* 404 */
  .page-404-number {
    font-size: 7rem;
  }

  .page-404-title {
    font-size: 1.75rem;
  }
}


/* ============================================================
   29. RESPONSIVE - MOBILE (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* Container */
  .container {
    padding: 0 16px;
  }

  .container-narrow {
    padding: 0 16px;
  }

  /* Sections */
  .section {
    padding: 50px 0;
  }

  .section-title-wrapper {
    margin-bottom: 2rem;
  }

  .section-action {
    margin-top: 2rem;
  }

  /* Hero */
  .hero {
    min-height: 85vh;
    padding: 90px 16px 40px;
  }

  .hero-bismillah {
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.92rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-scroll-hint {
    display: none;
  }

  /* Intro */
  .intro-text {
    padding-right: 20px;
  }

  .intro-text p {
    font-size: 1rem;
  }

  .intro-counters {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .counter-box {
    padding: 1.25rem 1rem;
  }

  .counter-number {
    font-size: 2rem;
  }

  .counter-label {
    font-size: 0.8rem;
  }

  /* Articles Grid */
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .article-card {
    flex-direction: row;
  }

  .article-card-image {
    width: 130px;
    min-width: 130px;
    padding-top: 0;
    aspect-ratio: 1;
  }

  .article-card-body {
    padding: 1rem;
  }

  .article-card-title {
    font-size: 1rem;
    -webkit-line-clamp: 2;
  }

  .article-card-excerpt {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
    margin-bottom: 0.5rem;
  }

  .article-card-meta {
    padding-top: 0.5rem;
    font-size: 0.75rem;
  }

  .article-badge {
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    font-size: 0.7rem;
  }

  /* Books Grid */
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .section-white .books-grid,
.section-cream .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-card-title {
    font-size: 0.9rem;
  }

  /* Page Hero */
  .page-hero {
    padding: 110px 0 40px;
  }

  .page-hero-title {
    font-size: 1.75rem;
  }

  /* Article Hero */
  .article-hero {
    min-height: 300px;
  }

  .article-hero-title {
    font-size: 1.6rem;
  }

  .article-hero-meta {
    font-size: 0.82rem;
    flex-wrap: wrap;
  }

  /* Prose Content */
  .prose-content {
    font-size: 1rem;
  }

  .prose-content h1 {
    font-size: 1.6rem;
  }

  .prose-content h2 {
    font-size: 1.4rem;
  }

  .prose-content h3 {
    font-size: 1.2rem;
  }

  .prose-content blockquote {
    padding: 1rem 1.25rem;
    padding-right: 1.25rem;
    margin: 1rem 0;
  }

  /* Article Share */
  .article-share {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  /* Book Detail */
  .book-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-detail-cover {
    position: static;
    max-width: 250px;
    margin: 0 auto;
  }

  .book-detail-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .book-detail-author {
    justify-content: center;
  }

  .book-detail-badge {
    display: block;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .book-detail-actions .btn {
    width: 100%;
    max-width: 100%;
  }

  /* Category Filter */
  .category-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
  }

  .category-filter::-webkit-scrollbar {
    height: 3px;
  }

  .category-filter::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
  }

  .filter-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
  }

  /* Pagination */
  .pagination {
    gap: 4px;
    margin-top: 2rem;
  }

  .page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  /* Contact */
  .contact-form {
    padding: 1.5rem;
  }

  .contact-info-card {
    padding: 1.75rem;
  }

  /* Support */
  .support-hero {
    padding: 120px 0 50px;
  }

  .support-hero-title {
    font-size: 2rem;
  }

  .support-hero-subtitle {
    font-size: 1rem;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-title {
    font-size: 1.6rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 40px 0 30px;
  }

  .footer-description {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* Video */
  .video-wrapper {
    max-width: 100%;
  }

  /* Translations */
  .translations-grid {
    grid-template-columns: 1fr;
  }

  /* 404 */
  .page-404-number {
    font-size: 5rem;
  }

  .page-404-title {
    font-size: 1.5rem;
  }

  .page-404-text {
    font-size: 1rem;
  }

  /* About */
  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

  /* Scroll to top */
  .scroll-to-top {
    bottom: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }
}


/* ============================================================
   30. RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ============================================================ */

@media (max-width: 480px) {
  /* Typography */
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  /* Hero */
  .hero {
    min-height: 80vh;
    padding: 80px 12px 30px;
  }

  .hero-bismillah {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .hero-description {
    font-size: 0.85rem;
  }

  .hero-buttons {
    max-width: 260px;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.92rem;
  }

  /* Intro */
  .intro-counters {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
  }

  .counter-number {
    font-size: 1.6rem;
  }

  .counter-label {
    font-size: 0.72rem;
  }

  .counter-box {
    padding: 1rem 0.5rem;
  }

  /* Articles - single column mobile card */
  .article-card-image {
    width: 110px;
    min-width: 110px;
  }

  .article-card-title {
    font-size: 0.92rem;
  }

  .article-card-excerpt {
    display: none;
  }

  /* Books Grid */
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .section-white .books-grid,
.section-cream .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-title {
    font-size: 0.85rem;
  }

  .book-author {
    font-size: 0.75rem;
  }

  /* Page Hero */
  .page-hero {
    padding: 100px 0 30px;
  }

  .page-hero-title {
    font-size: 1.5rem;
  }

  /* Article Hero */
  .article-hero {
    min-height: 260px;
  }

  .article-hero-title {
    font-size: 1.35rem;
  }

  .article-hero-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  /* Prose */
  .prose-content {
    font-size: 0.95rem;
  }

  .prose-content h1 {
    font-size: 1.4rem;
  }

  .prose-content h2 {
    font-size: 1.25rem;
  }

  .prose-content h3 {
    font-size: 1.1rem;
  }

  .prose-content pre {
    padding: 1rem;
    font-size: 0.82rem;
  }

  .prose-content table {
    font-size: 0.82rem;
  }

  .prose-content table th,
  .prose-content table td {
    padding: 8px 10px;
  }

  /* Book Detail */
  .book-detail-cover {
    max-width: 200px;
  }

  .book-detail-title {
    font-size: 1.35rem;
  }

  .book-detail-meta {
    padding: 1rem;
  }

  /* Category Filter */
  .filter-btn {
    padding: 5px 14px;
    font-size: 0.82rem;
  }

  /* Pagination */
  .page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }

  /* Contact */
  .contact-form {
    padding: 1.25rem;
  }

  .form-input,
  .form-textarea {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  /* Support */
  .support-hero-title {
    font-size: 1.6rem;
  }

  .support-hero-subtitle {
    font-size: 0.92rem;
  }

  .quran-verse {
    padding: 1.5rem;
  }

  .quran-verse p {
    font-size: 1.1rem;
  }

  .donate-cta {
    padding: 2rem;
  }

  .donate-cta h3 {
    font-size: 1.25rem;
  }

  /* CTA */
  .cta-title {
    font-size: 1.35rem;
  }

  .cta-subtitle {
    font-size: 0.92rem;
  }

  /* Footer */
  .footer-grid {
    padding: 30px 0 20px;
    gap: 1.5rem;
  }

  .footer-heading {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-bottom {
    padding: 1rem 0;
    font-size: 0.8rem;
  }

  /* Mobile Nav */
  .mobile-nav {
    width: 280px;
  }

  .mobile-link {
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* 404 */
  .page-404-number {
    font-size: 4rem;
  }

  .page-404-title {
    font-size: 1.25rem;
  }

  .page-404-text {
    font-size: 0.92rem;
  }
}


/* ============================================================
   31. PRINT STYLES
   ============================================================ */

@media print {
  .site-header,
  .header-gold-bar,
  .hero-scroll-hint,
  .mobile-overlay,
  .mobile-nav,
  .scroll-to-top,
  .site-footer,
  .hero-bg-pattern,
  .glow-dot,
  .hero-circle,
  .cta-section,
  .section-action,
  .article-share,
  .footer-gold-border {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .section {
    padding: 1.5rem 0;
  }

  .container,
  .container-narrow {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .article-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  .prose-content img {
    box-shadow: none;
  }
}
