/*===================================================================
    MAP-OS CUSTOM DESIGN SYSTEM
    Modern, elegant, and professional design for Map-OS
    Based on brand colors and contemporary web design principles
=====================================================================*/

/* ===== CSS VARIABLES & DESIGN TOKENS ===== */
:root {
  /* Brand Colors - Based on Map-OS Logo (Orange/Coral) */
  --color-primary: #FF6600;
  --color-primary-light: #FF8533;
  --color-primary-dark: #CC5200;
  --color-secondary: #FFA366;
  --color-accent: #FFB380;

  /* Neutral Colors */
  --color-dark: #2c3e50;
  --color-dark-light: #34495e;
  --color-gray: #7f8c8d;
  --color-gray-light: #bdc3c7;
  --color-light: #ecf0f1;
  --color-white: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #FF6600 0%, #FF8533 100%);
  --gradient-hero: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #FF6600 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(44, 62, 80, 0.95) 0%, rgba(255, 102, 0, 0.1) 100%);

  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Inter', 'Roboto', sans-serif;

  /* Font Sizes */
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */
  --font-size-3xl: 1.875rem;
  /* 30px */
  --font-size-4xl: 2.25rem;
  /* 36px */
  --font-size-5xl: 3rem;
  /* 48px */
  --font-size-6xl: 3.75rem;
  /* 60px */

  /* Spacing Scale (8px base) */
  --space-1: 0.5rem;
  /* 8px */
  --space-2: 1rem;
  /* 16px */
  --space-3: 1.5rem;
  /* 24px */
  --space-4: 1rem;
  /* 32px */
  --space-5: 2.5rem;
  /* 40px */
  --space-6: 3rem;
  /* 48px */
  --space-8: 4rem;
  /* 64px */
  --space-10: 5rem;
  /* 80px */
  --space-12: 6rem;
  /* 96px */

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(235, 68, 53, 0.3);

  /* Border Radius */
  --radius-sm: 0.375rem;
  /* 6px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */
  --radius-xl: 1rem;
  /* 16px */
  --radius-2xl: 1.5rem;
  /* 24px */
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ===== GLOBAL RESETS & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-gray);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-3xl);
  }

  h3 {
    font-size: var(--font-size-2xl);
  }
}

p {
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-dark);
}

/* ===== MODERN BUTTON STYLES ===== */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: width var(--transition-base);
  z-index: -1;
}

.btn-modern:hover::before {
  width: 100%;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-modern:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--color-light);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

/* Header button specific */
.header-action-area .btn-modern {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.glass-dark {
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== MODERN CARD STYLES ===== */
.card-modern {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-3xl);
  color: var(--color-white);
  box-shadow: var(--shadow-glow);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.card-text {
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== SECTION STYLES ===== */
.section-modern {
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section-modern {
    padding: var(--space-8) 0;
  }
}

.section-title-modern {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-subtitle {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  display: block;
}

.section-heading {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

@media (max-width: 768px) {
  .section-heading {
    font-size: var(--font-size-3xl);
  }
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--color-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== HEADER MODERN STYLES ===== */
.header-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  transition: all 0.3s ease;
  padding: var(--space-2) 0;
  /* Reduzido de space-3 */
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  box-shadow: 0 4px 20px rgba(255, 102, 0, 0.08);
}

/* Header quando scrollado - Fundo escuro com texto branco */
.header-modern.scrolled {
  padding: var(--space-1) 0;
  /* Reduzido de space-2 */
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%);

  .header-modern .logo-main {
    display: block;
  }

  .header-modern .logo-light {
    display: none;
  }

  /* Trocar para logo clara quando scrollado (fundo escuro) */
  .header-modern.scrolled .logo-main {
    display: none;
  }

  gap: var(--space-4);
}

.nav-modern {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-modern li {
  position: relative;
}

.nav-modern a {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  position: relative;
  padding: var(--space-2) 0;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Texto branco quando scrollado */
.header-modern.scrolled .nav-modern a {
  color: var(--color-white);
}

.nav-modern a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-modern a:hover,
.nav-modern a.active {
  color: var(--color-primary);
}

/* Hover branco quando scrollado */
.header-modern.scrolled .nav-modern a:hover,
.header-modern.scrolled .nav-modern a.active {
  color: var(--color-primary-light);
}

.nav-modern a:hover::after,
.nav-modern a.active::after {
  width: 100%;
}

.header-align {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.header-action-area {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* Responsive visibility utilities */
.hide-mobile {
  display: flex !important;
}

.show-mobile {
  display: none !important;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: flex !important;
  }
}

/* Botão download com melhor contraste quando scrollado */
.header-modern.scrolled .header-action-area .btn-modern {
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

/* Mobile Menu Button */
.btn-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  margin-left: auto;
}

.btn-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.btn-menu:hover span {
  background: var(--color-primary-dark);
}

/* Mobile menu button color when header is scrolled (dark background) */
.header-modern.scrolled .btn-menu span {
  background: var(--color-white);
}

.header-modern.scrolled .btn-menu:hover span {
  background: var(--color-primary-light);
}

/* Mobile Menu Styles */
.off-canvas-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  visibility: hidden;
  opacity: 0;
  transition: all var(--transition-base);
}

.off-canvas-wrapper.active {
  visibility: visible;
  opacity: 1;
}

.off-canvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.off-canvas-content {
  position: absolute;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--color-white);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transition: right var(--transition-base);
  overflow-y: auto;
}

.off-canvas-wrapper.active .off-canvas-content {
  right: 0;
}

.off-canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-light);
}

.off-canvas-header .logo-area img {
  height: 40px;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--color-dark);
  cursor: pointer;
  padding: var(--space-2);
  line-height: 1;
  transition: color var(--transition-base);
}

.btn-close:hover {
  color: var(--color-primary);
}

.off-canvas-item {
  padding: var(--space-4);
}

.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  margin-bottom: var(--space-2);
}

.mobile-nav a {
  display: block;
  padding: var(--space-3);
  color: var(--color-dark);
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--gradient-primary);
  color: var(--color-white);
}

/* ===== HERO SECTION MODERN ===== */
.hero-modern {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  /* Espaço suficiente para o header fixo */
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 50px 50px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  color: var(--color-white);
  padding-top: 1em;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  font-weight: 400;
  margin-bottom: var(--space-6);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-buttons {
    flex-wrap: nowrap;
  }

  .hero-buttons .btn-modern {
    width: auto !important;
    min-width: auto;
  }
}

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ===== STATS SECTION ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.stat-card {
  text-align: center;
  padding: var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
  display: block;
}

.stat-label {
  font-size: var(--font-size-base);
  color: var(--color-gray);
  font-weight: 500;
}

/* ===== FOOTER MODERN ===== */
.footer-modern {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-10) 0 var(--space-5);
  position: relative;
}

/* ===== SUPPORTER CARD STYLES ===== */
/* Compact spacing for Support section to fit on one screen */
#apoio.section-modern {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

#apoio .section-title-modern {
  margin-bottom: var(--space-4);
}

/* Swiper overrides for Support Section */
.supporters-slider-container {
  padding: var(--space-4);
  /* Add padding around to prevent shadow clipping */
  padding-bottom: 60px;
  /* Explicit large space at bottom for pagination */
  margin: 0 calc(var(--space-4) * -1);
  /* Negative margin to offset padding visually if needed */
}

/* Center single supporter card using flexbox */
.supporters-slider-container.single-supporter {
  display: flex;
  justify-content: center;
  align-items: center;
}

.supporters-slider-container .swiper-pagination {
  bottom: 0px !important;
  /* Fix to absolute bottom */
  padding-bottom: 10px;
  /* Small cushion */
}

.supporter-card {
  padding: var(--space-4);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Ensure shadow is visible */
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Subtle border for definition */
}

.supporter-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.supporter-logo-area {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  transition: all var(--transition-base);
  text-decoration: none !important;
  /* Ensure no underline for link */
}

.supporter-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.supporter-card:hover .supporter-logo-area {
  background: white;
  box-shadow: inset 0 0 0 2px var(--color-primary-light);
}

.supporter-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  line-height: 1.6;
  /* Increased line-height for readability */
  max-height: 4.8em;
  /* 1.6 * 3 lines = 4.8em to fit perfectly */
}

.supporter-card:hover .supporter-description {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  max-height: 300px;
  /* Increased to ensure full text fits */
  overflow: visible;
}

/* Center single supporter card - constrain wrapper width */
.supporters-slider-container.single-supporter .swiper-wrapper {
  display: block !important;
  max-width: 400px;
  width: 100%;
}

.supporters-slider-container.single-supporter .swiper-slide {
  width: 100% !important;
}

/* ===== CUSTOM MODAL STYLES ===== */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.custom-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal {
  background: var(--color-white);
  width: 90%;
  max-width: 800px;
  /* Increased to 800px to prevent scrolling */
  max-height: 90vh;
  /* Ensure it fits in viewport */
  overflow-y: auto;
  /* Enable scrolling if content is too long */
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.custom-modal-overlay.active .custom-modal {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  /* Ensure background to cover content below */
  width: 30px;
  height: 30px;
  border-radius: 50%;
  /* Make it circular */
  border: none;
  font-size: 1.5rem;
  color: var(--color-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
  /* Ensure it is on top of everything */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.close-modal:hover {
  color: var(--color-primary);
  transform: rotate(90deg);
  /* Visual feedback on hover */
  background: var(--color-light);
}

/* Modal Form Styles */
.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.modal-form-full {
  grid-column: 1 / -1;
}

.form-group {
  margin-bottom: var(--space-3);
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 500;
  color: var(--color-dark);
  font-size: var(--font-size-sm);
}

.form-control-modern {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  transition: all 0.2s ease;
  background: #f8f9fa;
}

.form-control-modern:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

textarea.form-control-modern {
  resize: vertical;
  min-height: 100px;
}

@media (max-width: 768px) {
  .modal-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Captcha Styles */
.captcha-container {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

@media (max-width: 576px) {
  .captcha-container {
    flex-direction: column;
    align-items: stretch;
  }

  .captcha-canvas {
    width: 100%;
    height: 60px;
    /* Ensure visible height */
  }
}

.captcha-canvas {
  background-color: #f0f0f0;
  border-radius: var(--radius-md);
  border: 1px solid #ddd;
  cursor: pointer;
}

.refresh-captcha {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  padding: var(--space-1);
}

.refresh-captcha:hover {
  transform: rotate(180deg);
}

.support-info-box {
  background: var(--color-light);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  text-align: left;
}

.copy-box {
  background: #e9ecef;
  padding: 10px;
  border-radius: 4px;
  border: 1px dashed var(--color-gray);
  text-align: center;
  font-family: monospace;
  color: var(--color-dark);
}

.modal-open-fix {
  overflow: hidden;
}

/* Swiper Pagination Customization */
.swiper-pagination-bullet-active {
  background: var(--color-primary) !important;
}


.footer-modern a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-base);
}

.footer-modern a:hover {
  color: var(--color-primary-light);
}

.footer-title {
  color: var(--color-white);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.social-icons {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xl);
  transition: all var(--transition-base);
}

.social-icon:hover {
  background: var(--gradient-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--font-size-sm);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--color-primary);
}

.text-white {
  color: var(--color-white);
}

.text-dark {
  color: var(--color-dark);
}

.text-gray {
  color: var(--color-gray);
}

.bg-primary {
  background: var(--gradient-primary);
}

.bg-dark {
  background: var(--color-dark);
}

.bg-light {
  background: var(--color-light);
}

.bg-white {
  background: var(--color-white);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-5 {
  margin-bottom: var(--space-5);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mt-0 {
  margin-top: 0;
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-3 {
  margin-top: var(--space-3);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-5 {
  margin-top: var(--space-5);
}

.mt-6 {
  margin-top: var(--space-6);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-out;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ===== SUPPORTER CARDS RESPONSIVE ===== */
@media (max-width: 991px) {
  .supporter-card {
    padding: var(--space-4);
  }

  .supporter-logo-area {
    height: 100px;
  }
}

@media (max-width: 768px) {
  .supporter-card {
    padding: var(--space-3);
  }

  .supporter-logo-area {
    height: 90px;
  }

  .supporter-description {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 576px) {
  .supporters-slider-container {
    padding-bottom: var(--space-8);
  }

  .supporter-card {
    padding: var(--space-3);
  }

  .supporter-logo-area {
    height: 80px;
  }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--font-size-xl);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* ===== MOBILE MENU FIX ===== */
/* Force SlickNav menu items to display on separate lines */
.res-mobile-menu ul,
.res-mobile-menu .slicknav_nav,
.off-canvas-content ul {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
}

.res-mobile-menu .slicknav_nav li,
.off-canvas-content li {
  display: block !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.res-mobile-menu .slicknav_nav li a,
.off-canvas-content li a {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
}

/* ===== SOCIAL ICONS EXTENSION ===== */
.social_whatsapp:before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.53 6.53 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.53 6.53 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  vertical-align: middle;
}