@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ===== CSS Variables ===== */
:root {
  --green-darkest: #0A2E0F;
  --green-dark: #0D3B13;
  --green-primary: #1B5E20;
  --green-medium: #2E7D32;
  --green-light: #4CAF50;
  --gold-primary: #D4A84B;
  --gold-light: #E8C976;
  --gold-dark: #B8860B;
  --white: #FFFFFF;
  --white-90: rgba(255,255,255,0.9);
  --white-70: rgba(255,255,255,0.7);
  --white-50: rgba(255,255,255,0.5);
  --white-80: rgba(255,255,255,0.8);
  --white-30: rgba(255,255,255,0.3);
  --white-15: rgba(255,255,255,0.15);
  --white-10: rgba(255,255,255,0.1);
  --white-05: rgba(255,255,255,0.05);
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
  --shadow-gold: rgba(212,168,75,0.3);
  --shadow-dark: rgba(0,0,0,0.3);
  --font-main: 'Tajawal', sans-serif;
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
}

body {
  font-family: var(--font-main);
  font-feature-settings: "lnum";
  -moz-font-feature-settings: "lnum";
  -webkit-font-feature-settings: "lnum";
  background: var(--green-darkest);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.8;
}

/* Force English numerals */
body, input, textarea, select, button {
  font-variant-numeric: lining-nums;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

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

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--green-darkest); }
::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}

/* ===== Islamic Pattern Background ===== */
.islamic-pattern {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image:
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg 45deg,
      var(--gold-primary) 45deg 46deg,
      transparent 46deg 90deg
    );
  background-size: 60px 60px;
}

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

/* ===== Navigation ===== */
.nav-pages-mobile { display: none; }

/* ===== Top Bar ===== */
.top-bar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1001;
  background: var(--green-darkest);
  border-bottom: 1px solid var(--glass-border);
  padding: 6px 0;
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.top-bar a {
  color: var(--white-50);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 20px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.top-bar a:hover {
  color: var(--gold-primary);
  border-color: var(--glass-border);
}

.top-bar a.top-bar-active {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: rgba(212, 168, 75, 0.1);
}

.navbar {
  position: fixed;
  top: 36px; right: 0; left: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,46,15,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px var(--shadow-dark);
  border-bottom: 1px solid var(--gold-primary);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-icon {
  width: 40px; height: 40px;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white-70);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-primary);
  background: var(--white-05);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 28px; height: 2px;
  background: var(--gold-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(160deg, var(--green-darkest) 0%, var(--green-dark) 40%, var(--green-primary) 100%);
  overflow: hidden;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-bg-ornament {
  position: absolute;
  width: 600px; height: 600px;
  border: 1px solid var(--white-10);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: rotateOrn 60s linear infinite;
}

.hero-bg-ornament::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border: 1px solid var(--white-05);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.hero-bg-ornament::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border: 1px solid var(--gold-primary);
  opacity: 0.15;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes rotateOrn { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-stars {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
}

.hero-star {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold-primary);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-bismillah {
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 24px;
  opacity: 0.8;
  font-weight: 300;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 0 40px var(--shadow-gold);
}

.hero-verse {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--white-90);
  margin-bottom: 12px;
  line-height: 2;
  font-weight: 300;
}

.hero-verse-ref {
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--white-70);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 2;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--green-darkest);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 8px 30px var(--shadow-gold);
  font-family: var(--font-main);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--shadow-gold);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white-50);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Section Styles ===== */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: rgba(13,59,19,0.4);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--gold-primary);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold-primary);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.section-title span {
  color: var(--gold-primary);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--white-70);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ===== Decorative Divider ===== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px auto;
  max-width: 300px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, var(--gold-primary), transparent);
}

.divider-line:last-child {
  background: linear-gradient(to right, var(--gold-primary), transparent);
}

.divider-icon {
  color: var(--gold-primary);
  font-size: 1.2rem;
}

/* ===== Glass Card ===== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--white-10);
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about-text p {
  color: var(--white-70);
  line-height: 2;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--white-70);
  margin-top: 4px;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  right: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold-primary), transparent);
  transform: translateX(50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: left;
}

.timeline-item:nth-child(even) {
  text-align: right;
}

.timeline-content {
  width: 44%;
  padding: 24px;
}

.timeline-dot {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  width: 16px; height: 16px;
  background: var(--gold-primary);
  border: 3px solid var(--green-darkest);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 15px var(--shadow-gold);
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--white-70);
  line-height: 1.8;
}

/* ===== Morals/Akhlaq Cards ===== */
.akhlaq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.akhlaq-card {
  text-align: center;
  padding: 36px 24px;
}

.akhlaq-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.akhlaq-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.akhlaq-text {
  font-size: 0.92rem;
  color: var(--white-70);
  line-height: 1.8;
}

.akhlaq-evidence {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--white-10);
  font-size: 0.85rem;
  color: var(--gold-light);
  font-style: italic;
}

/* ===== Shamail Section ===== */
.shamail-container {
  max-width: 800px;
  margin: 0 auto;
}

.shamail-item {
  padding: 24px 30px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.shamail-label {
  font-weight: 700;
  color: var(--gold-primary);
  min-width: 100px;
  font-size: 1rem;
}

.shamail-desc {
  color: var(--white-70);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ===== Names Grid ===== */
.names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.name-card {
  text-align: center;
  padding: 24px 16px;
  cursor: default;
}

.name-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.name-meaning {
  font-size: 0.85rem;
  color: var(--white-70);
  line-height: 1.7;
}

/* ===== Miracles ===== */
.miracles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.miracle-card { padding: 30px; }

.miracle-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-primary);
  opacity: 0.3;
  margin-bottom: 10px;
}

.miracle-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.miracle-text {
  font-size: 0.92rem;
  color: var(--white-70);
  line-height: 1.8;
}

/* ===== Family Section ===== */
.family-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-align: center;
  margin: 50px 0 30px;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.family-card { padding: 24px; text-align: center; }

.family-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.family-title-sub {
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 10px;
  font-weight: 500;
}

.family-desc {
  font-size: 0.88rem;
  color: var(--white-70);
  line-height: 1.8;
}

/* ===== Companions ===== */
.companions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.companion-card { padding: 28px; }

.companion-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.companion-title {
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 12px;
  font-weight: 500;
}

.companion-desc {
  font-size: 0.9rem;
  color: var(--white-70);
  line-height: 1.8;
}

/* ===== Hadith Cards ===== */
.hadith-list {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hadith-card {
  padding: 24px;
  position: relative;
  border-right: 3px solid var(--gold-primary);
}

.hadith-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  opacity: 0.85;
}

.hadith-category {
  font-size: 0.78rem;
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hadith-text {
  font-size: 1.05rem;
  color: var(--white-90);
  line-height: 2;
  margin-bottom: 12px;
}

.hadith-source {
  font-size: 0.85rem;
  color: var(--white-50);
  font-weight: 500;
}

/* ===== Rights Section ===== */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.right-card {
  padding: 24px;
  text-align: center;
}

.right-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.right-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-primary);
  opacity: 0.4;
  margin-bottom: 8px;
}

.right-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.right-text {
  font-size: 0.9rem;
  color: var(--white-70);
  line-height: 1.8;
}

/* ===== Defense Section ===== */
.defense-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.defense-card { padding: 28px; }

.defense-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.defense-answer {
  font-size: 0.92rem;
  color: var(--white-70);
  line-height: 1.9;
  padding-right: 30px;
}

/* ===== Impact / Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  position: relative;
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--gold-primary);
  opacity: 0.2;
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--white-90);
  line-height: 1.9;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--white-50);
}

/* ===== Salawat Section ===== */
.salawat-intro {
  max-width: 750px;
  margin: 0 auto 40px;
  text-align: center;
}

.salawat-intro p {
  color: var(--white-70);
  line-height: 1.9;
  font-size: 1rem;
}

.salawat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.salawat-card {
  padding: 28px;
  text-align: center;
}

.salawat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.salawat-text {
  font-size: 1.05rem;
  color: var(--white-90);
  line-height: 2;
}

.salawat-virtue {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--white-10);
  font-size: 0.85rem;
  color: var(--gold-light);
}

/* ===== Footer ===== */
.footer {
  background: var(--green-darkest);
  border-top: 1px solid var(--gold-primary);
  padding: 50px 0 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-salawat {
  font-size: 1.5rem;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-verse {
  font-size: 1rem;
  color: var(--white-70);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.9;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-links a {
  color: var(--white-50);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-copy {
  font-size: 0.82rem;
  color: var(--white-30);
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Loading Screen ===== */
.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--green-darkest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-text {
  font-size: 1.8rem;
  color: var(--gold-primary);
  font-weight: 700;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-sub {
  font-size: 1rem;
  color: var(--white-50);
  margin-top: 12px;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--green-darkest);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--shadow-gold);
  font-family: var(--font-main);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .top-bar { display: none; }
  .navbar { top: 0; }

  .nav-pages-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-page-link {
    color: var(--gold-primary) !important;
    font-size: 0.9rem !important;
    padding: 10px 16px !important;
  }
  .nav-page-link.active {
    background: rgba(212, 168, 75, 0.1);
    border-radius: 8px;
  }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10,46,15,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    transition: var(--transition);
    border-left: 1px solid var(--gold-primary);
    overflow-y: auto;
    gap: 4px;
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    width: 100%;
    font-size: 1rem;
    padding: 12px 16px;
  }

  .hamburger { display: flex; }

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

  .timeline::before { right: 20px; }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
    text-align: right;
    padding-right: 50px;
  }

  .timeline-content { width: 100%; }

  .timeline-dot {
    right: 20px;
    transform: translateX(50%);
  }

  .testimonials-grid { grid-template-columns: 1fr; }
  .salawat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .hero { padding: 100px 20px 60px; }
  .hero-bg-ornament { width: 350px; height: 350px; }
  .hero-bg-ornament::before { width: 280px; height: 280px; }
  .hero-bg-ornament::after { width: 220px; height: 220px; }
  .about-stats { grid-template-columns: 1fr 1fr; }  .akhlaq-grid { grid-template-columns: 1fr; }
  .miracles-grid { grid-template-columns: 1fr; }
  .names-grid { grid-template-columns: repeat(2, 1fr); }
  .family-grid { grid-template-columns: 1fr; }
  .companions-grid { grid-template-columns: 1fr; }
  .hadith-list { grid-template-columns: 1fr; }
  .rights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  html { font-size: 16px; }
  .container { padding: 0 16px; }
  .names-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .rights-grid { grid-template-columns: 1fr; }
  .glass-card { padding: 20px; }
  .section-title { font-size: 1.6rem; }
  .timeline-desc,
  .akhlaq-text,
  .shamail-desc,
  .miracle-text,
  .family-desc,
  .companion-desc,
  .hadith-text,
  .right-text,
  .defense-answer,
  .testimonial-text,
  .salawat-text { font-size: 1rem; line-height: 1.9; }
}

/* ===== Sub-Pages Styles ===== */
/* ===== Shared Styles for Sub-Pages ===== */

.page-hero {
  padding: 100px 20px 50px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-primary);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 25px;
  transition: opacity 0.3s;
}
.back-link:hover { opacity: 0.7; }

.page-title {
  font-family: 'Amiri', serif;
  font-size: 2.8rem;
  color: var(--gold-primary);
  margin-bottom: 10px;
}

.page-desc {
  color: var(--white-70);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.9;
}

.page-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.page-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--glass-border);
}
.page-footer p {
  color: var(--white-50);
  font-size: 0.9rem;
}
.page-footer a {
  color: var(--gold-primary);
  text-decoration: none;
}

/* ===== Content Cards (Proofs / Defense) ===== */
.content-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.card-number {
  display: inline-block;
  background: var(--gold-primary);
  color: var(--bg-dark);
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  margin-left: 12px;
}

.content-card h2 {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: var(--gold-primary);
  display: inline;
}

.card-body {
  margin-top: 20px;
  color: var(--white-70);
  font-size: 1.05rem;
  line-height: 2.1;
}

/* ===== Quote Cards ===== */
.quote-card {
  padding: 36px;
  margin-bottom: 28px;
  border-radius: 16px;
  position: relative;
}

.quote-mark {
  font-size: 3rem;
  color: var(--gold-primary);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 8px;
}

.quote-card blockquote {
  color: var(--white-80);
  font-size: 1.1rem;
  line-height: 2;
  margin: 0;
  font-style: italic;
}

.quote-author {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.quote-author strong {
  display: block;
  color: var(--gold-primary);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.quote-author span {
  color: var(--white-50);
  font-size: 0.85rem;
}

/* ===== Books Grid ===== */
.books-category {
  margin-bottom: 50px;
}

.category-title {
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
  color: var(--gold-primary);
  margin-bottom: 24px;
  text-align: center;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.book-card {
  padding: 28px;
  border-radius: 14px;
  text-align: center;
}

.book-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.book-card h3 {
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.book-author {
  color: var(--white-50);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.book-desc {
  color: var(--white-70);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ===== Defense Page Nav ===== */
.defense-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 30px auto;
  max-width: 900px;
}

.defense-nav a {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--white-70);
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.defense-nav a:hover {
  background: var(--gold-primary);
  color: var(--bg-dark);
  border-color: var(--gold-primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .page-hero { padding: 85px 16px 35px; }
  .page-title { font-size: 2rem; }
  .content-card { padding: 24px; }
  .content-card h2 { font-size: 1.25rem; }
  .quote-card { padding: 24px; }
  .quote-card blockquote { font-size: 1rem; }
  .books-grid { grid-template-columns: 1fr; }
}
