:root {
  --primary: #743796;
  --secondary: #437dbd;
  --accent1: #a9deee;
  --accent2: #5ab3df;
  --background: #fdfbff;
  --text: #1a1a1a;
  --text-light: #64748b;
  --white: #ffffff;
  --gray-light: #f8fafc;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 60px rgba(116, 55, 150, 0.12);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --glass: rgba(255, 255, 255, 0.7);
  --radius-lg: 40px;
  --radius-md: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeIn 0.8s ease forwards;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(116, 55, 150, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  transition: 0.6s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(116, 55, 150, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(116, 55, 150, 0.05);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Layout & Sections */
.section {
  padding: 80px 0;
}

.page-header {
  padding: 160px 0 80px;
  background: radial-gradient(circle at top right, var(--accent1), transparent),
    radial-gradient(circle at bottom left, #f6e8ff, transparent);
  text-align: center;
}

/* Navigation Redesign */
.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1240px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar.scrolled {
  height: 70px;
  top: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px rgba(116, 55, 150, 0.1);
  border-radius: 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 30px !important;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 35px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.8;
  transition: all 0.3s ease;
  padding: 8px 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-menu-btn {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gray-light);
  border: none;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(116, 55, 150, 0.1);
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }
}

@media (max-width: 991px) {
  .nav-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 30px;
    gap: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
    gap: 15px;
    flex-direction: column;
  }

  .nav-actions .btn {
    width: 100%;
  }

  /* Adjust profile dropdown for mobile menu context */
  .user-profile-dropdown {
    width: 100%;
  }

  .profile-trigger-btn {
    width: 100%;
    justify-content: space-between;
    padding: 10px 15px;
  }

  .dropdown-content {
    position: relative;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: 1px solid #f0f0f0;
    margin-top: 10px;
  }
}

/* User Profile Dropdown */
.user-profile-dropdown {
  position: relative;
}

.profile-trigger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 6px 15px 6px 6px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
}

.profile-trigger-btn:hover {
  border-color: var(--primary);
  background: var(--gray-light);
}

.avatar-sm {
  width: 34px;
  height: 34px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 220px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 10px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1001;
}

.dropdown-content.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a,
.dropdown-content button {
  padding: 12px 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.dropdown-content a:hover,
.dropdown-content button:hover {
  background: var(--gray-light);
  color: var(--primary);
}

.dropdown-content hr {
  margin: 8px 10px;
  border: none;
  border-top: 1px solid #eee;
}

.logout-link:hover {
  color: #ef4444 !important;
  background: #fff1f2 !important;
}

.coming-soon {
  opacity: 0.6;
  cursor: not-allowed !important;
}

.coming-soon small {
  font-size: 0.7rem;
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
  color: #666;
}

@keyframes fadeInIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInIn 0.3s ease forwards;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
  .card {
    padding: 25px;
  }
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(116, 55, 150, 0.1);
}

/* Feature & Facilities */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.4;
}

.feature-item i {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.facility-card {
  background: var(--gray-light);
  padding: 25px 15px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.facility-card:hover {
  transform: scale(1.05);
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

/* Form Controls */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fcfcfc;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(116, 55, 150, 0.1);
}


/* Footer */
footer {
  background: #0a0a0b;
  color: #94a3b8;
  padding: 100px 0 40px;
  margin-top: 120px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(116, 55, 150, 0.3), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 80px;
}

.footer-col.align-left {
  text-align: left;
}

.footer-col.align-center {
  text-align: center;
}

.footer-col.align-center h4::after {
  left: 50%;
  transform: translateX(-50%);
}

.footer-col.align-center ul li a {
  justify-content: center;
}

.footer-col.align-right {
  text-align: right;
}

.footer-col.align-right h4::after {
  left: auto;
  right: 0;
}

.footer-col.align-right .footer-contact-item {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}

.footer-col.align-right .social-links {
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-col.align-center,
  .footer-col.align-right {
    text-align: left;
  }

  .footer-col.align-center h4::after,
  .footer-col.align-right h4::after {
    left: 0;
    right: auto;
    transform: none;
  }

  .footer-col.align-center ul li a,
  .footer-col.align-right ul li a,
  .footer-col.align-right .social-links {
    justify-content: flex-start;
  }

  .footer-col.align-right .footer-contact-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.footer-about p {
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--white);
  transform: translateX(8px);
}

.footer-col.align-center ul li a:hover {
  transform: translateY(-3px);
}

.footer-col.align-right ul li a:hover {
  transform: translateX(-8px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--gradient);
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(116, 55, 150, 0.3);
}

.newsletter-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-box h4 {
  margin-bottom: 15px !important;
}

.newsletter-box h4::after {
  display: none;
}

.newsletter-form {
  position: relative;
  margin-top: 20px;
}

.newsletter-input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.3);
}

.newsletter-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--gradient);
  border: none;
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  filter: brightness(1.1);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-contact-item i {
  color: var(--primary);
  flex-shrink: 0;
}

.footer-contact-item p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-ssv-logo {
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero-main-logo {
  height: 200px;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section Enhancements */
.hero {
  padding: 120px 0 100px;
  background: radial-gradient(circle at top right, var(--accent1), transparent),
    radial-gradient(circle at bottom left, #f6e8ff, transparent);
  text-align: center;
}

.badge {
  background: rgba(116, 55, 150, 0.08);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 20px;
  border: 1px solid rgba(116, 55, 150, 0.1);
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: -50px;
}

.stat-card {
  padding: 40px;
  text-align: center;
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(116, 55, 150, 0.1);
}

.stat-card h3 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 10px;
}

#featured-events-container {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 30px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

@media (max-width: 992px) {
  #featured-events-container {
    grid-template-columns: 1fr !important;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

/* Sponsor Scroll Animation */
.sponsor-container {
  width: 100%;
  overflow: hidden;
  background: #fafafa;
  padding: 60px 0;
  position: relative;
}

.sponsor-container::before,
.sponsor-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.sponsor-container::before {
  left: 0;
  background: linear-gradient(to right, #fafafa, transparent);
}

.sponsor-container::after {
  right: 0;
  background: linear-gradient(to left, #fafafa, transparent);
}

.sponsor-wrapper {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  transition: all 0.5s ease;
}

.sponsor-wrapper.scrolling {
  animation: scroll var(--scroll-duration, 30s) linear infinite;
}

.sponsor-wrapper.centered {
  margin: 0 auto;
  justify-content: center;
}

.sponsor-wrapper:hover {
  animation-play-state: paused;
}

.sponsor-item {
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
}

.sponsor-item img {
  height: 70px;
  max-width: 180px;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sponsor-item img:hover {
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(var(--scroll-dist));
  }
}

/* Adjusted dynamically in JS usually, but fixed for now */

/* Promotional Banner Slider Styles */
.ad-banner-slider {
  position: relative;
  width: 1290px;
  height: 300px;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid rgba(116, 55, 150, 0.05);
}

.ad-banner-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.ad-banner-item.active {
  opacity: 1;
  z-index: 2;
}

.ad-banner-item:hover {
  transform: scale(1.02);
}

.ad-banner-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
}

/* Gridify Logo Styles */
.gridify-logo-box {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.gridify-logo-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 420px;
  height: 175px;
  max-width: 100%;
  background: var(--white);
  border-radius: 24px;
  padding: 35px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(116, 55, 150, 0.05);
  overflow: hidden;
}

.gridify-logo-box a:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(116, 55, 150, 0.15);
}

.gridify-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Utility Classes */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

/* Event Detail Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: modalIn 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  height: 300px;
  position: relative;
  overflow: hidden;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  z-index: 10;
  transition: all 0.3s ease;
}

.close-modal:hover {
  transform: rotate(90deg);
  background: var(--primary);
  color: white;
}

.modal-body {
  padding: 40px;
  overflow-y: auto;
}

.modal-body h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.modal-info {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.modal-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  background: var(--background);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-description {
  line-height: 1.8;
  color: #4b5563;
  font-size: 1.05rem;
  white-space: pre-wrap;
}

.read-more-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  gap: 8px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .modal-body {
    padding: 25px;
  }

  .modal-header {
    height: 200px;
  }

  .modal-body h2 {
    font-size: 1.5rem;
  }
}

.coordinator-item-modal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f8fafc;
  padding: 12px 18px;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.coordinator-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.coordinator-contact {
  font-size: 0.85rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.coordinator-contact:hover {
  text-decoration: underline;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS OVERRIDES
   Targeting devices < 1024px
   ========================================================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    overflow-x: hidden;
    position: relative;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
    line-height: 1.1;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  .navbar {
    width: 92% !important;
    top: 15px !important;
    padding: 0 10px !important;
  }

  .nav-container {
    padding: 0 15px !important;
  }

  .logo-text {
    font-size: 1.3rem !important;
  }

  .logo img {
    height: 32px !important;
  }


}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px !important;
  }

  .hero p {
    font-size: 1rem !important;
    margin-bottom: 30px !important;
  }

  .hero-ssv-logo {
    max-height: 60px !important;
    max-width: 100%;
    height: auto;
    margin-bottom: 15px !important;
  }

  .hero-main-logo {
    max-height: 140px !important;
    max-width: 100%;
    height: auto;
    margin-bottom: 15px !important;
  }

  .hero-btns {
    flex-direction: column;
    gap: 15px !important;
    width: 100%;
    max-width: 320px;
    margin: 0 auto !important;
  }

  .hero-btns .btn {
    width: 100%;
    padding: 15px 0 !important;
  }

  .highlights-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 0 !important;
  }

  .stat-card {
    padding: 30px 20px !important;
    margin-bottom: 10px;
  }

  .stat-card h3 {
    font-size: 2.5rem !important;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 15px;
  }

  .section-header .btn {
    width: 100% !important;
    text-align: center;
    justify-content: center;
    display: block !important;
    /* Force block for View All */
  }

  #featured-events-container,
  .events-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .ad-banner-slider {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
  }

  .gridify-logo-box a {
    width: 100% !important;
    height: auto !important;
    padding: 20px !important;
  }

  .gridify-logo-box img {
    width: 100%;
    height: auto;
  }

  .sponsor-container {
    padding: 40px 0 !important;
  }

  .sponsor-item {
    width: 160px !important;
    padding: 0 15px !important;
  }

  .sponsor-item img {
    max-width: 120px !important;
  }

  footer {
    padding: 60px 0 30px !important;
    margin-top: 60px !important;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 40px !important;
  }

  .footer-col {
    text-align: left !important;
  }

  .footer-col h4::after {
    left: 0 !important;
    transform: none !important;
  }

  .footer-col.align-center,
  .footer-col.align-right {
    text-align: left !important;
    align-items: flex-start !important;
  }

  .footer-col.align-right .footer-contact-item {
    flex-direction: row !important;
    justify-content: flex-start !important;
  }

  .modal-content {
    max-height: 95vh !important;
    margin: 10px;
    width: calc(100% - 20px) !important;
    border-radius: 20px !important;
  }

  .modal-header {
    height: 180px !important;
  }

  .modal-body {
    padding: 20px !important;
  }

  .modal-info {
    gap: 10px !important;
  }

  .modal-info-item {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem !important;
  }

  .ad-banner-slider {
    border-radius: 12px !important;
  }

  .btn {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
  }

  .newsletter-input {
    width: 100% !important;
  }

  .newsletter-btn {
    position: relative !important;
    width: 100%;
    margin-top: 10px;
    right: auto;
    top: auto;
    bottom: auto;
    padding: 12px 0 !important;
  }
}

/* Portal Alerts & Confirms */
.portal-alert-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.portal-alert-overlay.active {
  opacity: 1;
  visibility: visible;
}

.portal-alert-box {
  background: white;
  padding: 30px;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.portal-alert-overlay.active .portal-alert-box {
  transform: scale(1);
}

.portal-alert-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-alert-icon.info {
  background: #eff6ff;
  color: #1e40af;
}

.portal-alert-icon.success {
  background: #f0fdf4;
  color: #166534;
}

.portal-alert-icon.error {
  background: #fef2f2;
  color: #991b1b;
}

.portal-alert-icon.warning {
  background: #fffbeb;
  color: #92400e;
}

.portal-alert-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1e293b;
}

.portal-alert-message {
  color: #64748b;
  margin-bottom: 25px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.portal-alert-message strong {
  color: var(--primary);
  font-weight: 700;
}

.portal-alert-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.portal-btn {
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-size: 0.9rem;
  flex: 1;
}

.portal-btn-primary {
  background: linear-gradient(135deg, #743796, #437dbd);
  color: white;
}

.portal-btn-secondary {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.portal-btn-outline {
  background: transparent !important;
  border: 1px solid #743796 !important;
  color: #743796 !important;
}

.portal-btn:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}