/* ---------------------------
   Main Wrapper
---------------------------- */
.main-wrapper {
  display: flex;
  flex-direction: column;
}

/* ---------------------------
   First Screen Section
---------------------------- */
.first-screen {
  width: 100%;
  height: 100vh;
  background-image: url("../images/home_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.first-screen .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 1.25rem;
}

.first-screen .overlay h1 {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
  max-width: 50rem;
  line-height: 1.2;
}

.first-screen .subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 0.5rem;
  opacity: 0.85;
}

@media (max-width: 480px) {
  .first-screen .overlay h1 {
    font-size: 2rem;
  }
  .first-screen .subtitle {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) {
  .first-screen .overlay h1 {
    font-size: 4rem;
  }
}

/* ---------------------------
   Buttons
---------------------------- */
.btn-primary,
.get-started-btn {
  display: inline-block;
  margin-top: 4.375rem;
  padding: 0.75rem 1.5625rem;
  background: #589afe;
  color: white;
  font-weight: 600;
  border-radius: 0.9375rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s;
}

.btn-primary:hover,
.get-started-btn:hover {
  background: #4178c2;
}

/* ---------------------------
   Smooth Scroll
---------------------------- */
html {
  scroll-behavior: smooth;
}

/* ---------------------------
   Package Carousel
---------------------------- */
.package-carousel {
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Package Cards */
.package-carousel .package-card {
  min-width: 100%;
  display: flex;
  flex-direction: row;
  background: #e8f1fa;
  border-radius: 0.625rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: none; /* remove any hover transform */
}

.package-card.reverse {
  flex-direction: row-reverse;
}

/* Package Info */
.package-info {
  flex: 1;
  padding: 1.875rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}

@media (min-width: 768px) {
  .package-info {
    text-align: left;
  }
}

.package-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
  color: #222;
}

.package-info p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Package Meta Information */
.package-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .package-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.package-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.package-meta .duration {
  color: #589afe;
}

.package-meta .price {
  color: #28a745;
  font-weight: 600;
}

.package-meta i {
  font-size: 1rem;
}

/* Package Image - Responsive & Uniform on large screens */
.package-img {
  flex: 1;
  width: 100%;
  max-height: 400px; /* uniform max height for large screens */
}

.package-img img {
  width: 100%;
  height: 100%; 
  object-fit: cover;
  display: block;
}

/* Buttons inside cards */
.button-container {
  text-align: center;
  margin-top: auto;
}

.btn {
  display: inline-block;
  margin-top: 0.9375rem;
  padding: 0.625rem 1.25rem;
  background: #589afe;
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 0.9375rem;
  transition: background 0.3s;
  font-weight: 600;
}

.btn:hover {
  background: #4178c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 154, 254, 0.3);
}

/* ---------------------------
   Carousel Arrows
---------------------------- */
.package-group {
  position: relative;
}

.package-group .carousel-prev,
.package-group .carousel-next {
  position: absolute;
  top: 60%; /* centered vertically */
  transform: translateY(-50%);
  background-color: #589afe;
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.package-group .carousel-prev {
  left: -60px; /* outside card */
}

.package-group .carousel-next {
  right: -60px; /* outside card */
}

.package-group .carousel-prev:hover,
.package-group .carousel-next:hover {
  background-color: #4178c2;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(88, 154, 254, 0.4);
}

/* ---------------------------
   Packages Section
---------------------------- */
.packages-section {
  display: flex;
  flex-direction: column;
  gap: 3.75rem;
  padding: 5rem 1.25rem 3.75rem 1.25rem;
  background: #ffffff;
}

.package-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-left: 6.25rem;
  margin-right: 6.25rem;
}

.package-category h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #000000;
  text-align: left;
}



/* ---------------------------
   Responsive Design
---------------------------- */
@media (max-width: 1024px) {
  .package-img {
    max-height: 300px;
  }
  
  .package-group {
    margin-left: 3rem;
    margin-right: 3rem;
  }
  
  .package-group .carousel-prev {
    left: -40px;
  }
  
  .package-group .carousel-next {
    right: -40px;
  }
}

@media (max-width: 768px) {


  /* Stack all package cards vertically */
  .package-card,
  .package-card.reverse {
    flex-direction: column !important;
  }

  /* Ensure image is always on top */
  .package-card .package-img,
  .package-card.reverse .package-img {
    order: -1; /* image comes first */
    width: 100%;
    height: auto;
    max-height: none;
  }

  .package-info {
    text-align: center;
    padding: 1.25rem;
  }
  
  .package-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .package-meta span {
    font-size: 1rem;
  }

  .package-group {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }

  .package-group .carousel-prev {
    left: -20px;
  }

  .package-group .carousel-next {
    right: -20px;
  }
  
  .package-category h2 {
    font-size: 1.75rem;
  }
  
  .packages-section {
    padding: 3rem 1rem 2rem 1rem;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .first-screen .overlay h1 {
    font-size: 1.75rem;
  }
  
  .first-screen .subtitle {
    font-size: 1rem;
  }
  
  .package-info h3 {
    font-size: 1.25rem;
  }
  
  .package-info p {
    font-size: 0.9rem;
  }
  
  .package-meta span {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .package-group .carousel-prev,
  .package-group .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .package-group .carousel-prev {
    left: -15px;
  }
  
  .package-group .carousel-next {
    right: -15px;
  }
  
  .package-category h2 {
    font-size: 1.5rem;
  }
}

/* ---------------------------
   Empty States
---------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  min-height: 300px;
  background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
  border-radius: 15px;
  border: 2px dashed #87ceeb;
  margin: 1rem;
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #87ceeb, #4fc3f7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 2.5rem;
}

.empty-state h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.empty-state p {
  color: #7f8c8d;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 300px;
}

@media (max-width: 768px) {
  .empty-state {
    padding: 2rem 1rem;
    min-height: 250px;
  }
  
  .empty-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .empty-state h3 {
    font-size: 1.25rem;
  }
  
  .empty-state p {
    font-size: 0.9rem;
  }
}
