/* CSS Variables for Monochromatic Color Scheme with Dynamic Gradients */
:root {
  /* Primary Monochromatic Colors */
  --primary-100: #f8f9fa;
  --primary-200: #e9ecef;
  --primary-300: #dee2e6;
  --primary-400: #ced4da;
  --primary-500: #adb5bd;
  --primary-600: #6c757d;
  --primary-700: #495057;
  --primary-800: #343a40;
  --primary-900: #212529;
  
  /* Accent Colors */
  --accent-primary: #2563eb;
  --accent-primary-dark: #1d4ed8;
  --accent-primary-light: #3b82f6;
  --accent-secondary: #64748b;
  --accent-success: #22c55e;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  
  /* Gradient Definitions */
  --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-dark) 100%);
  --gradient-soft: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
  --gradient-dark: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(29, 78, 216, 0.9) 100%);
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 15px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-800);
  background-color: var(--primary-100);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-900);
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 600; }
h3 { font-size: 2rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 500; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
  margin-bottom: 1rem;
  color: var(--primary-700);
}

/* Global Button Styles */
.btn {
  font-family: var(--font-heading);
  font-weight: 500;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  transition: all var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Hover Effects */
.hover-effect {
  transition: all var(--transition-smooth);
}

.hover-effect:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.hover-lift {
  transition: all var(--transition-smooth);
}

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

.hover-zoom {
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.hover-zoom:hover {
  transform: scale(1.02);
}

/* Header Styles */
.navbar {
  padding: 15px 0;
  backdrop-filter: blur(10px);
  background: rgba(33, 37, 41, 0.95) !important;
  transition: all var(--transition-smooth);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: white !important;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: white !important;
  transform: translateY(-1px);
}

.nav-link:before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: all var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover:before {
  width: 80%;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: var(--gradient-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: #FFFFFF !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
}

.hero-section .lead {
  color: #FFFFFF !important;
  font-size: 1.2rem;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Animation Classes */
.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
}

.animate-fade-in-delay {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.animate-fade-in-delay-2 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  color: var(--primary-900);
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--primary-600);
  font-size: 1.1rem;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-smooth);
}

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.card-title {
  color: var(--primary-900);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--primary-700);
  line-height: 1.6;
}

/* Instructor Cards */
.instructor-card {
  height: 100%;
}

.instructor-card .card-image {
  height: 300px;
}

/* Resource Cards */
.resource-card {
  height: 100%;
}

.resource-card .card-image {
  height: 250px;
}

/* Success Story Cards */
.success-story-card {
  height: 100%;
}

.success-story-card .card-image {
  height: 250px;
}

.success-metrics {
  margin-top: 1rem;
}

.success-metrics .badge {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

/* Gallery Styles */
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-overlay {
  background: var(--gradient-overlay);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h5 {
  color: white;
  margin-bottom: 0.5rem;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.9);
}

/* Innovation Section */
.innovation-content {
  padding: 2rem 0;
}

.feature-item {
  padding: 1rem 0;
}

.feature-icon {
  flex-shrink: 0;
}

.innovation-stats {
  margin-top: 3rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* External Resources */
.external-resources-section {
  background: var(--gradient-soft);
  border: 1px solid var(--primary-300);
}

.external-resource-item {
  transition: all var(--transition-smooth);
}

.external-resource-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.external-resource-item a {
  color: var(--accent-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.external-resource-item a:hover {
  color: var(--accent-primary-dark);
}

/* Contact Section */
.contact-form-wrapper {
  background: var(--gradient-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.form-control,
.form-select {
  border-radius: 8px;
  border: 2px solid var(--primary-300);
  padding: 12px 16px;
  font-family: var(--font-body);
  transition: all var(--transition-smooth);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
  color: var(--primary-800);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-info-item {
  background: var(--gradient-soft);
  border-radius: 12px;
  transition: all var(--transition-smooth);
}

.contact-info-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  margin-bottom: 1rem;
}

/* Footer Styles */
footer {
  background: var(--gradient-dark) !important;
  color: white;
}

footer h5,
footer h6 {
  color: white;
  margin-bottom: 1.5rem;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
}

footer a:hover {
  color: white;
  text-decoration: none;
  transform: translateX(3px);
}

.social-links a {
  display: inline-block;
  padding: 0.5rem;
  margin-right: 1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-smooth);
}

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

/* Page-specific Styles */
.page-content {
  padding-top: 100px;
  min-height: calc(100vh - 200px);
}

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
}

.success-content {
  text-align: center;
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
}

.success-icon {
  font-size: 4rem;
  color: var(--accent-success);
  margin-bottom: 1.5rem;
}

/* Cookie Consent */
.cookie-consent {
  backdrop-filter: blur(10px);
}

.cookie-consent .btn {
  margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .card-image {
    height: 200px;
  }
  
  .instructor-card .card-image,
  .success-story-card .card-image {
    height: 220px;
  }
  
  .navbar-collapse {
    background: rgba(33, 37, 41, 0.98);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
  }
  
  .contact-form-wrapper {
    padding: 2rem !important;
  }
  
  .success-content {
    padding: 2rem;
    margin: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* 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;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--primary-600);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Print styles */
@media print {
  .navbar,
  footer,
  .hero-section,
  #cookieConsent {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .page-content {
    padding-top: 0;
  }
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-soft {
  background: var(--gradient-soft);
}

.shadow-custom {
  box-shadow: var(--shadow-lg);
}

.border-radius-lg {
  border-radius: 16px;
}

.border-radius-xl {
  border-radius: 24px;
}

/* Read More Links */
.read-more-link {
  color: var(--accent-primary);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: all var(--transition-smooth);
}

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

.read-more-link:after {
  content: ' →';
  transition: all var(--transition-fast);
}

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