/* ... (all previous CSS styles remain the same) ... */
/* General Reset and Root Variables */
:root {
  --maingreen: #2d5a2d;
  --dark-green: #1a3d1a;
  --secondshade: #4a7c59;
  --accent-yellow: #ffc107;
  --cream: #f7ecd1;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-text: #333333;
  --body-font: 'Open Sans', sans-serif;
  --heading-font: 'Lora', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--dark-text);
  background-color: var(--white);
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--maingreen);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Header and Navigation */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.logo-header h1 {
  font-family: var(--heading-font);
  color: var(--maingreen);
  font-size: 1.2rem;
  line-height: 1.2;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 600;
  padding-bottom: 5px;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  transition: width 0.3s ease;
}

.nav-list a:hover::after, .nav-list a.active::after {
  width: 100%;
}

.btn a {
  background-color: var(--maingreen);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
  transition: background-color 0.3s;
}

.btn a:hover {
  background-color: var(--dark-green);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--maingreen);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/sowa.jpg') no-repeat center center/cover;
  filter: brightness(0.5);
}

.hero-overlay {
  position: relative;
  z-index: 2;
}

.hero-overlay h2 {
  font-size: 3rem;
  font-family: var(--heading-font);
}

/* Video Gallery Section */
.video-gallery-section {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--light-gray);
}

.video-gallery-section h2 {
  font-size: 2.5rem;
  font-family: var(--heading-font);
  margin-bottom: 2rem;
  color: var(--maingreen);
}

.video-search-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

#video-search-bar {
  width: 50%;
  max-width: 500px;
  padding: 0.8rem;
  border: 2px solid #ccc;
  border-radius: 25px 0 0 25px;
  font-size: 1rem;
}

#video-search-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  background-color: var(--maingreen);
  color: white;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  font-size: 1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-thumbnail {
  position: relative;
  display: block;
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 15px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}

.video-thumbnail:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
  padding: 1rem;
  text-align: left;
}

.video-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

/* Image Gallery Section */
.gallery-categories {
  padding: 4rem 2rem;
  text-align: center;
}

.gallery-categories h2 {
  font-size: 2.5rem;
  font-family: var(--heading-font);
  margin-bottom: 2rem;
  color: var(--maingreen);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--maingreen);
  background: transparent;
  color: var(--maingreen);
  cursor: pointer;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--maingreen);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem 4rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--white);
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
}

.gallery-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.general-footer {
  background-color: var(--dark-green);
  color: var(--white);
  padding: 3rem 2rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h2 {
  font-family: var(--heading-font);
  margin-bottom: 1rem;
  color: var(--accent-yellow);
}

.footer-section p, .footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--accent-yellow);
}

.footer-section ul {
  list-style: none;
}

.social-icons a {
  margin-right: 1rem;
  font-size: 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--secondshade);
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--maingreen);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: opacity 0.3s, background-color 0.3s;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background-color: var(--dark-green);
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
      flex-wrap: wrap;
  }

  .nav-toggle {
      display: block;
  }

  .nav-list {
      display: none;
      flex-direction: column;
      width: 100%;
      text-align: center;
      gap: 1rem;
      padding: 1rem 0;
  }

  .nav-list.active {
      display: flex;
  }

  .hero-overlay h2 {
      font-size: 2rem;
  }

  #video-search-bar {
      width: 70%;
  }
}
s
/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--maingreen);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: opacity 0.3s, background-color 0.3s;
  z-index: 999;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background-color: var(--dark-green);
}

/* Video Modal Player */
.video-modal {
  display:none ; /* Hidden by default */
  position: fixed;
  z-index: 1001; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
  align-items: center;
  justify-content: center;
}

.video-modal.show {
  display: flex;
}

.modal-content {
  position: relative;
  background-color: #000;
  margin: auto;
  padding: 0;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.close-modal {
  color: #fff;
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 35px;
  font-weight: bold;
  transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

#modal-video-player {
  display: block;
}


/* Responsive Design */
@media (max-width: 768px) {
  nav {
      flex-wrap: wrap;
  }

  .nav-toggle {
      display: block;
  }

  .nav-list {
      display: none;
      flex-direction: column;
      width: 100%;
      text-align: center;
      gap: 1rem;
      padding: 1rem 0;
  }

  .nav-list.active {
      display: flex;
  }

  .hero-overlay h2 {
      font-size: 2rem;
  }

  #video-search-bar {
      width: 70%;
  }

  .modal-content {
      width: 95%;
  }
}
