/* Custom fixes to specific elements */

/* Preloader styles */
/* Custom fixes to specific elements */

/* Preloader styles removed as the preloader HTML and related JS were removed */

/* Advanced rendering fixes */
html.rendering-fix {
  text-rendering: optimizeSpeed;
}

html.is-scrolling * {
  pointer-events: none;
}

/* Advanced rendering fixes */
/* Removed content-visibility and contain-intrinsic-size as they caused delayed rendering */

/* Removed content-hidden and content-visible classes that were causing delayed rendering */


  /* Removed content-visibility and contain-intrinsic-size */
  /* Removed opacity transition for abrupt appearance */


/* Make blockquote border use the primary color */
blockquote.border-l-4 {
  border-left-color: var(--primary-color) !important;
}

/* Make cited text in blockquotes match the primary color */
blockquote cite {
  color: var(--primary-color) !important;
}

/* Improve blockquote visibility */
blockquote {
  position: relative;
  z-index: 1;
}

/* Style for blockquotes with a centered left border */
.centered-border-blockquote {
  /* Remove default left border and padding */
  border-left: none !important;
  padding-left: 0 !important;
  text-align: center; /* Ensure text is centered */
  position: relative; /* Needed for pseudo-element positioning */
}

.centered-border-blockquote::before {
  content: "";
  position: absolute;
  left: 50%; /* Center the pseudo-element horizontally */
  transform: translateX(-50%); /* Adjust for the element's own width */
  top: 0;
  bottom: 0;
  width: 4px; /* Match the original border width */
  background-color: var(--primary-color); /* Use the primary color */
}

/* Set h2 font size to 2rem */
h2 {
  font-size: 2rem !important;
}

/* Fix white line above footer */
footer {
  margin-top: 0 !important;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #4b5563; /* border-gray-700 color */
  width: 100vw;
}

section:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 140px !important; /* Add padding to last section before footer */
}

body {
  background-color: rgba(17, 17, 19, 1);
}

/* Specific fix for Instagram section (last section) */
.py-12.bg-gray-100 {
  background-color: rgba(17, 17, 19, 1) !important;
}

/* Styling for the Testimonials section to add more padding */
section.py-16.md\\:py-24.bg-white {
  padding-bottom: 60px !important;
}

/* Remove any gap between sections */
main {
  overflow: hidden;
}

/* Styles for language selector container */
/* Styles for language selector container */
/* Styles for language selector container */
/* Styles for language selector container */
#languageSelectorContainer {
  z-index: 1000; /* Ensure it's above other content */
}

/* Desktop specific styles for language selector container */
@media (min-width: 768px) {
  #languageSelectorContainer {
    position: absolute;
    top: 20px;
    right: 20px;
  }
}

/* Mobile specific styles */
@media (max-width: 767px) {
  /* Align items to the bottom in the header flex container */
  .navbar-container .flex.justify-between.items-center {
    align-items: flex-end;
  }

  #languageSelectorContainer {
    /* Remove absolute/fixed positioning on mobile */
    position: static;
    top: auto;
    right: auto;
    /* Add margin to position it 5px higher from the bottom */
    margin-bottom: 10px;
  }
  .mobile-nav-link {
    font-size: 0.9rem !important; /* 20% bigger for mobile menu */
  }
/* Mobile footer columns side-by-side fix */
  /* Adjust widths for Quick Links and Contact Us columns on mobile */
  footer .grid > div:nth-child(2) {
    width: calc(50% + 1.5rem); /* Make Quick Links column wider */
    box-sizing: border-box;
    padding-left: 4rem !important; /* Add left padding back */
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  footer .grid > div:nth-child(3) {
    width: calc(50% - 1.5rem); /* Make Contact Us column narrower */
    box-sizing: border-box;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  footer .grid {
    display: flex; /* Use flexbox on mobile for the grid container */
    flex-wrap: wrap; /* Allow items to wrap */
    gap: 0; /* Remove gap from the grid container */
  }

  footer .grid > div:nth-child(1) {
    width: 100%; /* Ensure the first column takes full width on mobile */
  }
}

/* Mobile footer column fixes */
@media (max-width: 767px) {
    /* Apply font size to the Quick Links and Contact Us columns on mobile */
    /* Apply font size to the Quick Links (ul) and Contact Us (address) content on mobile */
    /* Apply font size to the list items (li) in Quick Links and paragraphs (p) and spans (span) in Contact Us on mobile */
    footer .grid > div:nth-child(2) ul li,
    footer .grid > div:nth-child(3) address p,
    footer .grid > div:nth-child(3) address span {
        font-size: 0.6rem !important; /* Increase font size by 25% using rem */
    }

section:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 75px !important; /* Add padding to last section before footer */
}

/* Reduce padding for .py-16 on mobile */
    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}
/* Desktop footer column font size adjustment */
@media (min-width: 768px) {
    footer .grid > div:nth-child(2) ul li,
    footer .grid > div:nth-child(3) address p,
    footer .grid > div:nth-child(3) address span {
        font-size: 0.8rem !important; /* Make font size smaller on desktop */
    }
}

/* Reduce font size for copyright text */
footer .border-t p {
    font-size: 0.7rem !important; /* Reduce font size by 20% */
}

/* Mobile fixes for screens smaller than 360px */
/* Mobile fixes for screens smaller than 390px */
@media (max-width: 390px) {
    /* Adjust padding for Quick Links column */
    footer .grid > div:nth-child(2) {
        padding-left: 2.5rem !important;
    }
}
@media (max-width: 360px) {
    /* Adjust padding for Quick Links column */
    footer .grid > div:nth-child(2) {
        padding-left: 2rem !important;
    }

    /* Reduce font size for copyright text */
    footer .border-t p {
        font-size: 0.595rem !important; /* Reduce font size by 15% */
    }
    footer .grid > div:nth-child(2) ul li,
    footer .grid > div:nth-child(3) address p {
        font-size: 0.5rem !important; /* Make font size smaller on desktop */
    }
}
