:root {
  --blue: #003264;
  --black: #202124;
  --white: #f8f9fa;
  --red: #8B0000;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #757575;
}

/* Reset & Base Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comic Neue', cursive;
  background-color: #f4f4f4;
  padding-top: 80px;
  color: var(--black);
  line-height: 1.6;
}

/* Header Styles */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 12px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  height: 80px;
  transition: all 0.3s ease;
}

.header-container {
  width: 95%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  height: 100%;
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
}

/* Hamburger menu - hidden by default on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  height: 3px;
  background-color: var(--blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* NAV MENU - Desktop version */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.nav-menu a {
  color: var(--blue);
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 5px 5px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  background-color: rgba(0, 50, 100, 0.1);
}

.nav-menu a.active {
  background-color: var(--red);
  color: white;
}

/* DROPDOWN MENU - For both desktop and mobile */
.dropdown {
  position: relative;
}

.dropdown > a::after {
  content: ' ▼';
  font-size: 0.6em;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--red);
  min-width: 200px;
  padding: 10px 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.dropdown-content a {
  color: white;
  padding: 10px 20px;
  display: block;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
}

  .dropdown-content a:hover {
    background-color: var(--blue);
    /* background-color: rgba(255, 255, 255, 0.1); */
  }

/* Show dropdown when active class is added */
.dropdown-content.show {
  display: block;
}

/* Mobile styles */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background-color: var(--blue);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 10px;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  
  .nav-menu.show {
    left: 0;
  }
  
  .nav-menu a {
    color: white;
    width: 100%;
  }
  
  .dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 10px;
    margin-top: 5px;
  }
  
  /* Animate hamburger to X when menu is open */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Ferry Hero Section */
.rangat_dest_hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-image-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  animation: slideBackground 24s infinite ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 50, 100, 0.5);
  z-index: 1;
}

@keyframes slideBackground {
  0%, 16% {
    background-image: url('../images/hevelocktoniel.jpg');
  }
  17%, 33% {
    background-image: url('../images/porttohevelock.jpg');
  }
  34%, 50% {
    background-image: url('../images/nieltohevelock.jpg');
  }
  51%, 67% {
    background-image: url('../images/neiltoport.jpg');
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content-bg {
  background-color: rgba(255, 255, 255, 0.2); 
  padding: 30px 40px;
  border-radius: 20px;
  display: inline-block;
}

.hero-content h1 {
  color: var(--red);
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease;
}

.hero-content h1 span {
  color: var(--blue);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-btn {
  margin-top: 30px;
}

.animated-border-btn {
  position: relative;
  display: inline-block;
  padding: 14px 30px;
  font-size: 1.1rem;
  color: white;
  background-color: var(--red);
  border: 2px solid transparent;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  z-index: 1;
  transition: background-color 0.4s ease;
}

.animated-border-btn:hover {
  background-color: var(--blue);
}

.animated-border-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--red), var(--blue), var(--red));
  z-index: -1;
  animation: border-rotate 4s linear infinite;
  background-size: 300% 300%;
}

.animated-border-btn::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background-color: var(--red);
  border-radius: 50px;
  z-index: -1;
  transition: background-color 0.4s ease;
}

.animated-border-btn:hover::after {
  background-color: var(--blue);
}

@keyframes border-rotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Destinations Section */
.destinations-section {
  padding: 60px 20px;
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--red);
  margin-bottom: 50px;
  position: relative;
}

.section-title span {
  color: var(--blue);
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background-color: var(--red);
  margin: 15px auto 0;
}

.destination-card {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  overflow: hidden;
}

.card-content {
  display: flex;
  min-height: 350px;
}

.text-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-content h3 {
  font-size: 1.8rem;
  color: var(--red);
  margin-bottom: 20px;
}

.text-content p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 25px;
}

.destination-features {
  list-style: none;
  margin-bottom: 25px;
}

.destination-features li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--black);
}

.destination-features i {
  color: var(--red);
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.learn-more-btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--blue);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.learn-more-btn:hover {
  background-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.image-slider {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slider-container {
  display: flex;
  height: 100%;
  width: 400%;
  animation: slide 16s infinite;
}

.slider-container img {
  width: 25%;
  height: 100%;
  object-fit: cover;
}

@keyframes slide {
  0%, 20% { transform: translateX(0); }
  25%, 45% { transform: translateX(-25%); }
  50%, 70% { transform: translateX(-50%); }
  75%, 95% { transform: translateX(-75%); }
  100% { transform: translateX(0); }
}

/* Reverse layout for alternate cards */
.reverse .card-content {
  flex-direction: row-reverse;
}


/* ======================== */
/* Package Booking Form Styles */
/* ======================== */

.package-enquiry-form {
  padding: 80px 20px;
  background-color: #ffffff;
  position: relative;
}

.package-enquiry-form .section-header {
  margin-bottom: 40px;
  text-align: center;
}

.package-enquiry-form .section-header h2 {
  color: var(--red);
  font-size: 2rem;
}

.package-enquiry-form .section-header h2 span {
  color: var(--blue);
}

.package-enquiry-form .form-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(171, 5, 5, 1.0);
}

.package-enquiry-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.package-enquiry-form .form-group {
  flex: 1 1 48%;
}

.package-enquiry-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--blue);
}

.package-enquiry-form .form-group input,
.package-enquiry-form .form-group textarea,
.package-enquiry-form .form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: 'Comic Neue', cursive;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.package-enquiry-form .form-group input:focus,
.package-enquiry-form .form-group textarea:focus,
.package-enquiry-form .form-group select:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 50, 100, 0.2);
}

.package-enquiry-form .form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.package-enquiry-form .form-submit {
  text-align: center;
  margin-top: 30px;
}

.package-enquiry-form .submit-btn {
  background-color: var(--red);
  color: white;
  border: none;
  padding: 14px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(139, 0, 0, 0.2);
}

.package-enquiry-form .submit-btn:hover {
  background-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 50, 100, 0.3);
}


/* Footer Styling */
.main-footer {
  background-color: #003264;
  color: #ffffff;
  padding: 40px 20px 20px 20px;
  font-family: 'Comic Neue', cursive;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  gap: 40px;
}

.footer-logo,
.footer-links,
.footer-contact {
  flex: 1 1 300px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 1rem;
  color: #ffffff;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a,
.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.footer-contact p {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #ffffff;
}

/* Hover Underline Animation */
.hover-underline-animation::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #8B0000;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Social Media Icons */
.social-media-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.social-media {
  display: flex;
  gap: 20px;
}

.social-media a {
  color: #ffffff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #8B0000;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 992px) {
  .card-content {
    flex-direction: column;
  }

  .image-slider {
    height: 300px;
  }
  
  .reverse .card-content {
    flex-direction: column;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo,
  .footer-links,
  .footer-contact {
    flex: 1 1 100%;
  }

  .social-media {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .text-content h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-content-bg {
    padding: 20px;
  }
  
  .text-content {
    padding: 20px;
  }
  
  .learn-more-btn {
    padding: 10px 20px;
  }
}
