/* Mobile Layout Overrides */

@media (max-width: 991px) {
  /* --- 1. Reposition Header Elements --- */
  .main-menu__wrapper > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .main-header .logo-box {
    order: 1;
    flex-grow: 1; /* Allow logo to take available space */
    padding-left: 0;
  }

  /* Hide the desktop navigation links and original contact link */
  .main-menu__nav,
  .main-menu__contact {
    display: none;
  }

  .main-menu__right {
      order: 3;
      display: flex;
      align-items: center;
  }

  .mobile-nav__toggler {
    display: block;
  }
  
  /* --- 2. Create Floating Action Button Bar --- */
  body .main-menu__buttons {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 101 !important;
    
    display: flex !important;
    width: 100% !important;

    /* Remove previous floating styles */
    transform: none !important;
    gap: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Style individual buttons to match screenshot */
  body .main-menu__buttons .thm-btn {
    flex: 1 1 50% !important; /* Each button takes half the width */
    padding: 15px 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 0 !important; /* Square edges */
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    color: #fff !important;
    transition: background-color 0.3s ease !important;
  }

  /* Specific colors */
  .main-menu__buttons .thm-btn:first-child { /* Apply Loan */
    background: #4CAF50; /* Green */
  }
  .main-menu__buttons .thm-btn:last-child { /* Contact Us */
    background: #004a99; /* Dark Blue */
  }

  .main-menu__buttons .thm-btn:first-child:hover {
    background: #45a049; /* Darker Green */
  }
  .main-menu__buttons .thm-btn:last-child:hover {
    background: #003b7a; /* Darker Blue */
  }
}

/* --- 3. Desktop-specific Adjustments --- */

/* Hide the second button (Contact Us) from the header on desktop */
@media (min-width: 992px) {
  .main-menu__buttons .thm-btn:last-child {
    display: none;
  }
}

/* --- 4. Global Slider Text Color Override --- */
/* Make hero slider text white for better contrast */
.slider-one__title,
.slider-one__tagline {
    color: #ffffff !important;
}
.slider-one__text {
    color: rgba(255, 255, 255, 0.90) !important;
}

/* Keep accent colors for icons and highlighted spans */
.slider-one__tagline > i,
.slider-one__title span {
    color: var(--thm-base) !important;
}

/* --- 5. Transparent Section Divider --- */
section:not(:first-of-type) {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* On desktop, hide the hamburger menu toggler */
@media (min-width: 992px) {
    .mobile-nav__toggler {
        display: none;
    }
}
