:root {
  --primary: #0f172a;
  --accent: #0ea5e9;
  --accent-light: #e0f2fe;
  --text-dark: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --bg-light: #f8fafc;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "inter", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.logo-container {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Desktop Nav */
.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  min-width: 300px;
  /* Made wider for long college names */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 10px 0;

  /* SCROLL FIX: Essential for list of 30+ items */
  max-height: 500px;
  overflow-y: auto;
  z-index: 1001;
}

/* Scrollbar Styling */
.dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  font-weight: bold;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  /* Slightly smaller text for long names */
  line-height: 1.4;
}

.dropdown-menu li a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

/* Header Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  padding-top: 3px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn.phone {
  background: var(--primary);
  color: var(--white);
}

.icon-btn.whatsapp {
  background: #25d366;
  color: var(--white);
}

.float-wp {
  position: fixed;
  /* 1. Increased Container Size */
  width: 48px;
  height: 48px;

  /* bottom: 25px; */
  /* right: 25px; */
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;

  /* 2. Increased Icon Size */
  font-size: 40px;

  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.float-wp:hover {
  background-color: #128C7E;
  transform: translateY(-3px);
}

.my-float {
  margin-top: 0;
  /* Adjusted for better centering */
}

.icon-btn:hover {
  transform: scale(1.1);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Animation for the Hamburger Icon */
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
 
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
 
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);

}

/* Ensure mobile menu appears when active */
@media (max-width: 768px) {
  .nav-menu.active {
    left: 0;
  
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease-in-out;
    max-height: calc(100vh - 80px);
    /* Prevent full page overflow */
    overflow-y: auto;
    /* Allow scrolling inside mobile menu */
  }

  .nav-menu.active {
    left: 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #f1f5f9;
    display: none;
    text-align: left;
    /* Better for long names on mobile */
    max-height: none;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

.nav-link.active {
  color: #ff6b6b;
  font-weight: bold;
  border-bottom: 2px solid #ff6b6b;
}