:root {
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --ink: #2a211c;
  --muted: #6c5c4f;
  --saffron: #d17b1f;
  --maroon: #701313;
  --maroon-deep: #4d0d0d;
  --gold: #f2c86f;
  --line: #eadbc3;
  --shadow: 0 14px 36px rgba(56, 27, 8, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -120px, #ffe6b8 0%, transparent 55%),
    linear-gradient(180deg, #fbf8f2 0%, #f6f1e8 55%, #efe5d6 100%);
  min-height: 100vh;
}

.site-header {
  text-align: center;
  color: #fff9ef;
  padding: 30px 16px 22px;
  background: linear-gradient(
    130deg,
    rgba(112, 19, 19, 0.98) 5%,
    rgba(176, 80, 9, 0.95) 62%,
    rgba(236, 176, 88, 0.92) 100%
  );
  position: relative;
  overflow: hidden;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.25;
  pointer-events: none;
}

.site-header::before {
  width: 360px;
  height: 360px;
  background: #ffd37f;
  top: -260px;
  right: -90px;
}

.site-header::after {
  width: 320px;
  height: 320px;
  background: #5a0e0e;
  bottom: -240px;
  left: -120px;
}

.site-header h1 {
  position: relative;
  font-family: "Cinzel", serif;
  font-size: clamp(1.35rem, 2.9vw, 2.3rem);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.tagline,
.address {
  position: relative;
  z-index: 1;
}

.tagline {
  font-size: 0.95rem;
  opacity: 0.94;
}

.address {
  margin-top: 7px;
  font-size: 0.88rem;
  opacity: 0.9;
}

nav {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(77, 13, 13, 0.93);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 235, 204, 0.18);
}

nav a {
  color: #ffe5b0;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border: 1px solid rgba(255, 215, 137, 0.35);
  border-radius: 999px;
  transition: all 0.25s ease;
}

nav a:hover {
  color: #fff;
  background: rgba(255, 209, 136, 0.2);
  border-color: rgba(255, 224, 173, 0.8);
  transform: translateY(-1px);
}

.hero {
  margin: 18px auto 0;
  width: min(1160px, calc(100% - 28px));
  min-height: 350px;
  border-radius: 24px;
  padding: 72px 22px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(25, 12, 4, 0.8), rgba(25, 12, 4, 0.45)),
    url("hall/Type C/bhp1.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.hero h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  letter-spacing: 0.02em;
}

.hero p {
  margin: 14px auto 0;
  max-width: 760px;
  line-height: 1.75;
  font-size: 1.03rem;
  color: #fef6e7;
}

.content-section {
  width: min(1120px, calc(100% - 28px));
  margin: 34px auto;
  background: linear-gradient(180deg, #fffefb 0%, #fffaf2 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 18px;
  box-shadow: 0 4px 20px rgba(58, 27, 6, 0.05);
}

section h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.2rem, 2.7vw, 1.9rem);
  color: var(--maroon);
  margin-bottom: 10px;
}

.divider {
  color: var(--saffron);
  letter-spacing: 8px;
  font-size: 1rem;
  margin-bottom: 22px;
}

.section-copy {
  max-width: 820px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 20px;
}

.hours-table,
.events-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(67, 26, 5, 0.1);
}

.hours-table thead,
.events-table thead {
  background: linear-gradient(90deg, var(--maroon) 0%, #8f2315 100%);
  color: #fff;
}

.hours-table th,
.events-table th {
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 13px 16px;
}

.hours-table td,
.events-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0e5d4;
}

.hours-table tbody tr:nth-child(odd),
.events-table tbody tr:nth-child(odd) {
  background: #fffcf6;
}

.hours-table tbody tr:nth-child(even),
.events-table tbody tr:nth-child(even) {
  background: #fff8ed;
}

.hours-table tbody tr:hover,
.events-table tbody tr:hover {
  background: #fff0d7;
}

.hours-table td:first-child,
.events-table td:first-child {
  font-weight: 700;
  color: var(--maroon-deep);
}

.hours-table .highlight-row td {
  background: #ffe9c7;
}

.events-table td:last-child {
  white-space: nowrap;
  color: #624d3f;
}

.badge,
.next-badge,
.upcoming-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
  margin-left: 8px;
  padding: 4px 8px;
}

.badge,
.next-badge {
  background: var(--saffron);
}

.upcoming-badge {
  background: #2d8f3b;
}

.no-events {
  background: #fff4de;
  border: 1px dashed #e8b867;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #805f37;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.gallery-tab {
  border: 1px solid #d7b278;
  background: #fff4df;
  color: #662012;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.gallery-tab:hover {
  transform: translateY(-1px);
  background: #ffe7c2;
}

.gallery-tab.active {
  background: linear-gradient(90deg, #8f2618, #bb5717);
  border-color: #8f2618;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 11px;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease;
}

.gallery-thumb:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--saffron);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  background: rgba(13, 7, 4, 0.92);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: 12px;
  border: 2px solid #f2d29b;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.5);
}

.lb-close,
.lb-prev,
.lb-next {
  border: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.lb-close {
  position: fixed;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.9rem;
  line-height: 1;
}

.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 64px;
  border-radius: 8px;
  font-size: 2rem;
}

.lb-prev {
  left: 14px;
}

.lb-next {
  right: 14px;
}

.info-box {
  background: #fff5e4;
  border: 1px solid #ebc894;
  border-radius: 14px;
  padding: 20px;
  line-height: 1.95;
  color: #533b2c;
}

.info-box strong {
  font-family: "Cinzel", serif;
  color: #5f0f0f;
}

.info-box a {
  color: #7f250f;
  font-weight: 700;
  text-decoration: none;
}

.info-box a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 30px;
  padding: 28px 16px;
  text-align: center;
  color: #f7e8cc;
  background: linear-gradient(160deg, #4d0d0d 0%, #7d2510 58%, #a6461a 100%);
}

footer p {
  margin: 4px 0;
}

@media (max-width: 800px) {
  .hero {
    min-height: 280px;
    padding: 58px 16px;
    background:
      linear-gradient(120deg, rgba(20, 10, 3, 0.85), rgba(20, 10, 3, 0.55)),
      url("hall/Type C/bhp1.jpg") center/cover no-repeat;
  }

  .content-section {
    padding: 22px 14px;
  }

  .hours-table,
  .events-table {
    font-size: 0.88rem;
  }

  .hours-table td,
  .events-table td,
  .hours-table th,
  .events-table th {
    padding: 10px 10px;
  }
}
