/* GOOGLE FONT */
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  font-family: "Merriweather", sans-serif;
}

:root {
  --main-color: #359381;
  --dark-main-color: #003329;
  --grey: #333;
}

body {
  background: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===================  NAVBAR =================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.8rem 6.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

header.sticky {
  padding: 1rem 2.2rem;
  background: #000;
}

.logo {
  color: #fff;
  font-size: 2em;
  font-weight: 700;
  pointer-events: none;
}

.navigation {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.navigation a {
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-weight: 600;
  transition: 0.3s;
  position: relative;
}

.navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.navigation a:hover::after,
.navigation a.active::after {
  width: 100%;
}

.navigation a:hover,
.navigation a.active {
  background: #fff;
  color: #000;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* =================== PARALLAX =================== */
.parallax {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.parallax img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

#text {
  position: absolute;
  font-size: 4em;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* =================== SECTION =================== */
.sec {
  position: relative;
  background: var(--dark-main-color);
  padding: 2rem 5%;
}

.sec h2 {
  font-size: 3em;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.sec p {
  text-align: justify;
  font-size: 1em;
  font-weight: 300;
  color: #ffffff;
}

/* =================== NEWS SECTION =================== */
.news-section {
  padding: 2rem 5%;
  background: var(--dark-main-color);
}

.news-title {
  color: #fff;
  margin: 1rem 0 1.5rem 0;
  font-size: 28px;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.news-card {
  background: #111;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #fff;
  transition: 0.3s;
  font-weight: 500;
}

.news-card:hover {
  transform: translateY(-8px);
  background: #1a1a1a;
}

/* =================== SLIDESHOW SECTION =================== */

.slideshow-container {
  max-width: 800px;
  width: 90%;
  max-height: 450px;
  position: relative;
  margin: 2rem auto;
  overflow: hidden;
}

.slideshow-container img {
  width: 100%;
  height: auto; /* maintain aspect ratio */
  object-fit: cover;
  border-radius: 10px;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/*Card Slider*/
.slider-container {
  position: relative;
  max-width: 1100px;
  margin: auto;
  padding: 0 40px;
}

.slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.slider::-webkit-scrollbar {
  display: none;
}

.card {
  min-width: 300px;
  background: black;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
  color: white;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  padding: 10px 15px 0;
}

.card p {
  padding: 10px 15px 20px;
  color: white;
}

.nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: black;
  color: white;
  border: none;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sl-prev {
  left: -20px;
}

.sl-next {
  right: -20px;
}

.site-footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  header {
    padding: 1rem 2rem;
    justify-content: center;
  }

  #text {
    font-size: 4em;
  }

  .sec {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .navigation {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    width: 250px;
    padding: 2rem 1rem;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .navigation.active {
    right: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hamburger.hide {
    display: none;
  }

  #text {
    font-size: 3em;
  }

  .card {
    min-width: 250px;
  }
}

@media (max-width: 480px) {
  header {
    display: flex;
    flex-wrap: nowrap; /* prevent wrapping */
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
  }

  .logo {
    flex: 1; /* logo takes only necessary space */
  }

  .hamburger {
    display: flex;
    cursor: pointer;
    z-index: 1001;
  }

  .navigation {
    position: fixed;
    top: 0;
    right: -100%; /* hidden by default */
    height: 100vh;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    width: 250px;
    padding: 2rem 1rem;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .navigation.active {
    right: 0; /* slide in */
  }

  .card {
    min-width: 220px;
  }

  .site-footer {
    font-size: 12px;
    padding: 12px 8px;
  }
}
