/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f5f5;
}

/* ================= GENERIC SECTION ================= */
section {
  width: 100%;
  position: relative;
  margin-bottom: 0px;
}

/* ================= SERVICES SECTION FIX ================= */
/* IMPORTANT: prevents collapse/overlap */
.services-section {
  display: flex;
  flex-wrap: wrap;        
  overflow-x: auto;
  gap: 20px;
  padding: 40px 20px;
  scroll-behavior: smooth;
}

/* ================= SCROLL SECTION ================= */
.scroll-section {
  padding: 60px 20px 40px;   /* 👈 increase top spacing */
  clear: both;   /* 👈 THIS replaces your old clear div safely */
}

/* THEMES */
.inbound { background: #01236a;}
.outbound { background: #0165d6; }
.wildlife { background: #023b4e; }

/* ================= HEADER ================= */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}

/* In-Bound heading color */
.inbound .section-header h2 {
  color: #fff;
}

/* Out-Bound heading color */
.outbound .section-header h2 {
  color: #fff;
}

/* Wildlife heading color */
.wildlife .section-header h2 {
  color: #fff;
}


/* In-Bound Paragraph color */
.inbound .section-header p {
  color: #fff;
}


/* Out-Bound Paragraph color */
.outbound .section-header p {
  color: #fff;
}


/* Wildlife Paragraph color */
.wildlife .section-header p {
  color: #fff;
}


.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
}

.section-header p {
  font-family: 'Poppins', sans-serif;
  color: #666;
  font-size: 14px;
}

/* ================= SCROLL ================= */
.scroll-wrapper {
  position: relative;
}

.scroll-container {
  display: flex;
  flex-wrap: nowrap;        /* 🔥 IMPORTANT: prevent wrapping */
  gap: 20px;
  overflow-x: auto;
  padding: 20px 50px; /* space for arrows */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

/* ================= CARD ================= */
.card-scroll {
  min-width: 280px;   /* 🔥 increased from 220px */
  max-width: 300px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s;
  scroll-snap-align: start;
}

.card-scroll:hover {
  transform: translateY(-5px);
}

.card-scroll img {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
}

.card-scroll h3 {
  margin: 10px 0 5px;
  font-size: 16px;
}

.card-scroll p {
  font-size: 13px;
  color: #555;
}

/* BUTTON */
.card-scroll a {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 8px;
  background: #d84315;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

/* SECTION COLOR BUTTONS */
.outbound .card-scroll a { background: #1565c0; }
.wildlife .card-scroll a { background: #2e7d32; }

/* ================= ARROWS ================= */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  background: #fff;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* keep arrows inside */
.scroll-btn.left { left: 10px; }
.scroll-btn.right { right: 10px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .scroll-container {
    flex-direction: column;   /* 🔥 stack cards vertically */
    align-items: center;      /* 🔥 center them */
    overflow-x: hidden;       /* remove horizontal scroll */
    padding: 20px;
  }

  .card-scroll {
    width: 90%;               /* nice width */
    max-width: 320px;
    min-width: unset;         /* remove horizontal sizing */
  }
}

@media (min-width: 992px) {
  .card-scroll {
    min-width: 300px;
    max-width: 320px;
  }
}

