/* ===== CSS VARIABLES ===== */
:root {
  /* Color Palette - Analogous Scheme */
  --primary-color: #2E8B57;
  --primary-light: #3CB371;
  --primary-dark: #228B22;
  --secondary-color: #4682B4;
  --secondary-light: #87CEEB;
  --secondary-dark: #4169E1;
  --accent-color: #FFB347;
  --accent-light: #FFDAB9;
  --accent-dark: #FF8C00;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #E9ECEF;
  --dark-gray: #6C757D;
  --text-dark: #343A40;
  --text-light: #6C757D;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(46, 139, 87, 0.9) 0%, rgba(70, 130, 180, 0.9) 100%);
  
  /* Shadows - Neumorphism */
  --shadow-light: 8px 8px 16px rgba(0, 0, 0, 0.1), -8px -8px 16px rgba(255, 255, 255, 0.8);
  --shadow-dark: inset 8px 8px 16px rgba(0, 0, 0, 0.1), inset -8px -8px 16px rgba(255, 255, 255, 0.8);
  --shadow-hover: 12px 12px 24px rgba(0, 0, 0, 0.15), -12px -12px 24px rgba(255, 255, 255, 0.9);
  --shadow-card: 6px 6px 12px rgba(0, 0, 0, 0.1), -6px -6px 12px rgba(255, 255, 255, 0.7);
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Borders */
  --border-radius: 15px;
  --border-radius-sm: 8px;
  --border-radius-lg: 25px;
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--light-gray);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== GLOBAL BUTTON STYLES ===== */
.btn, 
button:not(.navbar-burger):not(.dropdown-trigger), 
input[type='submit'],
.button {
  font-family: var(--font-heading);
  font-weight: 500;
  border: none;
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-light);
}

.btn:hover,
button:not(.navbar-burger):not(.dropdown-trigger):hover,
input[type='submit']:hover,
.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--white);
}

.btn:active,
button:not(.navbar-burger):not(.dropdown-trigger):active,
input[type='submit']:active,
.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-dark);
}

.btn-neumorphic {
  background: var(--light-gray);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.btn-neumorphic:hover {
  box-shadow: var(--shadow-hover);
  color: var(--text-dark);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-color);
}

.btn-external {
  background: var(--gradient-accent);
}

.btn-filter {
  background: var(--white);
  color: var(--text-dark);
  margin: 0 var(--spacing-xs);
}

.btn-filter.active {
  background: var(--gradient-primary);
  color: var(--white);
}

/* Read More Links */
.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.read-more:after {
  content: '→';
  margin-left: var(--spacing-xs);
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.read-more:hover:after {
  transform: translateX(3px);
}

/* ===== NEUMORPHISM COMPONENTS ===== */
.card-neumorphic {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  transition: all var(--transition-normal);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-neumorphic:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.card-neumorphic .card-image {
  width: 100%;
  margin-bottom: var(--spacing-sm);
}

.card-neumorphic .card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
}

.input-neumorphic {
  background: var(--white);
  border: none;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-dark);
  padding: var(--spacing-sm);
  transition: all var(--transition-fast);
}

.input-neumorphic:focus {
  box-shadow: var(--shadow-light);
  outline: none;
}

/* ===== HEADER ===== */
.header-main {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: var(--spacing-sm) 0;
}

.navbar-brand .logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-dark);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
}

.navbar-item:hover::after {
  width: 100%;
}

.navbar-item:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xl) 0;
}

.hero-section .title,
.hero-section .subtitle,
.hero-section .content {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

.fade-in-delay {
  animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
  animation: fadeIn 1s ease-out 0.6s both;
}

.fade-in-delay-3 {
  animation: fadeIn 1s ease-out 0.9s both;
}

.slide-in-left {
  animation: slideInFromLeft 0.8s ease-out;
}

.bounce-in {
  animation: bounce 1s ease-out;
}

/* ===== STATISTICS SECTION ===== */
.statistics-section {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.stat-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.inflation-chart {
  margin-top: var(--spacing-md);
  text-align: center;
}

/* ===== SUCCESS STORIES SECTION ===== */
.success-stories-section {
  padding: var(--spacing-xl) 0;
  background: var(--light-gray);
}

.success-stories-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.success-stories-section .card-image {
  width: 100%;
  margin-bottom: var(--spacing-sm);
}

.success-stories-section .card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
}

/* ===== BLOG SECTION ===== */
.blog-section {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.blog-section .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-section .card-image img {
  height: 300px;
  object-fit: cover;
}

.tags {
  margin-top: auto;
  padding-top: var(--spacing-sm);
}

.tag {
  margin-right: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: var(--border-radius-sm);
}

/* ===== EXTERNAL RESOURCES SECTION ===== */
.external-resources-section {
  padding: var(--spacing-xl) 0;
  background: var(--light-gray);
}

.external-resources-section .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  justify-content: space-between;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.progress-container {
  margin-top: var(--spacing-md);
}

.progress {
  height: 12px;
  border-radius: var(--border-radius-sm);
  background: var(--medium-gray);
  overflow: hidden;
}

.progress::-webkit-progress-bar {
  background: var(--medium-gray);
  border-radius: var(--border-radius-sm);
}

.progress::-webkit-progress-value {
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
}

/* ===== EVENTS CALENDAR SECTION ===== */
.events-section {
  padding: var(--spacing-xl) 0;
  background: var(--light-gray);
}

.calendar-container {
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--medium-gray);
}

.calendar-nav {
  display: flex;
  gap: var(--spacing-xs);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--medium-gray);
  border-radius: var(--border-radius-sm);
  padding: 2px;
}

.calendar-day {
  background: var(--white);
  padding: var(--spacing-sm);
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-heading);
}

.calendar-day:hover {
  background: var(--primary-light);
  color: var(--white);
}

.calendar-day.has-event {
  background: var(--accent-light);
  color: var(--text-dark);
  font-weight: 600;
}

/* ===== MEDIA SECTION ===== */
.media-section {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.media-gallery {
  width: 100%;
}

.gallery-filters {
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  margin-bottom: 0;
}

.gallery-item .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
}

.gallery-item.hidden {
  display: none;
}

/* ===== WEBINARS SECTION ===== */
.webinars-section {
  padding: var(--spacing-xl) 0;
  background: var(--light-gray);
}

.webinar-info {
  margin: var(--spacing-md) 0;
}

.webinar-schedule .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ===== WORKSHOPS SECTION ===== */
.workshops-section {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.workshops-section .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.workshops-section .card-image {
  width: 100%;
  margin-bottom: var(--spacing-sm);
}

.workshops-section .card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
}

.workshop-details {
  background: var(--light-gray);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  margin: var(--spacing-sm) 0;
  width: 100%;
}

.workshop-details p {
  margin-bottom: var(--spacing-xs);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: var(--spacing-xl) 0;
  background: var(--light-gray);
}

.contact-form {
  width: 100%;
}

.contact-form .field {
  margin-bottom: var(--spacing-md);
}

.contact-form .label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  font-family: var(--font-body);
  border: none;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-dark);
  padding: var(--spacing-sm);
  transition: all var(--transition-fast);
  background: var(--white);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  box-shadow: var(--shadow-light);
  outline: none;
}

.contact-info .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer-neumorphic {
  background: var(--medium-gray);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
  box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.1);
}

.footer .title {
  color: var(--text-dark);
  font-family: var(--font-heading);
  margin-bottom: var(--spacing-sm);
}

.footer .content {
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

.footer .content a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer .content a:hover {
  color: var(--primary-dark);
  transform: translateX(3px);
}

.social-links {
  margin-top: var(--spacing-md);
}

.social-links a {
  display: inline-block;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.social-links a:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.social-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
}

.social-links a:hover::after {
  width: 100%;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
}

.success-content {
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
}

.success-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  animation: bounce 1s ease-out;
}

/* ===== PRIVACY & TERMS PAGES ===== */
.legal-page {
  padding-top: 100px;
  min-height: 100vh;
  background: var(--white);
}

.legal-content {
  padding: var(--spacing-xl) 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

.legal-content p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-lg: 1.5rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .hero-section {
    background-attachment: scroll;
  }
  
  .navbar-item {
    padding: var(--spacing-sm);
  }
  
  .stat-card {
    padding: var(--spacing-md);
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.9rem;
  }
  
  .calendar-day {
    min-height: 40px;
    padding: var(--spacing-xs);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .card-neumorphic {
    padding: var(--spacing-sm);
  }
  
  .btn, 
  button:not(.navbar-burger):not(.dropdown-trigger), 
  .button {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

/* ===== COUNTER ANIMATION ===== */
.counter {
  transition: all 1s ease-out;
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !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;
}

/* ===== FOCUS STYLES ===== */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .header-main,
  .footer-neumorphic,
  .btn,
  button,
  .social-links {
    display: none;
  }
  
  .card-neumorphic {
    box-shadow: none;
    border: 1px solid var(--medium-gray);
  }
  
  body {
    background: white;
    color: black;
  }
}