body {
    font-family: 'Poppins', sans-serif;
    padding-top: 80px;
}

/* Navbar Hover */
.nav-hover {
    position: relative;
    transition: 0.3s;
}

.nav-hover:hover {
    color: #1E3A8A !important;
}

.nav-hover::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #1E3A8A;
    left: 0;
    bottom: 0;
    transition: 0.3s;
}

.nav-hover:hover::after {
    width: 100%;
}

/* Carousel */
.carousel-img {
    height: 90vh;
    object-fit: cover;
}

/* Overlay Box */
.overlay-box {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    color: white;
}

/* Courses Section */
.courses-section {
  background: linear-gradient(to right, #1E3A8A, #0f1f4d);
}

/* Horizontal scroll track */
.courses-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 280px);
  gap: 18px;

  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 18px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  -webkit-overflow-scrolling: touch;
}

/* scrollbar (optional, modern) */
.courses-track::-webkit-scrollbar { height: 10px; }
.courses-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 999px; }
.courses-track::-webkit-scrollbar-track { background: rgba(255,255,255,.08); border-radius: 999px; }

.course-slide {
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
}

/* Fixed-size consistent card */
.course-card {
  height: 360px;              /* makes all cards same height */
  width: 100%;
  background: #ffffff;
  color: #1E3A8A;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;

  box-shadow: 0px 10px 25px rgba(0,0,0,0.18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 14px 34px rgba(0,0,0,0.25);
}

/* Fixed image size so cards stay same shape */
.course-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
}

.course-title {
  margin: 6px 0 0;
  font-weight: 800;
  color: #0f1f4d;
}

/* Clamp description so every card stays same height */
.course-desc {
  font-size: 14px;
  opacity: .9;
  margin: 0;
  color: #334155;

  display: -webkit-box;
  -webkit-line-clamp: 3;      /* show max 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-cta {
  margin-top: auto;           /* pushes to bottom -> consistent alignment */
  font-weight: 700;
  color: #1E3A8A;
  opacity: .95;
}

/* Make it feel nice on small screens */
@media (max-width: 576px) {
  .courses-track {
    grid-auto-columns: minmax(240px, 85vw);
  }
  .course-card { height: 350px; }
}

/* Media Slider */
.slider-wrapper {
    overflow: hidden;
}

.slider {
    display: flex;
    animation: slide 20s linear infinite;
}

.media-box {
    min-width: 300px;
    margin: 15px;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 5px 20px rgba(0,0,0,0.1);
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
.footer-section {
    background: #0f1f4d;
}

/* ----------ABOUT PAGE--------*/

/* About Hero */
.about-hero {
    height: 45vh;
    background: #0f1f4d !important;
    background-size: cover;
    background-position: center;
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: 10px;
    transition: 0.4s;
}

.info-card:hover {
    transform: translateY(-10px);
}

/* Feature Boxes */
.feature-box {
    padding: 25px;
    background: #1E3A8A;
    color: white;
    border-radius: 8px;
    margin: 10px;
    transition: 0.4s;
}

.feature-box:hover {
    background: #0f1f4d;
    transform: scale(1.05);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, #1E3A8A, #0f1f4d);
}

/* Amenities Section */
.amenities-section {
  background: #f8fafc;
}

.amenities-title {
  color: #0f1f4d;
  font-weight: 800;
}

.amenities-lead {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

.amenities-block {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(15, 31, 77, 0.08);
}

.amenities-block p {
  color: #0f1f4d;
}

.amenities-list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
}

.amenities-list li {
  margin: 7px 0;
  line-height: 1.5;
}

/* Gallery */
.amenities-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.amenity-photo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 31, 77, 0.10);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  background: #e2e8f0;
}

.amenity-photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.amenity-photo:hover img {
  transform: scale(1.05);
}

.amenities-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 58, 138, 0.08);
  color: #0f1f4d;
  font-size: 13px;
}

/* Mobile */
@media (max-width: 576px) {
  .amenity-photo img {
    height: 140px;
  }
}

/* Registration Hero */
.registration-hero {
    height: 40vh;
    background: linear-gradient(rgba(15,31,77,0.85), rgba(15,31,77,0.85)), 
                url('../images/slide2.jpg');
    background-size: cover;
    background-position: center;
}

.payment-link-text {
  font-size: 15px;
  opacity: 0.95;
}

.scroll-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  transition: 0.3s ease;
}

.scroll-link:hover {
  color: #cbd5ff;
}

/* Payment Cards */
.payment-card {
    background: white;
    border-radius: 10px;
    transition: 0.3s;
}

.payment-card:hover {
    transform: translateY(-5px);
}
