/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 🔥 GLOBAL FIX (IMPORTANT) */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* HERO */
.hero {
  min-height: 80vh;
  width: 100%;
  background: url('Images/hero\ image.jpg') center/cover no-repeat;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden; /* ✅ FIX */
}

/* DARK OVERLAY */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* CONTENT */
.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  width: 100%;              /* ✅ FIX */
  padding: 20px;
  color: #fff;
}

/* SUBTITLE */
.hero-subtitle {
  font-family: cursive;
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 10px;
}

/* MAIN TITLE */
.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

/* ANIMATED TEXT */
.hero-dynamic {
  font-size: 22px;
  color: #facc15;
  font-weight: 500;
  margin-bottom: 25px;
  min-height: 28px;
}

/* SEARCH BOX */
.hero-search {
  display: flex;
  width: 90%;              /* ✅ FIX (important) */
  max-width: 500px;        /* ✅ reduce */
  margin: auto;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
}

/* INPUT */
.hero-search input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  outline: none;
  font-size: 15px;
  min-width: 0; /* ✅ FIX overflow */
}

/* BUTTON */
.hero-search button {
  background: #16a34a;
  border: none;
  padding: 0 18px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0; /* ✅ FIX */
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .hero-title {
    font-size: 32px;
  }

  .hero-dynamic {
    font-size: 18px;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-search {
    width: 95%;  /* ✅ better mobile */
  }
}


/* ================= SECTION ================= */
.categories-section {
  padding: 100px 20px;
  background: #f4f8f6;
  text-align: center;
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  overflow: hidden;
}

.categories-section::after {
  content: "";
  position: absolute;
  bottom: -30px;  
  left: 50%;
  transform: translateX(-50%);

  width: 100%;     
  height: 60px;    

  background: #fff;
  border-radius: 50%;
}

/* subtle pattern */
.categories-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  opacity: 0.05;
  pointer-events: none;
}

/* ================= HEADER ================= */
.categories-header .sub-title {
  font-family: cursive;
  color: #2f6f68;
  font-size: 20px;
}

.categories-header h2 {
  font-size: 42px;
  margin-top: 5px;
  color: #123;
  font-weight: 600;
}

/* ================= SLIDER ================= */
.categories-slider {
  display: flex;
  gap: 30px;
  margin-top: 60px;

  max-width: 1200px;
  width: 100%;
  align-items: center;

  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 30px 10px;

  justify-content: flex-start;
}

.categories-slider::-webkit-scrollbar {
  display: none;
}

/* ================= CARD ================= */
.category-card {
  flex: 0 0 260px;
  height: 260px;

  position: relative;
  cursor: pointer;
  overflow: hidden;

  border-radius: 20px;
  transition: 0.4s ease;

  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  transform-origin: center;
}

.category-card {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* hover */
.category-card:hover {
  transform: scale(1.05);
  z-index: 3;
}

/* ================= IMAGE ================= */
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= OVERLAY ================= */
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* ================= TEXT ================= */
.category-card h3 {
  position: absolute;
  bottom: 40px;
  left: 20px;
  color: #fff;
  font-size: 18px;
  z-index: 2;
}

.category-card span {
  position: absolute;
  bottom: 15px;
  left: 20px;
  color: #ddd;
  font-size: 13px;
  z-index: 2;
}

/* ================= TABLET ================= */
@media (max-width: 992px) {
  .category-card {
    flex: 0 0 calc(50% - 20px);
    height: 240px;
  }

  .categories-header h2 {
    font-size: 34px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
  .categories-section {
    padding: 70px 20px;
  }

  .categories-header h2 {
    font-size: 28px;
  }

  .category-card {
    flex: 0 0 80%;
    height: 200px;
  }

  .category-card h3 {
    font-size: 15px;
  }
}



/* ================= DESTINATION SECTION ================= */
.destination-section {
  padding: 100px 0px;
  text-align: center;
  background: #f4f8f6;
  overflow: hidden;
}

.destination-header .destination-sub {
  font-family: cursive;
  color: #2f6f68;
  font-size: 18px;
}

.destination-header h2 {
  font-size: 40px;
  margin-top: 5px;
  color: #123;
  font-weight: 600;
}

.destination-wrapper {
  overflow: hidden;
  margin-top: 60px;
  width: 100%; /* ✅ FIXED */
}

.destination-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;     
  padding: 20px 10px;   /* ✅ small side padding fix */
}

.destination-slider::-webkit-scrollbar {
  display: none;
}

/* ================= CARD ================= */
.destination-card {
  flex: 0 0 240px;
  height: 320px;

  border-radius: 20px;
  overflow: hidden;
  position: relative;

  cursor: pointer;

  transition: transform 0.4s ease;
  transform: scale(1);
}

.destination-card.active {
  transform: scale(1.15);
  z-index: 2;
}

/* IMAGE */
.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY */
.destination-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;

  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  color: #fff;
}

.destination-overlay h3 {
  font-size: 18px;
}

.destination-overlay span {
  font-size: 13px;
  opacity: 0.9;
}

/* 🔥 HOVER */
.destination-card:hover {
  transform: scale(1.08);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .destination-card {
    flex: 0 0 180px;
    height: 240px;
  }

  .destination-overlay h3 {
    font-size: 15px;
  }
}

.trip-premium {
  padding: 100px 20px; /* ✅ side spacing fix */
  background: linear-gradient(135deg, #f5f7f6, #e8f0ec);
}

.trip-box {
  max-width: 1100px;
  width: 100%;
  margin: auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;

  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* IMAGE */
.trip-image {
  overflow: hidden;
  border-radius: 25px;
}

.trip-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: 0.6s;
}

.trip-image:hover img {
  transform: scale(1.08);
}

/* CONTENT */
.trip-info h2 {
  font-size: 40px;
  margin: 10px 0;
  font-weight: 700;
  color: #1c2b2d;
}

.tag {
  color: #2e7d32;
  font-weight: 600;
}

.desc {
  color: #555;
  margin-bottom: 20px;
}

/* FEATURES */
.features {
  list-style: none;
  padding: 0;
}

.features li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2e7d32;
}

/* BUTTON */
.premium-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #0f3d3e, #145c5c);
  color: white;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.premium-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* 🔥 RESPONSIVE */
@media (max-width: 992px) {
  .trip-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trip-image img {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .trip-info h2 {
    font-size: 26px;
  }

  .trip-box {
    padding: 20px;
  }
}

/* ================= WHY SECTION ================= */
.why-section {
  padding: 100px 20px; /* ✅ side spacing fix */
  background: #f6f7f6;
  text-align: center;
}

.why-section .container {
  max-width: 1100px;
  width: 100%;
  margin: auto;
  padding: 0 15px;
}

.sub {
  color: #2e7d32;
  font-family: cursive;
  margin-bottom: 5px;
}

.why-section h2 {
  font-size: 38px;
  margin-bottom: 60px;
  font-weight: 600;
}

/* 🔥 GRID FIX */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;

  width: 100%; /* ✅ FIXED */
  max-width: 1100px;
  margin: auto;
  box-sizing: border-box;
}

/* 🔥 CARD PREMIUM */
.card {
  position: relative;

  min-height: 320px;
  padding: 30px 25px;

  border-radius: 20px;
  background: #fff;
  text-align: left;

  border: 1.5px solid #7bc043;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  gap: 10px;

  transition: all 0.4s ease;
  box-sizing: border-box;
}

/* 🔥 HOVER */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
  border-color: #4caf50;
}

/* 🔥 TITLE */
.card h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

/* 🔥 TEXT FIX */
.card p {
  color: #666;
  font-size: 14px;

  position: relative;
  z-index: 2;
  max-width: 90%;
}

/* 🔥 ICON */
.icon {
  position: absolute;
  bottom: -40px;
  right: -40px;

  width: 140px;
  height: 140px;
  background: #e8f2ec;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 38px;
  opacity: 0.4;
  z-index: 1;
}

/* 🔥 FLOAT SHAPE */
.card::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid #6ec1e4;
  border-radius: 50%;
  right: -60px;
  top: 60px;

  opacity: 0.5;
  animation: float 6s infinite linear;
}

.card::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: orange;
  border-radius: 50%;
  bottom: 25px;
  left: 20px;

  animation: bounce 3s infinite;
}

/* 🔥 ANIMATIONS */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(15px); }
  100% { transform: translateY(0px); }
}

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 🔥 RESPONSIVE */
@media (max-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .why-section h2 {
    font-size: 26px;
  }

  .card {
    min-height: 280px;
  }
}