@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-ExtraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: 'Petrona';
  src: url('../fonts/Petrona-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
}

:root {
  --primary-color: #388e3c;
  --secondary-color: #2e7d32;
  --background-color: #f7f7f7;
  --text-font: 'Petrona', Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--text-font);
  background: var(--background-color);
  color: #222;
}
header {
  background: white;
  color: #fff;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 1.7rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #000000;
}
.logo svg {
  height: 60px;
  width: 60px;
  margin-right: 20px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
nav a {
  color: #000000;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover {
  color: #465546;
}
.banner {
  position: relative;
  width: 100%;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('../assets/banner.jpeg') center center/cover no-repeat;
}
.carousel-container {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 49, 63, 0.45);
}
.carousel-text {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  max-width: 700px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  animation: fadeIn 1s;
  min-height: 60px;
  padding: 0 1rem;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}
.main-section {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}
.main-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1.2rem;
  text-align: center;
  letter-spacing: 1px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Force a 2x2 layout for the combined events section */
.tiles.two-col {
  grid-template-columns: repeat(2, 1fr);
}
.tile {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(46,125,50,0.08);
  padding: 1.5rem 1.2rem 2rem 1.2rem; /* Added extra bottom padding */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  border-left: 5px solid var(--primary-color);
  margin-bottom: 1.5rem; /* Add space below each tile */
}
.tile:hover {
  transform: translateY(-6px) scale(1);
  box-shadow: 0 6px 24px rgba(46,125,50,0.13);
}
.tile-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.tile-date {
  font-size: 0.95rem;
  color: #757575;
  margin-bottom: 0.7rem;
}
.tile-desc {
  font-size: 1.05rem;
  color: #333;
  flex: 1;
}
footer {
  background: #263238;
  color: #cfd8dc;
  padding: 2rem 0 1rem 0;
  text-align: center;
  font-size: 1rem;
  margin-top: 3rem;
}
.footer-links {
  margin-bottom: 0.7rem;
}
.footer-links a {
  color: #a5d6a7;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .banner {
    height: 220px;
  }
  .carousel-text {
    font-size: 1.2rem;
  }
  .events-title {
    font-size: 1.3rem;
  }
  .tiles.two-col {
    grid-template-columns: 1fr;
  }
}

/* Header logo image spacing */
.logo img {
  margin-right: 10px;
}

/* Nav item padding */
nav ul li {
  padding-left: 0.5em;
}

/* Burger menu styles (moved from inline) */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.burger-bar {
  width: 28px;
  height: 4px;
  background-color: #333;
  margin: 4px 0;
  border-radius: 2px;
  display: block;
  transition: 0.3s;
}

@media (max-width: 900px) {
  .navbar nav ul {
    flex-direction: column;
  }
  .navbar nav ul li {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .burger-menu {
    display: flex !important;
  }
  .navbar nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 100;
  }
  .navbar nav.open {
    display: block;
    animation: fadeIn 0.2s;
  }
  .navbar nav ul {
    flex-direction: column;
    margin: 0;
    padding: 0.5em 0;
  }
  .navbar nav ul li {
    width: 180px;
    text-align: left;
    padding: 0.5em 1em !important;
  }
}

@media (max-width: 600px) {
  .navbar nav {
    top: 60px;
    right: 5px;
  }
  .logo img {
    height: 60px !important;
  }
}

/* Custom two-column grid overrides (moved from inline) */
.tiles.two-col.custom-grid {
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  grid-template-rows: auto auto auto;
}
.tile.events-feed {
  grid-row: 1 / span 3;
  grid-column: 1 / 2;
}

@media (max-width: 900px) {
  .tiles.two-col.custom-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
  }
  .tile.events-feed,
  .tile {
    grid-row: auto !important;
    grid-column: auto !important;
  }
}

@media (max-width: 600px) {
  .tiles.two-col.custom-grid {
    gap: 1em !important;
  }
  .tile-title {
    font-size: 1.1em;
  }
  .tile-desc,
  .events-list {
    font-size: 0.98em;
  }
}

/* Events list spacing */
.events-list li {
  margin-bottom: 1.5em;
}

/* Gallery styles (moved from inline) */
.gallery-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.gallery-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 1px;
}
.gallery-description {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.photo-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}
.slider-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}
.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}
.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.slide img:hover {
  transform: scale(1.02);
}
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
}
.slider-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }
.slider-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}
.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.indicator.active {
  background: var(--primary-color);
  border-color: var(--secondary-color);
  transform: scale(1.2);
}
.indicator:hover { background: var(--secondary-color); }
.photo-counter {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}
.thumbnail-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.thumbnail {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.thumbnail:hover img { transform: scale(1.05); }
.thumbnail.active {
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.2);
}
.back-to-home { text-align: center; margin: 2rem 0; }
.back-to-home a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.back-to-home a:hover { background: var(--secondary-color); transform: translateY(-2px); }

/* Fullscreen Modal Styles */
.fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fullscreen-modal.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}
.fullscreen-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  text-align: center;
}
.fullscreen-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.fullscreen-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 1010;
}
.fullscreen-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.fullscreen-nav.prev { left: 30px; }
.fullscreen-nav.next { right: 30px; }
.fullscreen-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}
.fullscreen-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 1010;
}
.fullscreen-close:hover { background: white; transform: scale(1.1); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.fullscreen-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  z-index: 1010;
}
.fullscreen-zoom {
  position: absolute;
  top: 30px;
  left: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 1010;
}
.fullscreen-zoom:hover { background: white; transform: scale(1.1); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.fullscreen-zoom.zoomed { background: var(--primary-color); color: white; }
.fullscreen-zoom.zoomed:hover { background: var(--secondary-color); }

@media (max-width: 768px) {
  .slider-container { height: 400px; }
  .slider-nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .slider-nav.prev { left: 10px; }
  .slider-nav.next { right: 10px; }
  .thumbnail-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
  .gallery-title { font-size: 2rem; }
}

/* No-photos message */
.no-photos {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  font-size: 1.2rem;
}
