/**
 * District Hospital Washim - Header & Footer Color Scheme
 * Professional government hospital theme colors
 */

/* ============================================
   TOP BAR - Government Orange Theme
   ============================================ */

.header .topbar {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  min-height: 25px;
  padding: 0.75rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-bottom: 2px solid #e85d2c;
}

.header .topbar .contact-info i {
  font-style: normal;
  color: #ffffff;
  font-weight: 500;
}

.header .topbar .contact-info i a,
.header .topbar .contact-info i span {
  color: #ffffff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.header .topbar .contact-info i a:hover {
  color: #fff3cd;
  text-decoration: none;
}

.header .topbar .social-links a {
  color: #ffffff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  margin-left: 0.75rem;
}

.header .topbar .social-links a:hover {
  background: #ffffff;
  color: #ff6b35;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   BRANDING SECTION - Professional Blue & White
   ============================================ */

.header .branding {
  /*background: linear-gradient(to right, #ffffff 0%, #f8f9fa 100%);*/
  background: linear-gradient(to right, #d6d3bc 10%, #d6d3bc 90%);
  min-height: 90px;
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 3px solid #0c5485;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.header .logo:hover {
  transform: translateY(-2px);
}

.header .logo img {
  height: 95px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.header .logo:hover img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.header .logo .sitename {
  font-size: clamp(1.55rem, 3.5vw, 2.875rem);

  font-weight: 800;
  color: #0c5485;
  margin: 0;
  line-height: 1.6;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.45);
  background: linear-gradient(135deg, #0c5485, #1a7eb8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   NAVIGATION MENU - Blue with Orange Accents
   ============================================ */

@media (min-width: 1200px) {
  .navmenu {
    background: transparent;
  }

  .navmenu a,
  .navmenu a:focus {
    color: #2c3e50;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
  }

  .navmenu a:hover,
  .navmenu li:hover > a {
    color: #ff6b35;
    background-color: rgba(255, 107, 53, 0.1);
  }

  .navmenu .active,
  .navmenu .active:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #0c5485, #1a7eb8);
    box-shadow: 0 2px 8px rgba(12, 84, 133, 0.3);
  }

  .navmenu > ul > li > a:before {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    height: 3px;
    bottom: -8px;
    border-radius: 2px;
  }

  .navmenu .dropdown ul {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(12, 84, 133, 0.1);
    border-top: 3px solid #ff6b35;
  }

  .navmenu .dropdown ul a {
    color: #2c3e50;
    padding: 0.75rem 1.5rem;
  }

  .navmenu .dropdown ul a:hover {
    color: #ff6b35;
    background-color: rgba(255, 107, 53, 0.05);
    padding-left: 2rem;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: #0c5485;
    font-size: 32px;
    background: rgba(12, 84, 133, 0.1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
  }

  .navmenu {
    background: linear-gradient(to bottom, #0c5485, #084368);
  }

  .navmenu ul {
    background: #ffffff;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  }

  .navmenu a,
  .navmenu a:focus {
    color: #2c3e50;
    font-weight: 600;
  }

  .navmenu a:hover,
  .navmenu .active {
    color: #ff6b35;
    background-color: rgba(255, 107, 53, 0.1);
  }

  .navmenu .dropdown ul {
    background: #f8f9fa;
    border-left: 3px solid #ff6b35;
  }

  .mobile-nav-active .mobile-nav-toggle {
    background: #ff6b35;
    color: #ffffff;
  }
}

    /* Mega Menu Custom Styles - Enhanced with Bootstrap compatibility */
    .mega-dropdown {
      position: static !important;
    }
    
    .mega-dropdown-menu {
      width: 100%;
      max-width: 1200px;
      left: 50%;
      transform: translateX(-50%);
      padding: 1.5rem;
      border: none;
      border-radius: 0 0 12px 12px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
      margin-top: 0;
      background: #ffffff;
      border-top: 3px solid #ff6b35;
      z-index: 1000;
    }
    
    .mega-menu-section {
      margin-bottom: 1rem;
    }
    
    .mega-menu-title {
      color: #0c5485;
      font-weight: 600;
      font-size: 15px;
      margin-bottom: 0.75rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid #ff6b35;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .mega-menu-title i {
      color: #ff6b35;
      font-size: 16px;
    }
    
    .mega-menu-link,
    .mega-menu-links {
      display: block;
      padding: 0.5rem 0;
      color: #01433c;
      text-decoration: none;
      transition: all 0.3s ease;
      border-radius: 4px;
      padding-left: 10px;
      font-size: 14px;
      position: relative;
    }
    
    .mega-menu-link:hover,
    .mega-menu-links:hover {
      color: #0c5485;
      background-color: rgba(12, 84, 133, 0.08);
      padding-left: 15px;
    }
    
    .mega-menu-link i,
    .mega-menu-links i {
      width: 24px;
      color: #0c5485;
      margin-right: 8px;
      font-size: 14px;
    }
    
    /* Quick links section */
    .quick-links-title {
      color: #ff6b35 !important;
      border-bottom-color: #ff6b35 !important;
      margin-top: 1.5rem;
      padding-top: 0.5rem;
    }
    
    .quick-links-title i {
      color: #ff6b35 !important;
    }
    
    .quick-links .mega-menu-link {
      color: #ff6b35;
      font-weight: 600;
    }
    
    .quick-links .mega-menu-link:hover {
      background-color: rgba(255, 107, 53, 0.1);
    }
    
    /* Fix for Bootstrap dropdown positioning */
    .dropdown:hover .dropdown-menu {
      display: block;
    }
    
    /* Mobile responsive */
    @media (max-width: 1199px) {
      .mega-dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        padding: 1rem;
        box-shadow: none;
        border: 1px solid #e9ecef;
        margin: 0;
        border-radius: 0;
        left: 0;
        max-width: 100%;
      }
      
      .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        position: static;
        float: none;
        width: 100%;
      }
      
      .mega-menu-section {
        margin-bottom: 1.5rem;
      }
    }
    
    /* Fix for mobile navigation toggle */
    @media (max-width: 1199px) {
      .mega-dropdown .dropdown-menu {
        display: none;
      }
      
      .mega-dropdown.show .dropdown-menu {
        display: block;
      }
    }
    
    /* Ensure proper hover on desktop */
    @media (min-width: 1200px) {
      .mega-dropdown:hover .mega-dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
      }
    }
    
    /* Mega menu link visibility fix */
    .mega-menu-link,
    .mega-menu-links {
      visibility: visible !important;
      opacity: 1 !important;
    }
    
    /* Ensure dropdown menu is visible */
    .mega-dropdown-menu.show {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
/* ============================================
   FOOTER - Dark Blue with Orange Accents
   ============================================ */

.footer {
  background: linear-gradient(135deg, #0a3d5c 0%, #0c5485 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35, #f7931e, #ff6b35);
}

.footer .footer-top {
  padding: 4rem 0 2rem;
  position: relative;
}

.footer h4 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35, #f7931e);
  border-radius: 2px;
}

.footer .footer-about .logo .sitename {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer .footer-about p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer .footer-links ul li a {
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
  padding: 0.1rem 0;
  display: inline-block;
  position: relative;
}

.footer .footer-links ul li a::before {
  content: "→";
  margin-right: 0.5rem;
  color: #ff6b35;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer .footer-links ul li a:hover {
  color: #ff6b35;
  padding-left: 1rem;
}

.footer .footer-links ul li a:hover::before {
  opacity: 1;
  margin-right: 0.75rem;
}

.footer .footer-contact p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.footer .footer-contact strong {
  color: #ff6b35;
  font-weight: 600;
}

.footer .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer .social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  margin: 0;
}

.footer .social-links a:hover {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-color: #ff6b35;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.footer .copyright {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.footer .copyright p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.95rem;
}

.footer .copyright .sitename {
  color: #ff6b35;
  font-weight: 700;
}

/* ============================================
   SCROLL TOP BUTTON - Orange Theme
   ============================================ */

.scroll-top {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border: 2px solid #ffffff;
}

.scroll-top:hover {
  background: linear-gradient(135deg, #e85d2c, #e07a1f);
  transform: translateY(-4px) scale(1.05);
}

.scroll-top i {
  color: #ffffff;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
  .header .logo .sitename {
    font-size: 1.25rem;
  }

  .header .logo img {
    height: 50px;
  }

  .header .branding {
    min-height: 75px;
  }
}

@media (max-width: 575px) {
  .header .topbar {
    padding: 0.5rem 0;
    min-height: 40px;
  }

  .header .topbar .contact-info {
    font-size: 0.75rem;
  }

  .header .topbar .social-links a {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
    margin-left: 0.5rem;
  }

  .header .logo .sitename {
    font-size: 1rem;
  }

  .header .logo img {
    height: 40px;
  }

  .header .branding {
    min-height: 65px;
  }

  .footer h4 {
    font-size: 1.125rem;
  }

  .footer .footer-top {
    padding: 2rem 0 1rem;
  }
}

/* ============================================
   CONTRAST & ACCESSIBILITY
   ============================================ */

/* High contrast focus states */
:focus-visible {
  outline: 3px solid #ff6b35;
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* Better link contrast in footer */
.footer a:focus-visible {
  outline-color: #ffffff;
}

/* Navigation link focus */
.navmenu a:focus-visible {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}