html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

main {
  padding: 20px;
  margin-top: 90px;
}

@media (max-width: 768px) {
  main {
    padding: 15px;
  }
}

hr {
  margin-bottom: 10px;
}

/* Header styles - let Bootstrap handle most of the layout */
header {
  background-color: #f3f3f3;
  color: #000;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Bootstrap navbar is already handling the layout, minimal overrides */
header .navbar {
  height: 90px;
  min-height: 90px;
  max-height: 90px;
  padding: 0.5rem 1rem;
}

/* Ensure container-fluid maintains consistent alignment */
header .navbar .container-fluid {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* Fix navbar-nav alignment at all breakpoints */
header .navbar-nav {
  flex-direction: row !important;
  align-items: center !important;
  margin: 0 !important;
}

/* Ensure left side elements stay aligned */
header .d-flex.align-items-center {
  height: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 5px;
  text-decoration: none;
}

.logo-1 {
  width: 90px;       /* smaller width */
  height: auto;      /* keep aspect ratio */
  object-fit: contain;
}

/* Mobile responsive logo */
@media (max-width: 576px) {
  .logo-1 {
    width: 60px;
    height: auto;
  }
}

.logo-text {
  font-size: 30px;
  font-weight: bold;
  color: #4f5eaf;   /* black text */
  white-space: nowrap; /* keep it on one line */
}

/* Mobile responsive logo text */
@media (max-width: 576px) {
  .logo-text {
    font-size: 16px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .logo-text {
    font-size: 20px;
  }
}



/* Navigation styles for Bootstrap navbar */
.navbar .nav-link {
  color: #000 !important;
  font-size: 16px;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
  position: relative;
}

.navbar .nav-link:hover {
  color: #4f5eaf !important;
}

.navbar .nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #4f5eaf;
}

.extra-photo img {
  height: 50px;
  width: auto;
}

/* Mobile responsive extra photo */
@media (max-width: 576px) {
  .extra-photo img {
    height: 35px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .extra-photo img {
    height: 40px;
  }
}

.donate-button {
  margin-left: 0px;
}

.donate-button button {
  background-color: #4f5eaf;
  border: none;
  padding: 13px 25px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  color: #dbdbdb;
  font-weight: 700;
  white-space: nowrap;
}

.donate-button button a {
  text-decoration: none;
}

.donate-button button:hover {
  background-color: #1d79ac;
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Progressive hiding for navigation items at custom breakpoints */
/* Priority: Nav tabs first, then extra photo, then logo text */

/* Hide Our Team tab */
@media (max-width: 1299px) {
  .hide-below-1300 {
    display: none !important;
  }
}

/* Hide Our History tab */
@media (max-width: 1149px) {
  .hide-below-1150 {
    display: none !important;
  }
}

/* Hide Contact Us tab */
@media (max-width: 1049px) {
  .hide-below-1050 {
    display: none !important;
  }
}

/* Hide extra photo */
@media (max-width: 899px) {
  .hide-below-900 {
    display: none !important;
  }
}

/* Hide logo text last */
@media (max-width: 499px) {
  .hide-below-500 {
    display: none !important;
  }
}

.sidebar {
  position: fixed;
  top: 90px; /* adjusted for new header height */
  left: 0;
  width: 275px;
  max-width: 85vw; /* responsive width on mobile */
  height: calc(100vh - 90px); /* full height minus header */
  background-color: white;
  padding: 10px 20px;
  font-family: Arial, sans-serif;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-radius: 0 10px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  height: calc(100vh - 90px);
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}
/* Add some horizontal spacing */
.sidebar-buttons {
  width: 100%;
}
.sidebar.active {
  transform: translateX(0); 
}


.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  width: 100%;
  margin-bottom: 12px;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #8f8fa7;
  font-size: 19px;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
  
}



.sidebar ul li a:hover {
  background-color: rgba(191, 197, 226, 0.3);
  color: #4f5eaf;
}



.sidebar ul li a img {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

.main-content {
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  margin-top: 90px; /* adjusted for new header height */
  background-color: white;
  border-top: 1px solid #ddd;
  flex: 1;
}

@media (max-width: 768px) {
  .main-content {
    padding: 20px 0;
  }
}

.bottom-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 20px;
  background-color: #f4c430;
  min-height: 200px;
}

.content-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}

.content-box {
  flex: 1 1 200px;
  min-width: 200px;
}

@media (max-width: 768px) {
  .bottom-content {
    padding: 30px 15px;
  }
  
  .content-box {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

.content-box h3 {
  font-size: 16px;
  color: black;
  margin-bottom: 10px;
}

.content-box ul {
  list-style: none;
  padding: 0;
}

.content-box ul li {
  color: black;
  font-size: 14px;
  margin-bottom: 6px;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-icons a {
  text-decoration: none;
  color: black;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons a img {
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
}

.main-container {
  width: 90%;
  max-width: 1200px;
  padding: 40px;
  background-color: transparent;
}

h3 {
  text-align: left;
  margin-bottom: 10px;
  color: #4f5eaf;
  font-size: 35px;
  max-width: 500px;
}

h4 {
  text-align: left;
  margin-bottom: 10px;
  color: #333;
  font-size: 12px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: #4f5eaf;
  border: none;
  cursor: pointer;
  gap: 5px;
  align-items: center;
  border-radius: 6px;
  padding: 0;
}

.hamburger .bar {
  height: 2px;
  width: 18px;
  background-color: white;
  border-radius: 1px;
}

.hamburger:hover {
  background-color: #1d79ac;
  transition: background-color 0.3s ease;
}

@media (max-width: 991px) {
  .hamburger {
    width: 40px;
    height: 40px;
  }
}