/* Hero section */
.main-content {
  padding-top: 140px;
  min-height: 500px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background-image: url('/public/assets/img/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Optional: dark overlay */
.main-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.home-banner {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 600px;
  margin-left: 200px;
  margin-top: 100px;
  text-align: left;
  border-radius: 10px;
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.home-banner.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.home-banner h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.home-banner p {
  font-size: 1.2em;
}

/* About Us section */
.home-about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  background-color: #f0f8ff;
  flex-wrap: wrap;
  gap: 40px;
}

.about-text {
  flex: 1 1 400px;
  min-width: 280px;
  color: #003f5c;
}

.about-text h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-text .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #00bcd4;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.about-text .btn:hover {
  background-color: #0097a7;
}

.about-image {
  flex: 1 1 400px;
  min-width: 280px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Shared card layout */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  padding: 40px 10%;
  background-color: #f9f9f9;
}

.card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  flex: 1 1 280px;
  text-align: center;
  transition: transform 0.3s ease;
  padding-bottom: 20px;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.5em;
  color: #003f5c;
  padding: 0 10px;
}

.card p {
  font-size: 1em;
  color: #333;
  margin-bottom: 15px;
  padding: 0 20px;
}

.card-grid a {
  text-decoration: none;
}

.card .special-valid {
  font-size: 0.9em;
  color: #00796b;
  font-weight: 600;
}

.card .btn {
  display: inline-block;
  padding: 10px 16px;
  background-color: #00bcd4;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.card .btn:hover {
  background-color: #0097a7;
}

/* Section headers */
.home-courses h2,
.home-trips h2,
.home-specials h2 {
  text-align: center;
  font-size: 2.5em;
  margin-top: 80px;
  color: #003f5c;
}

.course-short {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 10px;
  text-align: left;
}

.course-features {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
  text-align: left;
}

.course-features li {
  font-size: 0.9em;
  color: #333;
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

.course-features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #00bcd4;
  font-weight: bold;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 40px 10%;
  background-color: #f9f9f9;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}
.view-course-btn {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #00bcd4;
  color: white;
  padding: 8px 14px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}
.view-course-btn:hover {
  background-color: #0097a7;
}

.carousel-card {
  text-decoration: none;
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: 350px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding-bottom: 60px; /* reserve space for button */
  transition: transform 0.3s ease;
}

.carousel-card:hover {
  transform: translateY(-5px);
}

.carousel-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 10px;
}

.carousel-card h3 {
  font-size: 1.2em;
  color: #003f5c;
  margin: 5px 0;
}
.course-durations span {
  padding-right: 5px;
  font-size: 20px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #00bcd4;
  color: white;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 2;
  border-radius: 4px;
}

.carousel-btn.left {
  left: 20px;
}

.carousel-btn.right {
  right: 20px;
}

.carousel-btn:hover {
  background-color: #0097a7;
}

/* Hide scrollbars */
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


.home-reviews {
  background-color: #f0f8ff;
  padding: 80px 10%;
}

.home-reviews h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #003f5c;
}

.review-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.review-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 400px;
  flex: 1 1 300px;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.review-header h4 {
  margin-bottom: 0;
}

.initials {
  background-color: #00bcd4;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-date {
  margin: 0;
  font-size: 0.9em;
  color: #666;
}

.review-text {
  font-size: 1em;
  line-height: 1.6;
  color: #333;
}

.review-stars {
  color: #FFD700;
  font-size: 1.4em;
  letter-spacing: 3px;
}

/* Scroll animation */
.review-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.review-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.home-cta {
  background: linear-gradient(to right, #00bcd4, #00796b);
  color: white;
  text-align: center;
  padding: 80px 10%;
}

.home-cta h2 {
  font-size: 2.8em;
  margin-bottom: 20px;
}

.home-cta p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.home-cta .btn {
  background-color: white;
  color: #00796b;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.home-cta .btn:hover {
  background-color: #f0f8ff;
}

.home-gallery {
  padding: 80px 10%;
  background-color: #e0f7fa;
  text-align: center;
}

.home-gallery h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #003f5c;
}

.home-gallery-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.home-gallery-grid img:hover {
  transform: scale(1.05);
}

.home-gallery-btn {
  margin-top: 30px;
  display: inline-block;
}

.home-location {
  padding: 80px 10%;
  background-color: #f9f9f9;
  text-align: center;
}

.home-location h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #003f5c;
}

.home-location p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.map-container iframe {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.home-faq {
  padding: 80px 10%;
  background-color: #e3f2fd;
}

.home-faq h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #003f5c;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  width: 100%;
  text-align: left;
  background-color: #00bcd4;
  color: white;
  font-size: 1.1em;
  padding: 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 15px;
  background-color: white;
  border-left: 4px solid #00bcd4;
  margin-top: 5px;
  border-radius: 5px;
}

.image-wrapper {
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.level-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #00bcd4;
  color: white;
  font-size: 0.8em;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.card-info {
  padding: 10px;
}

.course-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #003f5c;
  margin-bottom: 5px;
  text-align: left;
}

.course-durations {
  font-size: 0.95em;
  text-align: left;  
  font-weight: 500;
}

/* Banner margin steps */
@media (max-width: 1200px) {
  .home-banner {
    margin-left: 120px;
  }
}

@media (max-width: 992px) {
  .home-banner {
    margin-left: 60px;
  }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .carousel-card {
    width: 320px;
  }

  .carousel-btn {
    font-size: 20px;
    padding: 6px 10px;
  }
  .main-content {
    align-items: center;
    padding-top: 0px;
    min-height: 500px;
  }

  .home-banner {
    margin-left: 0px;
    margin-top: 200px;
    padding: 40px;
    max-width: 90%;
  }

  .home-banner h1 {
    font-size: 2em;
  }

  .home-banner p {
    font-size: 1em;
  }

  .home-about {
    padding: 60px 20px;
    text-align: center;
  }

  .about-text,
  .about-image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .about-text h2 {
    font-size: 2em;
  }

  .home-offers {
    flex-direction: column;
    padding: 60px 20px;
  }

  .offer-card {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .offer-card h3 {
    font-size: 1.8em;
  }

  .offer-card p {
    font-size: 1em;
  }

  .card-grid {
    padding: 40px 20px;
  }

  .card {
    max-width: 100%;
  }

  .home-courses h2,
  .home-trips h2,
  .home-specials h2 {
    font-size: 2em;
  }
  .home-reviews {
    padding: 60px 20px;
  }

  .review-card {
    max-width: 100%;
  }

  .home-reviews h2 {
    font-size: 2em;
  }
}