/* Base Variables with Updated Colors */
:root {
  --bg-color: #f4f4f4; /* Light gray base */
  --text-color: #333333; /* Dark gray for readability */
  --card-bg: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
  --header-bg: linear-gradient(135deg, #6a1b9a, #1565c0); /* Rich purple to deep blue */
  --btn-bg: #4caf50; /* Solid green */
  --btn-text: #ffffff;
  --btn-hover-bg: #388e3c; /* Darker green */
  --btn-hover-text: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1); /* Softer shadow */
  --highlight-color: #ffeb3b; /* Bright yellow for accents */
  --section-title-color: #6a1b9a; /* Rich purple for section titles */
  --border-color: rgba(106, 27, 154, 0.2); /* Light purple for borders */
}

.dark-theme {
  --bg-color: #121212; /* Dark gray base */
  --text-color: #e0e0e0; /* Light gray for readability */
  --card-bg: rgba(30, 30, 30, 0.8); /* Semi-transparent dark */
  --header-bg: linear-gradient(135deg, #4527a0, #0277bd); /* Deep purple to muted teal */
  --btn-bg: #0288d1; /* Solid teal */
  --btn-text: #ffffff;
  --btn-hover-bg: #0277bd; /* Darker teal */
  --btn-hover-text: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --highlight-color: #ffcc80; /* Soft gold for dark mode */
  --section-title-color: #bb86fc; /* Light purple for section titles */
  --border-color: rgba(187, 134, 252, 0.2); /* Light purple for borders */
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: radial-gradient(circle at center, rgba(200, 200, 200, 0.3), var(--bg-color));
  scroll-behavior: smooth;
  font-size: 13px;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

.dark-theme body {
  background: radial-gradient(circle at center, rgba(50, 50, 50, 0.3), var(--bg-color));
}

/* Text Shadow for Visibility */
h1, h2, h3, .section-title {
  text-shadow: 0 1px 2px var(--shadow-color); /* Subtle shadow */
}

a {
  text-decoration: none;
  color: inherit;
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--btn-bg); /* Matches button color */
  z-index: 1004;
  transition: width 0.3s ease;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 10px;
  background: var(--highlight-color);
  color: var(--btn-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  box-shadow: 0 2px 6px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--btn-hover-bg);
  transform: scale(1.1);
}

.language-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1003;
}

.language-modal .modal-content {
  margin: 25vh auto;
  width: 90%;
  max-width: 300px;
  text-align: center;
  padding: 20px;
  border-radius: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px var(--shadow-color);
  color: var(--text-color);
}

.language-options button {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  background: var(--btn-bg);
  border: none;
  color: var(--btn-text);
  border-radius: 30px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-options button:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  box-shadow: 0 2px 6px var(--shadow-color); /* Subtle shadow instead of glow */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--header-bg);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1001;
  box-shadow: 0 4px 12px var(--shadow-color);
}

nav .logo {
  font-size: 0.8em;
  color: #fff;
  font-weight: 700;
  max-width: 60%;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.language-toggle {
  color: #fff;
  font-size: 1.2em;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.theme-toggle:hover,
.language-toggle:hover {
  transform: rotate(360deg);
}

nav .menu-toggle {
  font-size: 1.5em;
  color: #fff;
  cursor: pointer;
}

nav ul {
  display: none;
  flex-direction: column;
  background: rgba(76, 175, 80, 0.95); /* Matches light theme button color */
  position: fixed;
  top: 48px;
  left: 0;
  width: 100%;
  padding: 10px;
  z-index: 1001;
  list-style: none;
}

.dark-theme nav ul {
  background: rgba(2, 136, 209, 0.95); /* Matches dark theme button color */
}

nav ul.active {
  display: flex;
}

nav ul li a {
  color: #fff;
  font-size: 0.85em;
  padding: 8px 12px;
  transition: all 0.3s ease;
  display: block;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: var(--highlight-color);
}

@media (min-width: 768px) {
  nav {
    padding: 12px 20px;
  }
  nav .logo {
    font-size: 1.1em;
  }
  nav .menu-toggle {
    display: none;
  }
  nav ul {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
  }
  nav ul li a {
    margin: 0 10px;
    padding: 6px 12px;
  }
}

header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('herobg.png') no-repeat center center/cover;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 12px 0;
  position: relative;
}

#prayer-info {
  position: absolute;
  top: 50px;
  left: 12px;
  color: #fff;
  font-size: 0.9em;
  background: rgba(76, 175, 80, 0.8); /* Matches light theme button */
  padding: 6px 10px;
  border-radius: 5px;
  z-index: 1000;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.dark-theme #prayer-info {
  background: rgba(2, 136, 209, 0.8); /* Matches dark theme button */
}

.current-prayer, .upcoming-prayer {
  margin: 4px 0;
}

.hero-content {
  color: #fff;
  max-width: 90%;
}

.hero-content h1 {
  font-size: 1.5em;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
  font-size: 1.1em;
  margin: 8px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-subheading {
  font-size: 0.85em;
  margin: 12px 0;
}

.btn,
.btn-about,
.btn-service,
.btn-knowledge,
.btn-community,
.btn-gallery,
.btn-location,
#calculate-zakat,
.chat-input-container button,
#donate-now {
  display: inline-block;
  background: var(--btn-bg);
  border: none;
  color: var(--btn-text);
  padding: 8px 18px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
  box-shadow: 0 2px 6px var(--shadow-color);
  text-align: center; /* Center button text */
}

.btn:hover,
.btn-about:hover,
.btn-service:hover,
.btn-knowledge:hover,
.btn-community:hover,
.btn-gallery:hover,
.btn-location:hover,
#calculate-zakat:hover,
.chat-input-container button:hover,
#donate-now:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  transform: translateY(-2px);
}

#donate-now {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-20%);
  width: 40px;
  height: 120px;
  padding: 10px;
  text-align: center;
  writing-mode: vertical-rl;
  z-index: 1000;
  background: var(--btn-bg);
}

/* Section Backgrounds Set to Transparent */
#announcements, #prayer-times, #ramadan, #about, #services, #knowledge, #events, #gallery, #community, #location, #zakat-calculator {
  background: transparent;
  padding: 12px;
  max-width: 100%;
}

/* Announcements Section */
.announcement-marquee {
  background: var(--card-bg);
  border: 2px solid var(--highlight-color);
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--shadow-color);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

.marquee-track {
  display: inline-block;
  animation: marquee 50s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.marquee-content span {
  display: inline-block;
  padding: 0 20px;
  font-size: 0.85em;
  color: var(--section-title-color); /* Use section title color for better visibility */
  font-weight: 600;
  text-shadow: 0 1px 2px var(--shadow-color);
}

.prayer-times-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 90%;
  margin: 0 auto;
}

.prayer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--card-bg);
  border-left: 4px solid var(--section-title-color); /* Use section title color for border */
  border-radius: 10px;
  box-shadow: 0 2px 6px var(--shadow-color);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.prayer-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.prayer-name {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--section-title-color); /* Use section title color for prayer names */
}

.prayer-time {
  font-size: 0.85em;
  color: var(--text-color);
}

.ramadan-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--card-bg);
  border-radius: 10px;
  max-width: 90%;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.ramadan-times,
.quran-aayah {
  text-align: center;
  padding: 10px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 6px var(--shadow-color);
  backdrop-filter: blur(10px);
}

.ramadan-times h3,
.quran-aayah h3 {
  font-size: 1.1em;
  color: var(--section-title-color); /* Use section title color for headings */
  margin-bottom: 8px;
}

#hadith-text,
#quran-aayah-text {
  font-size: 0.85em;
  font-style: italic;
  padding: 8px;
  background: var(--card-bg);
  border-left: 3px solid var(--highlight-color);
  border-radius: 5px;
  word-wrap: break-word; /* Ensure long text wraps to the next line */
  white-space: normal; /* Allow text to wrap */
  overflow: visible; /* Ensure no overflow is hidden */
  max-height: none; /* Remove max-height restriction */
}

.section-title {
  font-size: 1.5em;
  color: var(--section-title-color); /* Use section title color */
  text-align: center;
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  text-shadow: 0 1px 2px var(--shadow-color);
}

.section-title::after {
  content: '';
  width: 50px;
  height: 3px;
  background: var(--section-title-color); /* Use section title color */
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

#about .content p {
  font-size: 0.85em;
  margin-bottom: 15px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.services-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 90%;
  margin: 0 auto;
}

.service-card {
  background: var(--card-bg);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px var(--shadow-color);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  border: 2px solid var(--section-title-color); /* Use section title color for border */
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.service-icon {
  font-size: 1.8em;
  color: var(--section-title-color); /* Use section title color for icons */
  margin-bottom: 8px;
}

.service-card h3 {
  font-size: 1em;
  color: var(--text-color);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.85em;
  margin-bottom: 10px;
  font-weight: 600;
}

.knowledge-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 90%;
  margin: 0 auto;
}

.knowledge-item {
  background: var(--card-bg);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px var(--shadow-color);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  border: 2px solid var(--section-title-color); /* Use section title color for border */
}

.knowledge-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.knowledge-item h3 {
  font-size: 1em;
  color: var(--section-title-color); /* Use section title color for headings */
  margin-bottom: 8px;
}

.knowledge-item p {
  font-size: 0.85em;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Fix for .language-modal .modal-content (replace lines 102–113) */
.language-modal .modal-content {
  margin: 25vh auto;
  width: 90%;
  max-width: 300px; /* Consolidated max-width */
  text-align: center;
  padding: 20px;
  border-radius: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px var(--shadow-color);
  color: var(--text-color);
}

.events-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  max-width: 90%;
  margin: 0 auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--section-title-color) var(--card-bg);
}

.events-container::-webkit-scrollbar {
  height: 8px;
}

.events-container::-webkit-scrollbar-track {
  background: var(--card-bg);
}

.events-container::-webkit-scrollbar-thumb {
  background: var(--section-title-color);
  border-radius: 4px;
}

.event {
  flex: 0 0 100%;
  min-width: 280px;
  max-width: 400px;
  background: var(--card-bg);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px var(--shadow-color);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--section-title-color);
  scroll-snap-align: center;
}

.event:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.event h3 {
  font-size: 1em;
  color: var(--section-title-color);
  margin-bottom: 8px;
  font-weight: 600;
}

.event p {
  font-size: 0.85em;
  margin-bottom: 10px;
  font-weight: 600;
}
/* Updated Gallery Styles (replace lines 555–573) */
.gallery-caption {
  margin-bottom: 20px; /* Increased spacing between caption and images */
  font-size: 0.85em;
  text-align: center;
  color: var(--text-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 90%;
  margin: 15px auto;
}

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--shadow-color);
  border: 2px solid var(--section-title-color);
}

/* Updated Media Query for Mobile (replace lines 697–704) */
@media (max-width: 767px) {
  .ramadan-container,
  .services-container,
  .knowledge-container,
  .events-container,
  .community-container,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .gallery-grid {
    max-width: 100%; /* Full width on mobile */
    padding: 0 5px; /* Minimal padding to avoid edge-to-edge */
  }
}

.community-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 90%;
  margin: 0 auto;
}

.community-item {
  background: var(--card-bg);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px var(--shadow-color);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  border: 2px solid var(--section-title-color); /* Use section title color for border */
}

.community-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.community-item h3 {
  font-size: 1em;
  color: var(--section-title-color); /* Use section title color for headings */
  margin-bottom: 8px;
}

.community-item p {
  font-size: 0.85em;
  margin-bottom: 10px;
}

.location-container {
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
}

.location-content p {
  font-size: 0.85em;
  margin-bottom: 15px;
}

.map-wrapper {
  margin: 15px 0;
}

.map-wrapper iframe {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 6px var(--shadow-color);
}

.zakat-container {
  max-width: 90%;
  margin: 0 auto;
}

.zakat-form {
  background: var(--card-bg);
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 2px 6px var(--shadow-color);
  backdrop-filter: blur(10px);
  border: 2px solid var(--highlight-color);
}

.zakat-note {
  font-size: 0.8em;
  color: var(--text-color);
  margin-bottom: 15px;
}

.zakat-inputs label {
  display: block;
  font-size: 0.85em;
  font-weight: 500;
  margin: 12px 0 4px;
}

.zakat-inputs input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-color); /* Use border color */
  border-radius: 5px;
  font-size: 0.85em;
  background: var(--card-bg);
  color: var(--text-color);
}

.zakat-result {
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 241, 118, 0.2); /* Light yellow tint */
  border-radius: 10px;
  font-size: 0.85em;
}

.dark-theme .zakat-result {
  background: rgba(255, 204, 128, 0.2); /* Soft gold tint */
}

.chatbot-container {
  position: fixed;
  bottom: 10px;
  left: 10px;
  width: 260px;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 4px 12px var(--shadow-color);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.chatbot-container.hidden {
  transform: translateX(-100%);
}

.chatbot-header {
  background: var(--btn-bg);
  color: #fff;
  padding: 8px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  font-size: 0.85em;
  font-weight: 600;
}

.close-chat {
  font-size: 1.1em;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-chat:hover {
  color: var(--highlight-color);
}

.chat-messages {
  max-height: 160px;
  overflow-y: auto;
  padding: 8px;
  font-size: 0.8em;
}

.bot-message {
  background: rgba(76, 175, 80, 0.2); /* Light green tint */
  padding: 6px;
  border-radius: 5px;
  margin: 4px 0;
}

.dark-theme .bot-message {
  background: rgba(2, 136, 209, 0.2); /* Light teal tint */
}

.user-message {
  background: rgba(255, 241, 118, 0.2); /* Light yellow tint */
  padding: 6px;
  border-radius: 5px;
  margin: 4px 0;
  text-align: right;
}

.dark-theme .user-message {
  background: rgba(255, 204, 128, 0.2); /* Soft gold tint */
}

.chat-input-container {
  display: flex;
  padding: 8px;
  border-top: 1px solid var(--border-color); /* Use border color */
}

.chat-input-container input {
  flex: 1;
  padding: 6px;
  border: 1px solid var(--border-color); /* Use border color */
  border-radius: 5px 0 0 5px;
  font-size: 0.8em;
  background: var(--card-bg);
  color: var(--text-color);
}

.chat-input-container button {
  padding: 6px 12px;
  border-radius: 0 5px 5px 0;
}

footer {
  background: var(--header-bg); /* Match header background */
  color: #fff;
  padding: 10px 12px;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  max-width: 90%;
  margin: 0 auto;
}

.footer-about h3,
.footer-contact h3,
.footer-social h3 {
  font-size: 1em;
  margin-bottom: 8px;
  color: var(--highlight-color); /* Use highlight color for footer headings */
}

.footer-about p,
.footer-contact p {
  font-size: 0.8em;
}

.social-icons a {
  color: #fff;
  font-size: 1.4em;
  margin: 0 8px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--highlight-color); /* Use highlight color for social icons on hover */
  transform: scale(1.2);
}

.footer-bottom {
  margin-top: 15px;
  font-size: 0.8em;
}

.glass {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color); /* Use border color */
  border-radius: 10px;
}

/* Media Queries */
@media (max-width: 767px) {
  nav {
    padding: 6px 10px;
  }
  nav .logo {
    font-size: 0.7em;
  }
  #prayer-info {
    top: 45px;
    left: 10px;
  }
  header {
    height: 45vh;
    padding: 35px 10px 0;
  }
  .hero-content h1 {
    font-size: 1.3em;
  }
  .hero-content h2 {
    font-size: 0.9em;
  }
  .hero-subheading {
    font-size: 0.8em;
  }
  .section-title {
    font-size: 1.3em;
  }
  .prayer-times-vertical {
    flex-direction: column;
  }
  .ramadan-container,
  .services-container,
  .knowledge-container,
  .events-container,
  .community-container,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .chatbot-container {
    width: 90%;
    left: 5%;
    bottom: 5px;
  }
  .chatbot-header h3 {
    font-size: 0.8em;
  }
  .chat-messages {
    max-height: 140px;
  }
}

@media (min-width: 768px) {
  nav {
    padding: 10px 20px;
  }
  nav .logo {
    font-size: 1em;
  }
  header {
    height: 60vh;
  }
  #prayer-info {
    font-size: 1em;
  }
  .hero-content h1 {
    font-size: 2em;
  }
  .hero-content h2 {
    font-size: 1.4em;
  }
  .hero-subheading {
    font-size: 0.95em;
  }
  .section-title {
    font-size: 1.6em;
  }
  .prayer-times-vertical {
    max-width: 800px;
  }
  .ramadan-container,
  .services-container,
  .knowledge-container,
  .events-container,
  .community-container,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    gap: 15px;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* AOS Animations */
[data-aos] {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-up"] {
  transform: translateY(20px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}



/* Blog & Events Slider Section */
#blog-events {
  padding: 30px 20px;
  max-width: 100%;
  overflow: hidden;
}

.slider-container {
  max-width: 90%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  padding: 10px 0;
}

.slide {
  min-width: calc(100% - 20px);
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.slide h3 {
  font-size: 1.2em;
  color: var(--section-title-color);
  margin-bottom: 10px;
}

.slide p {
  font-size: 0.9em;
  margin-bottom: 15px;
  line-height: 1.6;
}

.btn-blog, .btn-events {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  box-shadow: 0 4px 12px var(--shadow-color);
  text-align: center;
  border: none;
}

.btn-blog {
  background: #8e44ad;
  color: white;
}

.btn-events {
  background: #3498db;
  color: white;
}

.btn-blog:hover {
  background: #7d3c98;
  transform: translateY(-3px);
}

.btn-events:hover {
  background: #2980b9;
  transform: translateY(-3px);
}

/* Slider Navigation */
.slider-nav {
  text-align: center;
  margin-top: 15px;
}

.slider-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--border-color);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.slider-dot.active {
  background: var(--section-title-color);
}

/* Tablet and Desktop View */
@media (min-width: 768px) {
  .slide {
    min-width: calc(50% - 20px);
  }
  
  .slider-track {
    gap: 30px;
  }
}

