/* ===========================================================
  HEADER & FOOTER - GLA UNIVERSITY
  Optimized Green & Gold Professional Theme
=========================================================== */

/* ===========================================================
  CSS VARIABLES (Shared with styles.css)
=========================================================== */
:root {
  /* Primary Colors */
  --primary-green-darkest: #0a4011;
  --primary-green-dark: #0d3c0f;
  --primary-green: #1b5e20;
  --primary-green-light: #43a047;
  --primary-green-lighter: #66bb6a;
  --primary-green-subtle: #e8f5e9;

  /* Accent Colors */
  --accent-gold: #d4af37;
  --accent-yellow: #ffc107;
  --accent-yellow-dark: #f9a825;
  --accent-yellow-light: #ffeb3b;
  --accent-yellow-medium: #ffd54f;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-700: #374151;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);
  --shadow-green: 0 8px 24px rgba(27, 94, 32, 0.35);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ===========================================================
  ANIMATIONS
=========================================================== */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===========================================================
  TOP BAR
=========================================================== */
.modern-top-bar {
  background: linear-gradient(
    135deg,
    var(--primary-green-lighter) 0%,
    var(--primary-green-light) 50%,
    var(--primary-green-lighter) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  color: var(--white);
  font-size: 13px;
  font-family: var(--font-body);
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.top-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}

.top-bar-left {
  flex: 1;
  min-width: 0;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Contact Info */
.contact-info {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.contact-item i {
  font-size: 14px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Social Links */
.top-social-links {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.top-social-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.top-social-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.top-social-icon img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  filter: brightness(1.2);
  transition: filter 0.3s ease;
}

.top-social-icon:hover img {
  filter: brightness(1.5) contrast(1.2);
}

/* Accessibility Controls */
.accessibility-controls {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.control-btn {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.control-btn:active {
  transform: translateY(0) scale(0.95);
}

/* ===========================================================
  NAVBAR
=========================================================== */
.modern-navbar {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--primary-green-dark) 100%
  );
  box-shadow: var(--shadow-green);
  position: sticky;
  top: 32px;
  z-index: 1000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  gap: 12px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.brand-logo:hover {
  transform: translateX(5px);
}

.logo-img {
  width: 85px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: contain;
  background: var(--white);
}

.logo-img:hover {
  box-shadow:
    0 6px 25px rgba(212, 175, 55, 0.5),
    0 0 20px rgba(255, 201, 71, 0.4);
  filter: brightness(1.05);
  transform: scale(1.08) rotate(2deg);
  border-color: var(--accent-yellow-light);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.university-name {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--white);
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 10px;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.9;
  transition: all 0.3s ease;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.brand-logo:hover .brand-subtitle {
  opacity: 1;
  color: var(--accent-yellow-light);
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
  border: 2px solid var(--accent-yellow-medium);
  cursor: pointer;
  gap: 5px;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  padding: 10px;
}

.mobile-menu-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation */
.navbar-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  background: transparent;
  letter-spacing: 0.3px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-yellow-dark), var(--accent-yellow));
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.nav-link i {
  font-size: 14px;
}

.nav-icon {
  font-size: 16px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.nav-link:hover .nav-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.5));
}

/* Notification Bell Button */
.notification-bell-btn {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  box-shadow: var(--shadow-md);
}

.notification-bell-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-yellow-medium);
}

.notification-bell-btn:hover i {
  animation: bellRing 0.5s ease;
  color: var(--accent-yellow-light);
}

.bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ff4444, #ff6b6b);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid var(--primary-green-dark);
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  10%, 30%, 50%, 70% { transform: rotate(-15deg); }
  20%, 40%, 60%, 80% { transform: rotate(15deg); }
  90% { transform: rotate(-5deg); }
}

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

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
  margin-left: 5px;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--white);
  min-width: 240px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  list-style: none;
  padding: 12px 0;
  margin: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 30px;
  width: 12px;
  height: 12px;
  background: var(--white);
  transform: rotate(45deg);
  border: 1px solid var(--gray-200);
  border-bottom: none;
  border-right: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-link {
  display: block;
  padding: 12px 20px;
  color: var(--gray-700);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-link:hover {
  background: var(--primary-green-subtle);
  color: var(--primary-green);
  padding-left: 24px;
  border-left-color: var(--primary-green);
}

/* ===========================================================
  FOOTER
=========================================================== */
.modern-footer {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-green-dark) 0%,
    #142810 50%,
    var(--primary-green-dark) 100%
  );
  color: var(--white);
  overflow: hidden;
  font-family: var(--font-body);
}

/* Footer Waves */
.footer-waves {
  position: relative;
  width: 100%;
  height: 100px;
  margin-top: -100px;
  z-index: 1;
}

.footer-waves svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.footer-fill {
  fill: var(--primary-green-dark);
}

/* Footer Content */
.footer-content {
  padding: 80px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Brand Section */
.footer-brand {
  grid-column: span 2;
}

.footer-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--accent-yellow-medium);
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.footer-logo:hover {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.footer-brand h3 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-yellow-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

/* Footer Sections */
.footer-section h4 {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  padding-bottom: 12px;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-yellow);
  border-radius: 2px;
}

/* Footer Links */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  padding: 8px 0;
  font-size: 14px;
}

.footer-link i {
  font-size: 10px;
  color: var(--accent-yellow-medium);
  transition: all 0.3s ease;
  width: 14px;
  text-align: center;
}

.footer-link:hover {
  color: var(--accent-yellow);
  transform: translateX(8px);
  text-decoration: none;
}

.footer-link:hover i {
  transform: translateX(4px);
  color: var(--accent-yellow-light);
}

/* Contact Section */
.footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-green-light);
  transition: all 0.3s ease;
}

.footer-contact .contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
  border-left-color: var(--accent-yellow-medium);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  font-size: 24px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 94, 32, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent-yellow-medium);
}

.contact-text {
  flex: 1;
}

.contact-text strong {
  color: var(--accent-yellow-medium);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-text a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: var(--accent-yellow-light);
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

/* App Section */
.footer-apps p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.app-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.app-button {
  display: block;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.app-icon {
  height: 50px;
  width: auto;
  display: block;
}

/* Social Section */
.footer-social {
  padding: 40px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social h4 {
  font-size: 20px;
  margin-bottom: 25px;
  color: var(--white);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: var(--radius-xl);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.social-link img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  padding: 2px;
}

.social-text {
  font-size: 14px;
  font-weight: 600;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.social-link.facebook:hover {
  background: rgba(59, 89, 152, 0.3);
  border-color: #3b5998;
}

.social-link.twitter:hover {
  background: rgba(29, 161, 242, 0.3);
  border-color: #1da1f2;
}

.social-link.linkedin:hover {
  background: rgba(0, 119, 181, 0.3);
  border-color: #0077b5;
}

.social-link.instagram:hover {
  background: rgba(225, 48, 108, 0.3);
  border-color: #e1306c;
}

.social-link.whatsapp:hover {
  background: rgba(37, 211, 102, 0.3);
  border-color: #25d366;
}

/* Footer Bottom */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--accent-yellow-medium);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.back-to-top span {
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
}

/* ===========================================================
  MOBILE SIDEBAR
=========================================================== */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

.popup-sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: linear-gradient(
    135deg,
    var(--primary-green-darkest) 0%,
    var(--primary-green-dark) 50%,
    var(--primary-green) 100%
  );
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-right: 3px solid var(--accent-yellow-medium);
  padding: 80px 0 20px;
  z-index: 9999;
  box-shadow: var(--shadow-xl);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.popup-sidebar.active {
  display: block;
  transform: translateX(0);
}

.popup-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popup-sidebar ul li {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-sidebar ul li a {
  position: relative;
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 16px;
  display: block;
  padding: 18px 25px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.popup-sidebar ul li a.main-menu-item::after {
  content: '▼';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.popup-sidebar ul li a.main-menu-item.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.popup-sidebar ul li a:hover {
  background: rgba(255, 255, 255, 0.15);
  padding-left: 35px;
}

/* Submenu */
.popup-sidebar .sub-menu {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin: 8px 0 8px 20px;
  padding: 0;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block !important;
  visibility: hidden;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.popup-sidebar .sub-menu.active {
  max-height: 600px;
  opacity: 1;
  padding: 8px 0;
  visibility: visible;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  pointer-events: auto;
}

.popup-sidebar .sub-menu-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  padding: 12px 20px;
  width: calc(100% - 16px);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--radius-md);
  margin: 2px 8px;
  display: block;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.popup-sidebar .sub-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.popup-sidebar .sub-menu-btn:active {
  transform: translateX(4px) scale(0.98);
}

.popup-sidebar .main-menu-item.active {
  background: rgba(212, 175, 55, 0.15);
  font-weight: 600;
  border-left: 3px solid var(--accent-gold);
}

/* ===========================================================
  RESPONSIVE DESIGN
=========================================================== */
@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: flex;
  }

  .navbar-nav {
    display: none;
  }

  .notification-bell-btn {
    display: flex;
    margin-left: 8px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .bell-badge {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  /* Hide top bar on mobile */
  .modern-top-bar {
    display: none;
  }

  /* Mobile navbar adjustments */
  .modern-navbar {
    position: sticky;
    top: 0;
  }

  .navbar-container {
    padding: 12px 15px;
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  .mobile-menu-btn {
    display: flex !important;
    order: 1;
  }

  .brand-logo {
    order: 2;
    flex-direction: row-reverse;
  }

  .brand-text {
    display: none;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  /* Hide desktop navigation */
  .navbar-nav {
    display: none;
  }

  /* Footer responsive */
  .footer-brand {
    grid-column: span 1;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 60px 20px 40px;
  }

  .social-links {
    gap: 10px;
  }

  .social-link {
    padding: 10px 15px;
    font-size: 12px;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .contact-item {
    font-size: 11px;
    padding: 5px 10px;
  }

  .accessibility-controls {
    gap: 5px;
  }

  .control-btn,
  .top-social-icon {
    width: 28px;
    height: 28px;
  }

  .brand-text .university-name {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 9px;
  }

  .logo-img {
    width: 80px;
    height: 45px;
  }

  .popup-sidebar {
    width: 280px;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}
