
    :root {
  --green: #127a3d;
  --bg: #f8fafb;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e5e7eb;
  --radius: 20px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 64px rgba(0, 0, 0, 0.18);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 3.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}





/* ───────────────────────────────
   STATIC CARDS (Hadiths, Duas, etc.)
──────────────────────────────── */
.surah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
  max-width: 1200px;
}

.surah-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.8rem 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  transform-style: preserve-3d;
}

.surah-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(2deg) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.surah-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.surah-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.surah-card a {
  text-decoration: none;
  color: var(--green);
  font-weight: 600;
  background: #f9fff9;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  transition: var(--transition);
}

.surah-card a:hover {
  background: var(--green);
  color: #fff;
}

/* ───────────────────────────────
   FOOTER
──────────────────────────────── */
footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
}

/* ───────────────────────────────
   RESPONSIVE DESIGN
──────────────────────────────── */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.1rem;
  }

header .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }

 

  .card:hover {
    transform: translateY(-4px) scale(1.02);
  }
}

/* ───────────────────────────────
   DARK MODE
──────────────────────────────── */
body.dark-mode {
  --bg: #0f172a;
  --text: #f9fafb;
  --muted: #94a3b8;
  --card: #1e293b;
  --border: #334155;
}

body.dark-mode header {
  background: rgba(18, 90, 47, 0.9);
}

body.dark-mode .card,
body.dark-mode .widget-card {
  box-shadow: none;
}
/* Header */
/* ───────────────────────────────
   HAMBURGER BUTTON (Apple-like)
──────────────────────────────── */
.hamburger {
  font-size: 1.5rem;
  background: transparent; /* matches header green */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.1rem 0.7rem;
  position: center;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  display: block;
  z-index: 1100;
}

.hamburger:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  background: rgba(19, 111, 60, 1);
}

/* ───────────────────────────────
   HIDDEN NAV MENU (Apple-style, inverted)
──────────────────────────────── */

#mainNav {
  position: fixed;
  top: 0;
  right: -250px;
  width: 220px;
  height: 100%;
  background: rgba(19, 111, 60, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 12px 0 0 12px;
  opacity: 0;
  transition: right 0.35s ease, opacity 0.35s ease;
  z-index: 1050;
}

/* Menu Open (Animated Slide + Fade In) */
#mainNav.open {
  right: 0;
  opacity: 1;
}

/* Menu Links */
#mainNav a {
  background: #fff; color: var(--green);
  padding: 0.5rem 0.8rem; border-radius: 16px;
  font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* 3D Hover Effect (Apple-like) */
#mainNav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
  background: var(--green);
  color: #fff;
}
#mainNav {
  position: fixed;
  top: 0;
  right: -240px; /* hidden offscreen */
  width: 200px;
  height: 100%;
  background: rgba(19, 111, 60, 0.95); /* green like header */
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 0 0 0 24px;
  transition: right 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 1050;
}

#mainNav.open {
  right: 0;
  opacity: 1;
  pointer-events: auto;
}

/* ───────────────────────────────
   NAV LINKS (3D hover, Apple style)
──────────────────────────────── */
#mainNav a {
  background: #fff; /* white rounded boxes */
  color: rgba(19, 111, 60, 1); /* green text */
  padding: 0.8rem 1rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.25s ease;
  width: 90%;        /* full width of the sidebar */
  display: block;
}

#mainNav a:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  background: #fff; /* stays white */
  color: rgba(19, 111, 60, 1);
}

/* ───────────────────────────────
   RESPONSIVE INTEGRATION
──────────────────────────────── */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.1rem;
  }

  header .btn,
  .hamburger {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    background: rgba(19, 111, 60, 0.9);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }

  header .btn:hover,
  .hamburger:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    background: rgba(19, 111, 60, 1);
  }
}


/* ───────────────────────────────
   SURAH SEARCH BAR (Apple-style)
──────────────────────────────── */
.search {
  max-width: 400px;
  margin: 2rem auto 1rem;
  display: flex;
  align-items: center;
  background: #fff;           /* white box */
  border-radius: 16px;        /* rounded corners */
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12); /* subtle shadow */
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
  background: transparent;
  color: #1f2937; /* main text color */
}

.search input::placeholder {
  color: #6b7280; /* muted placeholder */
}

.search:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.beta-banner {
position: fixed;
top: 0;
left: 0;
width: 100%;
background: #FFD500;
color: #000;
font-weight: 700;
font-size: 1rem;
text-align: center;
padding: 14px 0;
z-index: 9999;
box-shadow: 0 3px 10px rgba(0,0,0,0.25);
letter-spacing: 0.3px;
}