/* Mobile Navbar Fixes */

/* Fix for navbar height and positioning in mobile */
@media (max-width: 767px) {
  .header_section {
    padding: 10px 0;
    position: relative;
    height: auto;
    background-color: rgba(30, 136, 229, 0.95);
    z-index: 1001;
  }

  /* Fix logo spacing */
  .logo {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
  }

  .brand-logo {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
  }

  .logo-text {
    font-size: 24px;
    line-height: 1;
    margin: 0;
    padding: 0;
  }

  .logo-subtext {
    font-size: 12px;
    margin-top: 2px;
  }

  /* Fix menu toggle button positioning */
  .toggle_menu {
    position: relative;
    top: 0;
    width: 38px;
    height: 38px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }

  .menu_text {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0;
    height: auto;
  }

  .menu_text ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  /* Ensure phone link is properly sized and positioned */
  .phone-link {
    font-size: 14px;
    padding: 6px 12px;
    margin-right: 10px;
  }

  /* Close button for overlay */
  .overlay .closebtn {
    top: 20px;
    right: 20px;
  }
}

/* Direct hero section fix for all mobile devices */
@media (max-width: 991px) {
  /* Force hero section to be visible */
  .hero-section {
    display: block !important;
    height: auto !important;
    min-height: 700px !important;
    position: relative;
    background: linear-gradient(135deg, #1e88e5, #00b8d4) !important;
    padding: 0 !important;
    margin-top: 0 !important;
    overflow: visible;
  }

  .hero-shape {
    display: none;
  }

  .banner_section {
    padding: 40px 0 !important;
    margin: 0 !important;
  }

  .banner-content {
    text-align: center;
  }

  .banner_taital {
    font-size: 28px;
    margin-bottom: 5px;
  }

  .banner_taital_1 {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .banner_taital_1:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .banner_text {
    margin: 0 auto 20px;
    text-align: center;
    max-width: 100%;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
  }

  .hero-btn {
    width: 80%;
    max-width: 250px;
    margin: 0 0 10px 0;
  }

  .hero-image {
    margin-top: 30px;
    text-align: center;
  }

  .hero-image img {
    max-width: 85%;
    margin: 0 auto;
    display: block;
  }
}

/* Extra fixes for small screens */
@media (max-width: 575px) {
  .header_section {
    padding: 8px 0;
  }

  .logo-text {
    font-size: 20px;
  }

  .logo-subtext {
    font-size: 9px;
  }

  .phone-link {
    font-size: 12px;
    padding: 4px 8px;
  }

  .toggle_menu {
    width: 32px;
    height: 32px;
  }

  .banner_section {
    padding: 30px 0 60px !important;
  }

  .banner_taital {
    font-size: 24px;
  }

  .banner_taital_1 {
    font-size: 30px;
  }

  .hero-btn {
    width: 90%;
    font-size: 13px;
    padding: 10px 15px;
  }

  /* Ensure enough height on smallest screens */
  .hero-section {
    min-height: 600px !important;
  }
}

/* Additional fix to ensure hero section visibility */
#home.hero-section {
  min-height: 700px !important;
  height: auto !important;
  display: block !important;
}
