a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  margin-inline: 1.75rem;
  overflow: hidden;
}

.card-article {
  width: 300px;
  border-radius: 1rem;
  overflow: hidden;
}
.card-article {
  width: calc(50% - 10px);
  padding: 5px;
  /* background-color: #fff; */
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Added box-shadow */
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}


.card-image {
  position: relative;
  padding-top: 1.5rem;
  margin-bottom: -0.75rem;
  transition: transform 0.3s ease-in-out;
  transform: scale(0.95);
}

.card-image:hover {
  transform: scale(1);
}

.card-data {
  padding: .5rem 0;
  position: relative;
  z-index: 10;
}

/* Card Img */
.card-img {
  width: 180px;
  height: 240px !important;
  border-radius: .35rem;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  margin-bottom: 1.75rem;
}

.card-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: black;
  opacity: 0;
  /* Initially transparent */
  transition: opacity 0.3s ease;
}

.card-img:hover::before {
  opacity: 0.8;
  /* Adjust the opacity as needed */
}

/* Card Text */
.card-name {
  font-size: 1rem;
  color: #124e41;
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.card-name:hover {
  color: #124e41;
  text-decoration: underline;
}

.card-description {
  font-size: 1rem;
  font-weight: 300;
  padding-bottom: 30px;
  line-height: 1.5;
  margin-bottom: 1.75rem;
  color: rgba(0, 0, 0, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 1.5rem;
  text-decoration: none;
}

/* Swiper Class */
.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
}

.swiper-button-prev,
.swiper-button-next {
  width: initial;
  height: initial;
  font-size: 4rem;
  color: #124e41;
  display: none;
}

.swiper-button-prev {
  left: 0;
}

.swiper-button-next {
  right: 0;
}

.swiper-pagination-bullet {
  background-color: black;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: #124e41;
}

/* Media Queries Breakpoints */

/* Small Devices */
@media screen and (min-width: 768px) {
  .card-content {
    margin-inline: 3rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: block;
  }
}

/* For medium devices */
@media screen and (min-width: 768px) {
  .card-content {
    margin-inline: 3rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: block;
  }
}


/* Large Devices */
@media screen and (min-width: 1120px) {

  .swiper-button-next {
    right: -1rem;
  }

  .swiper-button-prev {
    left: -1rem;
  }
}

/* NEWS AND EVENTS section */
.card-container {
  flex: 70%;
  width: 100%;
  background-color: white;
  padding: 1rem;
  margin-top: 0px;
 
}

.news-and-events-section {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 3rem 3rem;
  background-color:  #e8e6e0;
  margin-top: 0px;
  padding-bottom: 20px;

}

.events-section {
  flex: 30%;
  padding-left: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0px;
  margin-bottom: 43px;
  padding-bottom: 20px;
  
}

.section-titles {
  display: flex;
  justify-content: space-between;
}

.section-title {
  display: flex;
  gap: .5rem;
  justify-content: flex-start;
}

.single-event {
  color: black !important;
}

.single-event i {
  font-size: medium;
}

.single-event a {
  color: black !important;
}

.single-event a:hover {
  color: #124e41 !important;
}

.main-section-title {
  color: #124e41;
  font-size: 2.5rem;
}

.course-finder {
  background-color: #f3f1ec;
  padding: 16px;
  border-radius: 1rem;
  max-width: 800px;
}

.course-finder-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-finder-form>label {
  margin-bottom: 4px;
}

#course-finder-learning-mode,
#course-finder-program,
#course-finder-level {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #124e41;
  border-radius: 4px;
}

.course-finder-form>button {
  background-color: #124e41;
  opacity: 0.85;
  color: white;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
  width: 100%;
}

.course-finder-form>button:hover {
  opacity: 1;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 16px;
  width: 100%;
}

.explore-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.explore-card {
  margin: 1rem;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  transition: all .2s ease-in-out;
  border-radius: .1rem;
}

.explore-card:hover {
  transform: scale(1.1);
}

.explore-card-content {
  padding: .5rem;
}

.explore-card-content>h2 {
  color: #124e41;
  font-size: large;
}

.admission-section {
  background-image: url('../../public/image/5.JPG');
  background-size: cover;
  /* You can use 'contain' or other values based on your preference */
  background-position: center center;
  /* You can adjust this based on your needs */
  background-repeat: no-repeat;
  /* This prevents the image from repeating */
  position: relative;
  border-radius: .6rem;
}

.admission-card {
  position: absolute;
  bottom: 10px;
  right: 10px;
  margin: 1rem;
  width: 400px;
  height: 200px;
  background-color: #f3f1ec;
  z-index: 10;
  border-radius: .3rem;
  padding: 2rem;
}

.admission-card>h2 {
  font-weight: 700;
  color: black;
}

.admission-card>a {
  color: black;
  text-decoration: underline;
}

.admission-card>a:hover {
  color: #124e41;
}


/* Responsive layout for small devices */
@media (max-width: 767px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .news-and-events-section {
    padding: 1rem;
  }

  .explore-container {
    display: block;
  }

  .news-and-events-section {
    margin-top: 1rem;
    flex-direction: column;
  }

  /* Responsive styling for screens less than 600px wide */
  .card-container,
  .events-section {
    /* Make each child take 100% width on small screens */
    flex: 100%;
  }

  .events-section {
    padding-left: 0;
  }

  .study-image-container {
    width: 100%;
    /* Make sure each container takes full width on smaller screens */
  }

  .study-container {
    padding: 1rem;
  }
}

.faculties-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin-top: 1rem;
}

.faculty-card {
  margin: 10px;
  text-align: center;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  transition: transform 0.3s ease-in-out;
}

.faculty-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.faculty-card h2 {
  margin: 20px 0;
  font-size: 20px;
}

/* Media queries for responsive behavior */

@media only screen and (max-width: 768px) {
  .faculty-card {
    width: 100%;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .faculty-card {
    width: 50%;
  }
}

@media only screen and (min-width: 1024px) {
  .faculty-card {
    width: calc(33% - 20px);
    /* Adjust width based on desired cards per row */
  }
}

.faculty-card:hover {
  transform: scale(1.1);
}

.single-faculty-page {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Responsive layout for small devices */
@media (max-width: 767px) {
  /* Adjust grid layout */
  .grid-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Adjust news and events section */
  .news-and-events-section {
    padding: 1rem;
    margin-top: 1rem;
    flex-direction: column;
  }

  /* Make each child take 100% width on small screens */
  .card-container,
  .events-section {
    flex: 100%;

  }

  /* Remove left padding for events section */
  .events-section {
    padding-left: 0;
  }

  /* Adjust explore container */
  .explore-container {
    display: block;
  }

  /* Adjust study image container */
  .study-image-container {
    width: 100%;
  }

  /* Adjust study container padding */
  .study-container {
    padding: 1rem;
  }

  /* Adjust faculty card container */
  .faculties-card-container {
    flex-direction: column;
  }

  /* Adjust faculty card width */
  .faculty-card {
    width: 100%;
  }
}

/* Responsive layout for medium devices */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  /* Adjust faculty card width */
  .faculty-card {
    width: 50%;
  }
}

/* Responsive layout for large devices */
@media only screen and (min-width: 1024px) {
  /* Adjust faculty card width */
  .faculty-card {
    width: calc(33% - 20px);
    /* Adjust width based on desired cards per row */
  }
}


