/**
 * HUCAA Alumni Forum - Main CSS Theme
 * Consolidated, organized, and de-duplicated for better maintainability.
 * Based on MediLab template and custom styles, customized for Alumni Forum.
 */

/*==============================================================================
  TABLE OF CONTENTS
  ================================================================================
  1.  CSS Variables & Root Styles
  2.  Global/Base Styles
  3.  Typography
  4.  Layout & Sections
  5.  Buttons & Forms
  6.  Header & Navigation
  7.  Hero Section
  8.  Cards & Components
  9.  About Section
  10. Services Section
  11. Events & Activities
  12. Notifications & Toasts
  13. Footer
  14. Utilities & Helpers
  15. Animations & Transitions
  16. Media Queries
==============================================================================*/

/*==============================================================================
  1. CSS VARIABLES & ROOT STYLES
==============================================================================*/
:root {
  /* Fonts */
  --default-font:
    'Roboto', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
    sans-serif;
  --heading-font: 'Poppins', sans-serif;
  --nav-font: 'Raleway', sans-serif;

  /* Global Colors */
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #2c2c2c;
  --accent-color: #910c00;
  --accent-color-light: #c01207;
  --accent-color-dark: #6b0900;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --light-bg-color: #f8f9fa;
  --border-color: #e9ecef;

  /* Enhanced Design System Variables */
  --enhanced-primary: #910c00;
  --enhanced-secondary: #ff6b6b;
  --enhanced-text: #2c2c2c;
  --enhanced-text-muted: #64748b;

  /* Navigation Colors */
  --nav-color: #333333;
  --nav-hover-color: #910c00;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #333333;
  --nav-dropdown-hover-color: #910c00;

  /* Smooth scroll */
  scroll-behavior: smooth;
}

/* Color Presets */
.light-background {
  --background-color: #f8f9fa;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #2c2c2c;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #3a3a3a;
  --contrast-color: #ffffff;
}

/*==============================================================================
  2. GLOBAL/BASE STYLES
==============================================================================*/

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  padding: 0 !important;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

a:hover {
  color: var(--accent-color-light);
  text-decoration: none;
}

/* Remove the red outline focus style */
*:focus {
  outline: none;
}

/*==============================================================================
  NAVIGATION BADGES - NOTIFICATION COUNTERS
==============================================================================*/

.nav-item-with-badge {
  position: relative;
  display: inline-block;
}

.nav-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border: 2px solid #fff;
}

.module-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Badge animations */
.nav-badge.show {
  animation: badgePulse 0.5s ease-in-out;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Different colors for different badge types */
.announcement-badge {
  background: #ffc107;
  color: #000;
  border-color: #fff;
}

.message-badge {
  background: #dc3545;
  color: #fff;
  border-color: #fff;
}

.notification-badge {
  background: #dc3545;
  color: #fff;
  border-color: #fff;
  position: absolute;
  top: -8px;
  right: -8px;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border: 2px solid #fff;
}

/* Ensure badges don't interfere with navigation layout */
.navmenu ul li {
  position: relative;
}

.navmenu ul li.nav-item-with-badge {
  margin-right: 8px; /* Add space for badge */
}

/*==============================================================================
  SCROLLBAR STYLING - HIDE SCROLLBARS ACROSS THE SYSTEM
==============================================================================*/

/* Hide scrollbars for Chrome, Safari and Opera - AGGRESSIVE APPROACH */
* {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
  display: none !important; /* WebKit browsers (Chrome, Safari, Edge) */
  width: 0 !important;
  height: 0 !important;
}

*::-webkit-scrollbar-track {
  display: none !important;
}

*::-webkit-scrollbar-thumb {
  display: none !important;
}

*::-webkit-scrollbar-corner {
  display: none !important;
}

/* Ensure scrolling still works */
html,
body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* Internet Explorer 10+ */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Specific elements that might need scrollbars hidden */
.scrollable-content,
.modal-body,
.dropdown-menu,
.list-group,
.card-body,
.table-responsive,
.sidebar,
.main-content,
.module-main-content,
.notifications-container,
.messages-container,
.test-container,
div[style*='overflow'] {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* Internet Explorer 10+ */
}

.scrollable-content::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.dropdown-menu::-webkit-scrollbar,
.list-group::-webkit-scrollbar,
.card-body::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.module-main-content::-webkit-scrollbar,
.notifications-container::-webkit-scrollbar,
.messages-container::-webkit-scrollbar,
.test-container::-webkit-scrollbar,
div[style*='overflow']::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Add smooth scrolling to the page */
html {
  scroll-behavior: smooth;
}

/* Navigation pill-shaped highlights */
.navmenu a.landing-nav-link {
  position: relative;
  padding: 6px 12px;
  border-radius: 20px;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--nav-color);
  background: transparent;
  font-size: 13px;
}

.navmenu a.landing-nav-link:hover {
  background: var(--accent-color-light);
  color: var(--contrast-color);
}

.navmenu a.landing-nav-link.active {
  background: var(--accent-color);
  color: var(--contrast-color);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--accent-color-light);
}

/* Module navigation links - consistent with landing page styling */
.navmenu a.module-nav-link {
  position: relative;
  padding: 6px 12px;
  border-radius: 20px;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--nav-color);
  background: transparent;
  margin: 0 2px;
  font-size: 13px;
}

.navmenu a.module-nav-link:hover {
  background: var(--accent-color-light);
  color: var(--contrast-color);
}

.navmenu a.module-nav-link.active {
  background: var(--accent-color);
  color: var(--contrast-color);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--accent-color-light);
}

/* Pill-shaped login/register buttons */
.btn-pill {
  border-radius: 25px;
  padding: 4px 8px;
  font-weight: 500;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-pill.btn-outline-primary {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-pill.btn-outline-primary:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px var(--accent-color-dark);
}

.btn-pill.btn-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

.btn-pill.btn-primary:hover {
  background: var(--accent-color-light);
  color: var(--contrast-color);
  box-shadow: 0 4px 6px var(--accent-color-dark);
}

/* Smooth transitions for all interactive elements */
.navmenu a,
.btn,
.dropdown-toggle {
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .navmenu a.landing-nav-link {
    padding: 6px 12px;
    font-size: 14px;
  }

  .btn-pill {
    padding: 6px 16px;
    font-size: 14px;
  }
}

/*==============================================================================
  3. TYPOGRAPHY
==============================================================================*/

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/*==============================================================================
  4. LAYOUT & SECTIONS
==============================================================================*/

.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
  position: relative;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 25px;
  position: relative;
}

.section-title h2:before {
  content: '';
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2:after {
  content: '';
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  bottom: 0;
  left: calc(50% - 20px);
}

.section-title p {
  margin-bottom: 0;
  font-size: 18px;
}

/* Enhanced Section Styling */
.enhanced-section {
  padding: 4rem 0;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(10px);
}

.enhanced-section-header {
  margin-bottom: 3rem;
}

.enhanced-section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--enhanced-primary), var(--enhanced-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.enhanced-section-subtitle {
  color: var(--enhanced-text);
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.enhanced-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/*==============================================================================
  5. BUTTONS & FORMS
==============================================================================*/

/* Standard Buttons */
.btn {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 28px;
  border-radius: 4px;
  transition: all 0.3s ease;
  color: var(--contrast-color);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

.btn-primary {
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
  color: var(--contrast-color);
}

.btn-primary:hover {
  background: var(--accent-color-light);
  border-color: var(--accent-color-light);
}

.btn-outline-primary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-outline-primary:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

/* Enhanced Button System */
.enhanced-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  letter-spacing: -0.01em;
}

.enhanced-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.enhanced-btn:hover::before {
  opacity: 1;
}

.enhanced-btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, #c41000 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(145, 12, 0, 0.3);
}

.enhanced-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(145, 12, 0, 0.4);
  color: white;
}

.enhanced-btn-outline {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(145, 12, 0, 0.1);
}

.enhanced-btn-outline:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(145, 12, 0, 0.3);
}

.enhanced-btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.enhanced-btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
  color: white;
}

.enhanced-btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  color: #212529;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.enhanced-btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
  color: #212529;
}

.enhanced-btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #e91e63 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.enhanced-btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
  color: white;
}

.enhanced-btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.enhanced-btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
  color: white;
}

.enhanced-btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.enhanced-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
  color: white;
}

.enhanced-btn-outline-success {
  background: transparent;
  color: #28a745;
  border-color: #28a745;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.enhanced-btn-outline-success:hover {
  background: #28a745;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.enhanced-btn-outline-warning {
  background: transparent;
  color: #ffc107;
  border-color: #ffc107;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
}

.enhanced-btn-outline-warning:hover {
  background: #ffc107;
  color: #212529;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.enhanced-btn-outline-danger {
  background: transparent;
  color: #dc3545;
  border-color: #dc3545;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.1);
}

.enhanced-btn-outline-danger:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.enhanced-btn-outline-info {
  background: transparent;
  color: #17a2b8;
  border-color: #17a2b8;
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.1);
}

.enhanced-btn-outline-info:hover {
  background: #17a2b8;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
}

.enhanced-btn-outline-secondary {
  background: transparent;
  color: #6c757d;
  border-color: #6c757d;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.1);
}

.enhanced-btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.enhanced-btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.6rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  border-radius: 20px;
}

.enhanced-btn-lg {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 20px;
}

.enhanced-btn-group {
  display: flex;
  gap: 0.25rem;
  border-radius: 25px;
  overflow: hidden;
  background: rgba(248, 250, 252, 0.5);
  padding: 0.1rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  backdrop-filter: blur(10px);
}

.enhanced-btn-group .enhanced-btn {
  border-radius: 20px;
  margin: auto;
}

.enhanced-btn-group .enhanced-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Forms */
.form-label {
  color: var(--heading-color);
  font-weight: 500;
  margin-bottom: 5px;
}

.form-control {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 12px;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus,
.btn:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(145, 12, 0, 0.25);
}

/*==============================================================================
  6. HEADER & NAVIGATION
==============================================================================*/

.header {
  transition: all 0.5s;
  z-index: 997;
  background-color: var(--background-color);
  position: relative;
  overflow: visible;
}

.header .topbar {
  background: var(--accent-color);
  padding: 10px 0;
}

.header .topbar .contact-info i {
  color: var(--contrast-color);
  padding-right: 4px;
}

.header .topbar .contact-info i a,
.header .topbar .contact-info i span {
  color: var(--contrast-color);
  font-size: 14px;
}

.header .topbar .contact-info i a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.header .topbar .social-links a {
  color: rgba(255, 255, 255, 0.8);
  line-height: 0;
  transition: 0.3s;
  margin-left: 15px;
}

.header .topbar .social-links a:hover {
  color: white;
}

.header .branding {
  background: white;
  padding: 15px 0;
  position: relative;
  overflow: visible;
  z-index: 998;
}

.header .branding .container {
  overflow: visible;
  position: relative;
}

.header .logo {
  font-size: 30px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--heading-font);
}

.header .logo a {
  color: var(--heading-color);
}

.header .logo img {
  max-height: 60px;
}

.header .dropdown {
  position: relative;
}

.header .dropdown-menu {
  min-width: 200px;
  margin-top: 10px;
  position: absolute;
  right: 0;
}

/* Navigation Menu */
.navmenu {
  padding: 0;
  position: relative;
  overflow: visible;
  z-index: 999;
}

.navmenu ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navmenu li {
  position: relative;
  overflow: visible;
}

.navmenu a,
.navmenu a:focus {
  display: inline-block;
  align-items: center;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 400;
  color: var(--nav-color);
  white-space: nowrap;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.navmenu a i,
.navmenu a:focus i {
  font-size: 12px;
  line-height: 0;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus,
.navmenu li:hover > a {
  color: var(--contrast-color);
}

.navmenu .dropdown ul {
  margin: 0;
  padding: 10px 0;
  background: var(--nav-dropdown-background-color);
  display: block;
  position: absolute;
  visibility: hidden;
  left: 100%;
  top: 0;
  margin-left: 10px;
  opacity: 0;
  transition: 0.3s;
  border-radius: 4px;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  white-space: nowrap;
}

/* Adjust dropdown position if it would go off-screen */
.navmenu li:last-child .dropdown ul,
.navmenu li:nth-last-child(2) .dropdown ul {
  left: auto;
  right: 0;
  margin-left: 0;
  margin-right: 0;
}

.navmenu .dropdown ul li {
  min-width: 200px;
}

.navmenu .dropdown ul a {
  padding: 10px 20px;
  font-size: 15px;
  text-transform: none;
  color: var(--nav-dropdown-color);
}

.navmenu .dropdown ul a:hover,
.navmenu .dropdown ul .active,
.navmenu .dropdown ul .active:hover,
.navmenu .dropdown ul li:hover > a {
  color: var(--nav-dropdown-hover-color);
}

.navmenu .dropdown:hover > ul {
  opacity: 1;
  visibility: visible;
}

/* Dropdown Menu */
.dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.dropdown-toggle {
  border: none;
  background: none;
}

.dropdown-toggle:hover {
  color: var(--accent-color);
}

/*==============================================================================
  7. HERO SECTION
==============================================================================*/

.hero {
  width: 100%;
  min-height: 75vh;
  position: relative;
  padding: 80px 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  overflow: hidden;
}

.hero.hero-image {
  background: url('../img/hero/hero-bg-4.jpg') center center;
  background-size: cover;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: all 0.8s ease-in-out;
}

.hero-overlay.overlay-1 {
  background: linear-gradient(135deg, rgba(145, 12, 0, 0.1) 0%, rgba(107, 9, 0, 0.1) 100%);
}

.hero-overlay.overlay-2 {
  background: linear-gradient(135deg, rgba(145, 12, 0, 0.1) 0%, rgba(107, 9, 0, 0.7) 100%);
}

.hero-overlay.overlay-3 {
  background: linear-gradient(135deg, rgba(145, 12, 0, 0.1) 0%, rgba(107, 9, 0, 0.7) 100%);
}

.hero-overlay.overlay-4 {
  background: linear-gradient(135deg, rgba(145, 12, 0, 0.1) 0%, rgba(107, 9, 0, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
  transition: all 0.3s ease;
}

.hero h1 {
  color: var(--contrast-color);
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  margin-bottom: 20px;
}

.hero h2 {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  font-size: 24px;
}

.hero .btn-hero {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  border: 2px solid var(--contrast-color);
}

.hero .why-join h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.hero .why-join .row {
  justify-content: center;
}

.hero .why-join-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  height: 150px;
  width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero .why-join-item.column-highlight {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero .why-join-item.column-highlight p {
  opacity: 1;
  font-weight: 500;
}

.hero .why-join-item i {
  font-size: 32px;
  color: var(--contrast-color);
  margin-bottom: 10px;
}

.hero .why-join-item p {
  color: var(--contrast-color);
  font-size: 12px;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.25px;
  opacity: 0.9;
  font-weight: 400;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition:
    opacity 0.8s ease-in-out,
    transform 20s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  animation: zoom 20s ease-in-out infinite;
}

.hero-slide:nth-child(1) {
  background-image: url('../img/hero/hero-bg-1.jpg');
  animation: panRight 20s ease-in-out infinite;
}

.hero-slide:nth-child(2) {
  background-image: url('../img/hero/hero-bg-2.jpg');
  animation: panLeft 20s ease-in-out infinite;
}

.hero-slide:nth-child(3) {
  background-image: url('../img/hero/hero-bg-3.jpg');
  animation: panUp 20s ease-in-out infinite;
}

.hero-slide:nth-child(4) {
  background-image: url('../img/hero/hero-bg-4.jpg');
  animation: zoom 20s ease-in-out infinite;
}

.hero-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 4;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--contrast-color);
  transform: scale(1.2);
}

.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Tooltip Display Area */
.tooltip-display-area {
  position: relative;
  min-height: 200px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tooltip-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  color: white;
  width: 90%;
}

.tooltip-content.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) translateY(0);
}

.tooltip-content h4 {
  font-size: 24px;
  margin-bottom: 15px;
  color: white;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.tooltip-content h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--contrast-color);
}

.tooltip-content p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

/*==============================================================================
  8. CARDS & COMPONENTS
==============================================================================*/

/* Legacy Card Support */
.card {
  border: 1px solid var(--border-color);
  border-radius: 20px;
  height: 100%;
  background: var(--surface-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
  color: var(--contrast-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.card-header.bg-primary {
  background: var(--accent-color) !important;
  color: var(--contrast-color) !important;
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
}

/* Enhanced Card System */
.enhanced-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 0;
  border: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: auto;
  display: flex;
  flex-direction: column;
}

.enhanced-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.enhanced-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #ff6b6b 50%, var(--accent-color) 100%);
  z-index: 2;
}

.enhanced-card-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, rgba(145, 12, 0, 0.03) 0%, rgba(145, 12, 0, 0.08) 100%);
  border-radius: 50%;
  transform: translate(40px, -40px);
  z-index: 1;
}

.enhanced-card-content {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.enhanced-card-header {
  position: relative;
  padding: 1.5rem 1.5rem 1rem;
  z-index: 3;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.enhanced-card-header h5,
.enhanced-card-header h6 {
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}

.enhanced-card-body {
  flex-grow: 1;
  padding: 0 1.5rem 1.5rem;
  position: relative;
  z-index: 3;
}

.enhanced-card-body.text-center {
  text-align: center;
}

.enhanced-card-footer {
  padding: 1rem 1.5rem 1.5rem;
  position: relative;
  z-index: 3;
  background: transparent;
  border: none;
  margin-top: auto;
}

.enhanced-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.enhanced-card-text {
  color: var(--default-color);
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.enhanced-card-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enhanced-card-icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ff6b6b 100%);
  border-radius: 16px;
  opacity: 0.1;
  transition: all 0.3s ease;
}

.enhanced-card:hover .enhanced-card-icon-bg {
  opacity: 0.15;
  transform: rotate(5deg) scale(1.05);
}

.enhanced-card-icon-wrapper i {
  font-size: 2rem;
  color: var(--accent-color);
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
}

.enhanced-card:hover .enhanced-card-icon-wrapper i {
  transform: scale(1.1);
}

/* Card Variants */
.enhanced-card-primary::before {
  background: linear-gradient(90deg, var(--accent-color) 0%, #c41000 100%);
}
.enhanced-card-success::before {
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}
.enhanced-card-warning::before {
  background: linear-gradient(90deg, #ffc107 0%, #fd7e14 100%);
}
.enhanced-card-danger::before {
  background: linear-gradient(90deg, #dc3545 0%, #e91e63 100%);
}
.enhanced-card-info::before {
  background: linear-gradient(90deg, #17a2b8 0%, #6f42c1 100%);
}

.enhanced-card-sm {
  border-radius: 16px;
}
.enhanced-card-sm .enhanced-card-content {
  padding: 1.25rem 1rem;
}
.enhanced-card-lg {
  border-radius: 24px;
}
.enhanced-card-lg .enhanced-card-content {
  padding: 2.5rem 2rem;
}

.enhanced-card-dashboard {
  min-height: 120px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}
.enhanced-card-dashboard .enhanced-card-content {
  padding: 1.5rem;
}
.enhanced-card-dashboard .enhanced-card-icon-wrapper {
  width: 56px;
  height: 56px;
  margin-bottom: 0.75rem;
}
.enhanced-card-dashboard .enhanced-card-icon-wrapper i {
  font-size: 1.5rem;
}

.enhanced-card-stats {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  min-height: 100px;
}
.enhanced-card-stats .enhanced-card-content {
  padding: 1.25rem;
  display: flex;
  align-items: center;
}
.enhanced-card-stats .stats-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ff6b6b 100%);
  color: white;
}
.enhanced-card-stats .stats-content {
  flex: 1;
}
.enhanced-card-stats .stats-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--default-color);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.enhanced-card-stats .stats-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0;
}

.enhanced-card-list {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}
.enhanced-card-list .enhanced-card-content {
  padding: 1.5rem;
}
.enhanced-card-list .list-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(145, 12, 0, 0.08);
  transition: all 0.3s ease;
}
.enhanced-card-list .list-item:last-child {
  border-bottom: none;
}
.enhanced-card-list .list-item:hover {
  background: rgba(145, 12, 0, 0.02);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  border-radius: 8px;
}
.enhanced-card-list .list-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  background: linear-gradient(135deg, rgba(145, 12, 0, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
  color: var(--accent-color);
}
.enhanced-card-list .list-item-content {
  flex: 1;
}
.enhanced-card-list .list-item-title {
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.enhanced-card-list .list-item-text {
  color: var(--default-color);
  font-size: 0.875rem;
  margin: 0;
}

.enhanced-card-form {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
}
.enhanced-card-form .enhanced-card-content {
  padding: 2rem;
}

.enhanced-card-action {
  cursor: pointer;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}
.enhanced-card-action:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Other Components */
.profile-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.profile-card {
  text-align: center;
}

.profile-card h5 {
  margin-bottom: 5px;
  font-weight: 600;
}

.profile-card .text-muted {
  font-size: 0.9rem;
}

/*==============================================================================
  9. ABOUT SECTION
==============================================================================*/

.about .enhanced-card {
  min-height: 250px;
}

.about .enhanced-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about .card-background-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, rgba(145, 12, 0, 0.03) 0%, rgba(145, 12, 0, 0.08) 100%);
  border-radius: 50%;
  transform: translate(40px, -40px);
  z-index: 1;
}

.about .enhanced-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about .enhanced-icon-wrapper .icon-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ff6b6b 100%);
  border-radius: 20px;
  opacity: 0.1;
  transition: all 0.3s ease;
}

.about .enhanced-card:hover .icon-background {
  opacity: 0.15;
  transform: rotate(5deg) scale(1.05);
}

.about .enhanced-icon-wrapper i {
  font-size: 2rem;
  color: var(--accent-color);
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
}

.about .enhanced-card:hover .enhanced-icon-wrapper i {
  transform: scale(1.1);
}

.about .enhanced-card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.about .enhanced-card-text {
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-size: 0.85rem;
}

.about .enhanced-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.3rem;
  margin-top: 0.75rem;
}

.about .value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
  border-radius: 12px;
  border: 1px solid rgba(145, 12, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.about .value-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ff6b6b 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.about .value-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(145, 12, 0, 0.15);
  border-color: var(--accent-color);
}

.about .value-item:hover::before {
  opacity: 0.05;
}

.about .value-item i {
  font-size: 1.25rem;
  color: var(--accent-color);
  margin-bottom: 0.4rem;
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
}

.about .value-item:hover i {
  transform: scale(1.1);
  color: var(--accent-color);
}

.about .value-item span {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--heading-color);
  z-index: 2;
  position: relative;
  transition: color 0.3s ease;
}

.about .connections-header {
  position: relative;
}

.about .connections-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.about .title-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #ff6b6b 100%);
  border-radius: 2px;
  margin-bottom: 1rem;
}

.about .connections-lead {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.about .enhanced-feature-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0.6rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 250, 252, 0.8) 100%);
  border-radius: 20px;
  border: 1px solid rgba(145, 12, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.about .enhanced-feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color) 0%, #ff6b6b 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.about .enhanced-feature-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(145, 12, 0, 0.12);
  border-color: rgba(145, 12, 0, 0.15);
}

.about .enhanced-feature-item:hover::before {
  transform: scaleY(1);
}

.about .enhanced-feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(145, 12, 0, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
}

.about .enhanced-feature-item:hover .enhanced-feature-icon {
  background: linear-gradient(135deg, rgba(145, 12, 0, 0.15) 0%, rgba(255, 107, 107, 0.15) 100%);
  transform: scale(1.05);
}

.about .enhanced-feature-icon i {
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.about .enhanced-feature-item:hover .enhanced-feature-icon i {
  transform: scale(1.1);
}

.about .enhanced-feature-content h5 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.about .enhanced-feature-content p {
  line-height: 1.2;
  margin-bottom: 0;
  font-size: 0.85rem;
}

/* Legacy About Classes */
.about .mission-card,
.about .values-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.about .mission-card:hover,
.about .values-card:hover {
  transform: translateY(-10px);
}

.about .mission-icon i,
.about .values-icon i {
  font-size: 48px;
  color: var(--accent-color);
}

.about .card-title {
  color: var(--accent-color);
  font-weight: 700;
}

.about .values-list .badge {
  font-size: 14px;
  padding: 8px 16px;
  margin: 4px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.about .values-list .badge:hover {
  background: var(--accent-color) !important;
  color: var(--contrast-color) !important;
  border-color: var(--accent-color);
}

.about .connections-content h3 {
  color: var(--accent-color);
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.about .connections-content h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
}

.about .feature-item {
  transition: all 0.3s ease;
  padding: 20px 0;
}

.about .feature-item:hover {
  transform: translateX(10px);
}

.about .feature-icon {
  width: 60px;
  height: 60px;
  background: var(--light-bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about .feature-icon i {
  font-size: 24px;
  color: var(--accent-color);
}

.about .feature-content h5 {
  font-weight: 600;
}

.about .feature-content p {
  line-height: 1.6;
}

/*==============================================================================
  10. SERVICES SECTION
==============================================================================*/

.services .enhanced-service-card {
  min-height: 150px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services .enhanced-service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.services .enhanced-service-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, rgba(145, 12, 0, 0.03) 0%, rgba(145, 12, 0, 0.08) 100%);
  border-radius: 50%;
  transform: translate(40px, -40px);
  z-index: 1;
}

.services .enhanced-service-content {
  text-align: center;
}

.services .enhanced-service-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services .enhanced-service-icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ff6b6b 100%);
  border-radius: 16px;
  opacity: 0.1;
  transition: all 0.3s ease;
}

.services .enhanced-service-card:hover .enhanced-service-icon-bg {
  opacity: 0.15;
  transform: rotate(5deg) scale(1.05);
}

.services .enhanced-service-icon-wrapper i {
  font-size: 3rem;
  color: var(--accent-color);
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
}

.services .enhanced-service-card:hover .enhanced-service-icon-wrapper i {
  transform: scale(1.1);
}

.services .enhanced-service-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}

.services .enhanced-service-text {
  color: var(--default-color);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Legacy Service Classes */
.service-item {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  background: var(--surface-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-item .icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
}

.service-item .icon-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.service-item .icon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(145, 12, 0, 0.8);
  border-radius: 50%;
}

.service-item .icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: white;
}

.service-item .service-content {
  position: relative;
  z-index: 2;
}

.service-item h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-item p {
  line-height: 1.6;
  margin-bottom: 0;
}

/*==============================================================================
  11. EVENTS & ACTIVITIES
==============================================================================*/

/* Enhanced Event Card */
.enhanced-event-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  height: 100%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.enhanced-event-card:hover {
  transform: scale(1.01) translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.enhanced-event-card:hover .enhanced-card-img-top,
.enhanced-event-card:hover .enhanced-event-img {
  transform: scale(1.05);
}

.enhanced-event-card-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, rgba(145, 12, 0, 0.03) 0%, rgba(145, 12, 0, 0.08) 100%);
  border-radius: 50%;
  transform: translate(20px, -20px);
  z-index: 1;
}

.enhanced-event-img-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.enhanced-event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.enhanced-event-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.enhanced-event-card:hover .enhanced-event-overlay {
  opacity: 1;
}

.enhanced-event-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ff6b6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.enhanced-placeholder-content {
  text-align: center;
  color: white;
}

.enhanced-placeholder-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.enhanced-placeholder-icon i {
  font-size: 1.5rem;
  color: white;
}

.enhanced-event-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 3;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.enhanced-event-badge.badge-event {
  background: rgba(40, 167, 69, 0.9);
  color: white;
}

.enhanced-event-badge.badge-activity {
  background: rgba(255, 193, 7, 0.9);
  color: #212529;
}

.enhanced-event-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.enhanced-event-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.enhanced-event-meta {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.enhanced-event-info,
.enhanced-event-meta .enhanced-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--default-color);
  transition: all 0.3s ease;
}

.enhanced-event-info i {
  color: var(--accent-color);
  width: 20px;
  flex-shrink: 0;
}

.enhanced-event-meta .enhanced-info-item:hover {
  color: var(--enhanced-primary);
}

.enhanced-event-badges {
  margin: 0.5rem 0;
}

.enhanced-category-badge,
.enhanced-status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.5rem;
}

.enhanced-category-badge {
  background: linear-gradient(135deg, rgba(145, 12, 0, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
  color: var(--accent-color);
  border: 1px solid rgba(145, 12, 0, 0.2);
}

.enhanced-status-badge.status-ongoing {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
  color: #b8860b;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.enhanced-status-badge.status-upcoming {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.2);
}

.enhanced-event-description {
  color: var(--default-color);
  line-height: 1.5;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.enhanced-event-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(145, 12, 0, 0.08);
}

.enhanced-event-fee {
  font-weight: 600;
  font-size: 1.1rem;
}

.enhanced-event-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, rgba(145, 12, 0, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
  color: var(--accent-color);
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(145, 12, 0, 0.15);
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.enhanced-event-btn:hover {
  background: linear-gradient(135deg, var(--accent-color) 0%, #c41000 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(145, 12, 0, 0.3);
}

/* Enhanced Activity Card */
.enhanced-activity-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  height: 100%;
}

.enhanced-activity-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.enhanced-activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #ff6b6b 50%, var(--accent-color) 100%);
  z-index: 2;
}

.enhanced-activity-card .enhanced-card-background {
  width: 100px;
  height: 100px;
  transform: translate(30px, -30px);
  opacity: 0.7;
}

/* Enhanced Alumni Card */
.enhanced-alumni-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-image-slice: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.enhanced-alumni-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.enhanced-alumni-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.enhanced-alumni-card .enhanced-card-background {
  opacity: 0.7;
}

.enhanced-alumni-card .enhanced-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.enhanced-profile-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.enhanced-profile-image-container {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.enhanced-profile-image-container:hover {
  border-color: #667eea;
  transform: scale(1.05);
}

.enhanced-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.enhanced-profile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.enhanced-profile-image-container:hover .enhanced-profile-overlay {
  opacity: 1;
}

.enhanced-name-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.enhanced-alumni-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  text-align: center;
  line-height: 1.3;
}

.enhanced-hucaa-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.enhanced-hucaa-badge.badge-official {
  background: linear-gradient(135deg, rgba(220, 38, 127, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
  color: #dc2626;
  border-color: rgba(220, 38, 127, 0.2);
}

.enhanced-hucaa-badge.badge-member {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  color: #059669;
  border-color: rgba(34, 197, 94, 0.2);
}

.enhanced-alumni-profession {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  text-align: center;
}

.enhanced-hucaa-duration {
  color: #667eea;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
  padding: 0.5rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.enhanced-alumni-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.enhanced-info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.85rem;
  padding: 0.5rem;
  background: rgba(248, 250, 252, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
}

.enhanced-info-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
}

.enhanced-info-item i {
  color: #667eea;
  width: 16px;
  text-align: center;
}

.enhanced-alumni-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: auto;
}

/* Event Page Specifics */
.enhanced-stats-card {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.enhanced-stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.enhanced-stats-icon {
  color: var(--enhanced-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--enhanced-primary), var(--enhanced-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.enhanced-stats-number {
  font-weight: 700;
  color: var(--enhanced-text);
  font-size: 1.5rem;
}

.enhanced-price-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.enhanced-price-badge-free {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}
.enhanced-price-badge-paid {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
}

.enhanced-event-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.enhanced-category-card {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.enhanced-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, var(--enhanced-primary), var(--enhanced-secondary));
}

.enhanced-category-card:hover .enhanced-category-icon,
.enhanced-category-card:hover .enhanced-category-title,
.enhanced-category-card:hover .enhanced-category-desc {
  color: white;
}

.enhanced-category-icon {
  color: var(--enhanced-primary);
  font-size: 2rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}
.enhanced-category-title {
  color: var(--enhanced-text);
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
}
.enhanced-category-desc {
  color: var(--enhanced-text-muted);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.enhanced-past-event-card {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.enhanced-past-event-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}
.enhanced-past-event-title {
  color: var(--enhanced-text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.enhanced-past-event-meta {
  color: var(--enhanced-text-muted);
  font-size: 0.875rem;
}

.enhanced-empty-state {
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 3rem 1rem;
  text-align: center;
}

.enhanced-empty-icon {
  color: var(--enhanced-text-muted);
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.enhanced-empty-title {
  color: var(--enhanced-text-muted);
  font-weight: 500;
  margin-bottom: 0;
}

.enhanced-cta-card {
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, var(--enhanced-primary), var(--enhanced-secondary));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: white;
  padding: 3rem 2rem;
}

.enhanced-cta-title {
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}
.enhanced-cta-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
}
.enhanced-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.enhanced-feature-list li {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}
.enhanced-feature-list i {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}
.enhanced-cta-image {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.enhanced-cta-image:hover {
  transform: scale(1.05);
}

.enhanced-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* CTA Section Styles */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.enhanced-cta-card {
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, var(--enhanced-primary), var(--enhanced-secondary));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.1),
    0 5px 15px rgba(0, 0, 0, 0.07);
  color: white;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.enhanced-cta-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1);
}

.enhanced-cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.enhanced-cta-content {
  position: relative;
  z-index: 2;
}

.enhanced-cta-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
}

.enhanced-cta-icon-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.enhanced-cta-icon-wrapper i {
  font-size: 2rem;
  color: white;
  position: relative;
  z-index: 1;
}

.enhanced-cta-title {
  color: white;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.enhanced-cta-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Legacy Event Classes */
.event-activity-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-img-wrapper img:hover {
  transform: scale(1.05);
}

.card-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.card-img-placeholder .placeholder-logo {
  max-width: 80px;
  opacity: 0.8;
}

.event-activity-card .card-header {
  flex-shrink: 0;
}

.event-activity-card .card-header h5 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.event-activity-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.event-activity-card .card-footer {
  flex-shrink: 0;
  background: white;
  border: none;
  padding: 0.75rem 1rem;
}

.placeholder-content {
  text-align: center;
  color: white;
}

.placeholder-content i {
  font-size: 48px;
  opacity: 0.7;
}

.placeholder-content .event-type-badge {
  position: static;
  margin-top: 10px;
}

.event-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.badge-event {
  background: rgba(40, 167, 69, 0.9);
  color: white;
}
.badge-activity {
  background: rgba(255, 193, 7, 0.9);
  color: #212529;
}
.card-title-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-meta {
  font-size: 14px;
  flex-shrink: 0;
}
.event-meta i {
  color: var(--accent-color);
  width: 16px;
}
.description-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  flex: 1;
}

/* Swiper Carousel */
.swiper-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

#events-activities-swiper {
  width: 100%;
  padding-bottom: 50px;
}

#events-activities-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

#events-activities-swiper .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
}

#events-activities-swiper .swiper-slide .row {
  width: 100%;
  margin: 0;
  flex: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.9);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: white;
  color: var(--accent-color-dark);
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: 600;
}

.swiper-pagination {
  bottom: 10px !important;
}

.swiper-pagination-bullet {
  background: var(--accent-color);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

/*==============================================================================
  12. NOTIFICATIONS & TOASTS
==============================================================================*/

.notification-dropdown-menu {
  min-width: 350px;
  max-width: 400px;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0;
}

.notification-item {
  border-bottom: 1px solid #f1f3f4;
  padding: 0;
  margin: 0;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-link {
  display: flex;
  align-items: flex-start;
  padding: 16px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
}

.notification-link:hover {
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
}

.notification-link:focus {
  background: #e3f2fd;
  outline: none;
}

.notification-link[data-notification-id*='announcement'] {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.05), transparent);
}

.notification-link[data-notification-id*='announcement']:hover {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.1), #f8f9fa);
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dc3545;
  flex-shrink: 0;
  margin-right: 12px;
}

.notification-icon i {
  font-size: 16px;
  color: white;
}

.notification-link .ms-2 i.fa-thumbtack {
  color: #ffc107;
}

.notification-content {
  flex: 1;
  min-width: 0; /* Prevents flex item from overflowing */
}

.notification-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 4px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em; /* 2 lines * 1.4 line-height */
}

.notification-time {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-pin {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
}

.notification-pin i {
  color: #ffc107 !important;
}

.no-notifications {
  padding: 20px;
  text-align: center;
  color: var(--default-color);
  font-style: italic;
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-badge.show {
  display: flex;
}

.toast-container .toast {
  border: 1px solid var(--border-color);
}

.toast .toast-body {
  padding: 12px;
}

/*==============================================================================
  13. FOOTER
==============================================================================*/

.footer {
  background: #f8f9fa;
  padding: 60px 0 30px 0;
  font-size: 14px;
  border-top: 1px solid var(--border-color);
}

.footer .footer-about .logo {
  line-height: 0;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.footer .footer-about p {
  color: var(--default-color);
  line-height: 1.5;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(145, 12, 0, 0.5);
  font-size: 16px;
  color: rgba(145, 12, 0, 0.5);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  color: var(--accent-color);
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: var(--default-color);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .copyright {
  text-align: center;
  color: var(--default-color);
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
}

/*==============================================================================
  14. UTILITIES & HELPERS
==============================================================================*/

.bg-primary,
.badge.bg-primary {
  background-color: var(--accent-color) !important;
}

.border-primary {
  border-color: var(--accent-color) !important;
}

.text-primary,
.text-primary i,
.nav-link.active i {
  color: var(--accent-color) !important;
}

.card-body i.fa-3x,
.card-body .fas.fa-3x,
.card-body .far.fa-3x {
  color: var(--accent-color);
}

.badge.bg-secondary {
  background-color: #6c757d !important;
}
.badge.bg-success {
  background-color: #198754 !important;
}
.badge.bg-danger {
  background-color: #dc3545 !important;
}
.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}
.badge.bg-info {
  background-color: #0dcaf0 !important;
  color: #000 !important;
}

.list-group-item.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: var(--accent-color);
  background-color: var(--surface-color);
  border-color: var(--border-color) var(--border-color) var(--surface-color);
  border-bottom: 2px solid var(--accent-color);
}

.alert-primary {
  color: #6b0900;
  background-color: rgba(145, 12, 0, 0.1);
  border-color: rgba(145, 12, 0, 0.2);
}

/*==============================================================================
  15. ANIMATIONS & TRANSITIONS
==============================================================================*/

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

@keyframes panRight {
  0%,
  100% {
    transform: scale(1.1) translateX(0);
  }
  50% {
    transform: scale(1.1) translateX(-20px);
  }
}

@keyframes panLeft {
  0%,
  100% {
    transform: scale(1.1) translateX(0);
  }
  50% {
    transform: scale(1.1) translateX(20px);
  }
}

@keyframes panUp {
  0%,
  100% {
    transform: scale(1.1) translateY(0);
  }
  50% {
    transform: scale(1.1) translateY(-20px);
  }
}

[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: auto;
}

/*==============================================================================
  16. MEDIA QUERIES
==============================================================================*/

/* Large Screens */
@media (max-width: 1200px) {
  .section {
    padding: 60px 0;
  }
}

/* Medium Screens */
@media (max-width: 992px) {
  .section-title h2 {
    font-size: 28px;
  }

  .tooltip-display-area {
    display: none;
  }

  .tooltip-content {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .tooltip-content h4 {
    font-size: 20px;
  }
}

/* Small Screens */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .container,
  .enhanced-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero {
    padding: 120px 0 60px 0;
  }
  .hero h1 {
    font-size: 32px;
    line-height: 40px;
  }
  .hero h2 {
    font-size: 18px;
  }
  .hero-content {
    text-align: center;
  }

  .notification-dropdown-menu {
    min-width: 280px;
  }
  .notification-text {
    font-size: 13px;
  }

  .event-activity-card {
    margin-bottom: 20px;
  }
  .card-img-wrapper,
  .card-img-placeholder {
    height: 180px;
  }
  .placeholder-content i {
    font-size: 36px;
  }
  .event-type-badge {
    font-size: 11px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
  }
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px;
  }

  .about .mission-card,
  .about .values-card {
    margin-bottom: 30px;
  }
  .about .mission-icon i,
  .about .values-icon i {
    font-size: 36px;
  }
  .about .feature-item {
    margin-bottom: 20px;
  }
  .about .feature-item:hover {
    transform: none;
  }
  .about .connections-content {
    text-align: center;
    margin-top: 30px;
  }

  .about .enhanced-card {
    min-height: 180px;
    margin-bottom: 1.5rem;
  }
  .about .enhanced-card-content {
    padding: 1.5rem 1.25rem 1.25rem;
  }
  .about .enhanced-icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
  }
  .about .enhanced-icon-wrapper i {
    font-size: 2rem;
  }
  .about .enhanced-card-title {
    font-size: 1.3rem;
  }
  .about .enhanced-values-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
  }
  .about .value-item {
    padding: 0.75rem 0.5rem;
  }
  .about .value-item i {
    font-size: 1.25rem;
  }
  .about .value-item span {
    font-size: 0.85rem;
  }
  .about .connections-title {
    font-size: 1.75rem;
    text-align: center;
  }
  .about .title-underline {
    margin: 0 auto 1rem;
  }
  .about .connections-lead {
    font-size: 1rem;
    text-align: center;
  }
  .about .enhanced-feature-item {
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
  }
  .about .enhanced-feature-item:hover {
    transform: translateY(-2px);
  }
  .about .enhanced-feature-icon {
    width: 56px;
    height: 56px;
    margin-right: 1rem;
  }
  .about .enhanced-feature-icon i {
    font-size: 1.25rem;
  }
  .about .enhanced-feature-content h5 {
    font-size: 1.1rem;
  }
  .about .enhanced-feature-content p {
    font-size: 0.9rem;
  }

  .enhanced-alumni-card {
    min-height: 250px;
    padding: 1.5rem;
  }
  .enhanced-profile-image-container {
    width: 70px;
    height: 70px;
  }
  .enhanced-alumni-name {
    font-size: 1.1rem;
  }
  .enhanced-alumni-actions {
    flex-direction: column;
  }
  .enhanced-alumni-actions .enhanced-btn {
    width: 100%;
    max-width: 280px;
  }

  .enhanced-cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  .enhanced-cta-buttons .enhanced-btn {
    min-width: 200px;
  }
  .enhanced-cta-card {
    padding: 2rem 1.5rem;
  }
  .enhanced-cta-title {
    font-size: 1.25rem;
  }
  .enhanced-category-card .enhanced-card-body,
  .enhanced-stats-card .enhanced-card-body {
    padding: 1rem;
  }

  /* Enhanced Sections Mobile Responsiveness */
  .enhanced-section {
    padding: 2rem 0;
  }
  .enhanced-section-title {
    font-size: 2rem;
  }
  .services .enhanced-service-card {
    min-height: 220px;
    margin-bottom: 1.5rem;
  }
  .services .enhanced-service-content {
    padding: 1.5rem 1.25rem 1.25rem;
  }
  .services .enhanced-service-icon-wrapper {
    width: 56px;
    height: 56px;
    margin-bottom: 0.75rem;
  }
  .services .enhanced-service-icon-wrapper i {
    font-size: 1.75rem;
  }
  .services .enhanced-service-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  .services .enhanced-service-text {
    font-size: 0.8rem;
  }
  .enhanced-event-card {
    margin-bottom: 1.5rem;
  }
  .enhanced-event-img-wrapper,
  .enhanced-event-img-placeholder {
    height: 160px;
  }
  .enhanced-event-content {
    padding: 1.25rem;
  }

  .enhanced-event-item {
    flex: 0 0 280px;
    min-height: 400px;
  }
  .enhanced-events-scroll {
    gap: 1rem;
    padding: 0.25rem;
  }
  .enhanced-nav-btn {
    width: 40px;
    height: 40px;
  }
  .enhanced-nav-prev {
    margin-left: -20px;
  }
  .enhanced-nav-next {
    margin-right: -20px;
  }

  .enhanced-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Extra Small Screens */
@media (max-width: 575px) {
  .card {
    margin-bottom: 15px;
  }
  .card-body {
    padding: 15px;
  }
  .hero {
    padding: 100px 0 50px 0;
  }
  .hero h1 {
    font-size: 28px;
    line-height: 36px;
  }
  .hero h2 {
    font-size: 16px;
  }
  .hero .btn-hero {
    padding: 10px 20px;
    font-size: 13px;
  }

  .about .values-list .badge {
    font-size: 12px;
    padding: 6px 12px;
  }
  .about .feature-icon {
    width: 50px;
    height: 50px;
  }
  .about .feature-icon i {
    font-size: 20px;
  }

  .about .enhanced-card {
    min-height: 160px;
    border-radius: 16px;
  }
  .about .enhanced-card-content {
    padding: 1.25rem 1rem 1rem;
  }
  .about .enhanced-icon-wrapper {
    width: 56px;
    height: 56px;
  }
  .about .enhanced-icon-wrapper i {
    font-size: 1.75rem;
  }
  .about .enhanced-card-title {
    font-size: 1.2rem;
  }
  .about .enhanced-card-text {
    font-size: 0.9rem;
  }
  .about .enhanced-values-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
  }
  .about .value-item {
    padding: 0.5rem 0.25rem;
    border-radius: 12px;
  }
  .about .value-item i {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }
  .about .value-item span {
    font-size: 0.8rem;
  }
  .about .connections-title {
    font-size: 1.5rem;
  }
  .about .connections-lead {
    font-size: 0.95rem;
  }
  .about .enhanced-feature-item {
    padding: 1rem 0.75rem;
    border-radius: 12px;
    flex-direction: column;
    text-align: center;
  }
  .about .enhanced-feature-icon {
    margin-right: 0;
    margin-bottom: 0.75rem;
    width: 48px;
    height: 48px;
  }
  .about .enhanced-feature-icon i {
    font-size: 1.1rem;
  }
  .about .enhanced-feature-content h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  .about .enhanced-feature-content p {
    font-size: 0.85rem;
  }

  .services .enhanced-service-card {
    min-height: 200px;
    border-radius: 16px;
  }
  .services .enhanced-service-content {
    padding: 1.25rem 1rem 1rem;
  }
  .services .enhanced-service-icon-wrapper {
    width: 48px;
    height: 48px;
  }
  .services .enhanced-service-icon-wrapper i {
    font-size: 1.5rem;
  }
  .services .enhanced-service-title {
    font-size: 0.9rem;
  }
  .services .enhanced-service-text {
    font-size: 0.75rem;
  }

  .enhanced-event-img-wrapper,
  .enhanced-event-img-placeholder {
    height: 140px;
  }
  .enhanced-event-content {
    padding: 1rem;
  }
  .enhanced-event-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  .enhanced-event-meta {
    margin-bottom: 0.5rem;
  }
  .enhanced-event-info {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }
  .enhanced-event-info i {
    width: 16px;
  }
  .enhanced-event-description {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }
  .enhanced-event-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
  .enhanced-category-badge,
  .enhanced-status-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
  }

  .enhanced-cta-container {
    border-radius: 16px;
    margin: 0 0.5rem;
  }
  .enhanced-cta-content {
    padding: 1.75rem 1rem 1.25rem;
  }
  .enhanced-cta-icon-wrapper {
    width: 56px;
    height: 56px;
  }
  .enhanced-cta-icon-wrapper i {
    font-size: 1.75rem;
  }
  .enhanced-cta-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .enhanced-cta-text {
    font-size: 0.95rem;
  }
  .enhanced-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }

  .enhanced-section-title {
    font-size: 1.75rem;
  }
  .enhanced-event-item {
    flex: 0 0 250px;
    min-height: 380px;
  }
  .enhanced-events-scroll {
    gap: 0.75rem;
  }
  .enhanced-nav-btn {
    display: none;
  }
}

/* Modal Z-Index Fixes - Comprehensive */
.modal {
  z-index: 1055 !important;
  position: fixed !important;
}

.modal-backdrop {
  z-index: 1050 !important;
}

.modal-dialog {
  z-index: 1056 !important;
  position: relative !important;
}

/* Bootstrap 5 modal fixes */
.modal.fade .modal-dialog {
  z-index: 1056 !important;
}

.modal.show .modal-dialog {
  z-index: 1056 !important;
}

/* Ensure all modals are above everything */
.modal.show {
  z-index: 1055 !important;
}

.modal.show .modal-dialog {
  z-index: 1056 !important;
}

/* Specific modal fixes */
#threadModal {
  z-index: 1055 !important;
}

#threadModal .modal-dialog {
  z-index: 1056 !important;
}

#forwardModal {
  z-index: 1055 !important;
}

#forwardModal .modal-dialog {
  z-index: 1056 !important;
}

/* Any other modals */
[class*='modal'] {
  z-index: 1055 !important;
}

[class*='modal'] .modal-dialog {
  z-index: 1056 !important;
}

/* Profile modals */
#sendMessageModal,
#editProfileModal,
#addEducationModal,
#addWorkModal,
#reportContentModal {
  z-index: 1055 !important;
}

#sendMessageModal .modal-dialog,
#editProfileModal .modal-dialog,
#addEducationModal .modal-dialog,
#addWorkModal .modal-dialog,
#reportContentModal .modal-dialog {
  z-index: 1056 !important;
}

/* Ensure backdrop is behind modal but above other content */
.modal-backdrop.show {
  z-index: 1050 !important;
}

/* Fix for any conflicting z-index values */
.loader-container {
  z-index: 9999 !important;
}

/* Ensure dropdowns and other overlays don't interfere */
.dropdown-menu {
  z-index: 1000 !important;
}

.popover {
  z-index: 1060 !important;
}

.tooltip {
  z-index: 1070 !important;
}

/* Fix for any custom overlays */
.overlay,
.backdrop {
  z-index: 1040 !important;
}

/* Admin link styling */
.navmenu .module-nav-link[href*='/admin/'] {
  color: #dc3545 !important;
}

.navmenu .module-nav-link[href*='/admin/'].active {
  color: #dc3545 !important;
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
}

.navmenu .module-nav-link[href*='/admin/'].active::after {
  background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
  color: var(--nav-color);
  font-size: 28px;
  cursor: pointer;
  line-height: 0;
  transition: 0.5s;
  position: relative;
  display: inline-block;
  z-index: 9998;
  margin-left: 15px;
}

.mobile-nav-toggle:hover {
  color: var(--accent-color);
}

.mobile-nav-toggle.bi-x {
  color: var(--accent-color);
}

/* Mobile Menu Styles */
@media (max-width: 1199.98px) {
  /* Prevent body scroll when menu is open */
  body.mobile-nav-active {
    overflow: hidden;
  }

  /* Mobile menu backdrop */
  body.mobile-nav-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9996;
    animation: fadeIn 0.3s ease;
    pointer-events: auto;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  /* Hide desktop menu on mobile by default */
  .navmenu ul {
    display: none;
    position: fixed;
    top: 100px;
    left: 15px;
    right: 15px;
    bottom: auto;
    max-height: calc(100vh - 120px);
    background: white;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    animation: slideDown 0.3s ease;
    pointer-events: auto;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Show mobile menu when active */
  .navmenu.navbar-mobile ul,
  body.mobile-nav-active .navmenu ul {
    display: flex;
  }

  /* Mobile menu list items */
  .navmenu ul li {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  /* Mobile menu links */
  .navmenu ul li a {
    padding: 12px 20px;
    font-size: 14px;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: block;
    width: 100%;
    position: relative;
    z-index: 10000;
    pointer-events: auto;
  }

  .navmenu ul li:last-child a {
    border-bottom: none;
  }

  .navmenu ul li a:hover,
  .navmenu ul li a.active {
    background: var(--accent-color-light);
    color: var(--accent-color);
    padding-left: 25px;
  }

  /* Mobile dropdown menus */
  .navmenu .dropdown ul {
    position: static;
    visibility: visible;
    opacity: 1;
    display: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.02);
    margin-left: 20px;
    border-radius: 0;
    padding: 0;
    z-index: 10001;
    pointer-events: auto;
  }

  .navmenu .dropdown.dropdown-active ul,
  .navmenu .dropdown:hover ul {
    display: block;
  }

  .navmenu .dropdown ul li {
    width: 100%;
    position: relative;
    z-index: 10001;
  }

  .navmenu .dropdown ul li a {
    padding: 10px 20px 10px 40px;
    font-size: 13px;
    position: relative;
    z-index: 10002;
    pointer-events: auto;
  }

  /* Ensure navmenu container is above backdrop */
  .navmenu.navbar-mobile,
  body.mobile-nav-active .navmenu {
    position: relative;
    z-index: 9999;
    pointer-events: auto;
  }

  /* Ensure all menu elements are clickable */
  .navmenu.navbar-mobile *,
  body.mobile-nav-active .navmenu * {
    pointer-events: auto;
  }

  /* Make sure menu list items are interactive */
  .navmenu ul li {
    pointer-events: auto;
    position: relative;
    z-index: 10000;
  }
}

/* Ensure desktop menu shows on larger screens */
@media (min-width: 1200px) {
  .navmenu ul {
    display: flex !important;
    position: static !important;
  }

  .mobile-nav-toggle {
    display: none !important;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  .navmenu .module-nav-link.active::after {
    display: none;
  }

  .navmenu .module-nav-link.active {
    background: rgba(102, 126, 234, 0.15);
    border-left: 3px solid #667eea;
  }

  .navmenu .module-nav-link[href*='/admin/'].active {
    background: rgba(220, 53, 69, 0.15);
    border-left: 3px solid #dc3545;
  }
}

/* Enhanced dropdown styling */
.dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #667eea;
}

.dropdown-menu .dropdown-item.active {
  background-color: #667eea;
  color: white;
}

/* Notification badge styling */
.notification-badge {
  animation: pulse 2s infinite;
}

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