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

body {
  font-family: 'Georgia', serif;
  background: #f6f5d6;
  color: #2c2c2c;
  line-height: 1.7;
}

/* Colour palette — deep green on warm cream
   Text/headings: #3d5a3e (deep forest green)
   Accents:       #5a7a5b (muted sage)
   Page bg:       #f6f5d6 (warm cream — from original site)
   Hero/nav bg:   #edecc4 (slightly deeper warm cream)
   Alt sections:  #efeed0 (midpoint between bg and hero)
   Dark accents:  #2c3a2d (near-black green)
*/

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(237, 236, 196, 0.95);
  border-bottom: 1px solid #d8d7a8;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 3rem;
  filter: brightness(0) saturate(100%) invert(31%) sepia(15%) saturate(1000%) hue-rotate(80deg) brightness(95%) contrast(90%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: #5a7a5b;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.nav-links a:hover,
.nav-links a.active {
  color: #3d5a3e;
}

.lang-toggle {
  background: none;
  border: 1px solid #5a7a5b;
  color: #5a7a5b;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  font-family: inherit;
}

.lang-toggle:hover {
  border-color: #3d5a3e;
  color: #3d5a3e;
}

/* Hero */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: #edecc4;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-bg-img.active {
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  height: 10rem;
  margin-bottom: 2rem;
  filter: brightness(0) saturate(100%) invert(31%) sepia(15%) saturate(1000%) hue-rotate(80deg) brightness(95%) contrast(90%);
}

.hero .subtitle {
  font-size: 1.4rem;
  color: #5a7a5b;
  font-style: italic;
  margin-bottom: 2.5rem;
}

.hero-message {
  font-size: 1.15rem;
  color: #3d5a3e;
  max-width: 500px;
  letter-spacing: 0.02em;
}

/* Page header (events page) */
.page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: #edecc4;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #3d5a3e;
}

/* Sections */
.section {
  padding: 5rem 2rem;
}

.section-alt {
  background: #efeed0;
}

.section-inner {
  max-width: 700px;
  margin: 0 auto;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
  text-align: center;
  color: #3d5a3e;
}

.section h3 {
  font-size: 1.15rem;
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #3d5a3e;
}

.section-content p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

/* Honeypot field — hidden from real users, bots fill it */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Inline photos (in-flow within sections) */
.inline-photo {
  display: block;
  max-width: 380px;
  width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 4px;
}

/* Image placeholders */
.image-placeholder {
  background: #e6e5bc;
  border: 2px dashed #c8c79a;
  padding: 4rem 2rem;
  text-align: center;
  margin: 2rem 0;
  color: #8a8960;
  font-style: italic;
  font-size: 0.9rem;
}

/* Lineage link */
.lineage-link {
  font-size: 0.9rem;
  color: #5a7a5b;
  font-style: italic;
}

/* Progression */
.progression {
  margin: 2rem 0;
  text-align: center;
}

.progression-step {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #d8d7a8;
  padding: 1.5rem 2rem;
  text-align: left;
}

.progression-step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #3d5a3e;
}

.progression-arrow {
  font-size: 1.5rem;
  color: #5a7a5b;
  padding: 0.5rem 0;
}

/* Timetable */
.timetable {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 1rem;
  font-size: 0.85rem;
}

.timetable th {
  text-align: center;
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a7a5b;
  padding: 0.6rem 0.5rem;
  border-bottom: 2px solid #3d5a3e;
}

.timetable td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #d8d7a8;
  border-right: 1px solid #e4e3b8;
  text-align: center;
  vertical-align: middle;
}

.timetable td:last-child {
  border-right: none;
}

.timetable td:empty {
  background: none;
}

.tt-time {
  text-align: left !important;
  white-space: nowrap;
  font-size: 0.8rem;
  color: #5a7a5b;
}

.timetable-grid {
  overflow-x: auto;
}

.timetable-list {
  display: none;
}

.timetable-list .timetable td {
  text-align: left;
}

.timetable-list .timetable th {
  text-align: left;
}

.timetable-note {
  font-size: 0.85rem;
  color: #5a7a5b;
  margin-top: 0.5rem;
}

/* Conversion path */
.path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.path-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.path-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid #5a7a5b;
  border-radius: 50%;
  font-size: 0.75rem;
  color: #3d5a3e;
}

.path-step span:last-child {
  font-size: 0.85rem;
  color: #4a4a4a;
}

.path-arrow {
  color: #5a7a5b;
  font-size: 0.9rem;
}

/* Contact form */
.contact-form {
  max-width: 500px;
  margin: 2.5rem auto 0;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #5a7a5b;
  margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #c8c79a;
  background: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 0.95rem;
  color: #2c2c2c;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3d5a3e;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.3rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: #2c2c2c;
  cursor: pointer;
}

.form-submit {
  background: #3d5a3e;
  color: #f6f5d6;
  border: none;
  padding: 0.7rem 2rem;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.form-submit:hover {
  background: #4d6e4f;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status-success {
  color: #3d5a3e;
}

.form-status-error {
  color: #8b3a3a;
}

/* Events */
.event-card {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.event-image {
  flex-shrink: 0;
  width: 280px;
}

.event-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  padding-top: 0.2rem;
}

.event-details .event-date {
  flex-direction: row;
  gap: 0.4rem;
  align-items: baseline;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
  min-height: 2rem;
}

.event-day {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  color: #3d5a3e;
}

.event-month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a7a5b;
}

.event-year {
  font-size: 0.75rem;
  color: #999;
}

.event-details h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.event-meta {
  font-size: 0.85rem;
  color: #5a7a5b;
  margin-bottom: 0.5rem;
}

.event-past {
  opacity: 0.6;
}

/* Shala gallery */
.shala-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.shala-photo {
  display: block;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.shala-photo:hover {
  transform: scale(1.03);
}

.shala-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Past events grid */
.past-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.past-event-thumb {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.past-event-thumb:hover {
  transform: scale(1.03);
}

.past-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Footer */
.site-footer {
  background: #3d5a3e;
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer-location {
  font-size: 0.85rem;
  color: rgba(246, 245, 214, 0.5);
  margin-bottom: 0.3rem;
}

.footer-email {
  margin-bottom: 1rem;
}

.footer-email a {
  font-size: 0.85rem;
  color: rgba(246, 245, 214, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 245, 214, 0.2);
}

.footer-email a:hover {
  color: #f6f5d6;
  border-bottom-color: #f6f5d6;
}

.footer-legal {
  font-size: 0.75rem;
  color: rgba(246, 245, 214, 0.4);
}

.footer-legal a {
  color: rgba(246, 245, 214, 0.4);
  text-decoration: none;
}

.footer-legal a:hover {
  color: rgba(246, 245, 214, 0.7);
}

.footer-sep {
  margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  .nav-inner {
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 8rem 1.5rem 3rem;
  }

  .hero-logo {
    height: 7rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .path {
    flex-direction: column;
  }

  .path-arrow {
    transform: rotate(90deg);
  }

  .event-card {
    flex-direction: column;
    gap: 0.8rem;
  }

  .event-image {
    width: 100%;
  }

  .event-date {
    flex-direction: row;
    gap: 0.5rem;
  }

  .past-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shala-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .timetable-grid {
    display: none;
  }

  .timetable-list {
    display: block;
  }
}
