* {
  margin: 0;
  padding: 0;
  font-family: 'poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(62, 62, 62);
  color: #333;
}

/* Header and Navigation */
.header {
  width: 100%;
}

nav {
  display: flex;
  padding: 10px 6%; /* Adjusted padding for top/bottom */
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  position: relative;
  z-index: 10;
}

.logo {
  width: 190px;
  padding-bottom: 5px;
  padding-top: 10px;
  cursor: pointer;
}

nav img {
  width: 150px;
}

.hero-image {
  height: 50vh;
  width: 100%;
  background-image: url(/PICTURES/Catamaran.jpg); /* Ensure this path is correct */
  background-size: cover;
  background-position: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

/* Menu Bar (for mobile/responsive) */
.menu-bar {
  position: fixed;
  height: 100vh;
  z-index: 2; /* Increased z-index to ensure it's on top */
  width: 200px; /* Adjusted width for better content display */
  top: 0;
  right: -250px; /* Hidden by default */
  background: gray;
  text-align: left;
  transition: 1s;
  display: flex;
  flex-direction: column;

}

   .menu-bar li {
    list-style: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
  }
.menu-bar ul {
    padding-top: 50px;
    padding-left: 10px;
  }
  
  .menu-bar ul li {
    display: block;
    position: relative;
  }
.menu-bar ul li a {
    color: black; /* Ensure text is visible */
    text-decoration: none; /* Remove underline */
  }


/* Mobile Menu Toggle Icons */
  nav .fa {
    display: block;
    margin: 10px;
    font-size: 30px;
    cursor: pointer;
  }
.fa-bars-container {
  position: absolute;
  right: 30px;
  top: 20px;
  padding: 10px;
}

.fa-bars {
  font-size: 24px;
  cursor: pointer;
  color: white;
}


/* Main Content Layout */
.content {
  max-width: 1200px;
  margin: 70px auto 30px auto; /* Consistent top margin, auto for horizontal centering */
  padding: 0 20px; /* Horizontal padding for content */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.content h1 {
  background-color: #2c3e50;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  margin-bottom: 30px;
  border-radius: 8px;
  font-size: 2.5rem;
  font-weight: bold;
}

/* Specific adjustment for the first h1 after header */
.content:first-of-type h1 {
  margin-top: 0; /* Remove extra top margin if it's the first content block */
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
  gap: 30px;
}

.activity-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.activity-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.activity-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.activity-info h2 {
  margin: 0 0 15px 0;
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
}

.activity-info p1 { /* Assuming p1 is a typo and should be p or a specific class */
  flex-grow: 1;
  margin-bottom: 15px;
  line-height: 1.5;
  color: #666;
  font-size: 0.9rem;
}

.activity-info ul {
  padding-left: 20px;
  margin-bottom: 15px;
  color: #666;
  font-size: 0.9rem;
}

.activity-info .duration,
.activity-info .price {
  margin: 5px 0;
  font-weight: 600;
  color: #333;
}

.activity-info .price {
  color: #e74c3c;
  font-size: 1.1rem;
}

.booking-section {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Spacing between buttons/messages */
}

.booking-unavailable {
  color: #ff0000;
  font-weight: bold;
  text-align: center;
  font-size: 14px;
}

.book-now-btn,
.whatsapp-btn {
  display: inline-block;
  width: 100%;
  padding: 12px;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.book-now-btn {
  background-color: #007bff;
  color: white;
}

.book-now-btn:hover {
  background-color: #0056b3;
}

.whatsapp-btn {
  background-color: #25d366;
  color: white;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
}

.whatsapp-btn i {
  margin-right: 8px;
}

.ticket-only {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  border-left: 4px solid #007bff;
}

.ticket-only h4 {
  margin: 0 0 5px 0;
  color: #007bff;
  font-size: 0.9rem;
}

.ticket-only p {
  margin: 2px 0;
  font-size: 0.8rem;
  color: #666;
}

/* Booking Info Section */
.booking-info {
  background-color: #f1f8ff;
  padding: 20px; /* Increased padding for better visual appeal */
  border-radius: 6px;
  margin: 50px auto 30px auto; /* Consistent margins */
  max-width: 1200px;
  text-align: center;
}

.booking-info h3 {
  color: #2c3e50;
  margin-bottom: 15px; /* Increased margin */
  font-size: 22px;
}

/* Go to Top Button */
.gotopbtn {
  position: fixed;
  width: 50px;
  height: 50px;
  background: #eb0404;
  bottom: 40px;
  right: 50px;
  text-decoration: none;
  text-align: center;
  line-height: 50px;
  color: white;
  font-size: 22px;
  border-radius: 50%; /* Make it round */
  z-index: 99;
  opacity: 0; /* Hidden by default */
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gotopbtn.show { /* Class to show the button via JS */
  opacity: 1;
  visibility: visible;
}

/* Footer */
footer {
  background-color: #1a202c;
  padding: 40px 0 10px; /* Adjusted padding */
  color: #a0aec0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 20px; /* Added horizontal padding */
}

.footer-section {
  flex: 1 1 200px; /* Allows sections to grow/shrink and wrap */
  margin-bottom: 2rem;
  text-align: left; /* Align text left within sections */
}

.footer-section h2,
.footer-section h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: flex-start; /* Align icons to the left */
}

.social-icons a {
  color: #a0aec0;
  font-size: 1.5rem; /* Adjusted font size */
  transition: color 0.3s ease;
  margin-right: 0; /* Remove extra margin */
}

.social-icons a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #2d3748;
}

/* Responsive Adjustments */
@media only screen and (max-width: 768px) { /* Changed breakpoint to 768px for tablets/smaller desktops */
  nav {
    padding: 10px 4%;
  }

  .fa-bars-container {
    display: block; /* Show hamburger icon */
  }

  .fa-bars {
    display: block;
  }

   .menu-bar {
    position: fixed;
    height: 100vh;
    z-index: 2;
    width: 200px;
    top: 0;
    right: -250px;
    background: gray;
    text-align: left;
    transition: 1s;
    display: flex;
    flex-direction: column;
  }
  
  .menu-bar li {
    list-style: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
  }
  .fa-times {
    display: block; /* Show close icon */
  }

  .hero-image {
    height: 30vh; /* Smaller hero image on mobile */
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .content {
    margin-top: 40px;
    padding: 0 15px;
  }

  .content h1 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0 15px; /* Ensure padding on mobile */
  }

  .tours-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .activity-card {
    flex-direction: row; /* Horizontal layout for cards on mobile */
    height: auto;
    min-height: 120px;
  }

  .activity-card img {
    width: 35%;
    height: auto; /* Let height adjust to content */
    flex-shrink: 0;
  }

  .activity-info {
    padding: 10px;
    justify-content: space-between;
  }

  .activity-info h2 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    line-height: 1.2;
  }

  .activity-info p1,
  .activity-info ul {
    display: none; /* Hide detailed text and lists on mobile cards */
  }

  .activity-info .price {
    font-size: 1rem;
  }

  .activity-info .duration {
    font-size: 0.8rem;
  }

  .booking-section {
    padding-top: 10px;
    gap: 5px;
  }

  .booking-unavailable {
    font-size: 0.75rem;
    margin-bottom: 5px;
  }

  .book-now-btn,
  .whatsapp-btn {
    padding: 8px;
    font-size: 0.9rem;
  }

  .whatsapp-btn i {
    margin-right: 5px;
  }

  .ticket-only {
    display: none; /* Hide ticket-only section on mobile */
  }

  .booking-info {
    padding: 15px;
    margin: 30px auto 20px auto;
  }

  .booking-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .footer-content {
    grid-template-columns: 1fr; /* Single column footer on mobile */
    text-align: center;
  }

  .footer-section {
    text-align: center;
  }

  .social-icons {
    justify-content: center; /* Center social icons */
  }

  .gotopbtn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
  }
}