/* ===== CSS Variables & Theme ===== */
:root {
  --primary-gold: #d4a853;
  --primary-gold-dark: #b8923f;
  --primary-green: #1a5d3a;
  --primary-green-dark: #0f3d25;
  --deep-blue: #1a2744;
  --midnight: #0d1321;
  --cream: #faf7f2;
  --white: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-gold);
}

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

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

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

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

.section-title h2 {
  font-size: 2.8rem;
  color: var(--primary-gold);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-dark));
  border-radius: 2px;
}

.section-title p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-top: 20px;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 100%);
  padding: 0;
  box-shadow: var(--shadow);
  min-height: 70px;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text .mosque-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--primary-gold);
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-logo-text .tagline {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.nav-menu li a {
  display: block;
  padding: 25px 20px;
  color: var(--primary-gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  transition: var(--transition);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--primary-gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  transform: scaleX(1);
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary-gold);
}

.nav-donate {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  padding: 10px 28px !important;
  border-radius: 30px;
  color: var(--midnight) !important;
  font-weight: 700 !important;
  margin-left: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
  display: inline-flex !important;
  align-items: center;
}

.nav-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(212, 168, 83, 0.4);
}

.nav-donate::after {
  display: none !important;
}

/* ===== Language Toggle Button ===== */
.lang-toggle {
  background: rgba(212, 168, 83, 0.2);
  border: 2px solid var(--primary-gold);
  padding: 8px 12px;
  border-radius: 25px;
  color: var(--primary-gold);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 45px;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 2px 8px rgba(212, 168, 83, 0.3);
}

.lang-toggle:hover {
  background: var(--primary-gold);
  color: var(--midnight);
  transform: scale(1.05);
  border-color: var(--primary-gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== Mobile Menu Overlay ===== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 100%);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  overflow-y: auto;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  right: 0;
  pointer-events: auto;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-gold);
  margin-bottom: 20px;
}

.mobile-logo {
  height: 45px;
  width: auto;
}

.mobile-menu-close {
  background: transparent;
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-menu-close:hover {
  background: var(--primary-gold);
  color: var(--midnight);
  transform: rotate(90deg);
}

.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  color: var(--primary-gold);
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
}

.mobile-nav-link i {
  font-size: 1.2rem;
  width: 25px;
  text-align: center;
  color: var(--primary-gold);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(212, 168, 83, 0.15);
  border-color: var(--primary-gold);
  transform: translateX(10px);
}

.mobile-nav-link.donate-link {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  color: var(--midnight);
  font-weight: 600;
  margin-top: 10px;
}

.mobile-nav-link.donate-link i {
  color: var(--midnight);
}

.mobile-nav-link.donate-link:hover {
  transform: scale(1.05) translateX(0);
  box-shadow: 0 5px 15px rgba(212, 168, 83, 0.4);
}

.mobile-menu-footer {
  padding-top: 20px;
  border-top: 2px solid rgba(212, 168, 83, 0.3);
  margin-top: 20px;
}

.mobile-contact-info {
  margin-bottom: 20px;
}

.mobile-contact-info h4 {
  color: var(--primary-gold);
  margin-bottom: 10px;
}

.mobile-contact-info p {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-contact-info i {
  color: var(--primary-gold);
  width: 20px;
  text-align: center;
}

.mobile-social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.mobile-social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.15);
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
}

.mobile-social-links a:hover {
  background: var(--primary-gold);
  color: var(--midnight);
  transform: translateY(-3px);
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== Hero Section (Prayer Times Page) ===== */
.hero-prayer {
  min-height: auto;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 50%, var(--primary-green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 40px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Background pattern removed */

.hero-prayer::after {
  content: '☪';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 400px;
  color: rgba(212, 168, 83, 0.03);
  pointer-events: none;
}

.prayer-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.prayer-hero-header {
  margin-bottom: 50px;
}

.prayer-hero-header h1 {
  font-size: 3.5rem;
  color: var(--primary-gold);
  margin-bottom: 15px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.prayer-hero-header h1 span {
  color: var(--primary-gold);
}

.prayer-hero-header .subtitle {
  font-size: 1.3rem;
  color: rgba(212, 168, 83, 0.9);
  font-style: italic;
}

.date-location {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.date-location .item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-gold);
  font-size: 1.1rem;
}

.date-location .item i {
  font-size: 1.3rem;
}

/* ===== Prayer Times Grid ===== */
.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.prayer-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.prayer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-dark));
  transform: scaleX(0);
  transition: var(--transition);
}

.prayer-card:hover::before,
.prayer-card.active::before {
  transform: scaleX(1);
}

.prayer-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.prayer-card.active {
  background: rgba(212, 168, 83, 0.15);
  border-color: var(--primary-gold);
}

.prayer-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.prayer-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}

.prayer-card .time-group {
  margin-bottom: 15px;
}

.prayer-card .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.prayer-card .time {
  font-size: 1.8rem;
  color: var(--primary-gold);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.prayer-card .iqamah {
  font-size: 1.2rem;
  color: var(--white);
}

/* Jummuah Special Card */
.jummah-section {
  margin-top: 40px;
  background: rgba(26, 93, 58, 0.3);
  border: 2px solid var(--primary-gold);
  border-radius: 25px;
  padding: 40px;
}

.jummah-section h3 {
  color: var(--primary-gold);
  font-size: 2rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.jummah-times {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

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

.jummah-time .label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.jummah-time .time {
  font-size: 2rem;
  color: var(--white);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

/* ===== Home Hero Section ===== */
.hero-home {
  min-height: 80vh;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 100%);
  display: flex;
  align-items: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

/* Background pattern removed */

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

.hero-content h1 {
  font-size: 4rem;
  color: var(--primary-gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--primary-gold);
}

.hero-content p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  color: var(--midnight);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 168, 83, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--midnight);
}

/* ===== Announcement Banner ===== */
.announcement-banner {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  padding: 20px;
  text-align: center;
}

.announcement-banner p {
  color: var(--midnight);
  font-size: 1.1rem;
  font-weight: 600;
}

.announcement-banner a {
  color: var(--primary-green-dark);
  text-decoration: underline;
  margin-left: 10px;
}

/* ===== Prayer Times Display ===== */
.prayer-times-display {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.prayer-times-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-gold);
  gap: 20px;
}

.header-left {
  flex: 1;
  text-align: left;
}

.header-right {
  display: flex;
  align-items: center;
}

.masjid-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.current-time {
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: 'Arial', sans-serif;
  margin-bottom: 5px;
}

.current-date {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.shuruq-time {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--text-dark);
  background: #f5f5f5;
  padding: 8px 15px;
  border-radius: 10px;
  margin-top: 5px;
}

.shuruq-time .label {
  font-weight: 600;
}

.shuruq-time .time {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-gold-dark);
}

.jumua-display {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  padding: 20px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.jumua-display .prayer-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 3px;
}

.jumua-display .prayer-name-arabic {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.jumua-display .jumua-time {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.jumua-times-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.jumua-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 15px;
  border-radius: 8px;
  gap: 15px;
}

.jumua-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}

.jumua-time-row .jumua-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  min-width: 50px;
  text-align: right;
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.prayer-time-card {
  background: #f5f5f5;
  border-radius: 15px;
  padding: 20px 15px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible !important;
}

.prayer-time-card.special {
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
}

.prayer-time-card.highlighted {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  color: white;
  min-height: 220px !important;
  padding: 25px 15px !important;
}

.prayer-time-card.highlighted > * {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.prayer-time-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.prayer-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.prayer-time-card.highlighted .prayer-name,
.prayer-time-card.highlighted .prayer-name-arabic,
.prayer-time-card.highlighted .adhan-time {
  color: white;
}

.prayer-name-arabic {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.adhan-time {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.adhan-time::before {
  content: 'Adhan: ';
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  display: block;
  margin-bottom: 4px;
}

.iqamah-time {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-green);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 8px;
  line-height: 1.3;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.iqamah-time::before {
  content: 'Jamaat: ';
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  display: block;
  margin-bottom: 4px;
  margin-top: 8px;
}

#ishaIqamah {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  margin-top: 8px !important;
  line-height: 1.3 !important;
}

.prayer-time-card.highlighted .iqamah-time {
  color: white !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
  font-size: 1.4rem !important;
}

.prayer-time-card.highlighted #ishaIqamah {
  color: white !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 1.4rem !important;
}

.jumua-time {
  font-size: 2rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .prayer-times-display {
    padding: 20px 15px;
  }
  
  .prayer-times-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .header-left {
    text-align: center;
  }
  
  .header-right {
    justify-content: center;
  }
  
  .current-time {
    font-size: 3rem;
  }
  
  .masjid-name {
    font-size: 1.4rem;
  }
  
  .shuruq-time {
    justify-content: center;
  }
  
  .jumua-display {
    padding: 15px 20px;
  }
  
  .jumua-display .jumua-time {
    font-size: 1rem;
  }
  
  .jumua-times-list {
    gap: 6px;
  }
  
  .jumua-time-row {
    padding: 6px 12px;
  }
  
  .jumua-label {
    font-size: 0.85rem;
  }
  
  .jumua-time-row .jumua-time {
    font-size: 1rem;
  }
  
  .prayer-times-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .adhan-time {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
  
  .adhan-time::before {
    content: 'Adhan: ';
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    display: block;
    margin-bottom: 3px;
  }
  
  .iqamah-time {
    font-size: 1.5rem;
    display: block !important;
    opacity: 1 !important;
  }
  
  .iqamah-time::before {
    content: 'Jamaat: ';
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    display: block;
    margin-bottom: 3px;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .current-time {
    font-size: 2.5rem;
  }
  
  .masjid-name {
    font-size: 1.2rem;
  }
  
  .current-date {
    font-size: 1rem;
  }
  
  .shuruq-time {
    font-size: 1rem;
  }
  
  .shuruq-time .time {
    font-size: 1.2rem;
  }
  
  .jumua-display {
    padding: 12px 15px;
  }
  
  .jumua-display .jumua-time {
    font-size: 0.95rem;
  }
  
  .jumua-display .prayer-name {
    font-size: 1rem;
  }
  
  .jumua-display .prayer-name-arabic {
    font-size: 0.9rem;
  }
  
  .jumua-times-list {
    gap: 5px;
  }
  
  .jumua-time-row {
    padding: 5px 10px;
  }
  
  .jumua-label {
    font-size: 0.8rem;
  }
  
  .jumua-time-row .jumua-time {
    font-size: 0.95rem;
  }
  
  .prayer-time-card {
    padding: 15px 10px;
    min-height: 160px;
  }
  
  .prayer-time-card.highlighted {
    min-height: 180px !important;
    padding: 20px 10px !important;
  }
  
  .prayer-name {
    font-size: 1rem;
  }
  
  .adhan-time {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  
  .adhan-time::before {
    content: 'Adhan: ';
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    display: block;
    margin-bottom: 3px;
  }
  
  .iqamah-time {
    font-size: 1.3rem;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .iqamah-time::before {
    content: 'Jamaat: ';
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    display: block;
    margin-bottom: 3px;
    margin-top: 8px;
  }
  
  #ishaIqamah {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 1.1rem !important;
  }
}

/* ===== Quick Prayer Times Widget ===== */
.prayer-widget {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.prayer-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.prayer-widget-header h3 {
  font-size: 1.8rem;
  color: var(--primary-green);
}

.prayer-widget-header .date {
  color: var(--text-light);
  font-size: 1rem;
}

.prayer-widget-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.prayer-widget-item {
  text-align: center;
  padding: 20px 10px;
  background: var(--cream);
  border-radius: 15px;
  transition: var(--transition);
}

.prayer-widget-item:hover {
  background: var(--primary-green);
  transform: translateY(-5px);
}

.prayer-widget-item:hover h4,
.prayer-widget-item:hover p {
  color: var(--white);
}

.prayer-widget-item h4 {
  font-size: 1rem;
  color: var(--primary-green);
  margin-bottom: 8px;
  transition: var(--transition);
}

.prayer-widget-item p {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: 700;
  transition: var(--transition);
}

.prayer-widget-item.active {
  background: var(--primary-green);
}

.prayer-widget-item.active h4,
.prayer-widget-item.active p {
  color: var(--white);
}

/* ===== Services Section ===== */
.services-section {
  padding: 100px 0;
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-gold));
  transform: scaleX(0);
  transition: var(--transition);
}

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.service-card .icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--primary-gold);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== About Section ===== */
.about-section {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.about-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 3px solid var(--primary-gold);
  border-radius: 20px;
  z-index: -1;
}

.about-content h2 {
  font-size: 2.5rem;
  color: var(--primary-gold);
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.about-features li i {
  color: var(--primary-gold);
  font-size: 1.2rem;
}

/* ===== Events Calendar ===== */
.events-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
}

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

.events-section .section-title h2::after {
  background: var(--primary-gold);
}

.events-section .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.event-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-10px);
}

.event-date {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  padding: 20px;
  text-align: center;
}

.event-date .day {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--midnight);
  font-family: 'Playfair Display', serif;
}

.event-date .month {
  font-size: 1rem;
  color: var(--midnight);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.event-content {
  padding: 25px;
}

.event-content h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.event-content .time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-green);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.event-content p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== Scholars Section ===== */
.scholars-section {
  padding: 100px 0;
  background: var(--cream);
}

.scholars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .scholars-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
  }
}

.scholar-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.scholar-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.scholar-image {
  height: 280px;
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--midnight) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary-gold);
  overflow: hidden;
  position: relative;
}

.scholar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.scholar-content {
  padding: 25px;
}

.scholar-content h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.scholar-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Donation CTA ===== */
.donate-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background pattern removed */

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

.donate-cta h2 {
  font-size: 3rem;
  color: var(--primary-gold);
  margin-bottom: 20px;
}

.donate-cta p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 100px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item .icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item .content h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.contact-item .content p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.contact-form {
  background: var(--cream);
  padding: 40px;
  border-radius: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
}

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

/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 100%);
  padding: 80px 0 30px;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-about h3 {
  font-size: 1.8rem;
  color: var(--primary-gold);
  margin-bottom: 20px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-gold);
  color: var(--midnight);
}

.footer-links h4 {
  font-size: 1.2rem;
  color: var(--primary-gold);
  margin-bottom: 25px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-gold);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 100%);
  padding: 150px 20px 80px;
  text-align: center;
  position: relative;
}

/* Background pattern removed */

.page-header h1 {
  font-size: 3.5rem;
  color: var(--primary-gold);
  margin-bottom: 15px;
  position: relative;
}

.page-header p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

/* ===== About Page Specific ===== */
.history-section {
  padding: 100px 0;
  background: var(--cream);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-gold);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--primary-gold);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-content {
  width: 45%;
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
}

.timeline-content h3 {
  color: var(--primary-green);
  margin-bottom: 10px;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .prayer-times-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-container {
    padding: 0 15px;
  }
  
  .nav-logo img {
    height: 40px;
  }
  
  .nav-logo-text .mosque-name {
    font-size: 1.1rem;
  }
  
  .nav-logo-text .tagline {
    font-size: 0.65rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--midnight);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    transform: translateY(-150%);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .nav-menu li a {
    padding: 15px 20px;
  }
  
  .nav-donate {
    margin: 10px 0 !important;
  }
  
  .nav-toggle {
    display: flex !important;
  }
  
  /* Mobile Headings - All Gold */
  h1, h2, h3, h4, h5, h6 {
    color: var(--primary-gold) !important;
  }
  
  .section-title h2 {
    color: var(--primary-gold) !important;
  }
  
  .nav-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .theme-toggle {
    margin-left: 0;
    width: 38px;
    height: 38px;
    padding: 8px;
    font-size: 1rem;
  }
  
  .lang-toggle {
    margin-left: 0;
    min-width: 50px;
    height: 42px;
    padding: 10px 12px;
    font-size: 0.9rem;
    background: rgba(212, 168, 83, 0.25);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 3px 10px rgba(212, 168, 83, 0.4);
    font-weight: 800;
  }
  
  /* Hero Sections - Override inline styles */
  .hero-home {
    padding: 100px 15px 60px !important;
    min-height: 70vh !important;
    background-attachment: scroll !important;
  }
  
  .hero-prayer {
    padding: 100px 15px 20px !important;
    background-attachment: scroll !important;
  }
  
  .prayer-hero-header {
    margin-bottom: 12px !important;
  }
  
  .prayer-hero-header h1 {
    font-size: 2rem !important;
  }
  
  .prayer-hero-header .subtitle {
    font-size: 1rem !important;
  }
  
  /* Quick Links buttons container */
  .prayer-hero-content > div[style*="margin-top"]:last-child {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    gap: 12px !important;
    padding: 0 10px;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
    white-space: normal;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  /* About section image fix */
  .about-image > div[style*="height: 400px"] {
    height: 300px !important;
    font-size: 6rem !important;
  }
  
  /* Announcement banner */
  .announcement-banner {
    padding: 12px 10px !important;
  }
  
  /* Page headers - Override inline styles */
  .page-header[style*="background-image"] {
    padding: 120px 15px 60px !important;
    background-attachment: scroll !important;
  }
  
  /* Prayer Times */
  .prayer-times-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .prayer-card {
    padding: 20px 15px;
  }
  
  .prayer-card h3 {
    font-size: 1.2rem;
  }
  
  .prayer-card .time {
    font-size: 1.5rem;
  }
  
  /* Remove extra spacing from hero section */
  .hero-prayer .container {
    padding: 0;
  }
  
  .prayer-widget-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .prayer-widget-item {
    padding: 15px 8px;
  }
  
  /* Sections */
  .services-section,
  .about-section,
  .events-section,
  .scholars-section,
  .donate-cta,
  .contact-section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .section-title p {
    font-size: 1.05rem;
  }
  
  /* Scholars - 2 Columns on Tablet */
  .scholars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer {
    padding: 60px 0 30px;
  }
  
  /* Other Elements */
  .jummah-times {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-left: 50px;
  }
  
  .timeline-item::before {
    left: 20px;
  }
  
  .timeline-content {
    width: 100%;
  }
  
  .page-header {
    padding: 120px 15px 60px;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }
  
  .page-header p {
    font-size: 1.1rem;
  }
  
  /* Services & About Pages - Plain White Background on Mobile */
  .about-section {
    background: #ffffff !important;
    background-image: none !important;
  }
  
  /* Services Page Mobile */
  .service-detail {
    padding: 50px 0 !important;
  }
  
  .service-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 35px !important;
  }
  
  .service-detail:nth-child(even) .service-detail-grid {
    direction: ltr !important;
  }
  
  .service-detail-content h2 {
    font-size: 1.9rem !important;
  }
  
  .service-icon-large {
    height: 280px !important;
    font-size: 6rem !important;
  }
  
  /* Contact Page Mobile */
  .contact-grid-2x2 {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
  
  .contact-form {
    padding: 30px 25px !important;
  }
  
  /* About Page - Timeline */
  .timeline-item {
    padding-left: 50px !important;
  }
}


@media (max-width: 480px) {
  /* Mobile Headings - All Gold */
  h1, h2, h3, h4, h5, h6 {
    color: var(--primary-gold) !important;
  }
  
  .section-title h2 {
    color: var(--primary-gold) !important;
  }
  
  /* Navigation */
  .navbar {
    min-height: 60px;
  }
  
  .nav-container {
    padding: 0 10px;
    gap: 8px;
    justify-content: space-between;
  }
  
  .nav-logo {
    gap: 0;
    padding: 8px 0;
    flex-shrink: 1;
    min-width: 0;
    max-width: 55%;
  }
  
  .nav-logo img {
    height: 45px;
    flex-shrink: 0;
  }
  
  /* Hide logo text on very small screens to prevent overlap */
  .nav-logo-text {
    display: none !important;
  }
  
  .nav-logo-text .mosque-name {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }
  
  .nav-logo-text .tagline {
    font-size: 0.5rem;
    letter-spacing: 0.5px;
  }
  
  .nav-toggle {
    padding: 5px;
  }
  
  .nav-toggle span {
    width: 22px;
  }
  
  .nav-right {
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
  }
  
  .nav-toggle {
    padding: 5px;
  }
  
  .nav-toggle span {
    width: 20px;
  }
  
  .lang-toggle {
    min-width: 42px;
    height: 36px;
    font-size: 0.75rem;
    padding: 6px 8px;
    background: rgba(212, 168, 83, 0.3);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 3px 10px rgba(212, 168, 83, 0.5);
    font-weight: 800;
    border-radius: 18px;
    margin-left: 0;
  }
  
  /* Hero sections - override inline styles */
  .hero-home {
    padding: 90px 10px 50px !important;
    min-height: 65vh !important;
  }
  
  .hero-content h1 {
    font-size: 1.8rem !important;
    white-space: normal !important;
  }
  
  .hero-content p {
    font-size: 1rem !important;
  }
  
  /* About section image */
  .about-image > div[style*="height"] {
    height: 250px !important;
    font-size: 5rem !important;
  }
  
  /* Page headers */
  .page-header h1 {
    font-size: 2rem !important;
  }
  
  .page-header p {
    font-size: 1rem !important;
  }
  
  .page-header[style*="padding"] {
    padding: 110px 10px 50px !important;
  }
  
  /* Prayer Times */
  .prayer-times-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .prayer-card {
    padding: 25px 20px;
  }
  
  /* Buttons spacing */
  .hero-buttons,
  .prayer-hero-content > div[style*="display: flex"]:last-child {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    gap: 10px !important;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .prayer-widget-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .prayer-widget {
    padding: 25px 15px;
  }
  
  /* Hero Sections */
  .hero-prayer {
    padding: 90px 10px 30px;
  }
  
  .prayer-hero-header h1 {
    font-size: 1.6rem;
  }
  
  .prayer-hero-header .subtitle {
    font-size: 0.9rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    white-space: normal;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  /* Sections */
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .section-title p {
    font-size: 0.95rem;
  }
  
  .services-section,
  .about-section,
  .events-section,
  .scholars-section,
  .donate-cta,
  .contact-section {
    padding: 50px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  /* Service Cards */
  .service-card,
  .event-card,
  .scholar-card {
    padding: 25px 18px;
  }
  
  .service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  
  .service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .service-card .icon {
    width: 65px;
    height: 65px;
    font-size: 1.7rem;
    margin-bottom: 18px;
  }
  
  /* About Section */
  .about-content h2 {
    font-size: 2rem;
  }
  
  .about-content p {
    font-size: 1.05rem;
  }
  
  /* Donate CTA */
  .donate-cta h2 {
    font-size: 1.8rem;
  }
  
  .donate-cta p {
    font-size: 1.05rem;
  }
  
  /* Contact */
  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .contact-item .icon {
    width: 55px;
    height: 55px;
    font-size: 1.2rem;
  }
  
  /* Page Header */
  .page-header {
    padding: 110px 15px 50px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }
  
  /* Footer */
  .footer-about h3 {
    font-size: 1.5rem;
  }
  
  .footer-about p {
    font-size: 0.95rem;
  }
  
  .footer-links h4 {
    font-size: 1.1rem;
  }
  
  /* Jummah Section */
  .jummah-section {
    padding: 25px 15px;
  }
  
  .jummah-section h3 {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 10px;
  }
  
  .jummah-time .time {
    font-size: 1.6rem;
  }
  
  /* Scholars - Stack Vertically on Mobile */
  .scholars-grid {
    grid-template-columns: 1fr !important;
    gap: 25px;
  }
  
  .scholar-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .scholar-image {
    height: 220px;
    font-size: 4rem;
  }
  
  .scholar-image img {
    object-fit: contain !important;
  }
  
  /* Events */
  .event-card {
    margin-bottom: 20px;
  }
  
  .event-content {
    padding: 20px 18px;
  }
  
  .event-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  
  .event-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .event-date .day {
    font-size: 2rem;
  }
  
  .event-date .month {
    font-size: 0.85rem;
  }
  
  /* Program Cards */
  .program-card {
    padding: 20px 15px;
  }
  
  .program-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .program-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Donation Image */
  .donate-cta img {
    max-width: 250px !important;
  }
  
  /* Support Our Mission - Mobile Grid */
  .donate-cta [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  /* Hide vertical divider on mobile */
  .donate-cta [style*="linear-gradient"] {
    display: none !important;
  }
  
  /* Services Grid */
  .services-grid {
    gap: 20px;
  }
  
  /* Events Grid */
  .events-grid {
    gap: 20px;
  }
  
  /* Better text wrapping */
  p, li, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Services & About Pages - Plain White Background on Small Mobile */
  .about-section {
    background: #ffffff !important;
    background-image: none !important;
  }
  
  /* Services Page - Service Detail Sections */
  .service-detail {
    padding: 40px 0 !important;
  }
  
  .service-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    direction: ltr !important;
  }
  
  .service-detail:nth-child(even) .service-detail-grid {
    direction: ltr !important;
  }
  
  .service-detail-content h2 {
    font-size: 1.6rem !important;
  }
  
  .service-detail-content p {
    font-size: 0.95rem !important;
  }
  
  .service-detail-content ul li {
    font-size: 0.9rem !important;
    padding-left: 25px;
  }
  
  .service-icon-large {
    height: 220px !important;
    font-size: 4.5rem !important;
  }
  
  .programs-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  /* Contact Page */
  .contact-grid-2x2 {
    grid-template-columns: 1fr !important;
  }
  
  .contact-item {
    margin-bottom: 18px;
    flex-direction: column;
    text-align: center;
  }
  
  .contact-item .icon {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.1rem !important;
  }
  
  .contact-item .content h4 {
    font-size: 1rem !important;
  }
  
  .contact-item .content p {
    font-size: 0.9rem !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  
  /* Map Section */
  .map-section {
    padding: 25px 12px !important;
    min-height: 300px;
  }
  
  .map-section p {
    font-size: 0.9rem !important;
  }
  
  .map-section a {
    font-size: 0.95rem;
    padding: 10px 24px;
  }
  
  /* FAQ Section */
  .faq-section {
    padding: 50px 0 !important;
  }
  
  .faq-question {
    padding: 18px 15px !important;
    font-size: 1rem !important;
  }
  
  .faq-answer {
    padding: 0 15px !important;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 15px 18px !important;
  }
  
  .faq-answer p {
    font-size: 0.9rem !important;
  }
  
  /* Timeline (About page) */
  .timeline-content {
    padding: 20px !important;
  }
  
  .timeline-content h3 {
    font-size: 1.2rem !important;
  }
  
  .timeline-content p {
    font-size: 0.9rem !important;
  }
  
  .timeline-content .year {
    font-size: 1.05rem !important;
  }
}


/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.prayer-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.prayer-card:nth-child(1) { animation-delay: 0.1s; }
.prayer-card:nth-child(2) { animation-delay: 0.2s; }
.prayer-card:nth-child(3) { animation-delay: 0.3s; }
.prayer-card:nth-child(4) { animation-delay: 0.4s; }
.prayer-card:nth-child(5) { animation-delay: 0.5s; }

/* ===== Active Prayer Indicator ===== */
.prayer-card.current-prayer {
  animation: pulse 2s infinite;
  border-color: var(--primary-gold);
  background: rgba(212, 168, 83, 0.2);
}

/* Old iframe responsive styles removed - now using .prayer-widget-desktop and .prayer-widget-mobile classes */

/* ===== Contact/Info Card Responsiveness ===== */
@media (max-width: 768px) {
  .contact-item .content h4 {
    font-size: 1.05rem;
  }
  
  .contact-item .content p {
    font-size: 0.95rem;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .contact-item .content h4 {
    font-size: 0.95rem;
  }
  
  .contact-item .content p {
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  
  /* Ensure long text wraps properly */
  .contact-item .content p br {
    display: none;
  }
}

