body {
  background-color: #ffffff;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.carousel-indicators li {
  width: 15px;
  height: 15px;
  background-color: #ddd;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.carousel-indicators .active {
  background-color: #333;
}

.carousel-indicators li::before {
  content: ""; /* Hide the numbers */
}

#about {
  padding: 60px 0;
}

#about h2 {
  color: #0e05bc;
}

#about p {
  text-align: justify;
}

#about .row {
  margin-top: 20px;
}

.custom-text-content {
  width: 80%;
  padding: 20px;
  border: 1px solid #95949f;
  border-radius: 10px;
}

.heading {
  color: #0d0082;
  font-size: 40px;
  text-align: center;
  padding: 10px;
  font-weight: bold;
}

section {
  margin-top: 40px;
}

.pagination {
  margin-top: 20px;
}

.pagination a {
  padding: 5px 10px;
  background-color: #32174d;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  margin-right: 5px;
}

.pagination .active {
  background-color: #343434;
}

.pagination a:hover {
  background-color: #ddd;
}

.h1 {
  color: #1c2841;
  font-size: 40px;
  font-weight: bold;
}

/* Styles for the director management section */
#directors.director-management-container {
  padding: 20px;
}

.card-container {
  margin-bottom: 20px;
}

/* Styles for individual cards */
.directors-card {
  background-color: #f5f5f5; /* Light gray background */
  border-radius: 5px; /* Rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  text-align: center; /* Center text within cards */
  margin: 10px; /* Add spacing between cards */
  overflow: hidden; /* Clip overflowing content */
}

.card-image {
  max-height: 400px; /* Set a maximum height for images */
  object-fit: cover; /* Crop images to fit within card */
  transition: transform 0.3s ease-in-out; /* Add smooth hover effect */
}

.directors-card:hover .card-image {
  transform: scale(1.1); /* Increase image size on hover */
}

.card-content {
  padding: 15px;
}

h4 {
  margin-bottom: 10px;
}

p {
  margin-bottom: 10px;
  line-height: 1.5; /* Increase line spacing for readability */
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 768px) {
  /* For screens smaller than 768px (phones) */
  .directors-card {
    width: 100% !important; /* Display a single card per row on phones */
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* For screens between 768px and 1024px (tablets) */
  .directors-card {
    width: 48% !important; /* Display two cards per row on tablets */
  }
}

@media (min-width: 1024px) {
  /* For screens wider than 1024px (large screens) */
  .directors-card {
    width: 30% !important; /* Maintain three cards per row on large screens */
  }
}

/* Styling for services section */
.other-services {
  padding: 50px 0;
  background-color: #f9f9f9;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  /* For medium-sized screens and below */
  .rent-card,
  .extra-curricula .col-lg-4 {
    margin-bottom: 30px; /* Add some space between cards on smaller screens */
  }
}

.card {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.author-date {
  display: flex;
  justify-content: space-between;
}

.card-content {
  text-align: center;
}
.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.card-content a.btn-card {
  color: royalblue;
  background-color: #f8f9fa;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
}

.card-content a.btn-card:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .card {
    width: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .card {
    width: 100%;
  }
}

.form-label {
  font-weight: bold;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.btn-primary {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.Image_gallery {
  text-align: center;
  padding: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(200px, 1fr)
  ); /* Adjust the minimum width and allow auto-fill */
  grid-auto-rows: 200px; /* Set a fixed height for each row */
  grid-gap: 20px; /* Increase the grid gap for better spacing */
  max-width: 1200px;
  margin: 0 auto;
}

.gallery a {
  display: block;
  overflow: hidden; /* Ensure images do not overflow the cells */
}

.gallery img {
  width: auto;
  height: 100%; /* Make the images fill the entire height of the cell */
  object-fit: cover; /* Ensure images fit into cells */
}

.gallery-image {
  width: 100%;
  background-size: cover;
  background-position: center;
}

.gallery-image img {
  display: none; /* Hide the img element */
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media screen and (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

.h1 {
  color: #1f0384;
  font-size: 40px;
  font-weight: bold;
}

.sliding-card-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  background-color: #f5f5f5;
  white-space: nowrap;
}

.sliding-card {
  min-width: 300px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.sliding-card h3 {
  color: #333;
  font-size: 20px;
  margin-bottom: 10px;
}

.sliding-card p {
  color: #666;
  font-size: 16px;
}

.service-section {
  padding: 40px 0;
}

.service-column {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  display: flex; /* Use flexbox */
}

.service-card {
  width: 100%;
  height: 300px; /* Set a fixed height for the cards */
  margin: auto;
  padding: 2em 1.5em;
  background: linear-gradient(#ffffff 50%, #00307d 50%);
  background-size: 100% 200%;
  background-position: 0 2.5%;
  border-radius: 15px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: 0.5s;
  overflow-y: auto;
  display: flex; /* Use flexbox */
  flex-direction: column; /* Stack child elements vertically */
}

@media (min-width: 768px) {
  .service-column {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .service-column {
    width: 50%;
  }
}

@media (min-width: 1200px) {
  .service-column {
    width: 50%;
  }
}

.gallery-image {
  height: 200px;
  width: auto;
  max-width: 100%;
}

.col-md-4:nth-child(even) {
  background: rgb(4, 4, 131);
}
.col-md-4:nth-child(odd) {
  background: rgb(14, 6, 132);
}

a {
  color: rgb(255, 255, 255);
}
a:hover {
  color: rgb(230, 207, 4);
  text-decoration: none;
}

::selection {
  background: rgb(252, 252, 252);
  text-shadow: none;
}

.main-container {
  width: 90%;
  margin: 0 auto; /* Center the container horizontally */
  /*background-color:!important;*/ /* Set background color and use !important */
}
