/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: transparent;
    color: #000;
    padding: 5px 0;
}



.logo {
  line-height: 1;         /* keep the line tight */
  display: flex;          /* aligns items nicely */
  align-items: center;    /* vertical centering */
}

.logo .elephant {
  height: 1.2em;          /* scale to text height */
  width: auto;            /* preserve aspect ratio */
  object-fit: contain;    /* ensures no distortion */
  vertical-align: middle; /* for inline fallback */
}

.small-text {
    font-size: 20px; /* Change the size as needed */
    padding: 5px;
  }
nav {
    margin-left: auto;
}

nav ul.desktop-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul.desktop-menu li {
    margin-left: 55px;
}

nav ul.desktop-menu li a {
    color: #000;
    text-decoration: none;
    padding: 5px 10px;
}

.container {
   font-family: 'Staatliches', sans-serif;
      font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a2d4d;


    
    background-color: #f4f4f4; /* Gray background color */
    padding: 10px; /* Add padding for spacing inside the gray box */
    border-radius: 5px; /* Optional: Add rounded corners */
}

.containerPoaching{
    width: 80%;
    margin: auto;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
}

.container0{
    width: 80%;
    height: 80px;
    margin: auto;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
}



.mobile-menu-toggle {
    display: flex; /* Display flex to arrange bars horizontally */
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px; /* Adjust padding as needed */
    position: absolute;
    right: -20px; /* Adjust the right position */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for vertical centering */
}

.mobile-menu-toggle .bar {
    display: none; /* Inline-block to keep elements in a line */
    width: 25px; /* Width of each bar */
    height: 3px; /* Height of each bar */
    background-color: #000; /* Color of each bar */
    margin-right: 5px; /* Spacing between bars */
}

.mobile-menu-toggle .bar:last-child {
    margin-right: 0; /* Remove margin from the last bar */
}




.mobile-menu {
    display: none; /* Hide the mobile menu initially */
    list-style: none;
    margin: 0;
    padding: 10px 0;
    background-color: #f4f4f4;
    position: absolute;
    top: 60px; /* Adjust as needed */
    right: 0;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 10; /* Ensure the menu appears above other content */
}

.mobile-menu li {
    text-align: center;
    margin-bottom: 10px;
}

.mobile-menu li a {
    color: #000;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
}

/* Media query for mobile */
@media screen and (max-width: 480px) {
    .desktop-menu {
        display: block; /* Hide the desktop menu on small screens */
        opacity: 0;
    }
    
    .container0 {
        display: flex; /* Use flexbox for better alignment control */
        justify-content: flex-start; /* Adjust alignment for smaller screens */
        width: 100%; /* Ensure container uses full width of the screen */
        padding: 0 10px; /* Add some padding to prevent overflow */
    }
    
    .mobile-menu-toggle {
        display: flex; /* Show the mobile menu toggle button on small screens */
        justify-content: center;
        align-items: center;
        background: #ccc;
        height: 35px; /* Maintain button size for better usability */
        width: 35px; /* Ensure toggle size is fixed */
        cursor: pointer;
        position: relative;
        z-index: 100; /* Ensure the toggle button is above other content */
    }
    
    .mobile-menu-toggle .bar {
        display: inline-block; /* Inline-block to keep elements in a line */
        width: 25px; /* Width of each bar */
        height: 15px; /* Height of each bar */
        background-color: #000; /* Color of each bar */
        margin-right: 5px; /* Spacing between bars */
    }
    
    .mobile-menu {
        display: none; /* Hide the mobile menu on small screens initially */
        position: absolute;
        top: 60px; /* Adjust as needed */
        right: 10px; /* Make sure it's within the viewport */
        width: 100%; /* Set width to 100% to avoid overflow */
        max-width: 200px; /* Limit max width */
        background-color: #f4f4f4;
        z-index: 10; /* Ensure the menu appears above other content */
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Smooth transition for visibility */
        opacity: 0;
        transform: translateY(-10px); /* Start slightly above to slide down */
    }
    
    .mobile-menu.active {
        display: block; /* Show the mobile menu when active */
        opacity: 1;
        transform: translateY(0); /* Slide down to its position */
    }
    
    .mobile-menu li {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .mobile-menu li a {
        display: block;
        padding: 10px;
        color: #000;
        text-decoration: none;
    }
}



/* Additional CSS */
header h1 {
    margin: 0;
    display: flex;
    align-items: center;
    background-color: #6b8e23; /* Swamp green background */
    padding: 10px; /* Add some padding for spacing */
    border-radius: 5px; /* Optional: Add rounded corners */
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
}

header h1 .elephant {
    width: 30px;
    height: auto;
    margin: 0 10px;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    padding: 5px 10px;
    position: relative;
}

nav ul li a:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ccc; /* Gray background color */
    z-index: -1; /* Ensure the background appears behind the text */
}

.hero {
    background: #f4f4f4;
    padding: 20px 0;
    text-align: center;
}

.hero h2 {
    margin: 0;
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
}

.carousel {
    position: relative;
    margin: 20px auto;
    max-width: 800px;
}

.carousel-inner {
    display: flex;
    overflow: hidden;
    position: relative;
}

.carousel-item {
    min-width: 100%;
    transition: opacity 0.5s ease;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
}

.carousel-item img {
    width: 100%;
    border: 2px solid #333;
}

.carousel-control-prev, .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.content {
    padding: 20px 0;
}

.content h2 {
    text-align: center;
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
}

.link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    color: #6b8e23;
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
    font-size: 15px;
}

.link:hover {
    text-decoration: underline; /* Add underline on hover if desired */ 
}

footer {
    background-color: #6b8e23;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form label, form input, form button {
    margin: 5px 0;
}

.photo-deck .carousel-item {
    /* Styles specific to the carousel items within the photo-deck section */
    min-width: 100%;
    transition: opacity 0.5s ease;
    opacity: 1; /* Set opacity to 1 initially to ensure images are visible */
    position: relative; /* Use relative positioning */
    top: auto; /* Reset top property */
    left: auto; /* Reset left property */
}

.photo-deck .carousel-item.active {
    opacity: 1; /* Ensure active images are visible */
}

.photo-deck .carousel-item img {
    width: 100%;
    border: 2px solid #333;
}

.photo-deck {
    position: relative; /* Ensure proper positioning of the carousel and the gray box */
}

.gallery-heading-container {

     font-family: 'Staatliches', sans-serif;
      font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a2d4d;


    
    background-color: #f4f4f4; /* Gray background color */
    padding: 10px; /* Add padding for spacing inside the gray box */
    border-radius: 5px; /* Optional: Add rounded corners */
    
}

/* Additional Content Section */
#additional-content {
    padding: 40px 0;
    background-color: #e9e9e9;
}

/* Desktop styles for map and surrounding boxes */
.map {
    display: block;
    margin: 20px auto;
    max-width: 2000px;
    height: 2000px;
    border: 2px solid #333;
}

.map-key-info-container {
    position: relative;
}

.MonthYear-box {
    width: 100px;
    height: 30px;
    font-size: 25px;
    border-radius: 5px;
    font-family: 'Staatliches', Arial, sans-serif;
    position: absolute;
    left: 70px;
    top: -70px;
}

.key-box {
    width: 200px;
    height: 200px;
    padding: 10px;
    font-family: 'Staatliches', Arial, sans-serif;
    font-size: 30px;
    position: absolute;
    left: 150px;
    top: 150px;
}

.key-box img {
    width: 100%; /* Adjust width of the image */
    height: auto; /* Maintain aspect ratio */
}

.info-boxes-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 30px;
    right: 150px;
}

.info-box {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 30px;
    color: #555;
}

.smaller-text, .smaller-text2 {
    font-size: 25px;
    position: relative;
}

/* Mobile styles for map and surrounding boxes */
@media (max-width: 1284px) {
    .map {
        width: 100%;
        height: auto;
    }
    
    .MonthYear-box, .key-box, .info-boxes-container {
        position: static;
        margin: 10px auto;
        width: 100%;
        text-align: center;
    }
    
    .key-box {
        width: 90%;
        height: auto;
        margin: 10px 0;
    }
    
    .info-boxes-container {
        flex-direction: column;
        align-items: center;
    }
    
    .info-box {
        width: 90%;
        height: auto;
        margin: 10px 0;
    }
}

/* Adjustments for take action links section */
#take-action-links .container1 {
    text-align: center;
    margin-top: 20px; /* Adjust the top margin as needed */
}

#take-action-links .image-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

#take-action-links .image-links a {
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px; /* Adjust width if necessary */
}

#take-action-links .image-links img {
    width: 100%;
    height: auto;
    border: 2px solid #333;
}

#take-action-links .image-links p {
    margin-top: 10px;
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Default (desktop/tablet) — show everything normally */
.containerPoaching .poaching {
  display: block;
}

/* Desktop/tablet — always visible */
.containerPoaching .poaching {
  display: block;
}

/* Mobile styles for map and surrounding boxes */
@media (max-width: 1284px) {
    .map {
        width: 100%;
        height: auto;
    }
    
    .MonthYear-box, .key-box, .info-boxes-container {
        position: static;
        margin: 10px auto;
        width: 100%;
        text-align: center;
    }
    
    .key-box {
        width: 90%;
        height: auto;
        margin: 10px 0;
    }
    
    .info-boxes-container {
        flex-direction: column;
        align-items: center;
    }
    
    .info-box {
        width: 90%;
        height: auto;
        margin: 10px 0;
    }
}

/* Adjustments for take action links section */
#take-action-links .container1 {
    text-align: center;
    margin-top: 20px; /* Adjust the top margin as needed */
}

#take-action-links .image-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

#take-action-links .image-links a {
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px; /* Adjust width if necessary */
}

#take-action-links .image-links img {
    width: 100%;
    height: auto;
    border: 2px solid #333;
}

#take-action-links .image-links p {
    margin-top: 10px;
    font-family: Arial, sans-serif;
    text-align: center;
}



/* Mobile styles for take action links section */
@media (max-width: 1284px) {
    #Poaching .containerPoaching {
        flex-direction: column;
        align-items: center;
    }

    #Poaching .containerPoaching a {
        width: 90%; /* Adjust width for mobile view */
        margin: 10px 0; /* Adjust margin for mobile view */
    }

    .poaching {
        display: none;
    }

    .link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    color: #ffffff;
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
    font-size: 15px;
    }

    .containerPoaching {
        position: relative;
       
        background-size: cover; /* Ensure the background image covers the full section */
        background-position: center; /* Center the background image */
        display: flex;
        justify-content: center; /* Center the text horizontally */
        align-items: center; /* Center the text vertically */
        text-align: center; /* Center the text inside the container */
        padding: 30px 10px; /* Optional: Adds padding around the content */
    }

    /* Specific background images for each container */
    #elephants {
        background-image: url('BlackBox.png'); /* Replace with your image */
        background-size: 100%; /* Ensures the image covers the entire background */
        margin-bottom: 20px ;
    }

    #national-parks {
        background-image: url('BlackBox.png'); /* Replace with your image */
        margin-bottom: 20px ;
    }

    #anglophone {
        background-image: url('BlackBox.png'); /* Replace with your image */
        margin-bottom: 20px ;
    }

    #trafficking {
        background-image: url('BlackBox.png'); /* Replace with your image */
        margin-bottom: 20px ;
    }

    #projects {
        background-image: url('BlackBox.png'); /* Replace with your image */
         margin-bottom: 20px ;
    }

    #resources {
        background-image: url('BlackBox.png'); /* Replace with your image */
    }

      #front {
        background-image: url('MtCamProject.jpg'); /* Replace with your image */
         margin-top: 20px ;
          margin-bottom: 20px ;
           width: 90%; /* Adjust width for mobile view */
        margin: 100px 100; /* Adjust margin for mobile view */
    }



    #elephants h2 {
        color: #ffffff; /* Blue for Anglophone */
        font-size: 35px;
        background: rgb(0, 0, 0);
           display: inline-block; /* shrink box to fit words */
       padding: 0.2em 0.4em;  /* tight padding around text */
    }

    #projects h2 {
        color: #ffffff; /* Blue for Anglophone */
        font-size: 35px;
        background: rgb(0, 0, 0);
           display: inline-block; /* shrink box to fit words */
      padding: 0.2em 0.4em;  /* tight padding around text */
    }

    #trafficking h2 {
        color: #ffffff; /* Blue for Anglophone */
        font-size: 35px;
        background: rgb(0, 0, 0);
           display: inline-block; /* shrink box to fit words */
      padding: 0.2em 0.4em;  /* tight padding around text */
    }

    #anglophone h2 {
        color: #ffffff; /* Blue for Anglophone */
        font-size: 35px;
        background: rgb(0, 0, 0);
           display: inline-block; /* shrink box to fit words */
       padding: 0.2em 0.4em;  /* tight padding around text */
    }

    #resources h2 {
        color: #ffffff; /* Blue for Anglophone */
        font-size: 35px;
        background: rgb(0, 0, 0);
         display: inline-block; /* shrink box to fit words */
       padding: 0.2em 0.4em;  /* tight padding around text */
        
    }

    #national-parks h2 {
        color: #ffffff; /* Blue for Anglophone */
        font-size: 35px;
    }

    

    
}






/* Main container styling */
.container6 {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Headings */
.container6 h3 {
    font-family: 'Staatliches', sans-serif;
      font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a2d4d;
}

section p {
    font-family: 'Staatliches', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 30px;
    font-weight: bold;
    color: #555;
    font-style: italic;

}

 
 

/* Images */
.container6 img {
    max-width: 100%;
    height: auto;
    display: block;

    border-radius: 8px;
}

/* Optional: style images that float to the right (if needed) */
.about-img-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    max-width: 100%;
}

.container6::after {
    content: "";
    display: table;
    clear: both;
}

.image-with-caption {
  display: inline-block; /* Keeps image and caption together */
  text-align: center;     /* Center the caption under the image */
  margin-bottom: 20px;    /* Adds spacing after each image block */
}

.image-with-caption img {
  display: block;         /* Removes extra space under image */
}

.about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.about-row.reverse {
  flex-direction: row-reverse;
}

.about-text, .about-image {
  flex: 1;
  padding: 20px;
}

/* Base image styling */
.about-image img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
  position: relative;
  border-radius: 8px;
}

/* When active (clicked) */
.about-image img.enlarged {
  transform: scale(1.5);
  z-index: 10;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}


.caption {
  font-style: italic;
  font-size: 0.9em;
  margin-top: 10px;
  color: #555;
}

.about-text {
  background-color: #d6b57fdf; /* light gray, change to any color you like */
  padding: 10px;
  border-radius: 8px; /* optional: rounded corners */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* optional: soft shadow */
}





/* Responsive: stack floated images on smaller screens */
@media screen and (max-width: 768px) {
    .about-img-right {
        float: none;
        display: block;
        margin: 20px auto;
        max-width: 100%;
    }

    .container6 h3 {
        font-size: 1.5em;
         font-weight: 700; /* <-- Thicker heading */
    }

    .container6 p {
        font-size: 1rem;
         font-weight: 500; /* <-- Thicker heading */
    }
}

/* Make text and image stack vertically on small screens */
@media (max-width: 768px) {
  .about-row,
  .about-row.reverse {
    flex-direction: column; /* stack vertically */
    text-align: center; /* optional: centers text on mobile */
  }

  .about-text,
  .about-image {
    width: 90%; /* ensures full width on mobile */
  }

  .about-image img {
    width: 100%;
    height: auto;
  }
}







