/* Header Container */
.header-container {
  position: relative;
  background: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-bottom: 20px;
  margin-bottom: -30px;
  border-bottom: 4px solid #0071bb;
  border-radius: 0px 0px 25px 25px;
}

/* Square Logo Container */
.logo-container {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 230px;
  background-color: #0071bb;
  border-radius: 0 0 25px 25px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 15px rgba(59, 130, 246, 0.3);
  margin-bottom: 20px;
}

.logo-container .logo {
  text-align: center;
}

.logo-container .logo img {
  height: 120px;
  width: auto;
  filter: brightness(1.1);
}

/* Main Header Content */
.main-header {
  padding-left: 270px;
  padding-right: 20px;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 15px;
}

/* Contact Info */
.contact-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 14px;
}

.contact-item i {
  width: 35px;
  height: 35px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0071bb;
  font-size: 14px;
  flex-shrink: 0;
}

.contact-item a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

.contact-item a:hover {
  color: #0071bb;
}

/* Header Buttons */
.header-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.btn-jumuah {
  background: #0071bb;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  white-space: nowrap;
}

.btn-jumuah:hover {
  background: #005299;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-donate {
  background: transparent;
  color: #0071bb;
  padding: 12px 24px;
  border: 2px solid #0071bb;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-donate:hover {
  background: #0071bb;
  color: white;
  transform: translateY(-1px);
}

/* Navigation Bar */
.navigation-bar {
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 0;
  margin-left: 250px;
}

.navbar {
  padding: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.nav-item .nav-link {
  color: #374151;
  font-weight: 500;
  padding: 18px 20px;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item .nav-link:hover,
.nav-item .nav-link.active {
  color: #0071bb;
}

.nav-item .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: #0071bb;
  border-radius: 2px 2px 0 0;
}

/* Dropdown Styles */
.dropdown-menu {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 12px 0;
  margin-top: 8px;
  min-width: 250px;
  backdrop-filter: blur(10px);
}

.dropdown-item {
  padding: 12px 24px;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: #f8faff;
  color: #0071bb;
  transform: translateX(5px);
}

/* Submenu Styles */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -12px;
  display: none;
}

.dropdown-submenu:hover .dropdown-menu {
  display: block;
}

.dropdown-submenu > .dropdown-item::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  float: right;
  margin-left: 15px;
  opacity: 0.6;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: #0071bb;
  border: none;
  font-size: 20px;
  color: white;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-toggle:hover {
  background: #005299;
}

/* Mobile Menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #0071bb;
  z-index: 9999;
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav .mobile-header {
  background: linear-gradient(135deg, #0071bb 0%, #005299 100%);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav .mobile-logo img {
  height: 50px;
}

.mobile-nav .close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-nav .close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav > ul > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li a {
  display: block;
  padding: 18px 25px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
}

.mobile-nav ul li a:hover {
  color: #0071bb;
  background: white;
  padding-left: 35px;
}

.mobile-nav .sub-menu {
  background: rgba(255, 255, 255, 0.1);
  display: none;
}

.mobile-nav .sub-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav .sub-menu a {
  padding: 15px 40px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-nav .sub-menu a:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0071bb;
  padding-left: 50px;
}

.mobile-nav .menu-item-has-children > a {
  position: relative;
}

.mobile-nav .menu-item-has-children > a::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.mobile-nav .menu-item-has-children.active > a::after {
  transform: translateY(-50%) rotate(180deg);
}

.mobile-nav .menu-item-has-children.active .sub-menu {
  display: block;
}

.mobile-nav .view-all-link {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  margin-top: 5px;
}

.mobile-nav .no-events {
  display: block;
  padding: 18px 40px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  font-size: 14px;
}

/* Responsive Breakpoints */

/* Large screens (1200px and down) */
@media (max-width: 1200px) {
  .contact-section {
    gap: 20px;
  }

  .contact-item {
    font-size: 13px;
  }

  .header-buttons {
    gap: 10px;
  }

  .btn-jumuah,
  .btn-donate {
    padding: 10px 18px;
    font-size: 13px;
  }

  .navigation-bar {
    margin-left: 220px;
  }
}

/* Medium screens (992px and down) - Tablet */
@media (max-width: 992px) {
  .hide-on-mobile {
    display: none !important;
  }

  .logo-container {
    width: 180px;
    border-radius: 0 0 20px 20px;
  }

  .logo-container .logo img {
    height: 80px;
  }

  .main-header {
    padding-left: 200px;
    padding-right: 15px;
    min-height: 70px;
    padding-top: 25px;
  }

  .navigation-bar {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .contact-section {
    gap: 15px;
  }

  .contact-item {
    font-size: 12px;
  }

  .contact-item i {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* Small screens (768px and down) - Mobile Landscape */
@media (max-width: 768px) {
  .header-container {
    padding-bottom: 15px;
    border-radius: 0px 0px 20px 20px;
  }

  .logo-container {
    width: 150px;
    left: 15px;
    border-radius: 0 0 15px 15px;
  }

  .logo-container .logo img {
    height: 65px;
  }

  .main-header {
    padding-left: 170px;
    padding-right: 10px;
    min-height: 60px;
    padding-top: 25px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-section {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .contact-item {
    font-size: 11px;
    width: 100%;
  }

  .contact-item i {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .header-buttons {
    align-self: flex-end;
    margin-top: -40px;
  }
}

/* Extra small screens (480px and down) - Mobile Portrait */
@media (max-width: 480px) {
  .header-container {
    padding-bottom: 10px;
    border-radius: 0px 0px 15px 15px;
  }

  .logo-container {
    width: 120px;
    left: 10px;
    height: 70px;
    border-radius: 0px 0px 10px 10px;
  }

  .logo-container .logo img {
    height: 50px;
  }

  .main-header {
    padding-left: 140px;
    padding-right: 8px;
    min-height: 50px;
    padding-top: 25px;
  }

  .header-content {
    gap: 8px;
  }

  .contact-section .contact-item:last-child {
    display: none;
  }

  .contact-item {
    font-size: 10px;
  }

  .contact-item i {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }

  .header-buttons {
    margin-top: -35px;
  }

  .mobile-toggle {
    padding: 10px 12px;
    font-size: 18px;
  }
}

/* Very small screens (360px and down) */
@media (max-width: 360px) {
  .logo-container {
    width: 100px;
    left: 5px;
    height: 60px;
  }

  .logo-container .logo img {
    height: 40px;
  }

  .main-header {
    padding-left: 110px;
    padding-right: 5px;
    min-height: 45px;
    padding-top: 35px;
  }

  .contact-section .contact-item:first-child {
    display: none;
  }

  .header-buttons {
    margin-top: -30px;
  }

  .mobile-toggle {
    padding: 8px 10px;
    font-size: 16px;
  }
}

/* Mobile Menu Improvements */
.mobile-nav {
  background: #0071bb;
}

@media (max-width: 992px) {
  .mobile-nav .mobile-header {
    background: linear-gradient(135deg, #0071bb 0%, #005299 100%);
    padding: 25px;
  }

  .mobile-nav .mobile-logo img {
    height: 60px;
    filter: brightness(1.2);
  }

  .mobile-nav ul li a {
    font-size: 18px;
    padding: 20px 30px;
  }

  .mobile-nav .sub-menu a {
    font-size: 16px;
    padding: 18px 50px;
  }
}

@media (max-width: 768px) {
  .mobile-nav .mobile-header {
    padding: 20px;
  }

  .mobile-nav .mobile-logo img {
    height: 55px;
  }

  .mobile-nav ul li a {
    font-size: 16px;
    padding: 18px 25px;
  }

  .mobile-nav .sub-menu a {
    font-size: 14px;
    padding: 15px 40px;
  }
}

@media (max-width: 480px) {
  .mobile-nav .mobile-header {
    padding: 15px;
  }

  .mobile-nav .mobile-logo img {
    height: 45px;
  }

  .mobile-nav ul li a {
    font-size: 15px;
    padding: 16px 20px;
  }

  .mobile-nav .sub-menu a {
    font-size: 13px;
    padding: 14px 35px;
  }
}

/* Utility Classes */
.view-more {
  font-weight: 600 !important;
  background: rgba(0, 113, 187, 0.1) !important;
}

.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Smooth transitions */
* {
  transition: all 0.3s ease;
}

/* Prevent horizontal scrolling */
body {
  overflow-x: hidden;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}
