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

/* Layout */
main, section {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Typography */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  font-size: 16px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

/* Images & Videos */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
header {
  background-color: #005f4f;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px 20px;
  background-color: #005f4f;
  color: white;
}

.site-header h1 {
  margin: 0;
  font-size: 1.8rem;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 10px;
  background-color: #005f4f;
}

nav li {
  position: relative;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  display: block;
}

nav a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background-image: url('../assets/images/kamo.jpg');
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  text-align: center;
  color: white;
  background-color: #222;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: #222;
  color: #ddd;
  text-align: center;
  padding: 15px;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* Welcome Marquee */
.welcome-container {
  overflow: hidden;
  white-space: nowrap;
  background-color: #005f4f;
  color: white;
  padding: 10px 0;
}

.welcome-marquee {
  display: inline-block;
  padding-left: 100%;
  animation: scrollLeft 20s linear infinite;
  font-size: 1.1rem;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Events List */
.events-list {
  margin: 20px auto;
  max-width: 800px;
  list-style: none;
  padding: 0 20px;
}

.events-list li {
  background-color: #fff;
  border-left: 5px solid #005f4f;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

.caption {
  font-size: 0.95rem;
  color: #333;
  text-align: center;
  max-width: 90%;
}

/* Resources */
.resource-list {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
  list-style: none;
}

.resource-list li {
  background-color: #fff;
  border-left: 5px solid #005f4f;
  margin-bottom: 15px;
  padding: 12px 15px;
  font-size: 1rem;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.resource-list a {
  text-decoration: none;
  color: #005f4f;
  font-weight: bold;
}

.resource-list a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-section {
  max-width: 700px;
  margin: 30px auto;
  padding: 0 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

.contact-form button {
  background-color: #005f4f;
  color: white;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #004438;
}

/* Mobile Styles */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav a {
    padding: 12px;
    font-size: 1.1rem;
  }

  .hero h2,
  .hero p,
  .welcome-marquee {
    text-align: center;
    padding: 0 15px;
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    width: 100%;
    font-size: 1rem;
  }
}

/* Dropdown submenu */
nav li {
  position: relative;
}

/* Base submenu styles */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #00785e;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 200px;
  border-radius: 4px;
  z-index: 1000;
}

/* Show on hover (desktop only) */
@media (min-width: 769px) {
  .dropdown:hover .submenu {
    display: block;
  }
}

/* Mobile: treat submenu like block inside nav */
@media (max-width: 768px) {
  .dropdown .submenu {
    position: static;
    background-color: #00785e;
    display: none;
  }

  .dropdown.active .submenu {
    display: block;
  }

  .submenu li a {
    padding-left: 30px;
  }


/*
.submenu {
  display: none;
  position: absolute;
  background-color: #00785e;
  list-style: none;
  padding: 0;
  margin: 0;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 200px;
  border-radius: 4px;
}

.submenu li a {
  display: block;
  padding: 10px 15px;
  font-weight: normal;
  color: white;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: #006350;
}

nav li.dropdown:hover > .submenu {
  display: block;
}
*/
/* Dropdown submenu */
nav ul.main-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 10px 0;
  background-color: #005f4f;
}

nav ul.main-menu li {
  position: relative;
}

nav ul.main-menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  display: block;
}

/* Submenu styling */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #00785e;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 200px;
  border-radius: 4px;
  z-index: 1000;
}

.submenu li a {
  padding: 10px 15px;
  font-weight: normal;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: #006350;
}

/* Show submenu on hover */
.dropdown:hover .submenu {
  display: block;
}



/* Active page highlighting */
nav a.active {
  background-color: #003f38;
  border-radius: 4px;
}

/* Mobile dropdowns always open */
@media (max-width: 768px) {
  nav ul.main-menu {
    flex-direction: column;
    align-items: center;
  }

  .submenu {
    position: static;
    display: block;
    background-color: transparent;
  }

  .submenu li a {
    background-color: #00785e;
    margin-top: 2px;
  }
}

details {
  margin: 20px 0;
  padding: 10px;
  background: #f9f9f9;
  border-left: 4px solid #005f4f;
  border-radius: 4px;
  cursor: pointer;
}

details summary {
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  margin-bottom: 10px;
}

details[open] {
  background: #eefef5;
}
}

/* Prevent image and video drag or selection */
img, video {
  -webkit-user-drag: none;
  user-select: none;
}

/* Optional overlay to block easy right-clicking */
.image-wrapper {
  position: relative;
  display: inline-block;
}
.image-wrapper .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: transparent;
  z-index: 2;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Fade Animation */
.carousel-slide.fade.active {
  animation: fadeIn 8s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* Zoom Animation */
.carousel-slide.zoom.active {
  animation: zoomIn 8s ease-in-out;
}

@keyframes zoomIn {
  0% { transform: scale(1); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: scale(1.05); }
  90% { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* Slide Left Animation */
.carousel-slide.slide-left.active {
  animation: slideLeft 8s ease-in-out;
}

@keyframes slideLeft {
  0% { transform: translateX(100%); opacity: 0; }
  10% { transform: translateX(0); opacity: 1; }
  90% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-100%); opacity: 0; }
}

.info-section {
  display: flex;
  flex-wrap: wrap;
  padding: 40px 20px;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.info-section.reverse {
  flex-direction: row-reverse;
}

.info-image {
  flex: 1 1 300px;
  text-align: center;
}

.info-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.info-text {
  flex: 1 1 300px;
}

.info-text h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.info-text p {
  font-size: 1rem;
  line-height: 1.6;
}

.hero-carousel.static-first {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.static-hero {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
}

.static-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.static-hero .hero-text {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  text-align: center;
  white-space: nowrap;
}


/* Hide animated slides initially */
.hero-carousel .carousel-slide {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-carousel .carousel-slide.active {
  opacity: 1;
  z-index: 3;
}

.hero-marquee {
  position: absolute;
  bottom: 20%;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 20s linear infinite;
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

@keyframes scroll-left {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}
