/* ========== Global Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.5;
}

/* ========== Offer Bar ========== */
/* 🌟 Top Offer Slider */
.rns-top-offer {
  background: linear-gradient(90deg, #007bff, #00a8ff);
  color: #fff;
  text-align: center;
  font-weight: 500;
  font-size: 15px;
  overflow: hidden;
  white-space: nowrap;
  height: 40px;
  display: flex;
  align-items: center;
}

.rns-slider {
  display: inline-block;
  animation: offerSlide 16s linear infinite;
}

.rns-slide {
  display: inline-block;
  padding: 0 50px;
}

@keyframes offerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* 🌟 Header Styling */
.rns-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: #fff;
  transition: all 0.3s ease;
}

.rns-header .nav-link {
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 15px;
}

.rns-header .nav-link:hover,
.rns-header .nav-link.active {
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.08);
  border-radius: 6px;
}

/* 🌟 Search Panel */
.rns-search-bar {
  position: relative;
}

.search-input {
  border-radius: 30px;
  padding: 10px 20px;
  transition: box-shadow 0.3s ease;
  border: 1px solid #ced4da;
}

.search-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  border-color: #0d6efd;
}

/* 🌟 Buttons and Icons */
.btn-outline-primary {
  border-color: #0d6efd;
  color: #0d6efd;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: #fff;
}

.btn-outline-primary i {
  font-size: 1.1rem;
}

/* 🌟 Mobile Offcanvas */
.offcanvas {
  background-color: #fff;
}

.offcanvas-body a:hover {
  color: #0d6efd !important;
}

/* 🌟 Logo */
.logo-img {
  transition: transform 0.3s ease;
}
.logo-img:hover {
  transform: scale(1.05);
}
#searchPanel.collapse.show {
  animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* === Hero Slider Styling === */
#heroSlider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 400px;
}

#heroSlider .carousel-item {
  height: 400px;
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

#heroSlider .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(85%); /* Adds slight overlay for better text contrast */
}

/* === Caption Styling === */
#heroSlider .carousel-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

#heroSlider .carousel-caption a.btn {
  padding: 10px 30px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
}

#heroSlider .carousel-caption a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* === Controls === */
#heroSlider .carousel-control-prev-icon,
#heroSlider .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 15px;
}

#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next {
  width: 5%;
}

/* === Indicators (Dots) === */
#heroSlider .carousel-indicators [data-bs-target] {
  background-color: #fff;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.6;
  transition: all 0.3s ease;
}

#heroSlider .carousel-indicators .active {
  opacity: 1;
  background-color: #0d6efd; /* Bootstrap primary color */
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  #heroSlider {
    max-height: 300px;
  }

  #heroSlider .carousel-item {
    height: 300px;
  }

  #heroSlider .carousel-caption a.btn {
    font-size: 14px;
    padding: 8px 20px;
  }
}


.category-img {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-img-size {
    width: 100%;
    aspect-ratio: 1 / 1;  /* Makes image perfectly square */
    object-fit: cover;     /* Crops image nicely without stretching */
    border-radius: 12px;   /* Rounded corners for a cleaner look */
}

/* Ensure cards are visually balanced */
.category-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}


.popular-services {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.popular-services h2 {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2rem;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

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

.service-card-content {
  padding: 1rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.service-card-content h3 {
  font-size: 1.1rem;
  color: #111827;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.service-card-content p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.service-cta {
  background: #0d6efd;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-cta:hover {
  background: #084ec1;
  color: #fff;
}
/* ========== Footer ========== */


.footer {
    background-color: #004080;
    color: #fff;
    padding: 50px 20px 20px;
    font-family: 'Segoe UI', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-box {
    flex: 1 1 220px;
    margin: 15px;
}

.footer-box h3 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 15px;
}

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

.footer-box ul li {
    margin: 8px 0;
}

.footer-box ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-box ul li a:hover {
    color: #f4b400;
}

.logo-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-social a {
    display: inline-block;
    margin: 10px 10px 0 0;
    color: #ccc;
    font-size: 18px;
    transition: 0.3s;
}

.footer-social a:hover {
    color: #f4b400;
}

.footer-bottom {
    border-top: 1px solid #1f2d3d;
    padding-top: 20px;
    font-size: 14px;
    color: #999;
    text-align: center;
}

.footer-bottom a {
    color: #f4b400;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-box {
        width: 100%;
        margin-bottom: 25px;
    }

    .footer-social a {
        font-size: 20px;
    }

    .footer-bottom {
        padding: 20px 10px 0;
        font-size: 13px;
    }
}

.slider-photos {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.photo-slider {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none; /* hide scrollbar for Firefox */
}

.photo-slider::-webkit-scrollbar {
  display: none; /* hide scrollbar for Chrome/Safari */
}

.photo-card {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  transition: all 0.35s ease;
  position: relative;
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover::before {
  opacity: 1;
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.photo-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  border: 3px solid #f0f0f0;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.photo-card:hover img {
  transform: scale(1.1);
  border-color: #007bff;
}

.photo-card-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
}

.photo-card-content p {
  font-size: 0.75rem;
  color: #777;
  margin: 0;
}

/* --- Navigation Buttons --- */
.nav1-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  font-size: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav1-btn:hover {
  background: linear-gradient(135deg, #0056b3, #003d82);
  transform: scale(1.1);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* --- Tablet (≤ 768px) --- */
@media (max-width: 768px) {
  .photo-card {
    width: 120px;
    height: 120px;
    padding: 10px;
  }

  .photo-card img {
    width: 60px;
    height: 60px;
  }

  .photo-card-content h3 {
    font-size: 0.85rem;
  }

  .nav1-btn {
    padding: 8px 10px;
    font-size: 18px;
  }
}

/* --- Mobile (≤ 576px) --- */
@media (max-width: 576px) {
  .photo-card {
    width: 100px;
    height: 100px;
    padding: 6px;
    margin: 0 5px;
  }

  .photo-card img {
    width: 50px;
    height: 50px;
  }

  .photo-card-content h3 {
    font-size: 0.75rem;
  }

  .photo-card-content p {
    display: none;
  }

  .nav1-btn {
    display: none; /* hide buttons on mobile; swipe is enough */
  }
}
.photo-icon i{
    font-size: 40px;
}


/* ========== Popular Services Section ========== */
.popular-services {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.popular-services h2 {
  font-size: 2.2em;
  margin-bottom: 40px;
  color: #222;
  font-weight: 700;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: stretch;
}

.service-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 280px;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/*.service-card:hover .service-card-img img {*/
/*  transform: scale(1.05);*/
/*}*/

.service-card-content {
  padding: 20px 15px;
}

.service-card-content h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #222;
  font-weight: 600;
}

.service-card-content p {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.4;
}

.service-cta {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
}

.service-cta:hover {
  background: #ff5722;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .service-card {
    max-width: 250px;
  }
  .service-card-img img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .popular-services h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .service-card-img img {
    height: 140px;
  }
  .service-card-content h3 {
    font-size: 1.05em;
  }
  .service-card-content p {
    font-size: 0.8em;
  }
  .service-cta {
    padding: 8px 18px;
    font-size: 0.9em;
  }
}
@media (max-width: 480px) {
.font-adjustedd{
    font-size: 0.6rem !important;
}
}

.testimonial-card {
  background: #fff;
  border-radius: 20px;
  text-align: center;
  padding: 50px 20px 20px;
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid #fff;
  background: #fff;
}

.testimonial-card p {
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
  margin-top: 45px;
}

.testimonial-card strong {
  color: #333;
  font-weight: 600;
}

/* Swiper buttons */
.swiper-button-next,
.swiper-button-prev {
  color: #007bff;
}

.swiper-pagination-bullet {
  background: #ccc;
  width: 12px;
  height: 12px;
}

.swiper-pagination-bullet-active {
  background: #007bff;
}

 .master-category-tabs {
        margin-bottom: 10px;
        margin-bottom: 10px;    
        display: flex;  
        gap: 8px;
        flex-wrap: wrap;
    }

    .master-category-tabs a {
        padding: 5px;
        text-decoration: none;
        background-color: #f1f1f1;
        border-radius: 20px;
        color: #333;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 120px;
        height: auto;
        text-align: center;
        white-space: normal;
    }

    .master-category-tabs a:hover {
        background-color: #0d6efd;
        color: white;
    }

    .active-tab {
        background-color: #0d6efd !important;
        color: white !important;
    }