:root {
  --green: #0f766e;
  --green-dark: #0b4f49;
  --gold: #eab308;
  --bg-white: #ffffff;
  --text-main: #111827;
  --text-muted: #4b5563;
  --border-soft: #e5e7eb;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #ecfdf5, #f9fafb);
  color: var(--text-main);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: white;
  padding: 1.25rem 0 0;
  box-shadow: var(--shadow-soft);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  overflow: hidden;
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-bottom: 0.25rem;
}

.logo-wrapper {
  flex-shrink: 0;
}

.logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 24px;
  padding: 0.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.title-wrapper h1 {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: 0.03em;
}

.title-wrapper {
  text-align: center;
}

.tagline {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.5;
}

.jumuah-note {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Scrolling announcement ribbon inside header */
.announcement-banner {
  background: rgba(234, 179, 8, 0.15);
  border-top: 1px solid rgba(234, 179, 8, 0.25);
  overflow: hidden;
  white-space: nowrap;
  margin-top: 1rem;
  padding: 0.4rem 0;
}

.announcement-track {
  display: inline-block;
  -webkit-animation: scroll-left 30s linear infinite;
  -moz-animation: scroll-left 30s linear infinite;
  -o-animation: scroll-left 30s linear infinite;
  animation: scroll-left 30s linear infinite;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.announcement-track span {
  display: inline;
  padding: 0 3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.01em;
}

@-webkit-keyframes scroll-left {
  from { -webkit-transform: translateX(0); transform: translateX(0); }
  to { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@-moz-keyframes scroll-left {
  from { -moz-transform: translateX(0); transform: translateX(0); }
  to { -moz-transform: translateX(-50%); transform: translateX(-50%); }
}

@-o-keyframes scroll-left {
  from { -o-transform: translateX(0); transform: translateX(0); }
  to { -o-transform: translateX(-50%); transform: translateX(-50%); }
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

main {
  margin-top: 1.75rem;
  margin-bottom: 2.5rem;
}

.section {
  margin-bottom: 1.75rem;
}

.section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.section h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--gold), var(--green));
}

.section-note {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.prayer-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.prayer-header h2 {
  margin-bottom: 0;
}

.prayer-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
}

.section-prayer-times .table-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(16, 185, 129, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead {
  background: linear-gradient(to right, #ecfdf3, #e0f2fe);
}

th,
td {
  padding: 0.6rem 0.5rem;
  text-align: left;
}

th {
  font-weight: 600;
  color: #065f46;
  border-bottom: 1px solid rgba(209, 213, 219, 0.8);
}

tbody tr:nth-child(even) {
  background: #f9fafb;
}

tbody tr:nth-child(odd) {
  background: #ffffff;
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: #ecfeff;
}

.jumuah-row {
  border-top: 2px solid rgba(16, 185, 129, 0.25);
}

.jumuah-row td:first-child {
  font-weight: 600;
  color: var(--green-dark);
}

.section-donation {
  margin-top: 2rem;
}

.donation-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(16, 185, 129, 0.12);
  padding: 1.25rem 1.5rem;
}

.donation-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.donation-message {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.donation-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.95rem;
}

.donation-list li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.donation-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.highlight {
  font-weight: 600;
  color: var(--green-dark);
}

.tax-deductible-notice {
  margin: 1rem 0 0.4rem;
  padding: 0.55rem 0.9rem;
  background: linear-gradient(to right, #ecfdf5, #fffbeb);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.standalone-note {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

.donation-qr-wrapper {
  text-align: center;
}

.donation-qr {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
}

.donation-caption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-location .address {
  margin: 0.25rem 0;
  font-size: 0.98rem;
}

.map-embed {
  margin-top: 0.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-embed iframe {
  display: block;
  border-radius: var(--radius-lg);
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.7rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--green), var(--green-dark));
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.35);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.map-link:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.45);
}

.site-footer {
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(209, 213, 219, 0.7);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-content {
  text-align: center;
}

.footer-contact {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.footer-contact a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .header-content {
    justify-content: center;
    text-align: center;
  }

  .title-wrapper h1 {
    font-size: 1.4rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .section h2 {
    font-size: 1.2rem;
  }

  .prayer-header {
    justify-content: center;
    text-align: center;
  }

  .prayer-date {
    font-size: 0.8rem;
    width: 100%;
  }

  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 0.5rem 0.35rem;
  }

  .donation-card {
    padding: 1rem;
  }

  .donation-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .donation-list {
    display: inline-block;
    text-align: left;
  }

  .donation-qr-wrapper {
    margin-top: 0.25rem;
  }

  .donation-qr {
    width: 130px;
    height: 130px;
  }

  .tax-deductible-notice {
    font-size: 0.78rem;
    padding: 0.45rem 0.6rem;
  }

  .announcement-track span {
    font-size: 0.78rem;
    padding: 0 2rem;
  }

  .parking-note {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .map-embed iframe {
    height: 200px;
  }

  .map-link {
    margin-top: 0.9rem;
  }

  .section-donation {
    text-align: center;
  }

  .section-location {
    text-align: center;
  }
}

