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

:root {
  --primary: #083d5d;
  --primary-dark: #062a41;
  --secondary: #4da8da;
  --accent: #ff6b35;
  --light: #f2f7fc;
  --dark: #333;
  --gray: #555;
  --light-gray: #e0e0e0;
  --white: #ffffff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f2f2f2;
  color: #333;
  line-height: 1.6;
  padding-top: 130px;
  overflow-x: hidden;
}

/* Header Styles */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #083d5d;
  color: #fff;
  padding: 0 20px;
  height: 40px;
  font-size: 14px;
}

.web-text p {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
}

.web-text p span {
  font-weight: 300;
}

.web-text p::after {
  content: "|";
  margin: 0 10px;
  color: #fff;
  font-weight: 300;
}

.web-text p:last-child::after {
  content: "";
}

.right-text {
  display: flex;
}

.right-text a {
  font-size: 0.6rem;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
}

.right-text a::after {
  content: "|";
  margin: 0 8px;
  color: #fff;
  font-weight: 300;
}

.right-text a:last-child::after {
  content: "";
}

/* Navigation Styles */
.main-header {
  border-bottom: 1px solid #083d5d;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  padding: 0 20px;
  transition: all 0.3s ease;
}

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

.logo img {
  height: 25vh;
  width: 35vh;
}

.menu {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-direction: column;
}

.upperNav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* Button Styles */
.nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
}

#onlineTest1 {
  background: rgb(95, 84, 190);
  color: #fff;
}

#ebookBtn {
  background: #c67534;
  color: #fff;
}

#certificate {
  background: #085d0f;
  color: #fff;
}

#onlineTest1:hover,
#ebookBtn:hover,
#certificate:hover {
  background: #000;
  transform: translateY(-2px);
}

/* Login/Register Button Box */
.btn-box {
  width: 250px;
  display: flex;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  position: relative;
  background: #f0f0f0;
  overflow: hidden;
}

.toggle-btn {
  padding: 8px 26px;
  position: relative;
  outline: none;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 1;
  width: 50%;
  cursor: pointer;
  transition: color 0.3s ease;
}

#swap-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 125px;
  height: 100%;
  background: #083d5d;
  border-radius: 30px;
  transition: all 0.4s ease;
  z-index: 0;
}

#logInButton {
  color: white;
}

/* Lower Navigation Styles */
.lowerNav {
  display: flex;
  gap: 22px;
}

.lowerNav ul {
  display: flex;
  gap: 20px;
}

.lowerNav li {
  position: relative;
  list-style-type: none;
}

.lowerNav li a {
  font-size: 0.9rem;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.menu-link {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
}

.menu-link:hover {
  color: #083d5d;
}

.menu-link .material-symbols-outlined {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.menu-link:hover .material-symbols-outlined {
  color: #083d5d;
  transform: translateY(-2px);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-toggle .fa-chevron-down {
  margin-left: 0.3rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 220px;
  z-index: 1000;
}

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
}

.dropdown-menu li {
  margin: 0;
  width: 100%;
  padding: 0;
}

.dropdown-menu .nav-link {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  width: 100%;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.dropdown-menu .nav-link:hover {
  background-color: #f8f9fa;
  color: #083d5d;
  padding-left: 25px;
}

.dropdown-menu .nav-link:last-child {
  border-bottom: none;
}

.dropdown-menu .material-symbols-outlined {
  margin-right: 0.8rem;
  font-size: 1.1rem;
  color: #083d5d;
}

/* Menu Icon Styles */
.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  margin-left: auto;
  z-index: 1001;
}

.menu-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-icon.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
  opacity: 0;
}

.menu-icon.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hover effects for desktop */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
  }

  .menu-link {
    position: relative;
  }

  .menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #083d5d;
    transition: width 0.3s ease;
  }

  .menu-link:hover::after {
    width: 100%;
  }
}

/* Responsive Styles - 768px and below */
@media (max-width: 768px) {
  body {
    padding-top: 90px;
  }

  .top-header {
    display: none;
  }

  .menu-icon {
    display: flex;
  }

  .nav {
    flex-direction: row;
    height: auto;
    padding: 10px 20px;
    position: relative;
  }

  .logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
  }

  .logo img {
    height: 70px;
  }

  .menu {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    display: none;
    padding: 30px 20px 20px;
    overflow-y: auto;
    z-index: 999;
    transform: translateX(-100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .menu.active {
    display: flex;
    transform: translateX(0);
  }

  .upperNav {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    margin-bottom: 25px;
  }

  .upperNav .nav-button {
    width: 90%;
    text-align: center;
    height: 48px;
    font-size: 1rem;
    justify-content: center;
  }

  .btn-box {
    width: 90%;
    box-shadow: none;
    background: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    height: 120px;
  }

  .btn-box #logInButton {
    color: #fff;
    background: #083d5d;
    width: 100%;
    margin: 0;
    border-radius: 30px;
    height: 48px;
    justify-content: center;
  }

  .btn-box #signUpBtn {
    border: 2px solid #083d5d;
    color: #083d5d;
    width: 100%;
    border-radius: 40px;
    background: white;
    height: 48px;
    justify-content: center;
  }

  #swap-btn {
    display: none;
  }

  .lowerNav {
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 10px;
  }

  .lowerNav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .lowerNav li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .menu-link {
    padding: 16px 0;
    width: 100%;
    justify-content: flex-start;
    font-size: 1rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    width: 100%;
    display: none;
    padding-left: 20px;
    background: transparent;
    border-radius: 0;
    margin-top: 0;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-toggle .fa-chevron-down {
    margin-left: auto;
    transition: transform 0.3s ease;
  }

  .dropdown.active .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
  }

  .dropdown-menu .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid #e9ecef;
  }

  .dropdown-menu .nav-link:hover {
    padding-left: 10px;
    background: transparent;
  }
}

/* Global styles */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Highlight Links */
.highlight-link {
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 6px;
  white-space: nowrap;
  animation: pulse 2s infinite;
}

.highlight-link.erp {
  background: #0b5ed7;
  color: #fff;
}

.highlight-link.admission {
  background: #d63384;
  color: #fff;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 currentColor;
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 12px 6px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 currentColor;
    opacity: 1;
  }
}
/* MOBILE HEADER: ERP LOGIN + FACULTY ENQUIRY */

.mobile-utility-links {
  display: none;
}

@media (max-width: 768px) {
  /* Existing desktop utility bar is hidden;
     its two important links appear beside the logo instead. */
  .top-header {
    display: none !important;
  }

  body {
    padding-top: 90px;
  }

  .header-container {
    width: 100%;
  }

  .main-header {
    width: 100%;
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    height: 90px;
    padding: 8px;
  }

  .logo {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
  }

  .logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 88px;
    max-height: 48px;
    object-fit: contain;
  }

  .mobile-utility-links {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
  }

  .mobile-utility-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 7px 5px;
    border-radius: 6px;
    color: #fff !important;
    font-size: clamp(9px, 2.6vw, 12px);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-erp-link {
    background: #0b5ed7;
  }

  .mobile-enquiry-link {
    background: #d63384;
  }

  .menu-icon {
    display: flex;
    flex: 0 0 25px;
    width: 25px;
    min-width: 25px;
    height: 22px;
    margin: 0;
    padding: 0;
    z-index: 1001;
  }

  /* Keep the existing hamburger menu below the header */
  .menu {
    top: 90px;
    height: calc(100vh - 90px);
    height: calc(100dvh - 90px);
  }
}

/* Smaller mobile screens */
@media (max-width: 360px) {
  .nav {
    gap: 4px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .logo img {
    max-width: 72px;
  }

  .mobile-utility-links {
    gap: 3px;
  }

  .mobile-utility-links a {
    padding: 6px 3px;
    font-size: 9px;
  }

  .menu-icon {
    flex-basis: 23px;
    width: 23px;
    min-width: 23px;
  }
}
/* =========================================
   PREMIUM MOBILE HEADER - CLEAN DESIGN
   ========================================= */

.mobile-utility-links {
  display: none;
}

@media (max-width: 768px) {

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 7px;
    padding: 8px 10px;
    min-height: 90px;
  }

  /* College Logo */
  .logo {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
  }

  .logo img {
    width: auto;
    height: auto;
    max-width: 88px;
    max-height: 48px;
    object-fit: contain;
  }

  /* ERP and Faculty Enquiry */
  .mobile-utility-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
  }

  .mobile-utility-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 7px;
    border-radius: 7px;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(10px, 2.8vw, 12px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.2px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
    animation: mobileButtonEnter 0.45s ease-out both;
    transition:
      background-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.15s ease;
  }

  .mobile-utility-links a:nth-child(2) {
    animation-delay: 0.08s;
  }

  .mobile-erp-link {
    background: #1764d8;
  }

  .mobile-erp-link:hover {
    background: #104eae;
    box-shadow: 0 4px 9px rgba(23, 100, 216, 0.20);
  }

  .mobile-enquiry-link {
    background: #c52d78;
  }

  .mobile-enquiry-link:hover {
    background: #a91f64;
    box-shadow: 0 4px 9px rgba(197, 45, 120, 0.20);
  }

  .mobile-utility-links a:active {
    transform: scale(0.96);
  }

  /* Hamburger */
  .menu-icon {
    display: flex;
    flex: 0 0 26px;
    width: 26px;
    min-width: 26px;
    height: 22px;
    margin: 0;
  }

  .menu-icon span {
    background: #083d5d;
  }

  /* Existing navigation dropdown */
  .menu {
    top: 90px;
    height: calc(100vh - 90px);
    height: calc(100dvh - 90px);
  }
}

/* Small phones */
@media (max-width: 360px) {
  .nav {
    gap: 5px;
    padding-left: 7px;
    padding-right: 7px;
  }

  .logo img {
    max-width: 74px;
  }

  .mobile-utility-links {
    gap: 4px;
  }

  .mobile-utility-links a {
    padding: 7px 5px;
    font-size: 10px;
  }

  .menu-icon {
    flex-basis: 23px;
    width: 23px;
    min-width: 23px;
  }
}

/* Soft entrance animation - no continuous pulsing */
@keyframes mobileButtonEnter {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-utility-links a {
    animation: none;
    transition: none;
  }
}
/* ======================================
   MOBILE HEADER — BIG LOGO + SOFT POP
   ====================================== */

@media (max-width: 768px) {

  /* Header spacing */
  .nav {
    min-height: 82px;
    height: 82px;
    padding: 6px 8px;
    gap: 4px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  /* Bigger College Logo */
  .logo {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .logo img {
    display: block;
    width: 108px;
    max-width: 108px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
  }

  /* Keep both buttons close together */
  .mobile-utility-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 3px;
    margin: 0;
  }

  .mobile-utility-links a {
    padding: 7px 5px;
    border-radius: 6px;
    font-size: clamp(9px, 2.7vw, 11px);
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.12);
    animation: headerButtonPop 2.2s ease-in-out infinite;
    transition: transform 0.2s ease;
  }

  .mobile-erp-link {
    background: linear-gradient(135deg, #1764d8, #0b5ed7);
  }

  .mobile-enquiry-link {
    background: linear-gradient(135deg, #d63384, #bd246f);
  }

  .mobile-utility-links a:active {
    transform: scale(0.94);
  }

  /* Hamburger */
  .menu-icon {
    flex: 0 0 25px;
    width: 25px;
    min-width: 25px;
    height: 22px;
    margin: 0;
  }

  /* Menu opens immediately below the header */
  .menu {
    top: 82px;
    height: calc(100vh - 82px);
    height: calc(100dvh - 82px);
  }

  /* Keep content below the fixed header */
  body {
    padding-top: 82px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .nav {
    padding-left: 5px;
    padding-right: 5px;
    gap: 3px;
  }

  .logo img {
    width: 91px;
    max-width: 91px;
    max-height: 52px;
  }

  .mobile-utility-links {
    gap: 2px;
  }

  .mobile-utility-links a {
    padding: 6px 4px;
    font-size: 9px;
  }

  .menu-icon {
    flex-basis: 22px;
    width: 22px;
    min-width: 22px;
  }
}

/* Gentle pop animation */
@keyframes headerButtonPop {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .mobile-utility-links a {
    animation: none;
  }
}

/* =========================================
   MOBILE ONLY — BIGGER HEADER & LOGO
   ========================================= */

@media (max-width: 768px) {

  /* Header ki height badhao */
  .nav {
    height: 96px !important;
    min-height: 96px;
    padding: 10px 9px;
    gap: 5px;
  }

  /* College logo bigger */
  .logo {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
  }

  .logo img {
    width: 125px !important;
    max-width: 125px !important;
    height: 66px !important;
    max-height: 66px !important;
    object-fit: contain;
  }

  /* ERP Login and Faculty Enquiry buttons */
  .mobile-utility-links {
    gap: 4px;
  }

  .mobile-utility-links a {
    min-height: 34px;
    padding: 9px 6px;
    font-size: 10px;
    border-radius: 7px;
  }

  /* Hamburger button */
  .menu-icon {
    flex: 0 0 27px;
    width: 27px;
    min-width: 27px;
    height: 24px;
  }

  /* Navigation logo/header ke neeche open ho */
  .menu {
    top: 96px !important;
    height: calc(100vh - 96px);
    height: calc(100dvh - 96px);
  }

  /* Fixed header ke neeche page content */
  body {
    padding-top: 96px;
  }
}

/* Extra-small mobile */
@media (max-width: 360px) {

  .nav {
    padding-left: 5px;
    padding-right: 5px;
    gap: 3px;
  }

  .logo img {
    width: 108px !important;
    max-width: 108px !important;
    height: 60px !important;
    max-height: 60px !important;
  }

  .mobile-utility-links {
    gap: 3px;
  }

  .mobile-utility-links a {
    padding: 8px 4px;
    font-size: 9px;
  }
}

/* MOBILE ONLY: BIG LOGO + SMALL BUTTONS */

@media (max-width: 768px) {

  /* College logo bigger */
  .logo img {
    width: 140px !important;
    max-width: 140px !important;
    height: auto !important;
    max-height: 70px !important;
    object-fit: contain;
  }

  /* ERP Login and Faculty Enquiry smaller */
  .mobile-utility-links {
    gap: 3px;
  }

  .mobile-utility-links a {
    min-height: 27px;
    padding: 5px 4px;
    font-size: 9px;
    line-height: 1.1;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.10);
  }
}

/* Small mobile phones */
@media (max-width: 360px) {

  .nav {
    gap: 3px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .logo img {
    width: 118px !important;
    max-width: 118px !important;
    max-height: 62px !important;
  }

  .mobile-utility-links {
    gap: 2px;
  }

  .mobile-utility-links a {
    padding: 5px 3px;
    font-size: 8px;
    min-height: 25px;
  }

  .menu-icon {
    width: 22px;
    min-width: 22px;
    flex-basis: 22px;
  }
}