/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.prayer-times.hero-background {
  opacity: .90;
}

.hero-background {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #f3f4f6;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #064e3b, #047857);
  color: #ecfdf5;
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.28);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.masjid-name {
  font-size: 2.1rem;
  font-weight: 700;
}

.tagline {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.address {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Hero with animated background */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
  min-height: 70vh;
  background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
  isolation: isolate;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.18), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.14), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(45, 212, 191, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(22, 163, 74, 0.18), transparent 55%);
  opacity: 0.7;
  animation: soft-orbit 26s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes soft-orbit {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-4%, 2%, 0) scale(1.03);
  }
  100% {
    transform: translate3d(3%, -3%, 0) scale(1.02);
  }
}

.hero .container {
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.9rem;
}

.hero p {
  max-width: 40rem;
  margin: 0 auto;
  color: #1e293b;
  font-size: 1rem;
}

/* Section base styles */
section {
  padding: 2.25rem 0;
}

section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 1rem;
  text-align: center;
}

/* Prayer Times Section */
.prayer-times {
  background-color: #f9fafb;
}

.table-wrapper {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin: 0 auto 0.75rem;
  max-width: 520px;
}

.prayer-table {
  width: 100%;
  border-collapse: collapse;
}

.prayer-table thead {
  background-color: #065f46;
  color: #ecfdf5;
}

.prayer-table th,
.prayer-table td {
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
}

.prayer-table th {
  text-align: left;
  font-weight: 600;
}

.prayer-table td {
  text-align: left;
}

.prayer-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.prayer-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.prayer-table tbody tr:hover {
  background-color: #e5f3ed;
}

.small-note {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
}

.small-note a {
  color: #047857;
  text-decoration: none;
}

.small-note a:hover {
  text-decoration: underline;
}

/* Qur'an Classes */
.quran-classes {
  background-color: #ffffff;
}

.quran-classes p {
  margin-bottom: 0.75rem;
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.call-box {
  display: inline-block;
  padding: 0.75rem 1.3rem;
  border-radius: 9999px;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-weight: 600;
  margin-top: 0.25rem;
}

.quran-classes .container {
  text-align: center;
}

.call-box a {
  color: #047857;
  text-decoration: none;
}

.call-box a:hover {
  text-decoration: underline;
}

/* Gallery */
.gallery {
  background-color: #ffffff;
}

.gallery p {
  margin-bottom: 1rem;
  color: #4b5563;
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0%, #bbf7d0, #6ee7b7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #064e3b;
  font-weight: 600;
  font-size: 0.9rem;
}

.gallery-item span {
  backdrop-filter: blur(8px);
  background-color: rgba(236, 253, 245, 0.85);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

/* How to Enter Section */
.entering {
  background-color: #f9fafb;
}

.entering-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 0.75rem;
}

.entering p {
  color: #4b5563;
}

.entering ol {
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}

.entering li {
  margin-bottom: 0.6rem;
}

.entrance-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
}

.entrance-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background-color: #ecfdf5;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.entrance-map-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.entrance-map-hint a {
  color: #047857;
  text-decoration: none;
}

.entrance-map-hint a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: #022c22;
  color: #d1fae5;
  padding: 1rem 0;
  font-size: 0.85rem;
}

.footer-content {
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entering-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .masjid-name {
    font-size: 1.6rem;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .prayer-table th,
  .prayer-table td {
    padding: 0.6rem 0.75rem;
  }
}
