/* Remove default body and html margin/padding */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif; /* Ensures consistent font */
}

.nav {
  background-color: #333;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 65px; /* Set fixed height */
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-shadow: 0px 10px 5px rgba(41, 36, 72, 0.418);
}

.nav h1 {
  font-size: 40px;
  color: rgba(240, 240, 240, 0.8);
  padding-left: 30px;
  line-height: 1;           /* Prevents extra vertical spacing */
  margin: 0;                /* Remove default margin */
}

.nav-links {
  display: flex;
  align-items: center;
  height: 100%;             /* So children align to nav bar height */
}

.nav-links a {
  color: #f2f2f2;
  text-align: center;
  text-decoration: none;
  padding: 17px 25px;
  font-size: 20px;
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  height: 100%;             /* Match parent height */
  display: flex;
  align-items: center;
}

/* Change the color of links on hover */
.nav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add a color to the active/current link */
.nav a.active {
  background-color: #478316;
  color: white;
}


/* Header font */

.roboto-slab {
  font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Body font */

.tajawal-light {
  font-family: "Tajawal", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.tajawal-regular {
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.tajawal-bold {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-style: normal;
}


h1 {
  font-family: "Roboto Slab";
}

h1 span {
  position: relative;
  z-index: 1;
}

h1 span::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -15px;
  right: -15px;
  background-color: #478316;
  transform: skew(-15deg);
  z-index: -1;
}


body {
  margin: 0;
  background-color: #fff;
}

.flicksindex {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
    padding: 20px;
}

p {
  font-family: "Tajawal", sans-serif;
  font-size: 20px;
}


.IndexP {
    background: rgba(190, 190, 190, 0.8);
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
    border-radius: 10px;
    width: 75%;
    font-size: 1.2em;
    line-height: 1.6;
    margin-top: 20px;
    margin-bottom: 40px;
}

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
  z-index: 3;
  max-height: 500px; /* Adjust this value as needed */
  overflow: hidden;
  background-color: black;
}

/* Make sure images inside slides scale correctly */
.mySlides img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px; /* Same as container height */
}

/* Hide the images by default */
.mySlides {
  display: none;
  background-color: black;
}

/* 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;
}

/* Position the "next button" to the right */
.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: #40ACC7;
}

/* 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: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  margin-bottom: 30px;
}

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

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

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-family: "Roboto Slab";
  margin-top: 20px;
  margin-bottom: 50px; /* Added space between buttons and footer */
}

.button-container a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 175px;
  height: 75px;
  background: white;
  color: black;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
  border: 5px solid #195688;
  text-align: center;
  padding: 10px;
}

.button-container a:hover {
  background: #195688;
  color: white;
}


body h1 {
  color: white;
  font-size: 46px;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(221, 221, 221, 0.8);
}

footer img {
  padding: 10px;
  max-width: 25%;
}

@media screen and (max-width: 768px) {
  .nav {
    flex-direction: column;
    height: auto;
    padding-bottom: 10px;
  }

  .nav h1 {
    font-size: 32px;
    padding-left: 0;
    padding-top: 10px;
    text-align: center;
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .nav-links a {
    padding: 12px 15px;
    font-size: 18px;
    height: auto;
  }

  .flicksindex {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .IndexP {
    width: 90%;
    padding: 20px;
    font-size: 1em;
  }

  .button-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 10px;
    max-width: 70%;
    margin: 0 auto;
    padding-bottom: 50px;      
  }
  
  .button-container a {
    width: 90%;
    height: 60px;
    font-size: 1.2em;
    text-align: center;
  }
  .slideshow-container {
    width: 100%;
  }

  footer {
    display: flex;
    flex-direction: column;  
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(221, 221, 221, 0.8);
    text-align: center;
  }
  
  footer img {
    margin-top: 10px;
    max-width: 80%; 
    height: auto;
  }
  
}
