/* Set the height of the entire page to be at least 100vh */
html,
body {
  height: 100%;
  margin: 0;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(to right, #4a90e2, #1c1c1c);
  background-position: center;
  min-height: 40vh;
  padding: 20px;
  margin-top: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 10px;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
}

.hero-subtext {
  font-size: 1.5rem;
  margin-top: 10px;
}

/* Ensure content takes up the remaining space */
main {
  flex: 1; /* Ensures the content section takes up the remaining height */
  padding-bottom: 2rem; /* Adds some space between content and footer */
}

/* Content Section */
.content-section {
  padding: 40px 0;
}

/* Footer */
.footer {
  background-color: #f1f1f1;
  padding: 10px 0;
  text-align: center;
  margin-top: auto; /* Ensures footer stays at the bottom */
}

.logo-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 10px;
}

/* Navbar Styles */
.navbar {
  position: fixed; /* Make navbar fixed to the top */
  top: 0;
  left: 0; /* Ensure it stays aligned to the left */
  right: 0; /* Ensure it stretches across the full width */
  z-index: 1000;
  background-color: white; /* Ensure background is set */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better visibility */
  padding: 10px 0; /* Optional: Add padding to adjust spacing */
}

.navbar-nav {
  font-size: 1rem;
}

.navbar-nav .nav-link {
  margin-right: 20px;
  color: #555;
}

.navbar-nav .nav-link:hover {
  color: #007bff;
}

/* Ensure dropdowns don't get cut off */
.nav-item.dropdown .dropdown-menu {
  left: 0;
  right: auto;
  position: absolute;
}

/* Align dropdown to the right for larger screens */
@media (min-width: 576px) {
  .nav-item.dropdown .dropdown-menu.dropdown-menu-end {
    left: auto;
    right: 0;
  }
}

#content-area {
  margin-left: 20px;
  padding: 20px;
  border-radius: 5px;
  width: 100%;
  text-align: justify;
}

#content-area img {
  display: block; /* Center image horizontally if block-level */
  margin: 20px auto; /* Center image horizontally and add spacing */
  max-width: 80%; /* Ensure the image fits within the content area */
}

/* Team Section */
.team-container {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping to the next line */
  justify-content: space-between;
  margin-top: 20px;
  gap: 20px;
}

/* Contact Us */

/* General Styling */
.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden; /* Rounded corners for the table */
}

.contact-table th,
.contact-table td {
  padding: 12px 15px;
  text-align: left;
  font-size: 1rem;
  color: #333;
}

.contact-table thead {
  background-color: #335882;
  color: #fff;
  font-weight: bold;
}

.contact-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.contact-table tr:nth-child(odd) {
  background-color: #ffffff;
}

.contact-table th {
  background-color: #335882;
  color: #fff;
}

.contact-table td {
  border-bottom: 1px solid #ddd;
}

.contact-table tr:hover {
  background-color: #f1f1f1; /* Light hover effect */
}

/* Responsive Table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* For mobile or small screen sizes */
@media (max-width: 768px) {
  .contact-table th,
  .contact-table td {
    padding: 10px 8px; /* Smaller padding on mobile */
    font-size: 0.9rem;
  }
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Ensure 3 items in a row */
  gap: 20px;
  margin-top: 20px;
  justify-content: center; /* Center items horizontally */
  justify-items: center; /* Center each item */
}

.gallery figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 90%; /* Adjust width to match image */
  width: fit-content; /* Shrink to content size */
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

/* Styling for captions */
.gallery figcaption {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}

.gallery figcaption strong {
  font-size: 1.2em;
  margin: 10px 0 5px;
  color: #005b96;
}

.gallery figcaption span {
  font-size: 0.9em;
  color: #555;
  margin: 5px 0;
}

/* Responsive Media Queries for Tablets */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row on tablets */
  }
}

/* Responsive Media Queries for Mobile Phones */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(1, 1fr); /* 1 item per row on smaller screens */
  }
}

/* Wrapper for both carousels */
.carousel-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px; /* Optional: adds space between the carousels */
  margin: 40px 0px;
}

.carousel-wrapper-fdp {
  display: flex;
  justify-content: center;
  gap: 20px; /* Optional: adds space between the carousels */
  margin: 40px 0px;
}

.carousel-wrapper-bootcamp {
  display: flex;
  justify-content: center;
  gap: 20px; /* Optional: adds space between the carousels */
  margin: 40px 0px;
}

/* Carousel Style */
.carousel, .carousel-fdp, .carousel-bootcamp {
  position: relative;
  width: 70%; /* 70% width for the carousel */
  max-width: 600px; /* Optional: max width to prevent overflow */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.vertical-carousel {
  position: relative;
  width: 30%; /* 30% width for the vertical carousel */
  max-width: 300px; /* Optional: max width to prevent overflow */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-container, .vertical-carousel-container, .carousel-container-fdp, .carousel-container-bootcamp {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide, .vertical-carousel-slide, .carousel-slide-fdp, .carousel-slide-bootcamp {
  min-width: 100%;
  height: auto;
}

/* Navigation Buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 2vw; /* Scales with screen size */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Button placement */
.prev { left: 2%; }
.next { right: 2%; }

/* Hover Effect */
.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Media Query for Smaller Screens */
@media (max-width: 768px) {
  .prev, .next {
    font-size: 4vw; /* Increase size for better touch interaction */
    width: 40px;
    height: 40px;
    padding: 8px;
  }
  .prev { left: 5px; }
  .next { right: 5px; }
}

@media (max-width: 480px) {
  .prev, .next {
    font-size: 5vw; /* Bigger font size for mobile */
    width: 35px;
    height: 35px;
    padding: 6px;
  }
  .prev { left: 2px; }
  .next { right: 2px; }
}

/* ... other styles ... */

.activity-section {
  margin: 20px 0;
  border-left: 4px solid #007bff;
  padding: 10px; /* Added padding for better spacing */
  position: relative; /* Added position: relative; */
}

.activity-section h3 {
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.activity-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease; /* Only transition max-height */
}

.activity-section.active .activity-content {
  max-height: 500px; /* Expand when active */
  overflow: auto; /* Add scrollbar if needed */
}

/* Add this to make the content area scrollable if needed */
.activity-content {
  overflow-y: auto;
}


/* This is the crucial change: */
.activity-section:hover .activity-content {
  opacity: 1;
  max-height: 500px;
}

