/* notification bar */
.event-bar {
  background-color: #f00000;
  color: #fff;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 16px;
  overflow: hidden;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: none;
  border-radius: 0%;
}

.event-bar i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.event-slider {
  overflow: hidden;
  position: relative;
  flex: 1;
  min-width: 200px;
}

.event-text {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.event-text.active {
  display: inline-block;
}

.event-text:hover {
  text-decoration: underline;
}

.btn-close-white {
  filter: invert(1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .event-bar {
    flex-direction: row;
    align-items: flex-start;
  }

  .btn-close {
    align-self: flex-end;
  }

  .event-text {
    font-size: 14px;
  }
}

/* Menu customization */
.dropdown-span img {
  width: 40px;
}

.small {
  font-size: 12px !important;
  font-weight: 400;
}

.dropdown-menu-title {
  font-size: 15px;
  font-weight: 500;
  padding: 5px 0px;
  line-height: 5px;
}

.btn-primary {
  background-color: #f00000;
  border: none;
}



.cta { 
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  padding: 50px 20px;
  border-radius: 24px;
  background: #f0000021;
}

.cta h3 {
  color: black;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 40px;
}

.cta p {
  color: #737780;
  font-size: 16px;
  font-family: lato;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 24px;
}

.cta .btn {
  background-color: #f00000;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  margin-top: 20px;
}

.cta .btn:hover {
  background-color: #f00000;
  color: #fff;
  text-decoration: none;
}

.cta .btn:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(27, 97, 174, 0.5);
}







/* circle button style */
.circle-container {
  width: 50vw;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  margin: 50px auto;
  position: relative;
}

.circle-btn {
  width: 25vw;
  max-width: 100px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #0D3057;
  color: #fff;
  font-size: 8vw;
  font-size: 40px;
  border: none;
  z-index: 2;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle-btn:hover {
  transform: scale(1.1);
}

.circle-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rotating-text {
  animation: spinText 10s linear infinite;
  transform-origin: center center;
}

@keyframes spinText {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Extra small devices (phones) */
@media (max-width: 400px) {
  .circle-btn {
    font-size: 24px;
  }
}

.hover-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  height: 400px;
}

.hover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hover-card-title {
  position: absolute;
  bottom: 0;
  background-color: #1B61AECC;
  color: white;
  width: 100%;
  padding: 0.8rem;
  text-align: center;
  font-weight: 600;
  z-index: 2;
}

.hover-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1B61AECC;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  transition: bottom 0.5s ease;
  z-index: 3;
}

.hover-overlay p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.hover-card:hover .hover-overlay {
  bottom: 0;
}

.hover-card:hover img {
  transform: scale(1.05);
}


.section__title__heading h3 {
  color: #C6D7EA;
}



/* Rewards and achievements */
.list-group-item {
  background: #F9F9F833;
  color: #fff;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

.carousel-indicators [data-bs-target] {
  background-color: #fff;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}

.carousel-indicators [data-bs-target].active {
  background-color: #5489C2;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}


/* Alumni section */
.alumni h2 {
  color: #0D3057;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 40px;
}

.alumni h2 span {
  color: #965E6D;
}

.main-alumni {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.main-alumni::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.main-alumni img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: #1B61AE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

.main-alumni .info {
  position: absolute;
  bottom: 90px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 1100;
  padding: 0 10px;
}

.info h5 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.info p {
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0;
}

.thumbnail-item {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin: 5px;
  text-align: center;
  transition: transform 0.3s ease;
}

.thumbnail-item:hover {
  transform: scale(1.03);
}

.thumbnail-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.thumbnail-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 8px 5px;
  font-size: 0.85rem;
}

.thumbnail-active {
  outline: 3px solid #1B61AE;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .play-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .info h5 {
    font-size: 1.2rem;
  }

  .info p {
    font-size: 0.9rem;
  }

  .main-alumni .info {
    bottom: 70px;
  }

  .thumbnail-info {
    font-size: 0.75rem;
    padding: 5px 4px;
  }
}

@media (max-width: 480px) {
  .play-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .info h5 {
    font-size: 1rem;
    margin-top: 5px;
  }

  .info p {
    font-size: 0.8rem;
    margin: 0;
  }

  .main-alumni .info {
    bottom: 22px;
  }

  .thumbnail-item {
    width: 100%;
    margin: 0 auto 15px;
  }

  .main-alumni img {
    width: 100%;
    height: 250px;

  }
}

/* events styling */
.event-scroll::-webkit-scrollbar {
  height: 8px;
}

.event-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.date {
  background-color: #0D3057;
  left: 40%;
  top: 1px;
  padding: 20px 16px;
  font-weight: 600;
}

.event-description h5 {
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: #333740;
  font-family: mitr;
  white-space: break-spaces;
}

.date-time {
  font-size: 14px;
  font-weight: 400;
  color: #737780;
  margin-top: 5px;
}

.event-description p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  color: #333740;
}

.event-description a {
  text-decoration: none;
  color: #1B61AE;
  font-weight: 600;
  font-size: 16px;
  font-family: lato;
  line-height: 24px;
}

.event-description a:hover {
  text-decoration: underline;
}

.event-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.event-card img {
  object-fit: cover;
  height: 250px;
  width: 100%;
}

.event-scroll {
  display: flex;
  gap: 30px;
  /* Adjust the space between cards as needed */
  overflow-x: scroll;
  /* Enable horizontal scrolling */
  padding-bottom: 20px;
  /* Add padding to give space to the bottom */
  white-space: nowrap;
  /* Prevent wrapping of items */
  -webkit-overflow-scrolling: touch;
  /* Ensures smooth scrolling on mobile */
  width: 100vw;
  /* Ensure the container takes full viewport width */

  /* Hide scrollbar */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
}

.event-scroll::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar for Webkit browsers */
}

.event-card {
  min-width: 500px !important;
  max-width: 500px !important;
  /* Ensure that cards have enough space to cause overflow */
}

.event-card:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}


/* testimonial sections */
/* Testimonial Card Styling */
.testimonial-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fff;
}

/* Profile Section */
.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.testimonial-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Carousel Indicators (Dots) */
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #1B61AE;
  opacity: 0.5;
}

.carousel-indicators {
  bottom: -50px;
}

.carousel-indicators .active {
  opacity: 1;
}

/* Carousel Control Arrows */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  border-radius: 10%;
  box-shadow: 2px 7px 13px 0px #00000012;


}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
  /* make arrows white */
  background-size: 60% 60%;
}

/* Optional: Adjust control positioning */
.carousel-control-prev {
  left: -60px;
}

.carousel-control-next {
  right: -60px;
}


/* sub pages */

.divider {
  width: 100%;
  height: px;
  border: 3px solid var(--primary-200, white);
  background-color: white;
  margin: 20px 0;
}

.bg-grey {
  background-color: #F9F9F9;
  padding: 24px;
  border-radius: 8px;
}

.bg-grey h3 {
  color: #22252B;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

.bg-grey p {
  color: #737780;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.faq span a {
  font-weight: 400;
  color: #1B61AE !important;
}

.accordion-item {
  border-top: 1px solid var(--border-primary, #D0D1D4) !important;
  border-radius: 8px !important;
  padding: 10px 16px;
}

.list {
  list-style: disc;
  display: list-item;
  font-size: 16px !important;
}


.btn-portal {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 15px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  margin-top: 20px;
}

.btn-portal:hover {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  color: #fff;
}


/* take a tour video */
.cta-tour {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  padding: 50px 20px;
  border-radius: 24px;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.cta-tour::after {
  position: absolute;
  left: 0;
  top: 0;
  background: #0000004D;
  height: 100%;
  width: 100%;
  content: ";";
  opacity: 5;
  z-index: 9;
}



.gallery-img {
  gap: 15px !important;
  grid-template-columns: repeat(3, 1fr) !important;
}

/* .gallery-item {
  display: none;
  transition: all 0.3s ease;
} */

.btn-outline-info {
  color: #f00000;
  border-color: #f00000;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 20px;
}


.video-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  /* semi-transparent background */
  text-align: center;
}

.video-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  padding: 10px;
  text-align: center;
}

.card-img-top {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
}

/* .card {
  position: relative;
  overflow: hidden;
} */

.text-blue {
  color: #0D3057;
}

.search-input-wrapper {
  position: relative;
  top: -40px
}

.search-input-wrapper .bi-search {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #010101;
}

.search-input-wrapper input {
  padding-left: 2.5rem;
}

.search-field {
  box-shadow: 2px 7px 13px 0px #00000012;
  height: 80px;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 20px;
  background-color: #fff;
  border: none;
}

.search-field:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem #00000012;
}


/* About us */
.motto h4 {
  color: #1B61AE;
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 46px;
  font-family: Mitr;
}

.motto h5 {
  color: #1B61AE;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 24px;
}

.motto span {
  color: #0D0D0D;
}

.motto p {
  color: #0D0D0D;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 24px;
}

.event-scroll .core {
  gap: 24px !important;
}

.core .event-card {
  max-width: 306px !important;
  min-width: 306px !important;
}

.teach-msg {
  background-color: #1B61AECC;
  color: #fff;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 16px;
  bottom: 70px;
  width: 100%;
  text-align: center;
}

.card-body img {
  object-fit: cover;
  border-radius: 10px;
}

.btn-admission {
  border-radius: 8px;
  padding-top: 12px;
  padding-right: 16px;
  padding-bottom: 12px;
  padding-left: 16px;
  gap: 12px;
  color: #fff;
  border-width: 1px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

.btn-admission:hover {
  color: #fff
}

.btn-admission2 {
  padding: 12px 16px;
  gap: 12px;
  background: #1B61AE;
  color: #fff;
  border-radius: 8px;
}


/* Responsive adjustment on mobile */
@media (max-width: 576px) {

  .carousel-control-prev {
    left: 0;
  }

  .carousel-control-next {
    right: 0;
  }

  .event-card {
    min-width: 280px !important;
    max-width: 280px !important;
    /* Ensure that cards have enough space to cause overflow */
  }

  .d-gal-none {
    display: none;
  }

  .d-gal-block {
    display: block !important;
  }

  .gallery {
    margin-top: -20px;
  }

  .gallery-img {
    gap: 10px !important;
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .video-description .video__pop__btn .video-btn img {
    width: 60px !important;
  }
}

@media (min-width: 768px) and (max-width: 834px) {
  .event-card {
    min-width: 400px !important;
    max-width: 400px !important;
    /* Ensure that cards have enough space to cause overflow */
  }

  .d-gal-none {
    display: none;
  }

  .d-gal-block {
    display: block !important;
  }

  .gallery {
    margin-top: -50px;
  }

  .gallery-img {
    gap: 10px !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .video-description .video__pop__btn .video-btn img {
    width: 60px !important;
  }
}