/* Show dropdown on hover (for desktop only) */
@media (min-width: 992px) {
  .hover-dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0; /* aligns dropdown */
  }
}

/* -------------------------hero section----------------------- */
.hero-image {
  max-height: 600px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-image {
    max-height: 400px;
  }

  #noticeBox {
    width: 90% !important;
    left: 5% !important;
    bottom: 20px !important;
    top: auto !important;
    transform: none !important;
    height: auto !important;
  }
}

#noticeBox {
  position: fixed;
  bottom: 20px; /* ✅ Place it at the bottom */
  left: 20px;
  width: 330px;
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  border-left: 6px solid #00695c;
  box-shadow: 0 5px 20px rgba(0, 105, 92, 0.4);
  border-radius: 1rem;
  z-index: 9999;
  padding: 1.5rem;
}

.notice-icon {
  font-size: 1.5rem;
  color: #d97706;
  margin-right: 10px;
}

.notice-text {
  font-size: 1rem;
  color: #4e342e;
}

.btn-close {
  background-color: #00000066;
  border-radius: 50%;
  padding: 0.3rem;
}

/* -----------------------about section---------------- */
  .custom-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
    border: 5px solid rgb(208, 203, 203);
    }

    @media (max-width: 768px) {
      .custom-img {
      max-height: none;
      }
    }
/* -------------------social media--------------------- */
/* Fixed Social Media Section */
.social-fixed {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1050;
}

.social-fixed a {
  display: block;
  color: #fff;
  padding: 10px 12px;
  margin: 5px 0;
  text-align: center;
  border-radius: 5px 0 0 5px;
  transition: all 0.3s ease;
}

/* Individual Brand Colors */
.social-fixed a:nth-child(1) { background-color: #1877F2; }  /* Facebook */
.social-fixed a:nth-child(2) { background-color: #1DA1F2; }  /* Twitter */
.social-fixed a:nth-child(3) { background-color: #E1306C; }  /* Instagram */
.social-fixed a:nth-child(4) { background-color: #0077B5; }  /* LinkedIn */

/* Hover Darker Shades */
.social-fixed a:nth-child(1):hover { background-color: #0e63d4; }
.social-fixed a:nth-child(2):hover { background-color: #0d8ddb; }
.social-fixed a:nth-child(3):hover { background-color: #c3245d; }
.social-fixed a:nth-child(4):hover { background-color: #005f90; }

.social-fixed i {
  font-size: 18px;
}

@media (max-width: 576px) {
  .social-fixed {
    top: auto;
    bottom: 10%;
    right: 10px;
    transform: none;
  }
}


/* -------------------------- gallary section ---------------------------------------- */
  .folder-card {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin: auto;
    }

  .folder-card:hover {
    transform: scale(1.05);
    }

  .folder-img {
    height: 55%;
    overflow: hidden;
    }

  .folder-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(-15%);
    }

  .folder-caption {
    height: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e0e0e0);
    text-align: center;
    padding: 5px;
    }

  .folder-caption h6 {
    font-weight: bold;
    color: #007bff;
    font-size: 14px;
    margin: 0;
    }

/* <----------------------------------media news section------------------ */
  .fancy-folder {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

 .fancy-folder:hover {
   transform: translateY(-6px);
   box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
   background: linear-gradient(145deg, #f8f9fa, #fff);
 }

.folder-icon i {
  font-size: 48px;
  color: #ffc107;
  margin-bottom: 10px;
}

.folder-text h5 {
  font-weight: bold;
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.folder-text p {
  font-size: 13px;
  color: #6c757d;
}



/* ------------------ Extra mobile tweaks------------------- */
@media (max-width: 575.98px) {
  .folder-icon i {
    font-size: 40px;
  }

  .folder-text h5 {
    font-size: 15px;
  }

  .folder-text p {
    font-size: 12px;
  }
}



/* <!-- ------------------------------------------- School Toppers Section -------------------------------------- --> */

.scrolling-wrapper {
    overflow: hidden;
    white-space: nowrap;
    animation: scroll-left 25s linear infinite;
  }

  .scroll-item {
    display: inline-block;
    white-space: normal;
  }

  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-100%);
    }
  }

  .caption {
    font-weight: 500;
    color: #333;
  }
/* -------------------------- gallary section ---------------------------------------- */
  .accordion-button {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    }
  .accordion-button:not(.collapsed) {
    background-color: #0056b3;
    }
  .accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    }
  .event-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    }

/* ------------------------------------  Faculty --------------------------------- */
.faculty-glass {
  background: linear-gradient(to right, #005353,rgb(103, 159, 159));
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.faculty-glass:hover {
  background-color: rgba(0, 123, 255, 0.25); /* blue tint */
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.75) !important;
}



/* ------------------------- Academic Achievements--------------------- */
  .achievements-section {
  padding: 60px 15px;
  background: #004D4D;
  color: white;
  text-align: center;
}

.achievements-section h1 {
  font-size: 3rem;
  font-weight: bold;
}

.achievements-section p {
  font-size: 1.2rem;
  margin-top: 10px;
  margin-bottom: 40px;
}

.nav-tabs .nav-link.active {
  background-color: #ffffff;
  color: #007bff !important;
  font-weight: 600;
}

.nav-tabs .nav-link {
  color: #fff;
  border: 1px solid #ffffff;
}

.tab-content {
  margin-top: 30px;
}

.slider-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.slider {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: pingpong 4s ease-in-out infinite alternate;
}

/* ------------------------------------------------achievement-card--------------- */
.achievement-card {
  flex: 0 0 auto;
  width: 350px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 15px;
  color: #333;
  transition: transform 0.3s;
}

.achievement-card:hover {
  transform: scale(1.05);
}

.achievement-card img {
  width: 100%;
  height: 180px; /* Fixed height */
  object-fit: cover; 
  border-radius: 5px;
}


/* Desktop ping-pong */
@keyframes pingpong {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-520px); /* 2 cards at 250px + 20px gap */
  }
}

/* Tablet */
@media (max-width: 768px) {
  .achievements-section h1 {
    font-size: 2rem;
  }

  .achievement-card {
    width: 200px;
  }

  .slider {
    gap: 15px;
    animation: pingpongTablet 4s ease-in-out infinite alternate;
  }

  @keyframes pingpongTablet {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-430px); /* 2 cards (200 + 15 gap) */
    }
  }
}

/* Mobile */
@media (max-width: 480px) {
  .achievements-section p {
    font-size: 1rem;
  }

  .achievement-card {
    width: 160px;
  }

  .slider {
    gap: 10px;
    animation: pingpongMobile 4s ease-in-out infinite alternate;
  }

  @keyframes pingpongMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-340px); /* 2 cards (160 + 10 gap) */
    }
  }
}


/* ---------------------------------contact section--------------------------- */

    .contact-section {
      padding: 60px 0;
      background-color: #CDD7E7;
    }

    .form-card, .info-card {
      background: #ffffff;
      border-radius: 16px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
      padding: 30px;
      transition: 0.3s ease;
    }

    .form-card:hover, .info-card:hover {
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    }

    .form-control {
      border-radius: 12px;
      padding: 12px;
      font-size: 16px;
    }

    .btn-send {
      border-radius: 30px;
      padding: 12px 30px;
      background-color: #004aad;
      color: #fff;
      font-weight: 500;
      transition: 0.3s ease;
    }

    .btn-send:hover {
      background-color: #003c8f;
    }

    .contact-info-item {
      display: flex;
      align-items: flex-start;
      margin-bottom: 20px;
    }

    .contact-info-item i {
      font-size: 26px;
      color: #007bff;
      margin-right: 15px;
    }

    .contact-info-item strong {
      font-size: 17px;
      color: #333;
    }

    @media (max-width: 768px) {
      .form-card, .info-card {
        margin-bottom: 30px;
      }
    }
 
/* ------------------result-------------- */
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}


/* ------------------------------------------------- */
#key-highlights .card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
  background-color: #fdfdfd;
}

#key-highlights i {
  display: block;
}














