/* NAVIGATION STYLING */
.navbar-nav .nav-link {
  font-weight: bold;
  color: #555;
  position: relative;
  text-transform: none;
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar-nav .nav-link.active {
  color: #01A160 !important;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 100%;
  background-color: #01A160;
}

/* Show dropdown on hover */
.navbar .dropdown:hover > .dropdown-menu,
.navbar .dropdown:focus > .dropdown-menu {
  display: block;
}

/* Dropdown styling */
.custom-dropdown {
  border: none;
  padding: 0;
  min-width: 220px;
  z-index: 1000;
}

.custom-dropdown .dropdown-item {
  font-weight: 500;
  color: #333;
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.custom-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.custom-dropdown .dropdown-item:hover {
  background-color: #f6f6f6;
  color: #FE8427;
}

/* Nested submenu support */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  display: none;
  min-width: 200px;
}

.dropdown-submenu:hover .dropdown-menu {
  display: block;
}

/* VOLUNTEER BUTTON */
.btn-volunteer {
  background-color: #009E5F;
  color: white;
  font-weight: bold;
}
.btn-volunteer:hover {
  background-color: #FE8427;
  color: white;
}

/* HERO TEXT TYPING STYLE */
.hero-text {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  white-space: pre-line;
}

.cursor {
  display: inline-block;
  background-color: white;
  width: 2px;
  animation: blink 0.8s infinite;
  height: 1.2em;
  vertical-align: bottom;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

@keyframes slideLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* HERO BANNER IMAGE SECTION */
.hero-banner {
  position: relative;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-banner h1 {
  line-height: 1.3;
}

.hero-banner .btn {
  border-radius: 6px;
  transition: 0.3s ease-in-out;
  background-color: #f97316;
}

.hero-banner .btn:hover {
  transform: scale(1.05);
  background-color: #f97316;
}

/* HERO OVERLAY (if needed) */
.hero-section .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Utility */
.text-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 6.8em;
}

.card .btn {
  border-radius: 0;
  padding: 10px 20px;
  transition: 0.3s;
}
.card .btn:hover {
  background-color: #fcb800;
  color: black;
}

/* Responsive Hero Text */
@media (max-width: 767px) {
  .hero-text h1,
  .hero-banner h1 {
    font-size: 1.75rem;
  }

  .hero-banner .btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
}
