@import "../bootstrap.min.css";
@import "../uzs-css/footer.css";
@import "../fontawesome-all.min.css";
@import "../style.css";
@import "../header.css";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  /* Added for testing purposes */
  min-height: 150vh; /* Make page scrollable to test sticky header */
}

/* Navigation Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #002147; /* EREF Navy Blue */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Vertically align items */
  height: 4rem;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  color: #ff8430; /* EREF Gold  #f4c300 */

  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: auto;
  margin-right: 10px;
}

.desktop-nav {
  display: none; /* Hidden by default, shown on larger screens */
  align-items: center;
  gap: 1rem;
}

.dropdown {
  position: relative;
}

.dropdown-button {
  background: none;
  border: none;
  color: white;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 44px; /* Accessibility: minimum touch target size */
  transition: color 0.2s;
}

.dropdown-button:hover,
.dropdown-button[aria-expanded="true"] {
  /* Style for active/hovered desktop button */
  color: #ff8430; /* EREF Gold */
}

.dropdown-icon {
  margin-left: 0.15rem;
  width: 1rem;
  height: 1rem;
  color: white;
  transition: transform 0.2s;
}
.dropdown-button[aria-expanded="true"] .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 14rem;
  background: white;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease-in-out,
    visibility 0.2s ease-in-out,
    transform 0.2s ease-in-out;
  max-height: calc(100vh - 120px); /* Prevent menu from being too long */
  overflow-y: auto;
  z-index: 60; /* Ensure dropdown is above other content */
}

/* Show dropdown on hover (for mouse users) OR when .open class is present (for click/keyboard) */
.dropdown:hover .dropdown-menu,
.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: #002147; /* EREF Navy Blue */
  text-decoration: none;
  font-size: 0.875rem;
  min-height: 44px; /* Accessibility */
  display: flex;
  align-items: center;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.dropdown-item:hover {
  background-color: #ff8430; /* EREF Gold */
  color: #002147;
}

.dropdown-item.active {
  background-color: #ff8430; /* EREF Gold */
  color: #002147;
  font-weight: 500;
}

/* Footer Styles (from user CSS, kept for completeness if page has footer) */
.footer {
  background-color: #002147;
  color: white;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-section h3 {
  color: #ff8430;
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-section h3.large {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-subtitle {
  color: #d4c29c;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.footer-subtitle2 {
  color: #c2b7a0;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #f2ebdc;
}

.contact-icon {
  width: 1rem;
  height: 1rem;
  margin: 0;
  margin-right: 0.5rem;
  color: #ff8430;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: #f2ebdc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #ff8430;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  color: #f2ebdc;
  text-decoration: none;
  transition: color 0.2s;
}

.social-link:hover {
  color: #ff8430;
}

.social-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  color: #ff8430;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  text-align: center;
  color: #f2ebdc;
  font-size: 0.875rem;
}

/* Main Content Area (from user CSS) */
.main-content {
  min-height: calc(100vh - 4rem); /* Adjust if footer height is known */
  background: white;
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .desktop-nav {
    display: flex; /* Show desktop nav */
  }

  .logo {
    font-size: 2rem;
  }

  .logo-img {
    height: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-container {
    padding: 3rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 2rem;
  }

  .footer-container {
    padding: 3rem 2rem;
  }
}

/* Dropdown menu for causes with scrolling (from user CSS) */
.dropdown-menu.wide {
  min-width: 16rem;
}
