/* ===============================
   MOBILE OFFCANVAS DROPDOWN FIXES
================================ */

/* Ensure the mobile dropdown doesn't push the screen width */
.mobile-dropdown {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: left; /* Changed from center for better readability */
}

.mobile-dropdown a {
  display: block;
  padding: 0.8rem 0;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
}

.mobile-dropdown a:last-child {
  border-bottom: none;
}

/* Fix for "messed up" CSS when clicking: 
   Prevents absolute positioning from breaking mobile layout */
@media (max-width: 991px) {
  .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
  }
  
  /* Prevent the header from jumping when the menu opens */
  .main-header.position-fixed {
    width: 100% !important;
  }
}

/* OVERRIDE: Add font-display swap to FontAwesome for PageSpeed FCP */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(../fonts/fa-solid-900.woff2) format("woff2"), url(../fonts/fa-solid-900.ttf) format("truetype");
}

/* OVERRIDE: Add font-display swap to Flaticon for PageSpeed FCP */
@font-face {
    font-family: "flaticon_quiety";
    font-display: swap;
    src: url("../fonts/flaticon_quiety.ttf") format("truetype"), url("../fonts/flaticon_quiety.woff") format("woff"), url("../fonts/flaticon_quiety.woff2") format("woff2"), url("../fonts/flaticon_quiety.eot") format("embedded-opentype"), url("../fonts/flaticon_quiety.svg") format("svg");
}