/* Custom styles */
body {
  font-family: Arial, sans-serif;
}



 html {
    scroll-behavior: smooth;
  }
#about, #why-us, #services, #contact {
  scroll-margin-top: 80px;
}

  .icon-box {
    width: 100px;
    height: 100px;
  }
  .icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

:root {
  --gap: 16px;
  margin-bottom: 16px;
}

#courseCarouselCustom {
  margin-bottom: 60px; /* gives space below the carousel */
}


/* outer wrapper */
.custom-carousel {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
}

/* viewport hides overflow */
.carousel-viewport {
  overflow: hidden;
}

/* track is the sliding flex row */
.carousel-track {
  display: flex;
  align-items: stretch;
  gap: var(--gap);
  transition: transform 0.55s cubic-bezier(.22,.9,.32,1);
  will-change: transform;
}

/* control how many cards per view using CSS var --cards */
.custom-carousel { --cards: 4; } /* default desktop */

/* responsive breakpoints */
@media (max-width: 1100px) { .custom-carousel { --cards: 3; } }
@media (max-width: 820px)  { .custom-carousel { --cards: 2; } }
@media (max-width: 480px)  { .custom-carousel { --cards: 1; } }

/* each card width is computed from the cards count and gap */
.course-card {
  box-sizing: border-box;
  flex: 0 0 calc((100% - ( (var(--cards) - 1) * var(--gap) )) / var(--cards));
  min-width: 0;
  /* optional styling */
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* internal card content simple styles (tweak as needed) */
.services-block-container { text-align: center; }
.course-img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; display:block; margin-bottom: 8px; }
.course-title { margin: 6px 0 4px; font-size: 1.05rem; }
.course-desc { font-size: 0.9rem; color:#555; margin-bottom: 8px; }
.btn-enquire { display:inline-block; padding:8px 12px; font-size:0.9rem; background:#0d6efd; color:#fff; border-radius:6px; text-decoration:none; }

/* ===== buttons (prev/next) styling & mobile alignment ===== */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  cursor: pointer;
  z-index: 40;
  padding: 0;
}

/* left / right offsets */
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* larger hit area on mobile & slightly pull buttons inward so they don't overlap card content */
@media (max-width: 480px) {
  .carousel-btn { width: 52px; height: 52px; }
  .carousel-btn.prev { left: 6px; }
  .carousel-btn.next { right: 6px; }
}

/* ensure SVG icons inherit color */
.carousel-btn svg { color: #222; }

/* optional: remove text selection during drag */
.carousel-track, .carousel-viewport { -webkit-user-select: none; -ms-user-select:none; user-select:none; }

/* small visual tweak for when the carousel is focused */
.custom-carousel:focus-within .carousel-btn { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

   .submit-button {
  background-color: #b33686; /* default color */
  border: none;
  transition: all 0.3s ease; /* smooth hover effect */
}

.submit-button:hover {
  background-color: #126e29; /* darker shade on hover */
  color: #fff; /* text stays visible */
  visibility: visible; /* ensure it won�t hide */
  display: inline-block; /* keep its layout */
}

    .submit-button{
      background-color: #b33686;
    }

  #backToTop {
      position: fixed;
      background-color: #1f70ce;
      bottom: 20px;
      right: 20px;
      display: none;
      z-index: 999;
      color: #fff;
    }
  

.toast-progress {
  height: 4px;
  background: rgba(6, 59, 1, 0.8);
  width: 0%;
  transition: width linear;
}


/* course section design*/
/* Container styling */
/* #courses {
  padding: 60px 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #1e1e1e 100%);
  color: #fff;
} */
#courses {
  padding: 60px 0;
  margin-bottom: 70px;  /* increased margin */
  background: 
    url('../images/coursebg.jpg') center/cover no-repeat;
  color: #fff;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ? Responsive tweaks for mobile & tablets */
@media (max-width: 768px) {
  #courses {
    padding: 40px 15px;
    background-attachment: scroll; /* better performance on mobile */
  }
}

@media (max-width: 480px) {
  #courses {
    padding: 30px 10px;
  }
}



/* Section header */
#courses .main-header {
  font-family: 'Domine', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 40px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Carousel buttons */
.carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Carousel structure */
.carousel-viewport {
  overflow: hidden;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

/* Course cards */
.course-card {
  flex: 0 0 280px;
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.services-block-container {
  text-align: center;
  padding: 20px;
}

.course-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.course-title {
  font-size: 1.25rem;
  color: #333;
  margin-top: 15px;
  font-weight: 600;
}

.course-desc {
  font-size: 0.95rem;
  color: #555;
  margin: 10px 0 20px;
  min-height: 60px;
}

/* Enquire button */
.btn-enquire {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-enquire:hover {
  background: linear-gradient(135deg, #0056b3, #0090d6);
}

.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 5px;
}

.flex_grid .flex_item {
  box-sizing: border-box;
  float: left;
  padding: 2em;
  margin-bottom: 20px;
}

.process-details i {
  color: #1e83ec;
  margin-bottom: 15px;
  font-size: 40px;
}

.process {
  text-align: center;
}

.flex_grid {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex
;
  flex-flow: row wrap;
  justify-content: center;
}

.process-text {
  line-height: 40px;
  display: block;
}

.process-number {
  color: #1e83ec;
  font-size: 50px;
  font-weight: 300;
  letter-spacing: -2px;
  display: block;
}

.process-number{
  color: #0a7acb !important;
}

.process-number-text {
  font-size: 13px;
  font-weight: 600;
  color: #000000;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.separator-thick {
  background: #d4d4d4;
  margin: 3% auto;
  height: 4px;
  width: 30px;
}

.process-details{
  height: 100%;
  left: 0;
  width: 100%;
  padding-top: 1em;
}

.fa-rocket {
  color: #1f70ce;       /* Change icon color */
  font-size:24px;       /* Change icon size */
  margin-right:10px;    /* Add spacing */
  transition: transform 0.3s ease; /* Optional hover effect */
}

.fa-rocket:hover {
  transform: scale(1.2); /* Slight zoom on hover */
}

.process-details span {
  line-height: 24px;
  display: block;
  font-family: 'Questrial', sans-serif;
  font-size: 15px;
}