/* Show dropdown on mobile when .open is set by JS */
.dropdown.open .dropdown-content {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
}
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}
  

/*
.container {
  width: 90%;
  outline: solid red 2px;
  max-width: 1200px;
  margin: 0 auto;
}
*/

:root {
  --dark-gray: #333;
}





/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
  filter: brightness(0.7);
}
.hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(198, 218, 226, 0.184);
  backdrop-filter: blur(10px);          /* The blur effect */
  -webkit-backdrop-filter: blur(10px);  /* Safari support */
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 3.5rem 3rem;
  border-radius: 24px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.473), transparent);
    z-index: 1;
    pointer-events: none; /* Allows clicks to pass through */
}

.hero-overlay h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  margin-bottom: 2rem;
  line-height: 1.6;
}
                 
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  padding: clamp(0.6rem, 2vw, 0.8rem) clamp(2rem, 4vw, 4rem);
  border-radius: 8px;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1rem);
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: #34658B;
  color: #fff;
}
.btn-primary:hover {
  background: #155a4a;
}
.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #34658B;
}
.btn-secondary:hover {
  background: #d0e7e1;
}



/* Excellence Section */
.excellence-container {
  display: flex;
  max-width: 1200px;
  margin: -10px auto;
}

.excellence-content {
  display: flex;
}

.excellence-content h2 {
  font-size: 2rem;
  color:  #1a6d5b;
  width: 100%;
}

.excellence-content p {
  font-weight: 500;
  padding: 0 80px;
}

@media (max-width: 768px) {
  .excellence-content {
    text-align: center;
  }
}

.urban-college-section {
  display: flex;
  max-width: 1400px;
  margin: 20px auto; 
  overflow: hidden; 
  padding: 20px; 
}

.column-left {
  flex: 1; 
  padding-right: 10px; 
  display: flex; 
}

.column-left img {
  width: 100%;
  object-fit: cover; 
  border-radius: 10px;
}

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Fade animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* Navigation arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
  text-decoration: none;
  z-index: 2;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Navigation dots */
.slideshow-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 2px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
  background-color: white;
}

.column-right {
  flex: 1.5; 
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative; 
}

.students-info-box {
  position: absolute;
  bottom: 300px; 
  left: 0%; 
  transform: translateX(-50%);
  background-color: #ffffff;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 1; 
  width: auto; 
  min-width: 120px;
}

.student-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.student-avatars img {
  width: 30px; 
  height: 30px; 
  border-radius: 50%;
  margin: 0 -5px; 
  border: 2px solid white; 
}

.student-count-text {
  font-size: 1em; 
  font-weight: bold;
  color: #333; 
  line-height: 1.2;
}

.campus-image-container {
  width: 100%;
  margin-top: 50px; 
  padding-bottom: 66.66%; /* Aspect ratio for the image (e.g., 3:2) just the right one*/
  position: relative;
}

/* Remove the conflicting img styles since we're using slideshow now */
/* .campus-image-container img {
  position: absolute;
  top: -32px;
  left: 0;
  border-radius: 20px;
  width: 100%;
  height: 100%;
  object-fit: cover;
} */

.description-text {
  font-size: 1.0em; 
  color: #555; 
  line-height: 1.5;
  margin: 15px 0; 
  padding: 1 40px; 
}

.enroll-now-button {
  display: inline-block; 
  color: #1a6d5b;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 8px; 
  font-weight: bold;
  font-size: 1em; /* Adjust as needed */
  text-align: center;
  transition: background-color 0.3s ease;
  background: transparent;
  border: 2px solid #34658B;
  margin-top: auto; /* Push to the bottom if not enough content above */
}

.enroll-now-button:hover {
  background-color: #171818; /* Darker shade on hover */
}

/* Responsive adjustments (example) */
@media (max-width: 768px) {
  .urban-college-section {
    flex-direction: column;
    padding: 15px;
  }

  .column-left, .column-right {
    padding-right: 0;
    padding-left: 0;
    width: 100%;
  }

  .column-left img {
    margin-bottom: 15px;
  }

  /* Slideshow responsive adjustments */
  .slideshow-container {
    margin-bottom: 15px;
  }
  
  .prev, .next {
    padding: 12px;
    font-size: 16px;
  }
  
  .slideshow-dots {
    bottom: 15px;
  }
  
  .dot {
    height: 10px;
    width: 10px;
  }

  .students-info-box {
  transform: translateX(10%);
    position: static; 
    transform: none;
    left: auto;
    margin: 0 auto 15px auto; 
  }

  .campus-image-container {
    margin-top: 0; 
  }

  .enroll-now-button {
    width: 100%; 
  }

  /* Campus slideshow responsive adjustments */
  .campus-slideshow-container {
    margin-bottom: 15px;
  }
  
  .campus-slideshow-dots {
    bottom: 15px;
  }
  
  .campus-dot {
    height: 10px;
    width: 10px;
  }

  .students-info-box {
    transform: translateX(10%);
    position: static; 
    transform: none;
    left: auto;
    margin: 0 auto 15px auto; 
  }
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 1.2rem;
  flex-wrap: wrap;
}
.stat {
  background: #1a6d5b;
  color: #fff;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  text-align: center;
  min-width: 90px;
  font-size: 1rem;
  font-weight: 600;
}
.stat span {
  font-size: 1.3rem;
  font-weight: 700;
}

/* Courses Section */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 0;
}

/* Section Styling */
.courses-section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    margin-bottom: 30px;
}

.section-header1 {
    display: flex;
    justify-content: center;
    align-items: center; /* Align items to the top */
    margin-bottom: 30px;
}


.section-titles h2 {
    font-size: 3em; /* Adjust as needed */
    color: #1a6d5b; /* Dark blue/grey for title */
    margin-bottom: 8px;
    font-weight: 600;
}

.section-titles p {
    font-size: 1em; /* Adjust as needed */
    color: #555;
    max-width: 600px; /* Constrain width of subtitle */
}

.section-titles1 h2 {
  text-align: center;
    font-size: 3em; /* Adjust as needed */
    color: #1a6d5b; /* Dark blue/grey for title */
    margin-bottom: 8px;
    font-weight: 600;
}

.section-titles1 p {
  text-align: center;
    font-size: 1em; /* Adjust as needed */
    color: #555;
    max-width: 600px; /* Constrain width of subtitle */
}

.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.all-courses-btn {
    background-color: #5D9C94; /* Teal color from image */
    color: white;
    font-size: 1em;
    padding: 12px 55px;
    transition: transform 0.4s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.3s;
}

.all-courses-btn:hover {
    background: #333;
  transform: scale(1.09) translateY(-18px);
  box-shadow: 0 8px 32px rgba(52, 101, 139, 0.277);
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.course-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Ensures child elements conform to border-radius */
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.3s;
}

.course-card:hover {
    transform: scale(1.09) translateY(-18px);
    box-shadow: 0 8px 32px rgba(52, 101, 139, 0.277);


}
.card-image-container {
    position: relative;
    width: 100%;
    height: 300px; /* Fixed height for image container */
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
}

.certificate-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #5d9c94fc; 
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
}

.card-content {
    padding: 20px;
    flex-grow: 1; /* Allows content to take up remaining space */
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.4em;
    color: #004D40; /* Darker teal/green for course titles */
    margin-bottom: 8px;
    font-weight: 600;
}

.card-content p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes button to the bottom if content is short */
}

.courses-grid1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.course-card1 {
    border-radius: 12px;
    overflow: hidden; /* Ensures child elements conform to border-radius */
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.3s;
  }

.course-card1:hover {
    transform: scale(1.0) translateY(-18px);
    box-shadow: 0 8px 32px rgba(52, 101, 139, 0.277);

}
.card-image-container1 {
    position: relative;
    width: 100%;
    height: 400px; 
}

.card-image-container1 img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
}

/* .certificate-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #5d9c94fc; 
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
} */

.card-content1 {
    padding: 20px;
    flex-grow: 1; /* Allows content to take up remaining space */
    display: flex;
    flex-direction: column;
}

.card-content1 h3 {
    font-size: 1.4em;
    color: #004D40; /* Darker teal/green for course titles */
    margin-bottom: 8px;
    font-weight: 600;
}

.card-content1 p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes button to the bottom if content is short */
}


.learn-more-btn {
    background-color: #5D9C94; /* Teal color */
    color: white;
    font-size: 0.85em;
    padding: 8px 18px;
    align-self: flex-start; /* Align button to the left */
    transition: transform 0.4s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.3s;
}

.learn-more-btn:hover {
    background: #333;
  transform: scale(1.0) translateY(-8px);
  box-shadow: 0 8px 32px rgba(52, 101, 139, 0.277);
}

.learn-more-btn.icon-btn {
    padding: 8px 12px; /* Adjust padding for icon button */
    width: 40px; /* Make it more square/circular */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Makes it circular */
}

.learn-more-btn.icon-btn i {
    font-size: 1em;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-titles h2 {
        font-size: 2em;
    }

    .all-courses-btn {
        margin-top: 15px;
        align-self: flex-start;
    }

    .courses-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    .courses-grid1 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  
       }
}

@media (max-width: 480px) {
    .section-titles h2 {
        font-size: 1.8em;
    }
     .section-titles p {
        font-size: 0.9em;
    }
    .card-content h3 {
        font-size: 1.2em;
    }
}

/* Testimonials */
.tes_cons {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: 90%;
  max-width: 2000px;
  margin: 0 auto;
}

.testimonials {
  text-align: center;
}

.testimonials h2 {
  font-size: 3rem;
  color: #1a6d5b;
  margin-bottom: 2rem;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.testimonial-slider:hover .testimonial-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 4));
    }
}

.testimonial-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(250px * 8);
}

.testimonial-card {
    background: #fff;
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    flex-shrink: 0;
    width: 400px;
    transition: transform 0.2s;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}


.testimonial-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-size: 0.95rem;
}

@media (max-width: 768px) {

}


/* CTA Section */ 
.cta-section_container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

.cta-section {
  margin: 3rem 0 2rem 0;
}
.cta-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
}
.cta-img {
  width: 500px;
  border-radius: 12px;
  object-fit: cover;
}
.cta-text {
  flex: 1 1 320px;
}
.cta-text h2 {
  color: #1a6d5b;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-text ul {
  margin-bottom: 1.2rem;
  padding-left: 1.2rem;
}
.cta-help {
  margin-top: 1rem;
  color: #1a6d5b;
  font-size: 1rem;
}
.cta-years {
  position: relative; 
  left: -38%; 
  bottom: -155px;
  transform: translateX(-200%);
  background: #1a6d5b;
  color: #fff;
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.buy-form-btn {
  padding: 0.8rem 4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
  background: #34658B;
  color: white;
  transition: transform 0.4s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.3s;
}

.buy-form-btn:hover {
  background: #333;
  transform: scale(1.09) translateY(-18px);
  box-shadow: 0 8px 32px rgba(52, 101, 139, 0.277);
}


/* Why Choose Section */

.why-choose-txt {
  margin-top: 40px;
  text-align: center;    
}
.why-choose-txt h2 {
  font-size: 40px;
  color: #155a4a;
}

.why-choose_container {
  padding-top: 20px;
  display: flex;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}


.why-choose h2 {
  color: #1a6d5b;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}
.why-list li {
  background: #e6f2ef;
  color: #1a6d5b;
  border-radius: 10px;
  padding: 1rem 2rem;
  max-width: 600px;
  font-size: 1rem;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.097);
}
.why-img {
  display: flex;
  align-items: center;
  max-width: 500px;
  max-height: 500px;
  padding-left: 5%;
}

.why-img img {
  width: 90%;
  height: 90%;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .why-choose_container {
    flex-direction: column;
  }

  .why-img {
    padding-top: 12px;
    display: flex;   
  }
}


@media (max-width: 600px) {
  .container {
    width: 98%;
    padding: 0 0.5rem;
  }
  .hero {
    height: 500px;
  }
  .hero-overlay {
    padding: 1.2rem 0.5rem;
    font-size: 0.98rem;
  }
  .excellence-img, .cta-img {
    max-width: 100%;
    height: auto;
  }
  .why-img {
    width: 350px;
  }
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
    min-height: 800px;
  }

  .hero-overlay {
    padding: 2rem 1.5rem;
    width: 95%;
  }

  .hero-buttons {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 101vh;
    min-height: 400px;
  }

  .hero-overlay {
    padding: 1.5rem 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Campus Slideshow Styles */
.campus-slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.campus-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.campus-slide.active {
  display: block;
}

.campus-slide img {
  position: absolute;
  top: -32px;
  left: 0;
  border-radius: 20px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Campus Navigation dots */
.campus-slideshow-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.campus-dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 2px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.campus-dot.active, .campus-dot:hover {
  background-color: white;
}

/* Campus slideshow responsive adjustments */
.campus-slideshow-container {
  margin-bottom: 15px;
}

.campus-slideshow-dots {
  bottom: 15px;
}

.campus-dot {
  height: 10px;
  width: 10px;
}

.students-info-box {
  position: absolute;
  bottom: 400px; 
  left: 0%; 
  transform: translateX(-10%);
  background-color: #ffffff;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 1; 
  width: auto; 
  min-width: 120px;
}

/* Dropdown Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .nav-link {
    display: flex;
    align-items: center;
}

.dropdown .nav-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 12px 0;
    margin-top: 0;
    top: 100%;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #1a6d5b;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown .rotate {
    transform: rotate(180deg);
}
