/*
 * MUNPortal - Design System v2.0
 * Modern UN-themed design with blue & gold palette
 * Glassmorphic effects, smooth animations, young & dynamic feel
 */

/* ===== CSS Variables ===== */
:root {
  /* Primary Colors - UN Blue Theme */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Gold Accent - Diplomatic & Prestigious */
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;

  /* Secondary Accent - Teal for freshness */
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;

  /* Neutral Colors */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Semantic Colors */
  --success: #10b981;
  --success-50: #ecfdf5;
  --warning: #f59e0b;
  --warning-50: #fffbeb;
  --error: #ef4444;
  --error-50: #fef2f2;
  --info: #3b82f6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(248, 250, 252, 1) 100%);

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Shadows - Layered & Modern */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.35);
  --shadow-gold: 0 0 30px rgba(251, 191, 36, 0.3);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(20px);

  /* Transitions - Smooth & Professional */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-spring: 600ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-50);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style: none;
}

/* ===== Utility Classes ===== */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  padding: var(--spacing-3) var(--spacing-6);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

/* Ripple effect base */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md), 0 4px 14px -3px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Gold/Accent Button */
.btn-gold {
  background: var(--gradient-gold);
  color: var(--gray-900);
  box-shadow: var(--shadow-md), 0 4px 14px -3px rgba(251, 191, 36, 0.4);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--primary-600);
  border: 2px solid var(--primary-500);
}

.btn-outline:hover {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
  transform: translateY(-1px);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.btn-lg {
  padding: var(--spacing-4) var(--spacing-8);
  font-size: var(--font-size-base);
  border-radius: var(--radius-2xl);
}

.btn-sm {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--font-size-xs);
}

.btn-icon {
  padding: var(--spacing-3);
  border-radius: var(--radius-lg);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ===== Form Elements ===== */
.form-group {
  margin-bottom: var(--spacing-5);
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-2);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  letter-spacing: 0.01em;
}

.form-label-required::after {
  content: " *";
  color: var(--error);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-3) var(--spacing-4);
  font-size: var(--font-size-base);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: white;
  transition: all var(--transition-fast);
  color: var(--gray-900);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--gray-300);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: var(--error);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-2);
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
}

.form-hint {
  color: var(--gray-500);
  font-size: var(--font-size-xs);
  margin-top: var(--spacing-1);
}

/* ===== Cards ===== */
.card {
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-bounce);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(59, 130, 246, 0.1);
}

.card-header {
  padding: var(--spacing-5) var(--spacing-6);
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.card-body {
  padding: var(--spacing-6);
}

.card-footer {
  padding: var(--spacing-4) var(--spacing-6);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

/* Glass Card Variant */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

/* Featured Card */
.card-featured {
  border: 2px solid var(--gold-400);
  position: relative;
}

.card-featured::before {
  content: "⭐ Öne Çıkan";
  position: absolute;
  top: var(--spacing-3);
  right: var(--spacing-3);
  background: var(--gradient-gold);
  color: var(--gray-900);
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: var(--spacing-1) var(--spacing-3);
  border-radius: var(--radius-full);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

/* Navbar container - özel flexbox layout */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  min-height: 80px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--spacing-3) var(--spacing-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: var(--font-size-xl);
  font-weight: 800;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-logo:hover .logo-img {
  transform: scale(1.08);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Auth area placeholder - loading state */
.nav-auth-placeholder {
  width: 100px;
  height: 36px;
  background: linear-gradient(90deg,
      var(--gray-200) 25%,
      var(--gray-100) 50%,
      var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Small button variant */
.btn-sm {
  padding: var(--spacing-2) var(--spacing-3);
  font-size: var(--font-size-sm);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
}

.nav-link {
  padding: var(--spacing-2) var(--spacing-4);
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.nav-link.active {
  color: var(--primary-600);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.nav-auth-buttons {
  display: flex;
  gap: var(--spacing-2);
}

.nav-user-menu {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-user-btn:hover {
  background: var(--gray-100);
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary-200);
}

.nav-username {
  font-weight: 500;
  color: var(--gray-700);
}

.nav-dropdown-icon {
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  transition: transform var(--transition-fast);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + var(--spacing-2));
  right: 0;
  min-width: 200px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
}

.nav-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-3) var(--spacing-4);
  color: var(--gray-700);
  transition: all var(--transition-fast);
  width: 100%;
  text-align: left;
}

.nav-dropdown-item:hover {
  background: var(--gray-50);
  color: var(--primary-600);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--gray-100);
  margin: var(--spacing-2) 0;
}

.dropdown-icon {
  font-size: 1rem;
}

.logout-btn {
  color: var(--error);
}

.logout-btn:hover {
  background: var(--primary-50);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--spacing-2);
  cursor: pointer;
  z-index: 100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navbar Brand - Eski projeden */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

.navbar-brand-text {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg,
      var(--primary-600) 0%,
      var(--primary-800) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

/* Nav Menu - Eski projeden */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.nav-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
  opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

.nav-link.active {
  font-weight: 600;
}

/* Navbar Actions - Eski projeden */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--gray-200);
}

.navbar-social-link {
  color: var(--gray-500);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: var(--radius-md);
}

.navbar-social-link:hover {
  color: var(--primary-600);
  background: var(--primary-50);
  transform: translateY(-2px);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 180px;
  justify-content: flex-end;
}

.auth-loading-placeholder {
  width: 100%;
  height: 38px;
  background: linear-gradient(90deg,
      var(--gray-200) 25%,
      var(--gray-100) 50%,
      var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.btn-login {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  padding: 0.5rem 1rem;
}

.btn-login:hover {
  color: var(--primary-600);
}

.btn-register {
  background: var(--primary-600);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.btn-register:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

/* User Menu - Eski projeden */
.user-menu-container {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-lg);
  transition: background 0.2s;
  background: var(--gray-50);
}

.user-profile-btn:hover {
  background: var(--gray-100);
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-username {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 220px;
  display: none;
  flex-direction: column;
  padding: 0.5rem;
  z-index: 1001;
  border: 1px solid var(--gray-100);
  animation: slideDown 0.3s ease;
}

.user-dropdown-menu.show {
  display: flex;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: var(--gray-50);
  color: var(--primary-600);
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 0.4rem 0.5rem;
}

.logout-item {
  color: var(--primary-600);
}

.logout-item:hover {
  background: var(--primary-50);
}

/* Responsive Navbar */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 1rem;
    justify-content: flex-start;
  }

  .navbar-actions {
    position: fixed;
    top: calc(80px + 200px);
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    display: none;
    border-top: 1px solid var(--gray-100);
  }

  .navbar-actions.active {
    display: flex;
  }

  .social-links {
    padding-right: 0;
    border-right: none;
    justify-content: center;
  }

  .auth-buttons {
    width: 100%;
    justify-content: center;
  }

  .hamburger {
    display: flex;
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  /* Fallback */
  overflow: hidden;
  padding-top: 80px;
}

/* Video Background */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: blur(5px) brightness(0.8);
  /* İstenilen bulanıklık ve biraz karanlık ton */
}

/* Light Effects Overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.4) 0%, transparent 40%),
    /* Light Blue Glow */
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.3) 0%, transparent 40%);
  /* Purple/Violet Glow */
  z-index: 1;
  mix-blend-mode: screen;
  animation: pulseLights 8s infinite alternate;
}

@keyframes pulseLights {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  100% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Blue Thematic Overlay - Watermark Effect Removed */
.hero::after {
  content: none;
}

/* Ekstra bir katman daha ekleyelim hafif ışıltı için (Opsiyonel) */
/* Ancak basitlik için şimdilik sadece yukarıdakini kullanıyoruz. */
/* Eğer şekilleri korumak istiyorsak, onların z-index'ini ayarlamalıyız */

.hero-content {
  position: relative;
  z-index: 10;
  /* Ensure content is above the overlay */
  text-align: center;
  color: white;
  padding: var(--spacing-8);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--spacing-6);
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge-icon {
  color: var(--gold-400);
}

/* Hero Title - Brand Blue Style */
/* Hero Title - Brand Blue Style Refined */
.hero-title {
  font-family: var(--font-family);
  /* Modern Sans-Serif */
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: var(--spacing-6);

  /* Gradient Text for Depth and "Pop" */
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
  /* Lighter Blue to Brand Blue */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Strong Drop Shadow for Contrast against Video */
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(37, 99, 235, 0.4));

  letter-spacing: -0.01em;
  /* Biraz daha açık */
  line-height: 1.1;
  animation: fadeInUp 0.6s ease-out 0.1s both;
  text-transform: uppercase;
}

/* Highlight iptal - Tek renk olacak veya aynı renk */
.hero-title-highlight {
  background: none;
  -webkit-text-fill-color: initial;
  color: inherit;
  /* Üst rengi (Mavi) miras al */
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto var(--spacing-10);
  line-height: 1.7;
  font-weight: 400;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-btn {
  padding: var(--spacing-4) var(--spacing-8);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-2xl);
  font-weight: 600;
  transition: all var(--transition-bounce);
}

.hero-btn-primary {
  background: white;
  color: var(--primary-700);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-btn-gold {
  background: var(--gradient-gold);
  color: var(--gray-900);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.hero-btn-gold:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(251, 191, 36, 0.4);
}

.hero-btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-4px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-12);
  margin-top: var(--spacing-16);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  margin-top: var(--spacing-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Fade in up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 20s infinite ease-in-out;
}

.hero-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.hero-shape:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 60%;
  right: -3%;
  animation-delay: -5s;
}

.hero-shape:nth-child(3) {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 20%;
  animation-delay: -10s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

/* ===== Section Styles ===== */
.section {
  padding: var(--spacing-20) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-12);
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary-600);
  margin-bottom: var(--spacing-4);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--spacing-4);
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.section-title-highlight {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray-500);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Featured Conference Card ===== */
.featured-conference-wrapper {
  margin-bottom: var(--spacing-10);
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  position: relative;
  transition: transform 0.4s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.featured-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(45deg, #f59e0b, #fbbf24, #f59e0b);
  z-index: -1;
  opacity: 0.3;
  animation: borderGlow 3s infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}

.featured-image {
  position: relative;
  height: 100%;
  min-height: 350px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 15px;
  line-height: 1.2;
}

.featured-desc {
  color: var(--gray-600);
  margin-bottom: 25px;
  line-height: 1.6;
  font-size: 1.05rem;
}

.featured-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.featured-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--gray-700);
}

.countdown-box {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.countdown-item {
  text-align: center;
  background: var(--gray-50);
  padding: 10px 15px;
  border-radius: 12px;
  min-width: 80px;
}

.countdown-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 250px;
  }
}

/* ===== Modern Filters ===== */
.modern-filters-container {
  margin-bottom: 40px;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--gray-200);
  background: white;
  color: var(--gray-600);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-tab.active {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.filter-tab:hover:not(.active) {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.modern-filters-row {
  display: flex;
  gap: 20px;
  background: white;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.search-box.modern {
  flex: 1;
  background: var(--gray-50);
  border-radius: 12px;
  border: none !important;
  /* Override */
}

.dynamic-filters {
  display: flex;
  gap: 15px;
}

.modern-select {
  padding: 0 15px;
  border: none;
  background: transparent;
  color: var(--gray-700);
  font-weight: 500;
  cursor: pointer;
  outline: none;
  min-width: 120px;
}

.btn-adv-filters-toggle {
  display: none;
}

@media (max-width: 768px) {
  .modern-filters-row {
    flex-direction: column;
  }

  .dynamic-filters {
    overflow-x: auto;
    padding-bottom: 10px;
  }
}

/* ===== MUN Cards ===== */
.mun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-6);
}

/* ===== Modern Square MUN Card Design ===== */
/* ===== Modern Square MUN Card Design ===== */
.mun-card {
  background: white;
  border-radius: 24px;
  /* overflow: hidden; Removed to allow tooltip */
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  /* Soft shadow */
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Bouncy transition */
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
  height: 100%;
}

.mun-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.08);
  z-index: 10;
}

/* Image/Logo Area - Square Aspect Ratio */
.mun-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  /* Banner style base */
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
  border-radius: 24px 24px 0 0;
  /* Add radius since parent overflow is visible */
}

.mun-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.mun-card:hover .mun-card-image img {
  transform: scale(1.1);
}

/* Overlay gradient for text readability on banner */
.mun-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
  opacity: 0.6;
}

/* Logo Badge - Modified: Larger & Left-Center */
.mun-card-logo-container {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* Centered Vertically */
  left: 20px;
  bottom: auto;
  /* Override previous bottom */
  width: 90px;
  height: 90px;
  background: white;
  border-radius: 20px;
  padding: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 2;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* No Banner Style - Solid Background & Centered Logo */
.mun-card-image.no-banner-style {
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Override logo position for no-banner */
.mun-card-image.no-banner-style .mun-card-logo-container {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 100px;
  height: 100px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mun-card-logo {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: contain;
  background: white;
}

/* Badges */
.mun-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  /* Move to right for better balance */
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-900);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.mun-card-featured {
  background: #fbbf24;
  color: white;
  right: auto;
  left: 12px;
}

/* Body Content */
.mun-card-body {
  padding: 24px 20px 20px;
  padding-top: 28px;
  /* Space for logo overlap */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mun-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mun-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

.mun-card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-50);
  padding: 4px 10px;
  border-radius: 8px;
}

.mun-card-description {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  /* Push footer down */
}

/* Footer & Stats */
.mun-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}

.mun-card-stats {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 600;
}

.mun-card-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.mun-card-stat:hover {
  color: var(--primary-600);
}

.mun-card-btn {
  padding: 8px 20px;
  background: var(--gray-900);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s;
  text-decoration: none;
}

.mun-card-btn:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ===== Filters ===== */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-10);
  padding: var(--spacing-5) var(--spacing-6);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(59, 130, 246, 0.08);
  position: relative;
  overflow: hidden;
}

/* Gradient accent line on top */
.filters-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.filter-group {
  flex: 1;
  min-width: 180px;
}

.filter-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: var(--spacing-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-box {
  position: relative;
  flex: 2;
  min-width: 280px;
}

.search-box input {
  width: 100%;
  padding: var(--spacing-4) var(--spacing-4);
  padding-left: 52px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
  background: white;
}

.search-box input:hover {
  border-color: var(--gray-300);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: white;
}

.search-box svg {
  position: absolute;
  left: var(--spacing-5);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.search-box input:focus+svg,
.search-box:focus-within svg {
  color: var(--primary-500);
}

.filter-select {
  width: 100%;
  padding: var(--spacing-4) var(--spacing-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-base);
  background: white;
  cursor: pointer;
  transition: all var(--transition-normal);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.filter-select:hover {
  border-color: var(--gray-300);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Filter chips for active filters */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
  margin-top: var(--spacing-3);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-1) var(--spacing-3);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--primary-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
}

.filter-chip-close {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* ===== Quick Filter Tags ===== */
.quick-filters {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-6);
}

.quick-filter-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gray-500);
}

.quick-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.quick-filter-tag:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
  background: var(--primary-50);
  transform: translateY(-2px);
}

.quick-filter-tag.active {
  background: var(--gradient-primary);
  border-color: var(--primary-500);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.quick-filter-tag.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* ===== Results Header ===== */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-6);
  padding: var(--spacing-4) 0;
  border-bottom: 1px solid var(--gray-100);
}

.results-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  flex-wrap: wrap;
}

.results-count {
  font-size: var(--font-size-base);
  color: var(--gray-600);
}

.results-number {
  font-weight: 700;
  color: var(--primary-600);
  font-size: var(--font-size-lg);
}

.view-controls {
  display: flex;
  gap: var(--spacing-2);
  background: var(--gray-100);
  padding: var(--spacing-1);
  border-radius: var(--radius-lg);
}

.view-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-toggle:hover {
  color: var(--gray-700);
  background: white;
}

.view-toggle.active {
  background: white;
  color: var(--primary-600);
  box-shadow: var(--shadow-sm);
}

/* ===== Loading Skeleton ===== */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-6);
}

.skeleton-card {
  background: white;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-body {
  padding: var(--spacing-5);
}

.skeleton-line {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-3);
}

.skeleton-title {
  height: 24px;
  width: 80%;
}

.skeleton-text {
  height: 16px;
  width: 100%;
}

.skeleton-text.short {
  width: 60%;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: var(--spacing-16) var(--spacing-8);
  background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
  border-radius: var(--radius-2xl);
  border: 2px dashed var(--gray-200);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-4);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.empty-state-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--spacing-3);
}

.empty-state-text {
  font-size: var(--font-size-base);
  color: var(--gray-500);
  max-width: 400px;
  margin: 0 auto var(--spacing-6);
  line-height: 1.6;
}

/* ===== Load More Section ===== */
.load-more-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
  margin-top: var(--spacing-10);
  padding-top: var(--spacing-8);
  border-top: 1px solid var(--gray-100);
}

.load-more-progress {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  font-weight: 500;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
}

.load-more-btn svg {
  transition: transform var(--transition-fast);
}

.load-more-btn:hover svg {
  transform: translateY(3px);
}

/* ===== List View Mode ===== */
.mun-grid.list-view {
  grid-template-columns: 1fr;
  gap: var(--spacing-4);
}

.mun-grid.list-view .mun-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-radius: var(--radius-xl);
}

.mun-grid.list-view .mun-card-image {
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  aspect-ratio: 16/10;
}

.mun-grid.list-view .mun-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mun-grid.list-view .mun-card-description {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

@media (max-width: 768px) {
  .mun-grid.list-view .mun-card {
    grid-template-columns: 1fr;
  }

  .mun-grid.list-view .mun-card-image {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

/* ===== Features Section - Premium Design ===== */
.features-section {
  background: linear-gradient(180deg, var(--gray-50) 0%, white 50%, var(--gray-50) 100%);
  position: relative;
  overflow: hidden;
}

/* Floating Background Shapes */
.features-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.features-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(60px);
}

.features-shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
  top: -100px;
  left: -100px;
  animation: float-slow 20s ease-in-out infinite;
}

.features-shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.08));
  bottom: -50px;
  right: -50px;
  animation: float-slow 25s ease-in-out infinite reverse;
}

.features-shape-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.08));
  top: 40%;
  left: 60%;
  animation: float-slow 18s ease-in-out infinite;
}

@keyframes float-slow {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-6);
  margin-bottom: var(--spacing-12);
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Feature Card */
.feature-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-8);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 20px -5px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px -10px rgba(59, 130, 246, 0.15),
    0 10px 20px -5px rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

/* Card Glow Effect */
.feature-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.feature-card:hover .feature-card-glow {
  opacity: 1;
}

/* Feature Number */
.feature-number {
  position: absolute;
  top: var(--spacing-6);
  right: var(--spacing-6);
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: rgba(59, 130, 246, 0.08);
  line-height: 1;
  transition: all 0.3s;
}

.feature-card:hover .feature-number {
  color: rgba(59, 130, 246, 0.15);
  transform: scale(1.1);
}

/* Feature Badge (for featured card) */
.feature-badge {
  position: absolute;
  top: var(--spacing-4);
  left: var(--spacing-4);
  padding: var(--spacing-1) var(--spacing-3);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: white;
  font-size: var(--font-size-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Featured Card */
.feature-card.featured {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(251, 191, 36, 0.05) 100%);
  border-color: rgba(245, 158, 11, 0.2);
}

.feature-card.featured:hover {
  box-shadow:
    0 20px 40px -10px rgba(245, 158, 11, 0.2),
    0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

/* Icon Wrapper */
.feature-icon-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: var(--spacing-5);
}

.feature-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.feature-icon-ring {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-xl);
  border: 2px dashed rgba(59, 130, 246, 0.2);
  opacity: 0;
  transition: all 0.4s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.feature-card:hover .feature-icon-ring {
  opacity: 1;
  animation: spin-slow 10s linear infinite;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Feature Title */
.feature-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--spacing-3);
  letter-spacing: -0.01em;
}

/* Feature Description */
.feature-description {
  font-size: var(--font-size-base);
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--spacing-5);
}

/* Feature Stats */
.feature-stats {
  display: flex;
  gap: var(--spacing-6);
  padding-top: var(--spacing-4);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-stat {
  display: flex;
  flex-direction: column;
}

.feature-stat-value {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--primary-600);
  line-height: 1;
}

.feature-stat-label {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  font-weight: 500;
  margin-top: var(--spacing-1);
}

/* Feature CTA Button */
.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-3) var(--spacing-5);
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.feature-cta:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.feature-cta svg {
  transition: transform 0.3s;
}

.feature-cta:hover svg {
  transform: translateX(4px);
}

/* Features Bottom CTA */
.features-cta {
  text-align: center;
  padding: var(--spacing-10);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.features-cta-text {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  margin-bottom: var(--spacing-6);
}

.features-cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-4);
  flex-wrap: wrap;
}

/* ===== Contact Section - Premium Design ===== */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.03) 0%,
      rgba(245, 158, 11, 0.02) 50%,
      rgba(59, 130, 246, 0.03) 100%);
}

.contact-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

/* Contact Wrapper */
.contact-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--spacing-8);
  align-items: start;
}

@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Contact Cards */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.contact-card {
  display: flex;
  gap: var(--spacing-4);
  padding: var(--spacing-5);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.contact-card-content {
  display: flex;
  flex-direction: column;
}

.contact-card-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-1);
}

.contact-card-text {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  margin-bottom: var(--spacing-2);
}

.contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary-600);
  text-decoration: none;
  transition: all 0.2s;
}

.contact-card-link:hover {
  color: var(--primary-700);
}

.contact-card-link svg {
  transition: transform 0.2s;
}

.contact-card-link:hover svg {
  transform: translateX(4px);
}

.contact-card-highlight {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--primary-600);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 20px 40px -10px rgba(59, 130, 246, 0.08);
}

.contact-form-header {
  margin-bottom: var(--spacing-6);
  padding-bottom: var(--spacing-4);
  border-bottom: 1px solid var(--gray-100);
}

.contact-form-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--spacing-1);
}

.contact-form-subtitle {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4);
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Contact Submit Button */
.contact-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  margin-top: var(--spacing-2);
}

.contact-submit-btn svg {
  transition: transform 0.3s;
}

.contact-submit-btn:hover svg {
  transform: translateX(4px) rotate(-20deg);
}

/* Contact Social */
.contact-social {
  margin-top: var(--spacing-12);
  text-align: center;
}

.contact-social-text {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  margin-bottom: var(--spacing-4);
}

.contact-social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-3);
}

.contact-social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  text-decoration: none;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-social-link:hover {
  transform: translateY(-4px);
  color: var(--primary-600);
  border-color: var(--primary-200);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

/* Instagram gradient on hover */
.contact-social-link[title="Instagram"]:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  border-color: transparent;
}

/* Twitter/X dark on hover */
.contact-social-link[title="Twitter"]:hover {
  background: #000;
  color: white;
  border-color: transparent;
}

/* LinkedIn blue on hover */
.contact-social-link[title="LinkedIn"]:hover {
  background: #0077b5;
  color: white;
  border-color: transparent;
}

/* Discord purple on hover */
.contact-social-link[title="Discord"]:hover {
  background: #5865F2;
  color: white;
  border-color: transparent;
}

/* ===== Team Member Premium ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.team-member {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}

.member-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
  margin-bottom: 1rem;
  border: 4px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.team-member:hover .member-avatar {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.member-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.member-role {
  font-size: 0.9rem;
  color: var(--primary-600);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.member-bio {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: white;
  padding: var(--spacing-16) 0 var(--spacing-8);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-12);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
    text-align: center;
  }
}

.footer-brand {
  max-width: 300px;
}

@media (max-width: 768px) {
  .footer-brand {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }

  .footer-newsletter-btn {
    width: 100%;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: var(--spacing-4);
}

.footer-description {
  color: var(--gray-400);
  font-size: var(--font-size-sm);
}

.footer-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.footer-link {
  color: var(--gray-400);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--spacing-8);
  border-top: 1px solid var(--gray-800);
  text-align: center;
  color: var(--gray-500);
  font-size: var(--font-size-sm);
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  visibility: visible;
  opacity: 1;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-text {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-top: var(--spacing-4);
  letter-spacing: 0.5px;
}

/* New Spinner Ring Style (Matches index.html) */
.loading-spinner {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.spinner-ring {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 48px;
  height: 48px;
  margin: 6px;
  border: 4px solid #fff;
  border-radius: 50%;
  animation: spinner-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}

.spinner-ring:nth-child(1) {
  animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
  animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes spinner-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-logo {
  margin-bottom: var(--spacing-6);
  animation: pulse 2s infinite;
}

.loading-logo-img {
  width: 60px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.loading-logo-text {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: var(--spacing-2);
  letter-spacing: 2px;
}

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  bottom: var(--spacing-6);
  right: var(--spacing-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-4) var(--spacing-6);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: slideIn var(--transition-normal);
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--error);
}

.toast.warning {
  border-left: 4px solid var(--warning);
}

.toast.info {
  border-left: 4px solid var(--info);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== Modal ===== */
/* Mobile Optimizations */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-4);
  }

  .section {
    padding: var(--spacing-12) 0;
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .hero-title {
    font-size: 2.5rem;
    /* Reduce from default which is likely larger */
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
  }

  .filters-bar {
    flex-direction: column;
    padding: var(--spacing-4);
  }

  .search-box,
  .filter-group {
    min-width: 100%;
    width: 100%;
  }

  /* Footer mobile spacing fixes */
  .footer {
    padding-top: var(--spacing-12);
  }

  .footer-bottom {
    flex-direction: column-reverse;
    /* Copyright at bottom */
    gap: var(--spacing-4);
  }

  .footer-legal {
    flex-direction: column;
    gap: var(--spacing-2);
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.show,
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition-fast);
}

.modal-overlay.show .modal,
.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-6);
  border-bottom: 1px solid var(--gray-100);
}

.modal-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--gray-500);
  font-size: 1.5rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.modal-body {
  padding: var(--spacing-6);
}

.modal-footer {
  display: flex;
  gap: var(--spacing-3);
  justify-content: flex-end;
  padding: var(--spacing-6);
  border-top: 1px solid var(--gray-100);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--spacing-4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-auth-buttons {
    flex-direction: column;
    width: 100%;
  }

  .nav-auth-buttons .btn {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 var(--spacing-4);
  }

  .hero-btn {
    width: 100%;
  }

  .filters-bar {
    flex-direction: column;
  }

  .search-box,
  .filter-group {
    min-width: 100%;
  }

  .mun-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Animations ===== */
.fade-in {
  animation: fadeIn var(--transition-normal) ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp var(--transition-normal) ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.loading-content {
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInDown 0.6s ease;
}

.loading-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  animation: pulse 2s ease-in-out infinite;
}

.loading-logo-text {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  animation-duration: 1s;
  animation-direction: reverse;
  border-top-color: rgba(255, 255, 255, 0.7);
}

.spinner-ring:nth-child(3) {
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
  animation-duration: 0.8s;
  border-top-color: rgba(255, 255, 255, 0.5);
}

.loading-text {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 2px;
  opacity: 0.9;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Footer - Premium Design ===== */
.footer {
  background: linear-gradient(180deg, var(--gray-900) 0%, #0f172a 100%);
  color: white;
  padding: 5rem 0 0;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

/* Footer background glow effects */
.footer::before,
.footer::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
}

.footer::before {
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.15);
  top: -200px;
  left: -100px;
}

.footer::after {
  width: 300px;
  height: 300px;
  background: rgba(245, 158, 11, 0.1);
  bottom: -150px;
  right: -100px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.3s;
}

.footer-logo:hover .footer-logo-img {
  transform: scale(1.05);
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social-link {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}

.footer-social-link:hover {
  background: var(--primary-600);
  border-color: var(--primary-500);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.footer-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--primary-500);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link::before {
  content: '';
  width: 0;
  height: 2px;
  background: var(--primary-500);
  transition: width 0.2s;
}

.footer-link:hover {
  color: white;
  transform: translateX(8px);
}

.footer-link:hover::before {
  width: 8px;
}

.footer-newsletter-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter-input:focus {
  outline: none;
  border-color: var(--primary-500);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.footer-newsletter-btn {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.footer-newsletter-btn:hover {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.footer-legal-link:hover {
  color: var(--primary-400);
}

/* Footer Responsive */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* ===== Google Fonts removed (moved to top) ===== */

/* Fix for unwanted underlines on tooltips/descriptions */
abbr,
[title],
.mun-card-description,
.mun-card-desc-wrapper {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* ===== Highlight Section (Top 5 MUNs) ===== */
/* Space after Hero Section */
.hero {
  margin-bottom: 5rem;
}

/* =====================================================
   GLOBAL MOBILE RESPONSIVE STYLES
   Covers: Navbar, Hero, Cards, Forms, Layout, Footer
   ===================================================== */

/* ---- Tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }

  .navbar .container {
    padding: 0.75rem 1.25rem;
  }

  /* Hide social links on tablet to save space */
  .social-links {
    display: none;
  }

  /* Hero adjustments */
  .hero-content h1 {
    font-size: 2.5rem;
  }

  /* MUN grid */
  .mun-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Top 5 section */
  .highlight-section .highlight-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .highlight-video-wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {

  /* === Navbar === */
  .hamburger {
    display: flex !important;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 0.25rem;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    width: 100%;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--primary-50);
    color: var(--primary-600);
  }

  .nav-icon {
    display: block !important;
    flex-shrink: 0;
  }

  /* Navbar actions - stack vertically in mobile menu */
  .navbar-actions {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 1.5rem 2rem;
    z-index: 999;
    pointer-events: none;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar-actions.active {
    left: 0;
    pointer-events: auto;
  }

  /* Overlay when mobile menu is open */
  .nav-menu.active::before {
    content: '';
    position: fixed;
    inset: 0;
    left: 80%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
  }

  /* Auth buttons in mobile */
  .auth-buttons {
    width: 100%;
  }

  .btn-login,
  .btn-register {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
  }

  /* User profile button in mobile */
  .user-profile-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: var(--gray-50);
  }

  /* Notification tray - full screen on mobile */
  .notif-tray {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    height: calc(100vh - 60px) !important;
    max-height: none !important;
  }

  /* User dropdown - full width on mobile */
  .user-dropdown-menu {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 0 1rem 1rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  }

  /* === Hero Section === */
  .hero {
    padding: 2rem 0;
    margin-bottom: 2rem;
  }

  .hero-content {
    padding: 0 1rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* === Container === */
  .container {
    padding: 0 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  /* === MUN Grid === */
  .mun-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* === Cards === */
  .card {
    border-radius: 1rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  /* === Section Headers === */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* === Filters === */
  .filter-bar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .filter-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    width: 100%;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  /* === Forms === */
  .form-row {
    flex-direction: column;
  }

  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px;
    /* Prevents iOS zoom on focus */
  }

  /* === Modals === */
  .modal-overlay .modal,
  .modal-container {
    width: 95%;
    max-width: none;
    margin: 1rem;
    border-radius: 1.25rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* === Toast === */
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    top: auto;
  }

  .toast {
    width: 100%;
  }

  /* === Footer === */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* === Auth Page === */
  .auth-container {
    padding: 1rem;
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 5rem;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: 1.25rem;
    width: 100%;
  }

  /* === Profile Page === */
  .profile-layout {
    flex-direction: column;
  }

  .profile-sidebar {
    width: 100%;
  }

  /* === MUN Detail Page === */
  .mun-detail-hero {
    min-height: 300px;
  }

  .mun-detail-title {
    font-size: 1.75rem;
  }

  .mun-detail-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .mun-detail-tabs::-webkit-scrollbar {
    display: none;
  }

  /* === Team Grid === */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* === Committee Grid === */
  .committee-grid {
    grid-template-columns: 1fr;
  }

  /* === Stats Bar === */
  .stats-bar {
    flex-direction: column;
    gap: 1rem;
  }

  /* === Admin Panel === */
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    position: static;
  }

  /* === Pagination === */
  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
}

/* ---- Small Mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  .navbar-brand-text {
    display: none;
    /* Show only logo on very small screens */
  }

  .navbar-logo {
    height: 36px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .cs-timer-block {
    min-width: 60px;
    padding: 0.75rem 0.5rem;
  }

  .cs-timer-number {
    font-size: 1.75rem;
  }

  .cs-timer-sep {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  /* Buttons full width on small screens */
  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Landscape Mobile ---- */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 1.5rem 0;
  }

  .nav-menu {
    padding-top: 4rem;
  }
}