/* ============================================
   ALBIR EDUCATIONAL CENTER - Main Stylesheet
   Clean, peaceful, mobile-first design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --green-dark: #1a5632;
  --green-primary: #2a7a4b;
  --green-light: #e8f5ee;
  --green-accent: #3d9e6b;
  --navy: #1b2a4a;
  --navy-light: #2d4373;
  --gold: #c8a84e;
  --gold-light: #f5ecd4;
  --beige: #faf7f2;
  --beige-dark: #f0ead8;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--beige);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--green-dark);
}

ul, ol {
  list-style: none;
}

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

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

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }

.section {
  padding: 48px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* --- Islamic Geometric Pattern (refined arabesque) --- */
.geometric-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.8'%3E%3Cpath d='M40 0L40 80M0 40L80 40'/%3E%3Cpath d='M0 0L80 80M80 0L0 80'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='28'/%3E%3Cpath d='M40 12L52 28L68 28L56 40L60 56L40 48L20 56L24 40L12 28L28 28Z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.geometric-border {
  height: 4px;
  background: linear-gradient(90deg, var(--green-dark), var(--green-primary), var(--gold), var(--green-primary), var(--green-dark));
}

/* --- Announcement Banner --- */
.announcement-banner {
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  text-align: center;
  font-size: 0.85rem;
  position: relative;
  z-index: 100;
}

.announcement-banner a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
}

.announcement-banner .close-banner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* --- Ramadan Banner --- */
.ramadan-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 14px 16px;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.ramadan-banner .geometric-pattern {
  opacity: 0.08;
}

.ramadan-banner a {
  color: var(--gold);
  font-weight: 600;
}

/* --- Header / Navigation --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
  padding-left: 4px;
}

.logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: 2px;
  align-items: center;
}

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

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--green-primary);
  background: var(--green-light);
}

/* Desktop dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle .nav-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 0.85rem;
  border-radius: 0;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--green-light);
  color: var(--green-primary);
}

.nav-donate-btn {
  background: var(--green-primary) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: var(--radius) !important;
}

.nav-donate-btn:hover {
  background: var(--green-dark) !important;
}

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

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.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);
}

/* Mobile nav overlay */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 999;
  transition: right 0.3s ease;
  padding: 24px 24px 24px;
  overflow-y: auto;
}

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

.nav-mobile-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.nav-mobile-header img {
  height: 44px;
  width: auto;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mobile a {
  display: block;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--green-primary);
  background: var(--green-light);
}

.nav-mobile .nav-donate-btn {
  text-align: center;
  margin-top: 12px;
  display: block;
}

/* Mobile dropdown */
.nav-mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
}

.nav-mobile-dropdown-toggle:hover {
  color: var(--green-primary);
  background: var(--green-light);
}

.nav-mobile-dropdown-toggle .nav-chevron {
  transition: transform 0.2s ease;
}

.nav-mobile-dropdown.open .nav-mobile-dropdown-toggle .nav-chevron {
  transform: rotate(180deg);
}

.nav-mobile-dropdown.open .nav-mobile-dropdown-toggle {
  color: var(--green-primary);
}

.nav-mobile-dropdown-menu {
  display: none;
  padding-left: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
  border-left: 2px solid var(--green-light);
  margin-left: 16px;
}

.nav-mobile-dropdown.open .nav-mobile-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-mobile-dropdown-menu a {
  padding: 10px 16px;
  font-size: 0.88rem;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* --- Hero Section (Home) --- */
.hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, #163a28 50%, var(--navy) 100%);
  color: var(--white);
  padding: 32px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero .geometric-pattern {
  opacity: 0.05;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-bismillah {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 4px;
  font-family: 'Amiri', serif;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-location {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

/* Prayer countdown widget - THE most prominent element */
.prayer-countdown {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 0 auto 20px;
  max-width: 380px;
}

.countdown-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.countdown-status.active {
  color: rgba(200,168,78,0.8);
}

.countdown-prayer-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.countdown-time {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: rgba(255,255,255,0.92);
}

.countdown-remaining {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: #b8963e;
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

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

.btn-outline-green {
  background: transparent;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
}

.btn-outline-green:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* --- Quick Prayer Times (Home) --- */
.prayer-times-quick {
  padding: 28px 0 36px;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.prayer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.prayer-card.active {
  border-color: var(--green-primary);
  background: var(--green-light);
  box-shadow: 0 0 0 2px var(--green-primary);
}

.prayer-card-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  margin-bottom: 4px;
  font-weight: 600;
}

.prayer-card-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.prayer-card-iqamah {
  font-size: 0.68rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.jummah-strip {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
  margin-top: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
}

.jummah-strip strong {
  color: var(--navy);
}

/* View all link */
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-primary);
  margin-top: 16px;
}

.view-all-link:hover {
  gap: 8px;
}

/* --- Event Highlight Card (Home) --- */
.event-highlight {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  max-width: 600px;
  margin: 0 auto;
}

.event-highlight-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-highlight-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.event-highlight-meta {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.event-highlight-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* --- Quick Links Grid (Home) --- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.quick-link-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--gray-700);
}

.quick-link-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--green-primary);
  border-color: var(--green-primary);
}

.quick-link-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
  display: block;
}

.quick-link-label {
  font-size: 0.82rem;
  font-weight: 600;
}

/* --- Prayer Times Page --- */
.prayer-times-page {
  padding: 32px 0 48px;
}

.prayer-table-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 24px;
}

.prayer-table-header {
  background: linear-gradient(135deg, var(--green-dark), var(--navy));
  color: var(--white);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.prayer-table-header .geometric-pattern { opacity: 0.06; }

.prayer-table-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.prayer-table-date {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}

.prayer-table {
  width: 100%;
  border-collapse: collapse;
}

.prayer-table th,
.prayer-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9rem;
}

.prayer-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.prayer-table tr {
  border-bottom: 1px solid var(--gray-100);
}

.prayer-table tr:last-child {
  border-bottom: none;
}

.prayer-table tr.current-prayer {
  background: var(--green-light);
}

.prayer-table tr.current-prayer td {
  font-weight: 600;
  color: var(--green-dark);
}

.prayer-table .prayer-name-cell {
  font-weight: 600;
  color: var(--navy);
}

/* Jummah special card */
.jummah-card {
  background: linear-gradient(135deg, var(--gold-light), var(--beige));
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.jummah-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.jummah-detail {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(200,168,78,0.3);
  font-size: 0.9rem;
}

.jummah-detail:last-child {
  border-bottom: none;
}

/* --- Ramadan Page --- */
.ramadan-hero {
  background: linear-gradient(160deg, var(--green-dark), #163a28 50%, var(--navy));
  color: var(--white);
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ramadan-hero .geometric-pattern { opacity: 0.06; }

.ramadan-hero h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.ramadan-hero p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  position: relative;
  z-index: 1;
}

.ramadan-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.ramadan-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.ramadan-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.ramadan-card ul {
  list-style: none;
}

.ramadan-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.88rem;
  color: var(--gray-700);
}

.ramadan-card li:last-child {
  border-bottom: none;
}

/* Ramadan timetable */
.ramadan-timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.ramadan-timetable th {
  background: var(--green-dark);
  color: var(--white);
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
}

.ramadan-timetable td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.ramadan-timetable tr:nth-child(even) {
  background: var(--gray-50);
}

.ramadan-timetable tr:hover {
  background: var(--green-light);
}

.ramadan-timetable .date-cell {
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  white-space: nowrap;
}

.timetable-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  background: var(--white);
}

/* --- Donate Page --- */
.donate-hero {
  background: linear-gradient(160deg, var(--green-dark), #163a28 50%, var(--navy));
  color: var(--white);
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.donate-hero .geometric-pattern { opacity: 0.05; }

.donate-hero h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.donate-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
  font-style: italic;
}

.donate-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.donate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.donate-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.donate-card .zelle-email {
  background: var(--green-light);
  border: 2px dashed var(--green-primary);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 16px 0;
  word-break: break-all;
}

.donate-purposes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.donate-purpose {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
}

.donate-purpose:hover,
.donate-purpose.selected {
  background: var(--green-light);
  border-color: var(--green-primary);
  color: var(--green-dark);
}

.donate-instructions {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-top: 16px;
}

.donate-instructions li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.donate-instructions li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--green-primary);
  font-weight: 700;
}

/* --- Events Page --- */
.events-page {
  padding: 32px 0 48px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gray-600);
  transition: all var(--transition);
}

.calendar-nav button:hover {
  background: var(--green-light);
  border-color: var(--green-primary);
  color: var(--green-primary);
}

.calendar-month-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

/* Calendar grid */
.calendar-grid {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.calendar-grid-header div {
  padding: 10px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
}

.calendar-grid-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
  min-height: 80px;
  padding: 6px;
  border-right: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.82rem;
}

.calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day-number {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.calendar-day-hijri {
  font-size: 0.65rem;
  color: var(--gray-400);
}

.calendar-day.other-month .calendar-day-number {
  color: var(--gray-300);
}

.calendar-day.today .calendar-day-number {
  background: var(--green-primary);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-primary);
  display: inline-block;
  margin: 1px;
}

.calendar-event-dot.gold { background: var(--gold); }
.calendar-event-dot.navy { background: var(--navy); }

/* Event list view */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-list-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
}

.event-list-item:hover {
  box-shadow: var(--shadow-md);
}

.event-date-badge {
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
  min-width: 56px;
  flex-shrink: 0;
}

.event-date-badge .month {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-primary);
  letter-spacing: 0.5px;
}

.event-date-badge .day {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.event-list-details h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.event-list-details .event-time {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.event-list-details .event-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 4px;
}

/* --- Community Board --- */
.community-page {
  padding: 32px 0 48px;
}

.community-disclaimer {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--gray-700);
  margin-bottom: 24px;
}

.community-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.community-filter-btn {
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
  white-space: nowrap;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  transition: all var(--transition);
}

.community-filter-btn:hover,
.community-filter-btn.active {
  background: var(--green-light);
  border-color: var(--green-primary);
  color: var(--green-dark);
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 12px;
}

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.post-category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
}

.post-category-tag.housing { background: #dbeafe; color: #1e40af; }
.post-category-tag.jobs { background: #dcfce7; color: #166534; }
.post-category-tag.fundraiser { background: #fef3c7; color: #92400e; }
.post-category-tag.announcement { background: #f3e8ff; color: #6b21a8; }

.post-date {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.post-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.post-body {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.post-contact {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* Submit post form */
.submit-post-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  margin-top: 32px;
}

.submit-post-section h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 16px;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(42,122,75,0.1);
}

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

.form-note {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* --- About Page --- */
.about-hero {
  background: linear-gradient(160deg, var(--green-dark), #163a28 50%, var(--navy));
  color: var(--white);
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero .geometric-pattern { opacity: 0.05; }

.about-hero h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.about-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.staff-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.staff-member {
  display: flex;
  gap: 14px;
  align-items: center;
}

.staff-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.staff-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.staff-role {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.contact-info-text {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.contact-info-text strong {
  display: block;
  color: var(--navy);
  margin-bottom: 2px;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  height: 300px;
  margin-top: 20px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Social links (page body version) */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 1.1rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--green-light);
  color: var(--green-primary);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 40px 0 20px;
  position: relative;
  overflow: hidden;
}

.site-footer .geometric-pattern { opacity: 0.03; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  transition: color var(--transition);
}

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

/* Footer social section - prominent */
.footer-social-section {
  margin-top: 4px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}

.footer-social-link:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
  color: var(--gold);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  position: relative;
  z-index: 1;
}

/* --- Page Header (for inner pages) --- */
.page-header {
  background: linear-gradient(160deg, var(--green-dark), #163a28 50%, var(--navy));
  color: var(--white);
  padding: 36px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header .geometric-pattern { opacity: 0.05; }

.page-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
  margin-bottom: 4px;
}

.page-header p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  white-space: nowrap;
  transition: all var(--transition);
  flex: 1;
  text-align: center;
}

.tab-btn:hover {
  color: var(--gray-800);
}

.tab-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- Alert/Notice Boxes --- */
.notice {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.notice-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.notice-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.notice-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* --- Responsive Breakpoints --- */

/* Small phones fix */
@media (max-width: 359px) {
  .prayer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .donate-purposes {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet (640px+) */
@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .prayer-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 100%;
  }

  .quick-links {
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
  }

  .donate-methods {
    grid-template-columns: repeat(2, 1fr);
  }

  .ramadan-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .nav-desktop {
    display: block;
  }

  .logo-img {
    height: 64px;
  }

  .logo {
    padding-left: 8px;
  }

  .hero {
    padding: 40px 0 48px;
  }

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

  .countdown-time {
    font-size: 3rem;
  }

  .section {
    padding: 56px 0;
  }

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

  .prayer-grid {
    max-width: 600px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .event-list-item {
    padding: 20px 24px;
  }

  .page-header {
    padding: 48px 0;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }
}

/* Large desktop (1280px+) */
@media (min-width: 1280px) {
  .container {
    padding: 0 32px;
  }
}

/* --- Learning Islam Page --- */
.learn-quran-quote {
  background: linear-gradient(135deg, var(--gold-light), var(--beige));
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  margin: 24px 0;
}

.learn-quran-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.learn-quran-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 8px;
}

.learn-quran-quote cite {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-style: normal;
}

.learn-pillars-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.learn-pillars-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.learn-pillars-list li:hover {
  background: var(--green-light);
  border-color: rgba(42,122,75,0.15);
}

.learn-pillar-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.learn-pillar-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.learn-pillar-icon svg {
  flex-shrink: 0;
  stroke: var(--gray-500);
}

.learn-pillars-list li strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.learn-pillars-list li p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-icon svg {
  stroke: var(--gray-400);
}

.empty-state p {
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

.learn-basics-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.learn-basics-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.learn-basics-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.learn-basics-list li strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.learn-basics-list li p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* --- Local Businesses Page --- */
.biz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.biz-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

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

.biz-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--green-light);
  color: var(--green-dark);
  margin-bottom: 10px;
}

.biz-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.biz-card-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 12px;
}

.biz-card-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-primary);
}

.biz-card-phone svg {
  flex-shrink: 0;
  stroke: var(--green-primary);
}

@media (min-width: 640px) {
  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .biz-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .site-footer,
  .hamburger,
  .announcement-banner,
  .ramadan-banner,
  .hero-actions,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .prayer-table th,
  .prayer-table td {
    border: 1px solid #ccc;
  }
}

/* --- Animations (subtle) --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Success message */
.success-message {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}

.success-message.show {
  display: block;
}

/* Copy button */
.copy-btn {
  background: var(--green-primary);
  color: var(--white);
  border: none;
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
}

.copy-btn:hover {
  background: var(--green-dark);
}

/* Hijri date display */
.hijri-date {
  color: var(--gold);
  font-size: 0.85rem;
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 900;
  border: none;
  cursor: pointer;
}

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

.back-to-top:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* --- Eid Section --- */
.eid-highlight {
  background: linear-gradient(135deg, var(--gold-light), var(--beige));
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.eid-highlight h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.eid-highlight p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.eid-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.eid-time-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--gold);
}

.eid-time-block .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  margin-bottom: 4px;
  font-weight: 600;
}

.eid-time-block .time {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.eid-time-block .note {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* --- Iftar Sponsorship --- */
.iftar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-600);
}

.iftar-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.iftar-dot.iftar-available { background: var(--green-accent); }
.iftar-dot.iftar-partial { background: var(--gold); }
.iftar-dot.iftar-reserved { background: var(--gray-400); }

.iftar-calendar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
}

.iftar-day {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.iftar-day:hover {
  border-color: var(--green-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.iftar-day-number {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 2px;
}

.iftar-day-date {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.iftar-day-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
}

.iftar-day.status-available {
  border-color: rgba(61,158,107,0.3);
}

.iftar-day.status-available .iftar-day-status {
  background: var(--green-light);
  color: var(--green-dark);
}

.iftar-day.status-partial {
  border-color: rgba(200,168,78,0.4);
}

.iftar-day.status-partial .iftar-day-status {
  background: var(--gold-light);
  color: #92400e;
}

.iftar-day.status-reserved {
  border-color: var(--gray-300);
  opacity: 0.65;
  cursor: default;
}

.iftar-day.status-reserved:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--gray-300);
}

.iftar-day.status-reserved .iftar-day-status {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* Iftar Modal */
.iftar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.iftar-modal-overlay.open {
  display: flex;
}

.iftar-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.iftar-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.iftar-modal-close:hover {
  color: var(--gray-700);
}

.iftar-modal-title {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.iftar-modal-date {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.iftar-type-options {
  display: flex;
  gap: 8px;
}

.iftar-type-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.iftar-type-option:has(input:checked) {
  border-color: var(--green-primary);
  background: var(--green-light);
}

.iftar-type-option input {
  accent-color: var(--green-primary);
}

.iftar-amount-options {
  display: flex;
  gap: 8px;
}

.iftar-amount-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
}

.iftar-amount-btn:hover,
.iftar-amount-btn.selected {
  border-color: var(--green-primary);
  background: var(--green-light);
  color: var(--green-dark);
}

.iftar-success {
  text-align: center;
  padding: 20px 0;
}

.iftar-success h4 {
  font-family: var(--font-display);
  color: var(--green-dark);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.iftar-success p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Responsive */
@media (min-width: 640px) {
  .iftar-calendar {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1024px) {
  .iftar-calendar {
    grid-template-columns: repeat(6, 1fr);
  }
}
