/* Hero Banner Section */
.hero-banner {
  position: relative;
  width: 100%;
  height: 60vh; /* Adjusted height */
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Below text but above images */
}

/* Slideshow Container */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 0; /* Ensure the images are beneath the overlay */
}

/* Slide Styling */
.mySlides {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
}

.mySlides img {
  width: 100%;
  height: auto; /* Make height adjust to image's aspect ratio */
  object-fit: cover; /* Ensure images cover the container without distortion */
  z-index: 0; /* Ensure images stay below everything */
}

/* Text styling */
.text {
  position: absolute;
  top: 20px; /* Distance from the top */
  left: 20px; /* Distance from the left */
  color: #004080;
  font-size: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  z-index: 3; /* Ensure text is above both the overlay and images */
}

/* Media Query for screens wider than 720px but narrower than 1024px */
@media (max-width: 720px) {
  .hero-banner {
      height: 40vh; /* Adjust the height for smaller screens */
  }

  .text {
      font-size: 18px; /* Reduce the font size */
      top: 10px;
      left: 10px;
  }

  .mySlides img {
      object-fit: cover; /* Keep the image covering the container */
      height: auto;
  }
}

/* Media Query for screens narrower than 480px */
@media (max-width: 480px) {
  .hero-banner {
      height: 30vh; /* Further reduce the height */
  }

  .text {
      font-size: 16px; /* Smaller font size for mobile */
      top: 5px;
      left: 5px;
  }

  .mySlides img {
      object-fit: cover; /* Keep the image covering the container */
      height: auto; /* Keep the height flexible */
  }
}






/*welcome */
.welcome-section {
    padding: 40px;
    text-align: left;
    margin-top: -100px;
}

h1 {
    font-size: 36px;
    color: #8f0b13;
    margin-bottom: 20px;
}

hr {
    border: 0;
    height: 2px; /* Thickness of the line */
    background-color:var(--primarydeep-color); /* Color of the line */
    margin: 20px 0; /* Space above and below the line */
}

.content-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.image-container {
    flex: 1;
}

.image-container img {
    height: 420px;
    width: 100%;
    border-radius: 10px;
}

.text-container {
    flex: 2;
    text-align: left;
}

.text-container p {
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
    color:var(--primarydeep-color);
    margin-bottom: 10px;
}

.course-list {
    list-style: none;
    background-color:var(--primarydeep-color);
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.course-list li {
    padding: 0px 0;
    font-size: 28px;
    border-bottom: 1px solid white;
}

.course-list li:last-child {
    border-bottom: none;
}

.button-container {
    display: flex;
    gap: 20px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
        text-align: center;
    }

    .text-container {
        text-align: center;
    }

    .button-container {
        justify-content: center;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 28px;
    }

    .content-container {
        flex-direction: column;
        gap: 10px;
    }

    .text-container {
        text-align: left;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }

    .course-list {
        font-size: 14px;
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
    }

    .button {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}





/* Colors */
:root {
    --primary-color: #004080; /* Dark Blue */
    --secondary-color: #f4f4f9; /* Light Gray */
    --highlight-color: #A1D490; /* Green */
    --background-color: #ffffff; /* White */
    --text-color: #333333; /* Dark Gray */
  }
  
  /* Features & Facilities Section */
  .features-facilities {
    padding: 50px 20px;
    background-color: var(--secondary-color); /* Light Gray */
  }
  
  .features-facilities h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primarydeep-color); /* Dark Blue */
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .feature-item {
    background-color: var(--background-color); /* White */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .feature-item i {
    font-size: 25px;
    color:#2c621a;
    margin-bottom: 15px;
    padding: 5px 10px;
}
  
  .feature-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primarydeep-color); /* Dark Blue */
  }
  
  .feature-item p {
    font-size: 16px;
    color: var(--text-color); /* Dark Gray */
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .features-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }
  
    .features-facilities h2 {
      font-size: 28px;
    }
  
    .feature-item {
      padding: 15px;
    }
  }
  
  @media (max-width: 480px) {
    .features-grid {
      grid-template-columns: 1fr;
    }
  
    .features-facilities h2 {
      font-size: 24px;
    }
  
    .feature-item i {
      font-size: 35px;
    }
  
    .feature-item h3 {
      font-size: 20px;
    }
  }

 
  .admission-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background-color: var(--primarydeep-color); /* Main background color */
    color: white;
    font-family: Arial, sans-serif;
  }
  
  .admission-left,
  .admission-right {
    flex: 1;
    padding: 20px;
  }
  
  .admission-left h1 {
    color: #ffffff;
    font-size: 36px;
    margin-bottom: 20px;
  }
  
  .admission-left h2 {
    font-size: 48px;
    margin-bottom: 20px;
  }
  
  .admission-open-btn {
    background-color: #f8ce36;
    color: #1031a6;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .admission-right h2 {
    font-size: 36px;
    margin-bottom: 20px;
  }
  
  .admission-right p {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .admission-buttons {
    display: flex;
    gap: 20px;
  }
  
  .apply-now-btn,
  .online-payment-btn {
    background-color: #00b851;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .online-payment-btn {
    background-color: #727b7e;
  }
  
  .apply-now-btn:hover,
  .online-payment-btn:hover,
  .admission-open-btn:hover {
    opacity: 0.9;
  }
  
  /* Responsive for tablets and smaller screens */
  @media (max-width: 768px) {
    .admission-section {
      flex-direction: column;
      text-align: center;
    }
  
    .admission-left h1,
    .admission-right h2 {
      font-size: 30px;
    }
  
    .admission-left h2 {
      font-size: 36px;
    }
  
    .admission-open-btn,
    .apply-now-btn,
    .online-payment-btn {
      padding: 10px 20px;
      font-size: 16px;
    }
  
    .admission-buttons {
      flex-direction: column;
      gap: 10px;
    }
  }
  
  /* Responsive for mobile screens */
  @media (max-width: 480px) {
    .admission-left h1,
    .admission-right h2 {
      font-size: 24px;
    }
  
    .admission-left h2 {
      font-size: 30px;
    }
  
    .admission-section {
      padding: 20px;
    }
  
    .admission-open-btn,
    .apply-now-btn,
    .online-payment-btn {
      padding: 10px 15px;
      font-size: 14px;
    }
  }
  

  /* Recruiters Section Styles */
.recruiters-section {
    text-align: center;
    padding: 40px 0;
    background-color: #f9f9f9;
  }
  
  .recruiters-section h2 {
    font-size: 2rem;
    color: #004080; /* Dark Blue */
    margin-bottom: 20px;
  }
  
  /* Carousel Styles */
  .carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 10px;
  }
  
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
  }
  
  .carousel-item {
    min-width: 200px;
    padding: 10px;
    flex-shrink: 0;
    text-align: center;
  }
  
  .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
  }
  
  .carousel-control {
    background-color: #009846; /* Green button */
    color: white;
    font-size: 18px;
    padding: 10px;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: background 0.3s;
  }
  
  .carousel-control.prev {
    left: 0;
  }
  
  .carousel-control.next {
    right: 0;
  }
  
  .carousel-control:hover {
    background-color: #006a30; /* Darker green */
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .carousel-item {
      min-width: 150px;
    }
  }
  
  @media (max-width: 480px) {
    .carousel-item {
      min-width: 120px;
    }
  
    .carousel-control {
      font-size: 16px;
      padding: 8px;
    }
  }
/*news*/
  .news-updates {
    padding: 25px;
    text-align: center;
}

.news-updates h2 {
  color:var(--primarydeep-color);
    font-size: 2em;
    margin-bottom: 20px;
}
.slider-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.news-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    transition: transform 0.5s ease-in-out; /* Smooth sliding effect */
    width: max-content; /* Ensures it can grow beyond its container width */
}

.news-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 300px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
}

.news-image img {
    width: 300px;
    height: 100px;
    object-fit: cover;
}

.news-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #28669c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}

.news-content {
    padding: 15px;
}

.news-content h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.learn-more {
    display: inline-block;
    color: #28669c;
    font-weight: bold;
    text-decoration: none;
}

.pagination {
    margin-top: 20px;
}

.pagination button {
    background-color: #28669c;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.2em;
}

.pagination button:hover {
    background-color: #ff6f4f;
}

@media (max-width: 768px) {
    .news-container {
        flex-direction: column;
        align-items: center;
    }
}