/* Color Palette & Variables */
:root {
  --primary-color: #006a4e;      /* Deep Bangladesh Green */
  --accent-color: #f2a900;       /* Golden Accent */
  --dark-bg: #0f172a;            /* Slate Dark */
  --light-bg: #ffffff;
  --text-dark: #1e293b;
  --text-logo: #016630;
  --text-muted: #64748b;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans Bengali', sans-serif;
}

body {
  background-color: #f8fafc;
}

/* Navbar Base */
.navbar {
  background: var(--light-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary-color);
  width: 100%;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.15rem 1rem; /* Ultra-tight top/bottom padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo and Brand Title */
/* Logo and Brand Title */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0rem;
  text-decoration: none;
  color: var(--primary-color);
}

/* Force a larger logo display while locking the height to preserve the navbar size */
.nav-brand img {
  width: 65px !important;
  height: 60px !important; /* Locks the height so the header doesn't expand */
  object-fit: contain;     /* Prevents the image from distorting */
}
.brand-name {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1.7rem; /* Slightly smaller title for a tight layout */
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-logo);
}

/* Desktop Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem; /* Minimal spacing between menu items */
  list-style: none;
	
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem; /* Small icon-to-text gap */
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.88rem; /* Slightly tighter text size */
  padding: 0.25rem 0.45rem; /* Very tight padding around items */
  border-radius: 6px;
  transition: var(--transition);
}

.nav-link i {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover, 
.nav-link.active {
  color: var(--primary-color);
  background-color: rgba(0, 106, 78, 0.06);
}

.nav-link:hover i, 
.nav-link.active i {
  color: var(--primary-color);
}

/* Action Button ("Join Us") */
.btn-join {
  background-color: var(--primary-color);
  color: white !important;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-left: 0.25rem;
}

.btn-join i {
  color: white !important;
}

.btn-join:hover {
  background-color: #00523d;
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.25);
  transform: translateY(-1px);
}

/* Mobile Toggle Hamburger Button */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

/* Dropdown Base Styles (Desktop) */
.has-dropdown {
  position: relative;
}

.dropdown-icon {
  font-size: 0.7rem !important;
  margin-left: 0.15rem;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--light-bg);
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.3rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: var(--transition);
  z-index: 1001;
}

@media (min-width: 901px) {
  .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
  }
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  transition: var(--transition);
}

.dropdown-link i {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dropdown-link:hover {
  background-color: rgba(0, 106, 78, 0.08);
  color: var(--primary-color);
}

/* ===================================================
   Responsive Mobile View Drawer
   =================================================== */
@media (max-width: 900px) {
  .nav-container {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: block;
    order: 1;
  }

  .nav-brand {
    order: 2;
  }

  .brand-name {
    font-size: 1.9rem;
  }

  /* Slide-down Mobile Menu Drawer */
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--light-bg);
    padding: 0 1rem;
    gap: 0.15rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e2e8f0;
    
    /* Smooth Collapse / Expand Setup */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s ease;
  }

  /* Active class triggered by JavaScript */
  .nav-menu.open {
    max-height: 450px;
    opacity: 1;
    visibility: visible;
    padding: 0.35rem 1rem;
  }

  .nav-toggle i {
    transition: transform 0.3s ease;
  }	

  .nav-link {
    padding: 0.45rem 0.65rem;
    width: 100%;
  }

  /* Submenu/Accordion under Manifesto on Mobile */
  .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border-left: 2px solid var(--primary-color);
    margin: 0 0 0 0.75rem;
    padding-left: 0.35rem;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease;
  }

  .has-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 250px;
    margin-top: 0.15rem;
    margin-bottom: 0.25rem;
  }

  .has-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
  }

  .btn-join {
    text-align: center;
    justify-content: center;
    border-radius: 6px;
    margin-top: 0.15rem;
    margin-left: 0;
  }
}