body {
  font-family: 'Montserrat', sans-serif;
}

  .about-section {
  padding: 80px 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin: auto;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-images {
  position: relative;
  flex: 1;
  min-height: 400px;
}

.about-images .img1 {
  width: 550px;         /* or any fixed size you prefer */
  height: 350px;        /* same as width to make it square */
  object-fit: cover;    /* crop to fit square without stretching */
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}


.about-images .img2 {
  position: absolute;
  top: 230px;
  left: 210px;
  width: 400px;
  height: 200px; /* Adjust this value as needed */
  object-fit: cover; /* Ensures image is cropped, not stretched */
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  z-index: 2;
}




.about-text {
  flex: 1;
  position: relative;
}

.subtitle {
  color: #111;
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.title {
  font-size: 36px;
  font-weight: 800;
  color:  #00bf63;
  margin-bottom: 20px;
  line-height: 1.3;
}

.description {
  color: #111;
  font-size: 16px;
  margin-bottom: 20px;
}
.est-tag {
  position: absolute;
  top: 200px;
  right: -120px;
  transform: rotate(-90deg);
  transform-origin: left top;
  font-size: 40px;
  font-weight: bold;
  color: #999;
  letter-spacing: 2px;
  z-index: 3;
}

 .stat-box {
          background: white;
          border-radius: 15px;
          padding: 30px 20px;
          width: 180px;
          transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .stat-box:hover {
          transform: scale(1.05);
          box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
        }
.hover-card {
      position: relative;
      flex: 1 1 22%;
      border-radius: 30px;
      overflow: hidden;
      min-height: 500px;
      transition: transform 0.3s ease;
    }

    .hover-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 30px;
      transition: transform 0.4s ease;
    }

    .hover-card:hover img {
      transform: scale(1.08);
    }

     .hover-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .hover-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }


.school-box {
  transition: 0.3s ease;
  cursor: pointer;
}
.school-box:hover {
  background-color: #00bf63 !important;
  color: white;
}
.school-box:hover h6 {
  color: white;
}
.school-box img {
  transition: 0.3s ease;
  filter: grayscale(100%) brightness(0);
}
.school-box:hover img {
  filter: brightness(0) invert(1); /* changes black icon to white */
}

.logo-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


.logo-box {
    transition: all 0.3s ease;
  }
  .logo-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    background-color: #f9f9f9;
  }

  .img-hover-effect img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .img-hover-effect img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }


/*hero section*/
.gradient-sweep {
  font-weight: 700;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #99ffd7, #28935f, #073a21);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
}

@keyframes gradientMove {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: 0% center;
  }
}

@media (min-width: 992px) {
  .gradient-sweep {
    font-size: 1rem;
  }
}

 @media (max-width: 576px) {
    .hero-logo {
      height: 130px !important;
    }

    .hero-heading {
      /* margin-top: 100px !important; */
      font-size: 1.4rem !important;
      padding: 15px 15px;
    }
  }

   @media (max-width: 576px) {
    .mobile-smaller {
      font-size: 2.0rem !important;
    }
  }

 
  @media (max-width: 767px) {
    .mobile-tight-line {
      line-height: 1.0 !important;
    }
  }



  .scroll-down-btn {
      z-index: 6;
      position: absolute;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      width: 50px;
      height: 80px;
      border: 2px solid white;
      border-radius: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .scroll-down-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      transform: translateX(-50%) translateY(5px);
    }

    .scroll-down-btn i {
      font-size: 24px;
      color: white;
    }
  /*Why Choose DJ Dental College?*/

   .carousel-card {
    height: 320px;
  }

  .carousel-card img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

  .carousel-caption-full {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.3));

    padding: 14px 10px;
    text-align: center;
  }

  .carousel-caption-full p {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 1 rem;
  }

  @media (max-width: 768px) {
    .carousel-caption-full p {
      font-size: 1rem;
    }
  }

  /*Programs offered*/

   

    body {
      font-family: 'Segoe UI', sans-serif;
      background: #fff;
      margin: 0;
      padding: 0;
    }

    .programs {
      padding: 40px 20px;
      text-align: center;
    }

    .programs h2 {
      font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #00bf63,  #056637); /* Orange to red */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
      
    }

   

    .tabs {
      margin: 20px 0;
    }

    .tab {
      padding: 10px 20px;
      margin: 5px;
      border: 2px solid #00bf63;
      border-radius: 100px;
      background: transparent;
      color: #00bf63;
      cursor: pointer;
      font-weight: bold;
      transition: 0.3s;
    }

    .tab.active {
      background-color: #00bf63;
      color: #fff;
    }

    .cards {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 20px;
      margin-top: 30px;
    }

    .card {
  width: 860px;
    height: 440px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background-color: #ffffff;
  transition: all 0.4s ease;
  filter: grayscale(100%); /* grayscale by default */
}

/* Remove grayscale when active */
.card.highlight {
  filter: none;
}

/* Keep image in color always */
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Gradient overlay for inactive cards (tab not selected) */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.7));
  z-index: 2;
  pointer-events: none;
}

/* Stronger gradient when tab is active */
.card.highlight::before {
  background: linear-gradient(to top,rgb(1 185 96), transparent 60%);
}


    .card-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      padding: 20px;
      width: 100%;
      z-index: 3;
      color: #fff;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .program-code {
      font-size: 1.8rem;
      font-weight: 800;
      margin: 0;
      line-height: 1;
    }

    .program-title {
      font-size: 0.9rem;
      margin: 5px 0 10px;
      font-weight: 500;
    }

    .program-label {
      font-size: 0.75rem;
      padding: 6px 12px;
      border-radius: 999px;
      background-color: #fff;
      color: #00bf63;
      font-weight: 600;
    }

    /*Infrastructure & Facilities*/

    .infra-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
  }

  .infra-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
  }

  .infra-box-bg {
    background-color: #ffffff;
  }

  .infra-box-shadow {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.10);
  }

  .infra-box-rounded {
    border-radius: 1.5rem;
  }

  .infra-padding {
    padding: 3rem;
  }

  /* Card Styles */
  .infra-carousel .infra-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 4px 12px rgba(6, 6, 6, 0.1);
  }

  .infra-carousel .infra-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .infra-carousel .infra-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.3)); */
    padding: 1rem;
    text-align: center;
  }

  .infra-carousel .infra-card-body h5 {
    margin: 0;
    font-weight: 700;
    color: #fff;
  }

  /* Toggle Switch */
  .toggle-container {
    margin-top: 15px;
  }

  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }

  input:checked + .slider {
    background-color: #00bf63;
  }

  input:checked + .slider:before {
    transform: translateX(28px);
  }

  .slider.round {
    border-radius: 30px;
  }

  .slider.round:before {
    border-radius: 50%;
  }

  /*Admission Process Work?*/

   .admission-section {
    font-family: 'Segoe UI', sans-serif;
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
  }

  .admission-section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
  }

  .admission-section h2 span {
    background: linear-gradient(to right, #00bf63, #056637);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .timeline-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    padding-left: 20px;
  }

  .timeline-step {
    position: relative;
    padding-left: 25px;
  }

  .timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 12px;
  }

  .dot-red { background-color:#186942; }
  .dot-orange { background-color:#00bf63; }
  .dot-green { background-color: green; }

  .step-box {
    background-color: #00bf63;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    gap: 8px;
    margin-bottom: 8px;
  }

  .step-box i {
    font-size: 1.1rem;
  }

  .step-title {
    font-weight: bold;
    color: #00bf63;
    margin-bottom: 4px;
    font-size: 1rem;
  }

  .step-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
  }

  /* Desktop View */
  @media (min-width: 768px) {
    .timeline-container {
      flex-direction: row;
      align-items: flex-start;
      justify-content: center;
      padding-left: 0;
    }

    .timeline-step {
      width: 300px;
      text-align: center;
      padding-top: 20px;
      padding-left: 0;
    }

    .timeline-dot {
      position: absolute;
      left: 50%;
      top: 0;
      transform: translateX(-50%);
    }

    .timeline-container::before {
      content: "";
      position: absolute;
      top: 6px;
      left: 0;
      right: 0;
      height: 2px;
      background-color: #ccc;
      z-index: 0;
    }

    .step-box {
      justify-content: center;
    }
  }

  /*What Our Students Say*/

   .alumni-card {
   background: white;
    color: rgb(7, 7, 7);
    border-radius: 15px;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: stretch;
  }

  .alumni-img-column {
    flex: 1;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
  }

  .alumni-img-column img {
  height: 280px;
  width: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.alumni-img-column {
  flex: 2;
}

.alumni-text-column {
  flex: 1;
}

  .alumni-text-column {
    flex: 2;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .alumni-text-column h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .alumni-text-column .underline {
    width: 50px;
    height: 4px;
    background: linear-gradient(135deg,#00bf63, #056637);
    margin-bottom: 15px;
  }

  .alumni-text-column p {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
  }

  .alumni-carousel .owl-nav button {
    background-color: #04703c;
    color: #fbf7f7;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin: 5px;
  }

  .alumni-carousel .owl-nav button span {
    font-size: 1.5rem;
  }

  @media (max-width: 768px) {
    .alumni-card {
      flex-direction: column;
    }

    .alumni-img-column img {
      max-width: 200px;
    }

    .alumni-text-column {
      padding: 20px;
    }
  }

  /*apply now button */

  .apply-now-btn {
    position: fixed;
    z-index: 9999;
    color: #fff;
    font-size: 15px; /* increased font size */
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to bottom, #00bf63, #056637); /* red to yellow */
    transition: background 0.3s ease;
  }

  /* Desktop View - Vertical Button on Right Side */
  @media (min-width: 768px) {
    .apply-now-btn {
      top: 40%;
      right: 0px;
      padding: 18px 10px; /* increased padding */
      width: 60px;        /* increased width */
      writing-mode: vertical-rl;
      text-orientation: mixed;
      text-align: center;
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;
    }
  }

  /* Mobile View - Horizontal Button at Bottom */
  @media (max-width: 767.98px) {
    .apply-now-btn {
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 18px 0; /* increased padding */
      text-align: center;
      border-radius: 0;
      background: linear-gradient(to right, #00bf63, #056637);
    }
  }
