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

/* Body Styling */
body {
  background-color: #f8f9fa;
  color: #333;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #012c60;
  padding: 15px 50px;
  color: white;
  height: 90px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Logo */
.header-logo {
  width: 260px;
  transition: all 0.3s ease;
}

.header-logo img {
  width: 90%;
  height: auto;
  display: block;
  margin-top: 10px;
}

/* Navigation Links */
.header-links {
  display: flex;
  gap: 20px;
}

.header-links h1 {
  margin: 0;
  font-size: 0.9rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Apply transition correctly to the entire link */
.header-links h1 a {
  text-decoration: none;
  color: white;
  display: inline-block; /* Ensures transform works properly */
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effect */
.header-links h1 a:hover {
  color: #e2ae3f;
  transform: scale(1.1); /* Smooth zoom-in effect */
}

/* Hide Menu Toggle Checkbox */
.menu-toggle {
  display: none;
}

/* Menu Icon */
.menu-icon {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .header-logo {
    position: absolute;
    left: 20px;
  }

  header {
    height: 80px;
    padding: 15px 50px;
  }

  /* Show Menu Icon */
  .menu-icon {
    display: block;
  }

  /* Hide Navigation Links Initially */
  .header-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 90px;
    right: 0;
    background: #012c60;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .header-links h1 {
    margin: 10px 0;
  }

  /* Show Dropdown When Checkbox is Checked */
  .menu-toggle:checked + .menu-icon + .header-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: -34px;
  }
}
/* Image Section */
.image-container {
  position: relative;
  width: 100%;
  height: 380px; /* Default height for large screens */
  margin-top: 80px; /* To ensure it appears below the header */
  overflow: hidden;
}

.image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover; /* Ensures the image covers the container while maintaining aspect ratio */
  background-position: center;
  opacity: 0.45;
  z-index: -1;
  background-image: url('https://dxk1acp76n912.cloudfront.net/images/driver-header.jpg'); /* Set the image you want to keep */
}

/* Make the Image Container Responsive */
@media (min-width: 1070px) {
  .image-container {
    margin-top: 70px !important;
    height: 350px !important; /* Adjust height for tablet screens */
  }
}
@media screen and (max-width: 1024px) {
  .image-container {
    margin-top: 60px !important;
    height: 350px !important; /* Adjust height for tablet screens */
  }
}

@media screen and (max-width: 768px) {
  .image-container {
    margin-top: 70px;
    height: 330px !important;
  }
}

.driver-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 20px;
  text-align: center;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.driver-image {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
}

.driver-text {
  color: #012c60;
  max-width: 100%;
}

.driver-text h2 {
  font-size: 2.2rem;
  margin-top: 10px;
  word-break: break-word;
}

.driver-text p {
  font-size: 1rem;
  margin: 0;
  padding: 0 10px;
  word-break: break-word;
  margin-top: 10px;
  margin-left: -5px;
  font-weight: 600;
  color: #000000;
}

/* Small devices */
@media screen and (max-width: 480px) {
  .driver-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    text-align: center;
  }

  .driver-image {
    width: 100px;
    height: 100px;
    margin-top: 20px;
    margin-left: 0; /* Removed fixed negative value */
  }

  .driver-text h2 {
    font-size: 1.3rem;
    margin-top: 10px;
    margin-left: 0;
  }

  .driver-text p {
    font-size: 0.9rem;
    padding: 0 10px;
    margin-left: 0;
  }
}

@media screen and (min-width: 321px) and (max-width: 767px) {
  .driver-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    text-align: center;
  }

  .driver-image {
    width: 120px;
    height: 120px;
    margin-left: 0;
  }

  .driver-text h2 {
    font-size: 1.4rem;
    margin-top: 15px;
    margin-left: 0;
    min-width: auto; /* Removed min-width: 1500px */
  }

  .driver-text p {
    font-size: 1rem;
    padding: 0 10px;
    margin-left: 0;
  }
}

/* About Me Section */
.about-me {
  background: url(https://dxk1acp76n912.cloudfront.net/images/homepage/watermarkwhite.png)
    no-repeat center center;
  background-color: #f7fafc;
  padding: 60px 20px;
  text-align: center;
  margin-top: -60px;
  position: relative;
}

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

.about-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;
  margin-top: -10px;
}

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

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

.about-card h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #34495e;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.about-card p {
  font-size: 1.2rem;
  color: #555;
  text-align: justify;
  line-height: 1.4;
  font-family: Arial, Helvetica, sans-serif;
}

.why-tharaka {
  background-color: #fdf9f4;
  padding: 60px 20px;
  text-align: center;
  margin-top: 0px;
}

.why-tharaka .section-title {
  font-size: 32px;
  color: #012c60;
  margin-bottom: 40px;
}

.section-title + p {
  max-width: 1400px; /* limits line length for readability */
  margin: 0 auto 40px; /* center horizontally, add bottom spacing */
  font-size: 1.1em; /* comfortable reading size */
  line-height: 1.6; /* good line spacing */
  color: #555; /* subtle dark gray text */
  font-family: sans-serif;
  text-align: center; /* center align paragraph text */
  margin-bottom: -15px;
}

.why-tharaka .section-intro {
  font-size: 1.1em;
  color: #555;
  max-width: 700px;
  margin: 0 auto 40px;
}

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

.reason-card {
  background: #dee7e3;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  transition: transform 0.3s ease;
}

.reason-card:hover {
  transform: translateY(-8px);
}

.reason-card i {
  font-size: 2em;
  color: #ff9a00;
  margin-bottom: 15px;
}

.reason-card h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #222;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.reason-card p {
  color: #555;
  font-size: 1em;
  line-height: 1.6;
}

/* Review Section Styles */
.reviews {
  padding: 60px 0;
  background-color: #f9f9f9;
  margin-top: -60px;
}

.reviews .section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
  color: #012c60;
}

/* Review Cards Container */
.review-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 10%;
  margin-top: 50px;
  justify-content: center;
}

/* Default card for desktops */
.review-card {
  flex: 0 1 calc(33.33% - 20px); /* 3 per row */
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  min-width: 250px;
  max-width: 100%;
}

.review-card:hover {
  transform: scale(1.05);
}

.review-card img {
  width: 100px;
  margin-bottom: -15px;
  margin-top: -20px;
}

.review-stars {
  color: gold;
  font-size: 1.2em;
  margin-bottom: 8px;
}

.review-card .review-content {
  padding: 20px;
}

.review-card .review-text {
  font-size: 1.1em;
  margin-bottom: 10px;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', Times, serif;
  line-height: 1.4em;
}

.review-card .review-author {
  font-size: 1.1em;
  font-weight: bold;
  text-align: right;
  color: #000000;
}

.review-card .review-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review-card:hover .review-image {
  opacity: 0.3;
}

.review-card:hover .review-text {
  color: #000000;
}

/* Responsive Media Queries */

/* Tablets (2 per row) */
@media (max-width: 992px) {
  .review-card {
    flex: 0 1 calc(45% - 20px);
  }
}

/* Mobile (1 per row) */
@media (max-width: 600px) {
  .review-card {
    flex: 0 1 100%;
  }

  .reviews .section-title {
    font-size: 26px;
  }

  .review-card .review-text {
    font-size: 1em;
  }

  .review-card .review-author {
    font-size: 1em;
  }
}

/* Add to your CSS file */
.tharaka-section {
  padding: 2rem;
  background-image: url('https://dxk1acp76n912.cloudfront.net/images/background-1.png');
  display: flex;
  justify-content: center;
  font-family: 'Segoe UI', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.tharaka-card {
  background: url(https://dxk1acp76n912.cloudfront.net/images/homepage/watermarkwhite.png)
    no-repeat center center;
  border-radius: 16px;
  max-width: 1900px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 70%;
}

.tharaka-card:hover {
  transform: scale(1.01);
}

.tharaka-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tharaka-img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  border: 4px solid #e0e0e0;
}

.tharaka-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #012c60;
}

.tharaka-card .quote {
  font-style: italic;
  color: #444444;
  line-height: 1.8;
  font-size: 1rem;
}

.tharaka-love h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #012c60;
}

.tharaka-love p {
  color: #444444;
  line-height: 1.6;
}

/* ------------------ Responsive Media Queries ------------------ */

/* Tablets */
@media (max-width: 992px) {
  .tharaka-card {
    padding: 1.5rem;
  }

  .tharaka-card h2,
  .tharaka-love h3 {
    font-size: 1.3rem;
    text-align: center;
  }

  .tharaka-card .quote,
  .tharaka-love p {
    font-size: 0.95rem;
    text-align: center;
  }

  .tharaka-img {
    width: 100px;
    height: 100px;
  }
}

/* Mobiles */
@media (max-width: 600px) {
  .tharaka-card {
    padding: 1rem;
    width: 100%;
  }

  .tharaka-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tharaka-img {
    width: 100px;
    height: 100px;
  }

  .tharaka-card h2,
  .tharaka-love h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  .tharaka-card .quote,
  .tharaka-love p {
    font-size: 0.9rem;
    text-align: center;
  }
}

.tharaka-expertise {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #fdf8e3, #f1fbff);
  font-family: 'Segoe UI', sans-serif;
}

.tharaka-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.section-title {
  font-size: 32px;
  color: #012c60;
  margin-bottom: 1rem;
  margin-top: -20px;
}

.section-description {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.routes-title {
  font-size: 1.5rem;
  color: #01445a;
  margin-bottom: 2rem;
  margin-top: 50px;
}

.routes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.route-card {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  padding: 1.5rem 1rem;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.route-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
  border: 4px solid #e0e0e0;
}

.route-text {
  font-size: 1rem;
  color: #012c60;
  line-height: 1.4;
}

.route-text small {
  display: block;
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.3rem;
}

.section-footer {
  font-size: 1.2rem;
  color: #000000;
  line-height: 1.7;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Responsive Design */
@media (max-width: 768px) {
  .route-card {
    width: 100%;
    max-width: 320px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-description,
  .section-footer {
    font-size: 1rem;
  }

  .routes-grid {
    gap: 1.5rem;
  }
}

.tharaka-booking {
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #fff0c9, #cdefff);
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.booking-container {
  max-width: 900px;
  margin: auto;
}

.booking-title {
  font-size: 2rem;
  color: #012c60;
  margin-bottom: 1rem;
}

.booking-title span {
  color: #007f5f;
}

.booking-subtext {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.whatsapp-button {
  display: inline-block;
  background-color: #012c60;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.8rem 1.6rem;
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #e2ae3f;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .booking-title {
    font-size: 1.5rem;
  }

  .booking-subtext {
    font-size: 1rem;
  }

  .whatsapp-button {
    font-size: 1rem;
    padding: 0.7rem 1.4rem;
  }
}
/* 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: 30px;
}

/* 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;
  }
}
