/* Premium-style travel agency CSS */
:root {
  --primary: #ff7a00; /* brand orange */
  --dark: #0f1723;
}

.hero {
  position: relative;
  height: 70vh;  /* Set hero height to 50% of the screen */
  background-image: url('/assests/hajj4.jpg');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2); /* Lighter overlay */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;  /* Center align text */
  color: white;        /* Text color */
  padding-top: 60px;    /* Adjust padding to center */
}

/* Navbar and branding */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  color: var(--primary) !important; /* Ensure logo color */
  flex: 0 1 auto;                   /* Prevent the logo from growing */
}

/* Navbar items on the right */
.navbar-nav {
  margin-left: auto; /* Align nav items to the right */
}

/* Form styles */
.search-form .form-control, .search-form .form-select {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;  /* Rounded corners for form elements */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Card image styles */
.destination-card img, .package-card img {
  height: 220px;
  object-fit: cover;
  border-radius: 12px; /* Optional: Adds rounded corners to images */
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  border: 0;
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 20px 0; /* Add some padding to footer */
  flex-shrink: 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  /* Hero Section */
  .hero {
    height: 55vh; /* Make the hero section smaller on mobile */
  }

  /* Centering the hero text vertically for mobile */
  .hero .container {
    padding-top: 30px;  /* Adjust for smaller screen */
  }

  /* Navbar */
  .navbar {
    flex-direction: column; /* Stack navbar items vertically on mobile */
    text-align: center; /* Center-align nav links */
  }

  .navbar-nav {
    margin-left: 0; /* Remove left margin for mobile */
    margin-top: 10px; /* Add spacing between nav links */
  }

  /* Navbar logo */
  .navbar .navbar-brand {
    font-size: 1.2rem; /* Adjust logo size for mobile */
    margin-bottom: 10px; /* Spacing between logo and navbar links */
  }

  /* Cards in the destination section */
  .destination-card img {
    height: 180px; /* Slightly smaller images on mobile */
  }

  .destination-card .card-body {
    padding: 15px; /* Reduce padding in card body */
  }

  /* Form elements in the search bar */
  .search-form .col-md-4, .search-form .col-md-3 {
    flex: 100%; /* Stack the search form fields on mobile */
    margin-bottom: 10px; /* Add some space between form elements */
  }

  /* Buttons for mobile */
  .btn-primary, .btn-outline-primary {
    font-size: 0.9rem; /* Slightly smaller buttons on mobile */
    padding: 8px 15px; /* Adjust padding */
  }

  /* Section Titles */
  .section-header h2 {
    font-size: 1.8rem; /* Reduce font size for headings */
  }

  .section-header p {
    font-size: 1rem; /* Adjust paragraph size for smaller screens */
  }

  /* Make the footer smaller on mobile */
  footer {
    padding: 10px 0; /* Less padding for footer */
  }

  /* Improve readability for text in cards on smaller screens */
  .card-body {
    font-size: 0.9rem; /* Slightly smaller text for better readability */
  }
}

/* Additional responsiveness for smaller devices */
@media (max-width: 480px) {
  /* Further reduce the hero section height for very small screens */
  .hero {
    height: 45vh;
  }

  .hero .container {
    padding-top: 20px; /* Adjust padding to avoid overlapping text */
  }

  .navbar .navbar-brand {
    font-size: 1rem; /* Even smaller logo text on very small screens */
  }

  /* Adjust card layout for mobile */
  .destination-card {
    margin-bottom: 20px; /* Add space between cards */
  }

  /* Smaller text and buttons for ultra-small devices */
  .btn-primary, .btn-outline-primary {
    font-size: 0.8rem;
    padding: 6px 12px; /* Smaller padding */
  }

  /* Make sure text doesn't overflow in small cards */
  .card-body h5 {
    font-size: 1rem;
  }
}
/* Top Destination Card Background */
.destination-card {
  background-color: #d4d8c8; /* light premium beige */
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.destination-card .card-body {
  text-align: center;
}

/* ================================
   Testimonials (Google-style)
================================ */

/* Section background */
.testimonials {
  background-color: #f8f9fa;
}

/* Section title */
.testimonials h2 {
  color: #1a73e8; /* Google Blue */
  font-weight: 600;
}

/* Equal height columns */
.testimonials .row {
  display: flex;
  flex-wrap: wrap;
}

.testimonials .col-md-4 {
  display: flex;
}

/* Testimonial card */
.testimonials .card {
  flex: 1;
  background: #ffffff;
  border-radius: 14px;
  border: none;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect (matches destination cards) */
.testimonials .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(26, 115, 232, 0.25);
}

/* Testimonial text */
.testimonials .card p:first-child {
  font-size: 1rem;
  line-height: 1.6;
  color: #202124;
}

/* Client name */
.testimonials .text-muted {
  color: #5f6368 !important;
  font-weight: 500;
  margin-top: 15px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .testimonials .card {
    padding: 18px;
  }

  .testimonials h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .testimonials .card p:first-child {
    font-size: 0.95rem;
  }
}
/* ================================
   Destinations Page – Smooth UI
================================ */

/* Section spacing */
section.py-5 {
  background-color: #f8f9fa;
}

/* Section heading */
section h2 {
  font-weight: 600;
  color: #1a73e8;
}

section p.text-muted {
  font-size: 1rem;
}

/* Card layout fix */
.row.g-4 {
  display: flex;
  flex-wrap: wrap;
}

.row.g-4 > .col-md-4 {
  display: flex;
}

/* Destination cards */
.card {
  flex: 1;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Card hover animation */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(26,115,232,0.25);
}

/* Card image */
.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Card body */
.card-body {
  padding: 22px;
  text-align: center;
}

.card-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

/* Buttons */
.btn-outline-primary {
  border-radius: 30px;
  padding: 8px 22px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #1a73e8;
  color: #fff;
}

/* Footer */
footer {
  background: #0f1723;
  font-size: 0.9rem;
}

/* ================================
   Responsive Fixes
================================ */

@media (max-width: 768px) {
  section h2 {
    font-size: 1.6rem;
  }

  .row.g-4 {
    display: block;
  }

  .card {
    margin-bottom: 20px;
  }

  .card-img-top {
    height: 190px;
  }
}

@media (max-width: 480px) {
  .card-img-top {
    height: 170px;
  }

  .btn-outline-primary {
    font-size: 0.85rem;
    padding: 6px 18px;
  }
}
