/* ==========================================================================
   HEADER & NAVIGATION RESET (V3 - Mobile Gap & Hamburger Fix)
   ========================================================================== */

/* 1. Desktop Styling (Above 992px) */
@media (min-width: 992px) {
  #topbar {
    height: 40px;
    background: #fff;
    display: flex !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1060;
  }

  .navbar.fixed-top {
    padding: 20px 0; 
    top: 10px !important; 
    background: #fff;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.1);
    border: none !important;
  }

  body {
    padding-top: 130px !important; 
  }
}

/* 2. Mobile Styling (Below 992px) - FORCED GAP CLOSURE */
@media (max-width: 991px) {
  /* Remove any potential space from the topbar container */
  #topbar {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important; /* Removes it from the flow entirely */
  }

  .navbar.fixed-top {
    top: 0 !important;
    margin-top: 0 !important;
    position: fixed !important;
    padding: 12px 0 !important; 
    background: #fff !important;
    /* This ensures it sits at the very top of the viewport */
    transform: translate3d(0, 0, 0); 
  }

  body {
    /* We reset the margin and only use padding to move the content down */
    margin-top: 0 !important;
    padding-top: 75px !important; 
  }
}

/* 3. Hamburger Toggle Fix (Thickness & No Border) */
.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}

/* Custom 3-line icon */
.navbar-toggler-icon {
  background-image: none !important; /* Remove default BS5 icon */
  display: block;
  width: 24px;
  height: 2px; /* Control thickness of the middle line */
  background-color: #3498db; /* Your light blue */
  position: relative;
}

/* Control thickness of top and bottom lines */
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  width: 24px;
  height: 2px; 
  background-color: #3498db;
  position: absolute;
  left: 0;
}

.navbar-toggler-icon::before { top: -8px; } /* Gap between lines */
.navbar-toggler-icon::after { top: 8px; }

/* 4. Dropdown & Link Cleanup */
.navbar-nav .nav-link {
  color: #222222;
  font-weight: 500;
  padding: 10px 15px !important;
}

.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer, #footer .border-top {
  border: none !important;
}
#footer {
  background: #f9f9f9;
  font-size: 14px;
}

#footer h4 {
  font-size: 16px;
  font-weight: bold;
  color: #2c4964;
  position: relative;
  padding-bottom: 12px;
}

/* Remove default Bootstrap borders we don't want */
#footer .border-top {
  border-top: 1px solid #eee !important; /* Very subtle line for copyright */
}

/* Specific styling for the Mobile Quick-Action bar */
.footer-bottom .btn {
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  /* This ensures the mobile bar doesn't look too cramped */
  .footer-bottom {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.05);
  }
}

/* ==========================================================================
   Hero Buttons
   ========================================================================== */

/* 1. The Solid Button (Book Now) */
.btn-outline-clinic1 {
  background: transparent !important;
  color: #43a7d5 !important;
  /* This 3px solid line is what was missing */
  border: 2px solid #43a7d5 !important; 
  border-radius: 10px !important;
  padding: 12px 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: 0.3s;
}

.btn-outline-clinic1:hover {
  background: #43a7d5 !important;
  color: #fff !important;
}

/* 2. The Outline Button (Explore Services) */
.btn-outline-clinic {
  background: transparent !important;
  color: #43a7d5 !important;
  /* This 3px solid line is what was missing */
  border: 2px solid #43a7d5 !important; 
  border-radius: 10px !important;
  padding: 12px 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: 0.3s;
}

.btn-outline-clinic:hover {
  background: #43a7d5 !important;
  color: #fff !important;
}

/* ==========================================================================
   User Centric Action-Oriented Titles
   ========================================================================== */

.service-navigation {
  background-color: #f8fbfe !important;
}

.service-tile {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  padding: 25px 10px !important;
  border-radius: 15px !important;
  text-decoration: none !important;
  border: 1px solid #e1e8ed !important;
  height: 100% !important;
  transition: all 0.3s ease !important;
}

.icon-circle {
  width: 55px;
  height: 55px;
  background: #f0f7fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* Target the icofont inside the circle */
.service-tile i {
  color: #43a7d5 !important;
  font-size: 24px !important;
}

.service-tile p {
  color: #2c4964 !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
}

.service-tile:hover {
  border-color: #43a7d5 !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.accordion-button:not(.collapsed) {
  background-color: #f8fdff;
  color: #43a7d5;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,.125);
}

.accordion-item {
  overflow: hidden; /* Keeps the rounded corners clean */
}

.accordion-button {
  padding: 1.25rem;
  color: #2c4964;
}

/* ==========================================================================
   Booking Button
   ========================================================================== */

/* The Container Box */
.booking-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

/* The Icon inside the box */
.booking-tile i {
    font-size: 2rem;
    color: #43a7d5;
    margin-bottom: 12px;
}

/* The Text inside the box */
.booking-tile span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c4964;
    line-height: 1.3;
}

/* Hover Effect */
.booking-tile:hover {
    background: #f0faff;
    border-color: #43a7d5;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(67, 167, 213, 0.1);
}
