* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

/* Home Image Section */
.home-image {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.home-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(54, 48, 48, 0.5);
  z-index: 1;
}

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

/* Logo */
.header-logo {
  position: absolute;
  top: 20%; /* vertically centered */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}

.header-logo img {
  width: 30vw; /* responsive based on viewport width */
  max-width: 300px;
  min-width: 120px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}
.home-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 48px;
  gap: 2px;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  z-index: 1;
  filter: drop-shadow(0px 0px 10px rgba(54, 48, 48, 0.8));
}
@media (max-width: 1024px) {
  .home-image {
    height: 450px;
  }

  .home-text {
    font-size: 36px;
  }

  .header-logo img {
    width: 35vw;
  }
}

@media (max-width: 768px) {
  .home-image {
    height: 350px;
  }

  .home-text {
    font-size: 28px;
  }

  .header-logo {
    top: 15%;
  }

  .header-logo img {
    width: 40vw;
  }
}

@media (max-width: 480px) {
  .home-image {
    height: 280px;
  }

  .home-text {
    font-size: 20px;
  }

  .header-logo {
    top: 15%;
  }

  .header-logo img {
    width: 50vw;
  }
}

.book-tour-btn {
  background-color: #012c60;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  font-size: 1.5rem !important; /* Adjust font size for better scaling */
  font-weight: bold;
  border-radius: 5px !important;
  display: inline-block; /* Ensures proper sizing */
  transition: background-color 0.3s ease;
  position: absolute; /* Position the button in relation to the section */
  top: 70%; /* Adjust top value to place it appropriately */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Adjust to make sure it’s centered */
  z-index: 3; /* Ensure button is above other elements */
}

.book-tour-btn:hover {
  background-color: #d48c2a;
}

/* Extra small devices (<576px) */
@media (max-width: 575.98px) {
  .book-tour-btn {
    font-size: 0.6rem !important;
    padding: 10px 20px;
  }
}

/* Small devices (≥576px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .book-tour-btn {
    font-size: 0.9rem !important;
    padding: 11px 22px;
  }
}

/* Medium devices (≥768px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .book-tour-btn {
    font-size: 0.9rem !important;
    padding: 12px 25px;
  }
}

/* Large devices (≥992px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .book-tour-btn {
    font-size: 1.3rem;
    padding: 13px 28px;
  }
}

/* Extra large devices (≥1200px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .book-tour-btn {
    font-size: 1rem !important;
    padding: 14px 30px;
  }
}

/* Very large devices (≥1400px) */
@media (min-width: 1400px) {
  .book-tour-btn {
    font-size: 1.9rem !important;
    padding: 15px 32px;
  }
}

.intro-door {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px auto;
}

.intro-wrapper {
  display: flex;
  flex-direction: row;
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 500px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.intro-left,
.intro-right {
  flex: 1;
  transition: all 0.8s ease;
}

.intro-left {
  background-color: #012c60;
  color: white;
  padding: 40px;
  position: relative;
  height: 100%;
  overflow-y: auto;
  z-index: 2;
  transform: none;
  opacity: 1;
}

.intro-left h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.intro-left h3 {
  margin-top: 20px;
  font-size: 1.5rem;
}

.intro-left p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  margin-top: 10px;
  font-family: Arial, Helvetica, sans-serif;
}

.intro-right {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  position: relative;
  z-index: 1;
}

.hover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 0;
}

.hover-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  padding: 20px 40px;
  border-radius: 10px;
  letter-spacing: 2px;
  z-index: 2;
  pointer-events: none;
}

.intro-wrapper:hover .main-image {
  transform: translateX(100%);
}

/* ✅ Responsive Layout Adjustments */
@media screen and (max-width: 1024px) {
  .intro-wrapper {
    flex-direction: column;
    height: auto;
  }

  .intro-left,
  .intro-right {
    width: 100%;
    height: auto;
  }

  .intro-left {
    padding: 30px 20px;
  }

  .intro-overlay-text {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .intro-left h2 {
    font-size: 1.8rem;
  }

  .intro-left h3 {
    font-size: 1.2rem;
  }

  .intro-left p {
    font-size: 0.95rem;
  }

  .intro-overlay-text {
    font-size: 2rem;
    padding: 15px 30px;
  }
}

@media screen and (max-width: 480px) {
  .intro-left {
    padding: 20px 15px;
  }

  .intro-left h2 {
    font-size: 1.6rem;
  }

  .intro-left h3 {
    font-size: 1rem;
  }

  .intro-left p {
    font-size: 0.9rem;
  }

  .intro-overlay-text {
    font-size: 1.6rem;
    padding: 10px 20px;
  }
}

/* Attractions Section */
.attractions {
  background: url("https://dxk1acp76n912.cloudfront.net/images/homepage/watermarkwhite.png")
    no-repeat center center;
  text-align: center;
  padding: 50px 20px;
  background-color: #f8f9fa;
  margin-top: -1% !important;
}

.attractions h2 {
  font-size: 35px;
  color: #012c60;
  margin-bottom: 0px;
  margin-top: -10px;
}

/* Grid Layout */
.attraction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  margin-top: 20px;
}

/* Card Styling */
.attraction-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  margin-top: 20px;
  position: relative; /* Needed for overlay positioning */
}

.attraction-card:hover {
  transform: translateY(-5px);
}

/* Image Styling */
.attraction-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Overlay for Text */
.attraction-content {
  position: absolute;
  bottom: -100%; /* Start with text hidden below the card */
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for readability */
  color: white;
  text-align: center;
  transition: bottom 0.4s ease-in-out; /* Transition for sliding effect */
}

.attraction-card:hover .attraction-content {
  bottom: 0; /* Slide text up when hovering */
}

.attraction-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #ffcc00; /* Highlight title */
}

.attraction-content p {
  font-size: 15px;
  line-height: 1.5;
}

.culture-adventure-section {
  background: url("https://www.transparenttextures.com/patterns/white-wall.png");
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.experience-block {
  display: flex;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.experience-block.reverse {
  flex-direction: row-reverse;
}

.experience-image {
  flex: 1 1 300px;
  min-height: 250px;
  background-size: cover;
  background-position: center;
}

.experience-content {
  flex: 1 1 300px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.experience-content h2 {
  margin-bottom: 15px;
  font-size: 25px;
  color: #333;
}

.experience-content p {
  font-size: 17px;
  color: #444;
  line-height: 1.6;
  text-align: justify;
}

@media (max-width: 768px) {
  .experience-block {
    flex-direction: column;
  }

  .experience-block.reverse {
    flex-direction: column;
  }

  .experience-image {
    min-height: 200px;
  }
}

.travel-tips {
  background-color: #f7fafc;
  padding: 60px 20px;
  text-align: center;
}

.travel-tips h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #2c3e50;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.tip-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tip-card i {
  font-size: 2.5rem;
  color: #e67e22;
  margin-bottom: 15px;
}

.tip-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #34495e;
}

.tip-card p {
  font-size: 1rem;
  color: #555;
}

.conclusion-banner {
  background-image: url("https://dxk1acp76n912.cloudfront.net/images/homepage/dambulla_tour.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conclusion-overlay {
  background: rgba(0, 0, 0, 0.6); /* Dark overlay */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.conclusion-content {
  color: #fff;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.conclusion-content h2 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.conclusion-content p {
  font-size: 1.4rem;
  line-height: 1.8;
  font-family: Georgia, "Times New Roman", Times, serif;
}

/* Tablet view */
@media (max-width: 768px) {
  .conclusion-banner {
    height: 350px;
  }

  .conclusion-content h2 {
    font-size: 2rem;
  }

  .conclusion-content p {
    font-size: 1.1rem;
  }
}

/* Mobile view */
@media (max-width: 480px) {
  .conclusion-banner {
    height: 440px;
  }

  .conclusion-overlay {
    padding: 20px;
  }

  .conclusion-content h2 {
    font-size: 1.6rem;
  }

  .conclusion-content p {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* footer */
footer {
  background: url("https://dxk1acp76n912.cloudfront.net/images/homepage/waterma.png")
    no-repeat center center;
  background-size: cover;
  color: #ffffff;
  padding: 30px 20px; /* Adjust padding as needed */
  text-align: center;
  margin-top: 18px;
}

/* Footer Logo */
.footer-logo {
  position: relative; /* Changed from absolute to relative */
  padding: 10px;
  width: 140px; /* Adjusted the width as per your requirement */
  height: auto; /* Keeps the aspect ratio of the logo */
  margin: 0 auto;
  font-weight: bold;
  margin-top: 40px;
}

.footer-logo img {
  width: 240%; /* Ensure the image fills the container */
  height: auto;
  margin-top: -300px !important;
  margin-left: -80px;
}
.footer-social {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;
  gap: 20px;
  font-size: 1.4rem;
  text-align: center;
  margin-top: -5px !important;
}

.footer-social a {
  color: white;
}

/* Footer Content Section */
.footer-content {
  max-width: 1200px;
  margin: auto;
  font-size: 18px;
  line-height: 1.6;
  margin-top: 10px;
  gap: 5;
  text-align: center; /* Ensure text is centered */
}

.footer p a {
  color: #ffffff;
  text-decoration: none;
}

.footer p a:hover {
  text-decoration: none;
}

.footer p a:active {
  color: #f0a500; /* Optional color change on click */
}

.payment-box {
  background-color: white;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 1px 0; /* Add some vertical padding */
  text-align: center;
  box-sizing: border-box;
  height: 60px;
}

.inline-payment-icons {
  display: inline-flex;
  flex-wrap: wrap; /* Wrap on small screens */
  justify-content: center;
  gap: 15px;
  align-items: center;
  opacity: 1;
}

/* Base icon size for large screens */
.inline-payment-icons img {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.inline-payment-icons img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}

/* Responsive adjustments */

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991px) {
  .inline-payment-icons img {
    height: 45px; /* Slightly smaller icons */
  }
}

/* Small devices (mobiles, less than 768px) */
@media (max-width: 768px) {
  .inline-payment-icons img {
    height: 45px; /* Smaller icons for small screens */
  }

  .payment-box {
    padding: 8px 5px; /* Less padding on very small screens */
    height: 60px;
  }
}

/* Very small devices (extra small phones, less than 480px) */
@media (max-width: 479px) {
  .inline-payment-icons {
    gap: 10px; /* Less gap on very small screens */
  }

  .inline-payment-icons img {
    height: 32px; /* Smallest icons */
  }
  .payment-box {
    height: 50px;
  }
}
/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
  .footer {
    padding: 20px 10px; /* Adjust padding for smaller screens */
    height: auto; /* Remove fixed height for flexibility */
    font-size: 14px; /* Slightly smaller font size for mobile */
    flex-direction: column; /* Stack elements vertically */
  }

  .footer-logo {
    position: relative; /* Changed from absolute to relative */
    padding: 10px;
    width: 140px; /* Adjusted the width as per your requirement */
    height: auto; /* Keeps the aspect ratio of the logo */
    margin: 0 auto;
    margin-top: 40px;
  }

  .footer-logo img {
    width: 240%; /* Ensure the image fills the container */
    height: auto;
    margin-top: -300px !important;
    margin-left: -80px;
  }

  .footer-social {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;
    gap: 20px;
    font-size: 1.2rem;
    text-align: center;
  }

  .footer-social a {
    color: white;
  }

  /* Footer Content Adjustments */
  .footer-content {
    font-size: 14px; /* Adjust text size for mobile */
    margin-top: 20px; /* Reduce margin-top */
    line-height: 1.5;
  }
}
