.footer-background {
  position: relative;
  /* background: var(--gradient-bg); */
  color: white;
  overflow: hidden;
}

/* RTL Background Flip */
/* html[dir="rtl"] .footer-background {
  background: linear-gradient(
    -46deg,
    #211f5f 29.53%,
    rgba(64, 85, 165, 0.9) 101.34%
  );
} */

.skin-care a {
  color: #5e2b79;
}
.directions:hover,
.footer-accordion-content h6:hover {
  text-decoration: underline !important;
  cursor: pointer;
}
.footer-background::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 34%;
  height: 100%;
  /* background-image: url("../assets/images/pattern-footer.svg"); */
  /* background-size: cover; */
  /* background-repeat: no-repeat; */
  /* background-position: left center; */
  /* -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0.09)
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0.09)
  );

  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  pointer-events: none; */
}

html[dir="rtl"] .footer-background::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 40%;
  height: 100%;
  /* background-image: url("../assets/images/pattern-footer.svg"); */
  /* background-size: cover; */
  /* background-repeat: no-repeat; */
  /* background-position: left center; */

  transform: scaleX(-1);

  /* background-position: right center; */

  /* -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.09),
    rgba(0, 0, 0, 0.03)
  );
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.09),
    rgba(0, 0, 0, 0.03)
  );
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  pointer-events: none; */
}

/* Social Media Icons */
.bg-icon {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  color: white !important;
  text-decoration: none;
  transition: background-color 0.3s;
  -webkit-text-fill-color: white;
}

.bg-icon:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.bg-icon a,
.bg-icon a:visited,
.bg-icon a:hover,
.bg-icon a:active {
  color: white !important;
  -webkit-text-fill-color: white;
  text-decoration: none;
}

#footer .fa-brands {
  font-size: 1.1rem;
  color: white !important;
  -webkit-text-fill-color: white;
}

#footer .fa-brands::before {
  color: white !important;
  -webkit-text-fill-color: white;
}

.whatsapp-contact {
  background-color: #53ca3f;
  color: white;
  border-radius: 50px;
  padding: 10px 20px;
  text-decoration: none;
  border: none;
  font-size: 0.85rem !important;
  font-family: var(--secondary-font-family) !important;
  font-weight: 400;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

html[dir="rtl"] .whatsapp-contact {
  font-family: var(--font-family) !important;
}

/* .text-section{
      background: url("../assets/images/pattern-footer.svg");
  } */

.directions {
  color: var(--secondary-color) !important;
  margin: 0;
}

.footer-links {
  color: var(--primary-color);
}

.footer-links a:hover {
  text-decoration: underline !important;
}

.unified-number {
  background-color: var(--soft-white);
  width: 90%;
  border-radius: 4px;
}

.unified-number h6 {
  margin-bottom: 0;
}

ul li a {
  text-decoration: none;
  color: var(--primary-color);
}

a {
  text-decoration: none;
}

/* Contact Information Layout */

.fa-whatsapp {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .footer-background {
    padding: 2rem;
  }
}

/* ----------------- Footer Styles ----------------- */
/* Modern Footer Styles */
.modern-footer {
  font-family: "Alexandria", sans-serif;
  color: var(--text-color, #333);
}

/* Footer Top Section */
.modern-footer .footer-top {
  background-color: var(--primary-color, #0077b6);
}

.modern-footer .footer-logo {
  max-height: 60px;
  width: auto;
}

.fa-whatsapp {
  font-size: 1.5rem;
}

.modern-footer .whatsapp-contact {
  background-color: #25d366;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.call-number {
  color: #fff;
}
.call-number:hover {
  text-decoration: underline;
  cursor: pointer;
}

.modern-footer .whatsapp-contact:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer Middle Section */
.modern-footer .footer-middle {
  background-color: var(--soft-white, #f8f9fa);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.modern-footer .footer-heading {
  color: var(--primary-color, #0077b6);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.modern-footer .footer-heading:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color, #dda73c);
}

.modern-footer .footer-links li {
  margin-bottom: 0.75rem;
}

.modern-footer .footer-link {
  color: var(--text-color, #333);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.modern-footer .footer-link:hover {
  color: var(--primary-color, #0077b6);
  padding-left: 5px;
}

/* Social Icons */
.modern-footer .social-icons {
  display: flex;
  gap: 12px;
}

.modern-footer .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--primary-color, #0077b6);
  color: white !important;
  -webkit-text-fill-color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modern-footer .social-icon i {
  color: white !important;
  -webkit-text-fill-color: white;
}

.modern-footer .social-icon:hover {
  background-color: var(--secondary-color, #dda73c);
  transform: translateY(-3px);
}

/* Location Cards */
.modern-footer .location-card {
  margin-bottom: 1rem;
}

.modern-footer .location-name {
  color: var(--primary-color, #0077b6);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.modern-footer .location-link {
  color: var(--text-color, #555);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.modern-footer .location-link:hover {
  color: var(--secondary-color, #dda73c);
}

/* Coming Soon Badge */
.modern-footer .coming-soon-badge {
  display: inline-block;
  background-color: var(--secondary-color, #dda73c);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Unified Number */
.modern-footer .unified-number {
  background-color: rgba(0, 119, 182, 0.1);
  border-radius: 8px;
  padding: 10px 15px;
}

.modern-footer .unified-number h6 {
  color: var(--primary-color, #0077b6);
  font-weight: 500;
}

/* Footer Bottom */
.modern-footer .footer-bottom {
  background-color: var(--primary-color, #0077b6);
  color: white;
}

.modern-footer .footer-bottom p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .modern-footer .footer-top .contact-section {
    margin-top: 1rem;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .modern-footer .footer-heading {
    margin-top: 1.5rem;
  }

  .modern-footer .footer-top .d-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .modern-footer .footer-bottom .d-flex {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-background::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    /* background-image: url("../assets/images/pattern-footer.svg"); */
    /* background-size: cover; */
    /* background-repeat: no-repeat; */
    /* background-position: left center; */
    /* -webkit-mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.2)
    );
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.2)
    );

    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    pointer-events: none; */
  }
}

/* Mobile Footer Accordion Styles (Bootstrap Collapse Integration) */
@media (max-width: 991.88px) {
  /* Footer Section Toggle Styling */
  .footer-accordion-header {
    position: relative;
    cursor: pointer;
    padding: 15px 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(52, 52, 52, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Prevent focus outline that might cause scrolling */
    outline: none !important;
    /* Prevent text selection that might cause scrolling */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Prevent tap highlighting on mobile */
    -webkit-tap-highlight-color: transparent;
    /* Ensure click area doesn't cause scrolling */
    touch-action: manipulation;
    /* Prevent any scroll behavior */
    scroll-behavior: auto;
    /* Smooth transition for all changes */
    transition: all 0.3s ease;
  }

  .footer-accordion:last-child .footer-accordion-header {
    border-bottom: none !important;
  }

  /* Add toggle indicators to headings */
  .footer-accordion-header::after {
    content: "\f078"; /* Font Awesome chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .footer-accordion-header.open::after {
    transform: rotate(180deg);
  }

  /* Styling for accordion content - Bootstrap collapse integration */
  .footer-accordion-content {
    /* Let Bootstrap handle the display/hiding */
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0;
    /* Prevent layout jumps during accordion animation */
    overflow: hidden;
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* Bootstrap collapse overrides for smooth animation */
  .footer-accordion-content.collapse {
    display: none;
  }

  .footer-accordion-content.collapse.show {
    display: block;
  }

  .footer-accordion-content.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }

  /* Visual indication when section is open */
  .footer-accordion-header.open,
  .footer-accordion:last-child .footer-accordion-header.open {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color) !important;
  }

  /* Container to prevent layout shifts */
  .footer-accordion {
    position: relative;
    /* Prevent content jumps */
    contain: layout style;
  }

  /* Ensure smooth transitions without layout shifts */
  footer {
    /* Will-change for better performance */
    will-change: auto;
  }

  /* Fix for RTL jumping issue */
  html[dir="rtl"] .footer-accordion-content {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* Prevent page scrolling during accordion interaction */
  .footer-accordion-header:focus,
  .footer-accordion-header:active {
    scroll-behavior: auto !important;
  }

  /* Ensure no scroll on click */
  .footer-accordion-header:focus {
    outline: none !important;
    box-shadow: none !important;
  }

  /* Add smooth transition for header hover */
  .footer-accordion-header:hover {
    color: var(--secondary-color);
    opacity: 0.9;
  }

  .footer-accordion-header:hover::after {
    color: var(--secondary-color);
  }

  /* Add subtle background change on hover */
  .footer-accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);

  }
}

/* Desktop behavior - always show content */
@media (min-width: 992px) {
  .footer-accordion-content {
    display: block !important;
  }

  /* Remove Bootstrap collapse classes on desktop */
  .footer-accordion-content.collapse {
    display: block !important;
  }

  .footer-accordion-header {
    cursor: default;
  }

  .footer-accordion-header::after {
    display: none;
  }

  /* Remove any hover effects on desktop */
  .footer-accordion-header:hover {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
    color: inherit;
    opacity: 1;
  }
}
.soon-link {
  align-items: center;
}
html[dir="rtl"] .soon-link {
  text-align: right;
}
html[dir="rtl"] .soon-link div {
  justify-content: start !important;
}
.w-30 {
  width: 30%;
}
.comming-soon-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.footer-directions-container {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  gap: 1rem;
}
@media (max-width: 480px) {
  .comming-soon-footer {
    grid-template-columns: 1fr;
  }
  .footer-directions-container {
    flex-direction: column;
    align-items: start;
  }
}
.links-grid-container {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
}
.links-grid-container > div {
  flex: 1;
  min-width: 33.3333%;
}
.direction-links-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1399.98px) {
    .direction-links-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767.98px) {
    .direction-links-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    }
}
.contact-section img {
    width: 55px;
}
.direction-links-item a {
    color: var(--primary-color);
}

.toggle-button {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.125rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.toggle-button:hover {
    color: var(--primary-color);
}

.list-links {
    transition: 0.3s all ease-in-out;
}


/* Mobile Responsive Behavior */
@media (max-width: 991.98px) {
    .toggle-button {
        display: block;
    }

    .list-links {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
    }

    .list-links.show {
        max-height: fit-content;
        opacity: 1;
    }

    footer .fa-minus {
        display: none;
    }
  }

  /* Desktop - Always show links */
  @media (min-width: 991.98px) {
    .list-links {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
    }
  }
.dotjo-color {
    color: #07ef83 !important;
}
