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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  background-color: #2c3e50;
  width: 250px;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  transition: left 0.5s ease-in-out;
  height: 100vh; /* Full height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  z-index: 1000; /* Ensures it's above other content */
  overflow-y: auto;
}

.content {
  margin-left: 250px;
  width: calc(100% - 250px);
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Sidebar elements */
.name {
  font-size: 18px;
  color: white;
  font-weight: bold;
  margin-bottom: 30px;
}

.menu-trigger {
  display: none;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  background-color: #2c3e50;

  color: white;
}

.menu-item {
  margin: 15px 0;
  font-size: 18px;
  color: #ecf0f1;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.menu-item:hover {
  color: white; /* White text on hover */
}

.menu-item.active {
  color: white;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.social-icons {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.social-icons a {
  color: #ecf0f1;
  font-size: 24px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #3498db;
}

.download-icon-boxes {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  gap: 20px;
}

.icon-box {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 30%;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.icon-box:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.icon-box i {
  font-size: 48px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.icon-box h3 {
  font-size: 20px;
  margin: 10px 0;
  color: #2c3e50;
}

.icon-box p {
  color: #555;
  font-size: 16px;
}

.phone {
  color: #ecf0f1;
  font-size: 18px;
  text-align: center;
}

/* Section Styles */
.section {
  min-height: 100vh;
  scroll-margin-top: 0;
}

/* Home Section & Slider */
#home {
  height: 100vh;
  padding: 0 !important;
  overflow: hidden;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

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

.slide-content {
  position: absolute;
  top: 10%;
  left: 10%;
  color: white;
  z-index: 2;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  max-width: 500px;
}

.slide-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 3;
}

.slider-nav-item {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.slider-nav-item.active {
  background-color: white;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 3;
}

.slider-arrow:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.slider-arrow.prev {
  left: 20px;
}

/* Style for Beneficiaries section */
/* Style for Beneficiaries section */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(200px, 1fr)
  ); /* 5 logos per row */
  gap: 20px;
  padding: 20px;
  justify-items: center;
  width: 100%;
}

.logo-box {
  text-align: center;
  background-color: #f4f4f4;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  min-height: 150px; /* Ensure the box has a uniform height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo-box img {
  max-width: 80px; /* Control the logo size */
  max-height: 80px; /* Control the height */
  object-fit: contain;
}

.logo-box p {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
  text-align: center;
}

.slider-arrow.next {
  right: 20px;
}

/* Other Sections */
.section:not(#home):not(.full-map) {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-content {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section:not(#home) h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #2c3e50;
  text-align: center;
}

/* Scrollbar Styling */
.content::-webkit-scrollbar {
  width: 8px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background-color: rgba(155, 155, 155, 0.5);
  border-radius: 20px;
  border: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
    position: absolute;
    left: -200px;
    top: 0;
    bottom: 0;
  }

  .sidebar.open {
    left: 0;
  }

  .menu-trigger {
    display: block;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 50;
  }

  .content {
    margin-left: 0px;
    width: 100%;
  }

  .slide-content {
    left: 5%;
    max-width: 90%;
  }

  .section {
    padding: 25px !important;
  }

  .download-icon-boxes {
    flex-direction: column;
  }
  .icon-box {
    width: 100%;
  }

  .logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

.sidebar-trigger {
  display: none;
}

/* Table Styles */
.table-container {
  width: 100%;
}

.training-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.training-table th,
.training-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.training-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.training-table td {
  background-color: #fafafa;
}

@media (max-width: 768px) {
  .training-table,
  .training-table th,
  .training-table td {
    display: block;
    width: 100%;
  }
}

/* Styling for the Value Adds section */
.value-adds-content {
  font-size: 18px;
  line-height: 1.6;
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
  overflow-y: auto; /* Scroll if content exceeds the section height */
  padding: 20px;
  background-color: #f9f9f9; /* Light background */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.value-adds-content h3 {
  margin-top: 20px;
  color: #2c3e50;
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 images per row */
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 200px; /* Fixed height for uniform grid */
  object-fit: cover;
  border-radius: 8px;
}

.gallery-item p {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  width: 100%;
  text-align: center;
  padding: 10px;
  display: none;
}

.gallery-item:hover p {
  display: block;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* 2 images per row for smaller screens */
  }
}

/* Testimonial Section */
.testimonial-slider {
  width: 100%;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
  border-radius: 8px;
}

.testimonial-slide {
  display: none;
  padding: 20px;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide blockquote {
  font-size: 1.8em;
  font-style: italic;
  color: #555;
  margin: 20px 0;
  line-height: 1.4;
  position: relative;
}

.testimonial-slide blockquote i {
  color: #2c3e50;
  font-size: 1.2em;
}

.testimonial-author {
  font-size: 1em;
  font-weight: bold;
  color: #2c3e50;
  margin-top: 10px;
}

/* Full Page Map and Contact Info */
.full-map {
  position: relative;
  height: 100vh; /* Make it cover the full height of the page */
  padding: 0; /* Remove padding for full coverage */
}

.contact-info {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.info-box i {
  color: #3498db;
  font-size: 20px;
}

.dropdown-header {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 5px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-header:hover {
  background-color: #e9ecef;
}

.dropdown-header::after {
  content: '▼';
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.dropdown-header.active::after {
  transform: rotate(180deg);
}

.dropdown-content {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-top: none;
  padding: 10px 15px;
  display: none;
  margin-bottom: 10px;
  border-radius: 0 0 5px 5px;
}

.dropdown-content p {
  margin: 5px 0;
}