/* ==========================================================================
   DAR UL IMAAN ATLANTA - MASTER STYLESHEET
   Brand Theme: Deep Emerald Green (#083e28) & Warm Antique Gold (#c59b27)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Brand Color Palette */
  --primary-rgb: 8, 62, 40;
  --gold-rgb: 197, 155, 39;
  --primary-900: #042417;
  --primary-800: #083e28; /* Main DUI Deep Emerald */
  --primary-700: #0d5437;
  --primary-600: #126e48;
  --primary-500: #19875a;
  --primary-100: #e2f4ec;
  --primary-50:  #f0f9f5;

  --gold-800: #8c6a12;
  --gold-700: #a98018;
  --gold-600: #c59b27; /* Main DUI Gold */
  --gold-500: #dab03b;
  --gold-400: #ebd06a;
  --gold-100: #fbf5df;
  --gold-50:  #fdfbf3;

  --bg-cream: #fbf9f4;
  --bg-sand: #f5f1e8;
  --bg-card: #ffffff;
  
  --text-dark: #12211b;
  --text-body: #2d3f37;
  --text-muted: #5e736a;
  --text-light: #fbf9f4;

  --border-light: rgba(197, 155, 39, 0.2);
  --border-emerald: rgba(var(--primary-rgb), 0.15);
  
  --shadow-sm: 0 2px 8px rgba(var(--primary-rgb), 0.06);
  --shadow-md: 0 8px 24px rgba(var(--primary-rgb), 0.08);
  --shadow-lg: 0 16px 40px rgba(var(--primary-rgb), 0.12);
  --shadow-gold: 0 8px 24px rgba(197, 155, 39, 0.25);

  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--primary-900);
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar {
  background: var(--primary-900);
  color: var(--gold-400);
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(197, 155, 39, 0.3);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary-800);
  text-transform: uppercase;
  line-height: 1.15;
  text-align: center;
}

.brand-subtitle {
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  margin-right: -0.25em; /* offsets trailing letter spacing for perfect optical centering */
  color: var(--gold-700);
  text-transform: uppercase;
  text-align: center;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.15vw, 1.25rem);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.4rem 0.2rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-600);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-800);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  z-index: 1100;
  animation: fadeIn 0.2s ease;
}

.nav-item-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-item {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
  border-bottom: 1px solid #f6f4ee;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--gold-50);
  color: var(--primary-800);
  padding-left: 1.5rem;
}

.dropdown-badge {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--gold-800);
  background: var(--gold-100);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile drawer & overlay MUST be completely hidden on desktop */
.mobile-drawer,
.mobile-drawer-overlay {
  display: none;
}

/* ==========================================================================
   Schedule & Table Styles
   ========================================================================== */
.schedule-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-emerald);
  box-shadow: var(--shadow-md);
  background: #ffffff;
  margin: 1.75rem 0;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.schedule-table th {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
  color: #ffffff;
  font-family: var(--font-serif);
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 3px solid var(--gold-600);
}

.schedule-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eef2f0;
  color: var(--text-body);
}

.schedule-table tr:nth-child(even) {
  background-color: var(--bg-cream);
}

.schedule-table tr:hover {
  background-color: var(--gold-50);
}

.schedule-time-badge {
  display: inline-block;
  font-weight: 700;
  color: var(--primary-900);
  background: var(--primary-50);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-100);
  font-size: 0.9rem;
  white-space: nowrap;
}

.break-row {
  background-color: #fff9e6 !important;
  color: var(--gold-800);
  font-weight: 600;
}

/* ==========================================================================
   Monthly Prayer Timetable Styles
   ========================================================================== */
.monthly-timetable-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-600);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin-bottom: 3.5rem;
}

.monthly-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.monthly-title-wrap h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--primary-900);
  margin: 0 0 0.25rem;
}

.monthly-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.monthly-hijri-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold-50);
  border: 1px solid var(--gold-400);
  color: var(--gold-800);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
}

.monthly-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-cream);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-emerald);
  margin-bottom: 1.5rem;
}

.monthly-nav-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.monthly-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-emerald);
  color: var(--primary-900);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.monthly-btn:hover {
  background: var(--primary-800);
  color: #ffffff;
  border-color: var(--primary-800);
}

.monthly-btn-gold {
  background: var(--gold-600);
  color: #ffffff;
  border-color: var(--gold-600);
}

.monthly-btn-gold:hover {
  background: var(--gold-700);
  border-color: var(--gold-700);
  color: #ffffff;
}

.monthly-select {
  background: #ffffff;
  border: 1.5px solid var(--border-emerald);
  color: var(--primary-900);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.monthly-select:focus {
  outline: none;
  border-color: var(--gold-600);
}

.monthly-legend {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.monthly-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-swatch-today {
  width: 14px;
  height: 14px;
  background: #fff9e6;
  border: 2px solid var(--gold-600);
  border-radius: 3px;
}

.legend-swatch-friday {
  width: 14px;
  height: 14px;
  background: #edf7f2;
  border: 1.5px solid var(--primary-600);
  border-radius: 3px;
}

/* Monthly Table Layout */
.monthly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: center;
}

.monthly-table th {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-800));
  color: #ffffff;
  padding: 0.85rem 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 3px solid var(--gold-600);
  font-size: 0.85rem;
  vertical-align: middle;
}

.monthly-table th .th-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold-300);
  margin-top: 0.2rem;
  letter-spacing: normal;
}

.monthly-table td {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid #edf2ef;
  color: var(--text-body);
  vertical-align: middle;
}

.monthly-table tbody tr:nth-child(even) {
  background-color: #fafbfb;
}

.monthly-table tbody tr:hover {
  background-color: #f4f8f5;
}

/* Highlight Today */
.monthly-table tbody tr.monthly-row-today {
  background-color: #fff9e6 !important;
  border-left: 4px solid var(--gold-600);
  font-weight: 600;
}

.monthly-table tbody tr.monthly-row-today td {
  border-bottom: 1.5px solid var(--gold-300);
}

/* Highlight Friday (Jumu'ah) */
.monthly-table tbody tr.monthly-row-friday {
  background-color: #f0f7f3;
}

.monthly-table .day-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.monthly-table .day-name {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.today-tag {
  background: var(--gold-600);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.friday-tag {
  background: var(--primary-800);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-top: 0.2rem;
}

.prayer-dual-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  line-height: 1.2;
}

.prayer-dual-time .t-adhan {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.prayer-dual-time .t-iqamah {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-900);
}

.shuruq-col .t-shuruq {
  font-size: 0.85rem;
  font-weight: 600;
  color: #b45309;
}

.hijri-col {
  font-size: 0.8rem;
  color: var(--gold-800);
  font-weight: 600;
  white-space: nowrap;
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #monthly-timetable, #monthly-timetable * {
    visibility: visible;
  }
  #monthly-timetable {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 10px;
    border: none;
    box-shadow: none;
  }
  .monthly-controls-bar, .no-print {
    display: none !important;
  }
  .monthly-table {
    font-size: 8pt;
  }
  .monthly-table th, .monthly-table td {
    padding: 3px 4px;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-500);
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 155, 39, 0.45);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(197, 155, 39, 0.4);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-gold {
  background: transparent;
  color: var(--primary-800);
  border: 2px solid var(--gold-600);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline-gold:hover {
  background: var(--gold-600);
  color: #fff;
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-800);
  cursor: pointer;
  padding: 0.25rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at top center, var(--primary-700) 0%, var(--primary-800) 60%, var(--primary-900) 100%);
  color: #fff;
  padding: 5rem 0 7rem;
  overflow: hidden;
  border-bottom: 4px solid var(--gold-600);
}

.hero-pattern-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: radial-gradient(var(--gold-400) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-arch-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  border: 1px solid rgba(197, 155, 39, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.hero-arch-bg::after {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px dashed rgba(197, 155, 39, 0.1);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197, 155, 39, 0.15);
  border: 1px solid rgba(197, 155, 39, 0.4);
  color: var(--gold-400);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero-title span {
  color: var(--gold-400);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--gold-400);
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Prayer Times Floating Card
   ========================================================================== */
.prayer-widget-section {
  position: relative;
  z-index: 10;
  margin-top: -3.5rem;
  margin-bottom: 3.5rem;
}

.prayer-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-600);
  box-shadow: 0 15px 45px rgba(var(--primary-rgb), 0.15);
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
}

.prayer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-600), var(--primary-700), var(--gold-600));
}

.prayer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-emerald);
  margin-bottom: 1.5rem;
}

.prayer-header-left h3 {
  font-size: 1.4rem;
  color: var(--primary-800);
  margin-bottom: 0.15rem;
}

.prayer-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.prayer-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.prayer-date-badge {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-800);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-md);
  text-align: right;
}

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

.prayer-box {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
}

.prayer-box:hover {
  transform: translateY(-4px);
  border-color: var(--gold-600);
  box-shadow: var(--shadow-sm);
}

.prayer-box.active-next {
  background: linear-gradient(145deg, var(--primary-700), var(--primary-800)) !important;
  color: #fff !important;
  border-color: var(--gold-500) !important;
  box-shadow: 0 8px 24px rgba(197, 155, 39, 0.35) !important;
  transform: translateY(-4px);
}

.prayer-box.active-next .prayer-name {
  color: var(--gold-400) !important;
}

.prayer-box.active-next .prayer-adhan {
  color: rgba(255, 255, 255, 0.82) !important;
}

.prayer-box.active-next .prayer-iqamah {
  color: #ffffff !important;
}

.prayer-next-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--primary-800);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid #fff;
  z-index: 2;
  white-space: nowrap;
}

.prayer-hanafi-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--gold-700);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  padding: 1px 4px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 2px;
}

.prayer-box.active-next .prayer-hanafi-tag {
  background: rgba(197, 155, 39, 0.25);
  color: var(--gold-300);
  border-color: rgba(197, 155, 39, 0.5);
}

.prayer-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prayer-times-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.prayer-adhan {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.prayer-iqamah {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-900);
}

.prayer-footer-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.jummah-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--primary-800);
  background: var(--gold-100);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-400);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-bg-alt {
  background-color: var(--bg-sand);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold-700);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.35rem;
  color: var(--primary-900);
  margin-bottom: 1rem;
  position: relative;
}

.section-title-divider {
  width: 60px;
  height: 3px;
  background: var(--gold-600);
  margin: 0.75rem auto 1.25rem;
  border-radius: var(--radius-full);
  position: relative;
}

.section-title-divider::before, .section-title-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold-600);
  border-radius: 50%;
}
.section-title-divider::before { left: -12px; }
.section-title-divider::after { right: -12px; }

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Masjid Engagements Grid (Flyer Matched)
   ========================================================================== */
.engagements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
}

.engagement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.engagement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-600);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.engagement-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-600);
}

.engagement-card:hover::before {
  transform: scaleX(1);
}

.engagement-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  background: var(--primary-50);
  border: 2px solid var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-800);
  transition: all var(--transition-normal);
}

.engagement-card:hover .engagement-icon-wrap {
  background: var(--primary-800);
  color: var(--gold-400);
  border-color: var(--gold-600);
}

.engagement-icon-wrap svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.engagement-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.engagement-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
}

.engagement-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   Programs Section (Boys & Girls from Flyer)
   ========================================================================== */
.programs-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.program-column {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-emerald);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.program-col-header {
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
}

.program-col-header.boys-header {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  border-bottom: 3px solid var(--gold-500);
}

.program-col-header.girls-header {
  background: linear-gradient(135deg, #441724, #2d0e17);
  border-bottom: 3px solid #d48b9b;
}

.program-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-header-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.program-col-header h3 {
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
}

.program-list {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.program-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  gap: 1rem;
}

.program-item:hover {
  background: #ffffff;
  border-color: var(--gold-600);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.program-item-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.program-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.program-item-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.program-item-name {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--primary-900);
}

.program-item-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.program-item-badge {
  background: var(--gold-100);
  color: var(--gold-800);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-400);
  white-space: nowrap;
}

.program-col-footer {
  padding: 1.25rem 1.75rem;
  background: var(--bg-cream);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

/* ==========================================================================
   Interactive Program Grid Cards (Programs Catalog)
   ========================================================================== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.program-card-interactive {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.program-card-interactive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-600);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.program-card-interactive:hover {
  transform: translateY(-6px);
  border-color: var(--gold-600);
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.12);
}

.program-card-interactive:hover::before {
  opacity: 1;
}

.program-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 0.5rem;
}

.program-timing-tag {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--gold-800);
  background: var(--gold-50);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-200);
  white-space: nowrap;
}

.program-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

.program-card-desc {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.program-card-action {
  margin-top: auto;
}

.program-card-action .btn-outline-gold {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 0.75rem;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.program-card-interactive:hover .program-card-action .btn-outline-gold {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
  color: #ffffff;
  border-color: var(--gold-600);
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.3);
}

/* ==========================================================================
   Team & Leadership Section
   ========================================================================== */
.team-grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

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

.team-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-700), var(--gold-600));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-600);
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.12);
}

.team-card:hover::before {
  opacity: 1;
}

.team-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100), var(--gold-50));
  border: 2px solid var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-900);
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.08);
}

.team-member-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.35rem;
}

.team-member-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.team-member-bio {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0;
  flex-grow: 1;
}

.team-member-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  color: var(--primary-800);
  border: 1px solid var(--primary-100);
}

/* ==========================================================================
   Endorsements & Testimonials Section
   ========================================================================== */
.endorsement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.endorsement-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.endorsement-card::before {
  content: '“';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold-200);
  pointer-events: none;
}

.endorsement-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-600);
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.1);
}

.endorsement-stars {
  color: var(--gold-600);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.endorsement-quote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.endorsement-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.endorsement-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-800);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.endorsement-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-900);
  margin-bottom: 0.15rem;
}

.endorsement-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   Accredited Schooling Banner (From Flyer)
   ========================================================================== */
.accredited-box {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-600);
  padding: 2.5rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.accredited-box::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.accredited-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.accredited-heading-wrap {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.accredited-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(197, 155, 39, 0.2);
  border: 1px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accredited-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--gold-400);
}

.accredited-heading-wrap h3 {
  color: var(--gold-400);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.accredited-heading-wrap p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0;
}

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

.pillar-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(197, 155, 39, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: var(--transition-fast);
}

.pillar-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

.pillar-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  color: var(--gold-400);
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   Campus & Location Section
   ========================================================================== */
.campus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.campus-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-emerald);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.campus-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.75rem 0 2rem;
}

.campus-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.campus-detail-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-800);
  flex-shrink: 0;
}

.campus-detail-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.campus-detail-info h4 {
  font-size: 1rem;
  color: var(--primary-900);
  margin-bottom: 0.2rem;
}

.campus-detail-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.campus-map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gold-600);
  box-shadow: var(--shadow-lg);
  height: 420px;
  position: relative;
  background: #eaeaea;
}

.campus-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Donation Component
   ========================================================================== */
.donation-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-600);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto;
}

.donation-type-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-sand);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
}

.donation-tab {
  flex: 1;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.donation-tab.active {
  background: var(--primary-800);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.donation-amounts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.amount-btn {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-900);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.amount-btn:hover, .amount-btn.active {
  background: var(--gold-600);
  border-color: var(--gold-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.custom-amount-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-sans);
  margin-bottom: 1.5rem;
  transition: border-color var(--transition-fast);
}

.custom-amount-input:focus {
  outline: none;
  border-color: var(--gold-600);
}

.donation-fund-select {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  margin-bottom: 1.75rem;
  background-color: #fff;
}

/* ==========================================================================
   Forms & Contact
   ========================================================================== */
.form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-emerald);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #dce2df;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--primary-900);
  color: rgba(255, 255, 255, 0.85);
  border-top: 4px solid var(--gold-600);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand-logo {
  height: 64px;
  width: auto;
  margin-bottom: 1.25rem;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gold-600);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: inline-block;
  object-fit: contain;
}

.nonprofit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(197, 155, 39, 0.18);
  border: 1px solid var(--gold-500);
  color: var(--gold-400);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.footer-heading {
  font-family: var(--font-serif);
  color: var(--gold-400);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: var(--gold-400);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-400);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Interactive Modals & Toast
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 36, 23, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-600);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--primary-900);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-menu, .nav-actions {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .programs-wrapper {
    grid-template-columns: 1fr;
  }
  .accredited-content {
    grid-template-columns: 1fr;
  }
  .campus-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  /* Body scroll lock when mobile drawer is open */
  body.drawer-open {
    overflow: hidden !important;
  }

  /* Overlay backdrop for mobile drawer */
  .mobile-drawer-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    background: #ffffff;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 1500;
    padding: 1.75rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom, 1.5rem));
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
  .mobile-drawer.open {
    right: 0;
  }
  .mobile-drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.25rem;
    margin: -0.5rem -0.5rem 0 0;
  }
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex-shrink: 0;
    padding-bottom: 2rem;
  }
  .mobile-drawer::-webkit-scrollbar {
    width: 5px;
  }
  .mobile-drawer::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }
  .mobile-drawer::-webkit-scrollbar-track {
    background: transparent;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .donation-amounts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .handbook-pdf-frame {
    height: 520px;
  }
}

.handbook-pdf-container {
  margin-bottom: 2.5rem;
  background: #ffffff;
  border: 1.5px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.handbook-pdf-frame {
  width: 100%;
  height: 820px;
  min-height: 500px;
  border: none;
  display: block;
}

/* ==========================================================================
   MASJID TV / FULL SCREEN PRAYER DISPLAY & EXTRA TIMINGS
   ========================================================================== */

/* Full Screen Toggle Button on Prayer Card */
.prayer-tv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
  color: #fff;
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.prayer-tv-btn svg {
  color: var(--gold-400);
  transition: transform 0.2s ease;
}

.prayer-tv-btn:hover {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
  color: var(--primary-900);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 155, 39, 0.35);
}

.prayer-tv-btn:hover svg {
  color: var(--primary-900);
  transform: scale(1.15);
}

/* Compact Full Screen Icon Button on Prayer Cards */
.prayer-icon-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--primary-50);
  color: var(--primary-800);
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.08);
  flex-shrink: 0;
  padding: 0;
}

.prayer-icon-fullscreen-btn svg {
  color: var(--primary-800);
  transition: transform 0.2s ease, color 0.2s ease;
}

.prayer-icon-fullscreen-btn:hover {
  background: var(--gold-600);
  border-color: var(--gold-700);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.35);
}

.prayer-icon-fullscreen-btn:hover svg {
  color: var(--primary-900);
  transform: scale(1.15);
}

/* Extra Sunnah & Nawafil Timings Strip on Card */
.prayer-extra-strip {
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, rgba(251, 245, 223, 0.6), rgba(240, 249, 245, 0.7));
  border: 1px solid var(--gold-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.prayer-extra-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.prayer-extra-label {
  color: var(--text-muted);
  font-weight: 600;
}

.prayer-extra-val {
  color: var(--primary-900);
  font-weight: 800;
  font-feature-settings: 'tnum';
  background: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(197, 155, 39, 0.3);
}

.prayer-extra-dot {
  color: var(--gold-500);
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ==========================================================================
   MASJID BIG TV FULL SCREEN DISPLAY (DIGITAL SIGNAGE / MONITOR MODE)
   ========================================================================== */

body.tv-active-body {
  overflow: hidden !important;
}

.masjid-tv-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  background-color: var(--primary-900);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(var(--primary-rgb), 0.75) 0%, var(--primary-900) 75%),
    radial-gradient(circle at 85% 90%, rgba(197, 155, 39, 0.08) 0%, transparent 40%);
  color: #fbf9f4;
  font-family: var(--font-sans);
  overflow: hidden;
  box-sizing: border-box;
}

.masjid-tv-container.tv-visible,
.masjid-tv-container.tv-standalone {
  display: flex !important;
  flex-direction: column;
}

.tv-ambient-glow {
  position: absolute;
  top: -15%;
  left: 30%;
  width: 40vw;
  height: 35vh;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.tv-pattern-layer {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(197, 155, 39, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.7;
  pointer-events: none;
}

.tv-inner-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 2.25rem 1.25rem;
  box-sizing: border-box;
}

/* TV Header */
.tv-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid rgba(197, 155, 39, 0.35);
}

.tv-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tv-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  background: rgba(255, 255, 255, 0.08);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(197, 155, 39, 0.35);
}

.tv-masjid-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.tv-masjid-sub {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold-400);
  font-weight: 700;
  margin-top: 0.2rem;
}

.tv-masjid-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.tv-fiqh-badge,
.tv-verified-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

.tv-fiqh-badge {
  background: rgba(197, 155, 39, 0.25);
  color: var(--gold-300);
  border: 1px solid rgba(197, 155, 39, 0.4);
}

.tv-verified-badge {
  background: rgba(18, 110, 72, 0.35);
  color: #a7f3d0;
  border: 1px solid rgba(167, 243, 208, 0.3);
}

/* Big Live Center Clock */
.tv-clock-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tv-live-digital-clock {
  display: inline-flex;
  align-items: baseline;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(197, 155, 39, 0.4);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tv-clock-digits {
  font-size: clamp(3.2rem, 4vw, 4.5rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  font-feature-settings: 'tnum';
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  line-height: 1;
}

.tv-clock-colon {
  font-size: clamp(3rem, 3.8vw, 4.2rem);
  font-weight: 800;
  color: var(--gold-400);
  animation: tvColonPulse 1s infinite;
  margin: 0 0.15rem;
  line-height: 1;
}

@keyframes tvColonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.tv-clock-seconds {
  font-size: clamp(1.85rem, 2.2vw, 2.4rem);
  font-weight: 700;
  color: var(--gold-400);
  font-feature-settings: 'tnum';
  margin-right: 0.5rem;
  line-height: 1;
}

.tv-clock-ampm {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-300);
  letter-spacing: 0.06em;
}

.tv-dates-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.tv-gregorian-date,
.tv-hijri-date {
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.tv-gregorian-date {
  color: #e2e8f0;
}

.tv-hijri-date {
  color: var(--gold-400);
  font-weight: 700;
}

/* TV Header Right: Next Salah Countdown Card */
.tv-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.tv-next-card {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.85), rgba(4, 36, 23, 0.95));
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.25rem;
  text-align: right;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(197, 155, 39, 0.2);
}

.tv-next-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.tv-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px #22c55e;
  animation: tvDotPulse 1.5s infinite;
}

@keyframes tvDotPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.tv-next-time-remaining {
  font-size: clamp(1.85rem, 2.2vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  font-feature-settings: 'tnum';
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

.tv-next-subtext {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tv-controls-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tv-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tv-icon-btn:hover {
  background: var(--gold-600);
  color: var(--primary-900);
  border-color: var(--gold-400);
}

.tv-close-btn:hover {
  background: #dc2626;
  color: #fff;
  border-color: #ef4444;
}

/* TV Main Prayer Cards Grid */
.tv-main-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin: 1rem 0;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.tv-prayer-box {
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.55) 0%, rgba(3, 26, 16, 0.85) 100%);
  border: 1.5px solid rgba(197, 155, 39, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 0.85rem;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.tv-prayer-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(197, 155, 39, 0.35);
}

/* Active Next Prayer Box on TV */
.tv-prayer-box.tv-active-next {
  background: linear-gradient(180deg, rgba(14, 96, 62, 0.98) 0%, rgba(6, 48, 30, 0.99) 100%) !important;
  border: 3px solid var(--gold-400) !important;
  box-shadow: 0 0 35px rgba(197, 155, 39, 0.5), inset 0 0 25px rgba(197, 155, 39, 0.2) !important;
  transform: translateY(-4px) scale(1.02);
  z-index: 5;
}

.tv-prayer-box.tv-active-next::before {
  background: linear-gradient(90deg, var(--gold-500), #ffffff, var(--gold-500));
  height: 6px;
}

.tv-next-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--primary-900);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tv-prayer-header {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tv-prayer-title-en {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 1.8vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.tv-prayer-box.tv-active-next .tv-prayer-title-en {
  color: var(--gold-300);
}

.tv-prayer-title-ar {
  font-family: var(--font-arabic);
  font-size: clamp(1.25rem, 1.6vw, 1.75rem);
  color: var(--gold-400);
  opacity: 0.95;
  margin-top: -0.1rem;
  direction: rtl;
  line-height: 1.1;
}

.tv-hanafi-tag,
.tv-iftar-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 800;
  background: rgba(197, 155, 39, 0.25);
  color: var(--gold-300);
  border: 1px solid rgba(197, 155, 39, 0.5);
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

/* Adhan Horizontal Row on TV */
.tv-prayer-adhan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
}

.tv-time-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-300);
  text-transform: uppercase;
}

.tv-prayer-adhan-val {
  font-size: clamp(1.25rem, 1.6vw, 1.85rem);
  font-weight: 800;
  color: #f1f5f9;
  font-feature-settings: 'tnum';
  letter-spacing: 0.03em;
}

/* Iqamah Hero Section - Massive and Readable From Far Away */
.tv-prayer-iqamah-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1.5px solid rgba(197, 155, 39, 0.4);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.65rem;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.4);
}

.tv-iqamah-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-300);
  background: rgba(197, 155, 39, 0.2);
  border: 1px solid rgba(197, 155, 39, 0.4);
  padding: 3px 12px;
  border-radius: 999px;
}

.tv-prayer-iqamah-val {
  font-size: clamp(2.6rem, 3.8vw, 4.4rem);
  font-weight: 900;
  color: #ffffff;
  font-feature-settings: 'tnum';
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.5), 0 3px 12px rgba(0, 0, 0, 0.9);
}

.tv-prayer-box.tv-active-next .tv-prayer-iqamah-hero {
  background: linear-gradient(180deg, rgba(197, 155, 39, 0.25) 0%, rgba(var(--primary-rgb), 0.45) 100%);
  border-color: var(--gold-400);
  box-shadow: inset 0 0 20px rgba(197, 155, 39, 0.35);
}

.tv-prayer-box.tv-active-next .tv-prayer-iqamah-val {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 15px var(--gold-400);
}

.tv-shuruq-highlight {
  background: rgba(197, 155, 39, 0.15);
  border-color: rgba(197, 155, 39, 0.4);
}

/* TV Middle Section: Jumu'ah & Extra Sunnah Timings */
.tv-middle-section {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

/* Jumu'ah Card */
.tv-jummah-card {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.75), rgba(4, 36, 23, 0.9));
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tv-jummah-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-400);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.tv-jummah-services {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tv-jummah-item {
  font-size: 0.9rem;
  color: #f1f5f9;
}

.tv-jummah-num {
  color: var(--gold-300);
  font-weight: 700;
  margin-right: 0.35rem;
}

.tv-jummah-detail strong {
  color: #ffffff;
  font-size: 1.05rem;
}

/* Extra Sunnah / Nawafil Grid */
.tv-extra-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(197, 155, 39, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tv-extra-header {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold-400);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.tv-extra-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
}

.tv-extra-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.4rem;
  text-align: center;
}

.tv-extra-tile.tv-extra-zawal {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.12);
}

.tv-extra-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-300);
  white-space: nowrap;
}

.tv-extra-time {
  display: block;
  font-size: clamp(1.3rem, 1.7vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0.15rem 0;
  font-feature-settings: 'tnum';
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.tv-extra-sub {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* TV Footer Ticker & Exit Hint */
.tv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid rgba(197, 155, 39, 0.25);
  padding-top: 0.85rem;
}

.tv-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  overflow: hidden;
  flex: 1;
}

.tv-ticker-pill {
  background: var(--gold-600);
  color: var(--primary-900);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.tv-ticker-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-ticker-item strong {
  color: var(--gold-300);
}

.tv-ticker-dot {
  color: var(--gold-500);
  opacity: 0.6;
}

.tv-footer-exit-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.tv-footer-exit-hint kbd {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold-300);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: inherit;
  font-size: 0.7rem;
}

/* TV Mode Responsive Adaptations */
@media (max-width: 1200px) {
  .tv-main-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .tv-middle-section {
    grid-template-columns: 1fr;
  }
  .tv-extra-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .tv-clock-digits {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .tv-inner-wrapper {
    padding: 1rem;
    overflow-y: auto;
  }
  .tv-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .tv-brand {
    justify-content: center;
  }
  .tv-header-right {
    justify-content: center;
  }
  .tv-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .tv-extra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tv-clock-digits {
    font-size: 2rem;
  }
  .tv-prayer-iqamah-val {
    font-size: 1.45rem;
  }
  .prayer-extra-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   MASJID TV - LIGHT THEME (ARCHITECTURAL MARBLE & DEEP EMERALD)
   Only active when .tv-theme-light is applied to the TV container
   ========================================================================== */

.tv-theme-btn {
  font-size: 1.15rem;
  line-height: 1;
}

.masjid-tv-container.tv-theme-light {
  background-color: #f7f4ed !important;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(246, 240, 228, 0.98) 0%, rgba(238, 230, 214, 0.99) 75%),
    radial-gradient(circle at 85% 90%, rgba(197, 155, 39, 0.12) 0%, transparent 40%) !important;
  color: #12211b !important;
}

.masjid-tv-container.tv-theme-light .tv-pattern-layer {
  background-image: radial-gradient(rgba(var(--primary-rgb), 0.08) 1px, transparent 1px) !important;
  opacity: 0.8 !important;
}

.masjid-tv-container.tv-theme-light .tv-header {
  border-bottom: 2px solid rgba(var(--primary-rgb), 0.18) !important;
}

.masjid-tv-container.tv-theme-light .tv-logo {
  background: #ffffff !important;
  border-color: rgba(197, 155, 39, 0.4) !important;
  filter: drop-shadow(0 2px 8px rgba(var(--primary-rgb), 0.12)) !important;
}

.masjid-tv-container.tv-theme-light .tv-masjid-title {
  color: var(--primary-900) !important;
  text-shadow: none !important;
}

.masjid-tv-container.tv-theme-light .tv-masjid-sub {
  color: #8c6a12 !important;
}

.masjid-tv-container.tv-theme-light .tv-fiqh-badge {
  background: rgba(197, 155, 39, 0.18) !important;
  color: #8c6a12 !important;
  border-color: rgba(197, 155, 39, 0.45) !important;
}

.masjid-tv-container.tv-theme-light .tv-verified-badge {
  background: rgba(var(--primary-rgb), 0.08) !important;
  color: var(--primary-800) !important;
  border-color: rgba(var(--primary-rgb), 0.25) !important;
}

/* Light Clock */
.masjid-tv-container.tv-theme-light .tv-live-digital-clock {
  background: #ffffff !important;
  border: 1.5px solid rgba(197, 155, 39, 0.45) !important;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.08) !important;
}

.masjid-tv-container.tv-theme-light .tv-clock-digits {
  color: var(--primary-900) !important;
  text-shadow: none !important;
}

.masjid-tv-container.tv-theme-light .tv-clock-colon {
  color: #c59b27 !important;
}

.masjid-tv-container.tv-theme-light .tv-clock-seconds {
  color: #8c6a12 !important;
}

.masjid-tv-container.tv-theme-light .tv-clock-ampm {
  color: var(--primary-800) !important;
}

.masjid-tv-container.tv-theme-light .tv-gregorian-date {
  color: #1e293b !important;
}

.masjid-tv-container.tv-theme-light .tv-hijri-date {
  color: #8c6a12 !important;
}

/* Light Next Salah Card */
.masjid-tv-container.tv-theme-light .tv-next-card {
  background: #ffffff !important;
  border: 1.5px solid #c59b27 !important;
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.2) !important;
}

.masjid-tv-container.tv-theme-light .tv-next-label {
  color: #8c6a12 !important;
}

.masjid-tv-container.tv-theme-light .tv-next-time-remaining {
  color: var(--primary-900) !important;
  text-shadow: none !important;
}

.masjid-tv-container.tv-theme-light .tv-next-subtext {
  color: #64748b !important;
}

/* Light Controls */
.masjid-tv-container.tv-theme-light .tv-icon-btn {
  background: #ffffff !important;
  border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
  color: var(--primary-800) !important;
  box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.06) !important;
}

.masjid-tv-container.tv-theme-light .tv-icon-btn:hover {
  background: var(--gold-600) !important;
  color: #ffffff !important;
  border-color: var(--gold-700) !important;
}

.masjid-tv-container.tv-theme-light .tv-close-btn:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

/* Light Prayer Cards */
.masjid-tv-container.tv-theme-light .tv-prayer-box {
  background: #ffffff !important;
  border: 1.5px solid rgba(197, 155, 39, 0.35) !important;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.08) !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-box::before {
  background: linear-gradient(90deg, var(--gold-600), var(--primary-800), var(--gold-600)) !important;
  height: 5px !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-title-en {
  color: var(--primary-900) !important;
  text-shadow: none !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-title-ar {
  color: #8c6a12 !important;
}

.masjid-tv-container.tv-theme-light .tv-hanafi-tag,
.masjid-tv-container.tv-theme-light .tv-iftar-tag {
  background: var(--gold-100) !important;
  color: #8c6a12 !important;
  border-color: rgba(197, 155, 39, 0.5) !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-adhan-row {
  background: #fbf9f4 !important;
  border-color: rgba(var(--primary-rgb), 0.12) !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-adhan-row .tv-time-label {
  color: #8c6a12 !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-adhan-val {
  color: var(--primary-800) !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-iqamah-hero {
  background: linear-gradient(180deg, #faf7ef 0%, #f3ece0 100%) !important;
  border: 1.5px solid rgba(197, 155, 39, 0.45) !important;
  box-shadow: inset 0 2px 8px rgba(197, 155, 39, 0.1) !important;
}

.masjid-tv-container.tv-theme-light .tv-iqamah-label {
  background: rgba(var(--primary-rgb), 0.08) !important;
  color: var(--primary-800) !important;
  border-color: rgba(var(--primary-rgb), 0.2) !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-iqamah-val {
  color: var(--primary-900) !important;
  text-shadow: none !important;
}

/* Light Active Next Prayer Card */
.masjid-tv-container.tv-theme-light .tv-prayer-box.tv-active-next {
  background: #ffffff !important;
  border: 3.5px solid var(--primary-800) !important;
  box-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.2), 0 0 25px rgba(197, 155, 39, 0.35) !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-box.tv-active-next::before {
  background: linear-gradient(90deg, var(--gold-600), var(--primary-600), var(--gold-600)) !important;
  height: 6px !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-box.tv-active-next .tv-prayer-title-en {
  color: var(--primary-800) !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-box.tv-active-next .tv-next-badge {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900)) !important;
  color: #ffffff !important;
  border: 1px solid var(--gold-500) !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-box.tv-active-next .tv-prayer-iqamah-hero {
  background: linear-gradient(180deg, #e8f5ee 0%, #d4ede0 100%) !important;
  border-color: var(--primary-800) !important;
  box-shadow: inset 0 0 15px rgba(var(--primary-rgb), 0.15) !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-box.tv-active-next .tv-iqamah-label {
  background: var(--primary-800) !important;
  color: #ffffff !important;
  border-color: var(--primary-800) !important;
}

.masjid-tv-container.tv-theme-light .tv-prayer-box.tv-active-next .tv-prayer-iqamah-val {
  color: var(--primary-900) !important;
  text-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.25) !important;
}

/* Light Middle Section: Jumu'ah & Sunnah Timings */
.masjid-tv-container.tv-theme-light .tv-jummah-card {
  background: #ffffff !important;
  border: 1.5px solid var(--primary-800) !important;
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.08) !important;
}

.masjid-tv-container.tv-theme-light .tv-jummah-badge {
  color: var(--primary-800) !important;
}

.masjid-tv-container.tv-theme-light .tv-jummah-item {
  color: #2d3f37 !important;
}

.masjid-tv-container.tv-theme-light .tv-jummah-num {
  color: #8c6a12 !important;
}

.masjid-tv-container.tv-theme-light .tv-jummah-detail strong {
  color: var(--primary-900) !important;
}

.masjid-tv-container.tv-theme-light .tv-extra-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(197, 155, 39, 0.35) !important;
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.06) !important;
}

.masjid-tv-container.tv-theme-light .tv-extra-header {
  color: #8c6a12 !important;
}

.masjid-tv-container.tv-theme-light .tv-extra-tile {
  background: #fbf9f4 !important;
  border-color: rgba(197, 155, 39, 0.25) !important;
}

.masjid-tv-container.tv-theme-light .tv-extra-tile.tv-extra-zawal {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

.masjid-tv-container.tv-theme-light .tv-extra-title {
  color: #8c6a12 !important;
}

.masjid-tv-container.tv-theme-light .tv-extra-time {
  color: var(--primary-900) !important;
  text-shadow: none !important;
}

.masjid-tv-container.tv-theme-light .tv-extra-sub {
  color: #5e736a !important;
}

/* Light Footer Ticker */
.masjid-tv-container.tv-theme-light .tv-footer {
  border-top: 1px solid rgba(var(--primary-rgb), 0.15) !important;
}

.masjid-tv-container.tv-theme-light .tv-ticker-pill {
  background: var(--primary-800) !important;
  color: #ffffff !important;
}

.masjid-tv-container.tv-theme-light .tv-ticker-content {
  color: #2d3f37 !important;
}

.masjid-tv-container.tv-theme-light .tv-ticker-item strong {
  color: var(--primary-800) !important;
}

.masjid-tv-container.tv-theme-light .tv-ticker-dot {
  color: #c59b27 !important;
}

.masjid-tv-container.tv-theme-light .tv-footer-exit-hint {
  color: #5e736a !important;
}

.masjid-tv-container.tv-theme-light .tv-footer-exit-hint kbd {
  background: #ffffff !important;
  color: var(--primary-800) !important;
  border-color: rgba(var(--primary-rgb), 0.2) !important;
}


