:root {
  /* Color palette - Monochromatic scheme */
  --primary-color: #3a5a78;
  --primary-light: #4e7295;
  --primary-lighter: #7799b8;
  --primary-dark: #2a4054;
  --primary-darker: #1c2b3a;
  
  /* Accent colors */
  --accent-color: #ff7e50;
  --accent-light: #ff9e78;
  --accent-dark: #e65c2e;
  
  /* Neutral colors */
  --neutral-100: #ffffff;
  --neutral-200: #f8f9fa;
  --neutral-300: #e9ecef;
  --neutral-400: #dee2e6;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Merriweather', serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* 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 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--neutral-700);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--neutral-200);
  margin-top: 76px; /* Compensate for fixed header */
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4,
.display-5, .display-6, .section-title {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.5;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-xl);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  transition: width var(--transition-medium);
}

.text-center .section-title::after {
  left: 25%;
}

.section-title:hover::after {
  width: 100%;
  left: 0;
}

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

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Header & Navigation */
header {
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

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

.navbar-dark {
  background-color: var(--primary-darker) !important;
}

.navbar-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--neutral-100) !important;
  transition: transform var(--transition-medium);
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.navbar-nav .nav-link {
  font-family: var(--heading-font);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md) !important;
  color: var(--neutral-300) !important;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: all var(--transition-medium);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
  color: var(--neutral-100) !important;
}

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

.navbar-nav .nav-link.active {
  color: var(--neutral-100) !important;
}

.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* Buttons */
.btn {
  font-family: var(--heading-font);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transition: all var(--transition-medium);
  transform: skewX(-25deg);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--neutral-100);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  border-color: var(--neutral-100);
  color: var(--neutral-100);
}

.btn-outline-light:hover {
  background-color: var(--neutral-100);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-dark {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-dark:hover {
  background-color: var(--primary-color);
  color: var(--neutral-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xxl) 0;
  overflow: hidden;
}

.hero-section h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s forwards 0.5s;
}

.hero-section h2 {
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s forwards 0.7s;
}

.hero-section p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s forwards 0.9s;
}

.hero-section .btn {
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s forwards 1.1s;
}

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

/* Cards & Content Blocks */
.card {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

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

.card-image {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-medium);
  margin: 0 auto;
}

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

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

/* Instructors Section */
.instructor-card .card-image {
  height: 300px;
  overflow: hidden;
}

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

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

/* Methodology Section */
.timeline {
  position: relative;
  padding: var(--space-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: var(--primary-lighter);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: var(--space-xl);
  position: relative;
}

.timeline-content {
  background-color: var(--neutral-100);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: relative;
  width: calc(50% - 30px);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: -40px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -40px;
}

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

/* Community Section */
.image-container {
  overflow: hidden;
  position: relative;
}

.image-container img {
  width: 100%;
  transition: transform var(--transition-slow);
}

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

/* Awards Section */
.award-card {
  text-align: center;
}

.award-card .card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.award-card .card-image img {
  max-height: 100%;
  width: auto;
}

/* Resource Cards */
.resource-card .card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-card .card-image img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
}

/* Contact Section */
.contact-info {
  height: 100%;
}

.contact-icon {
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--neutral-400);
  padding: 0.8rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(58, 90, 120, 0.25);
}

/* Footer */
footer {
  background-color: var(--primary-darker);
  color: var(--neutral-300);
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
}

footer h4 {
  color: var(--neutral-100);
  margin-bottom: var(--space-lg);
}

footer .nav-link {
  padding: 0.3rem 0 !important;
  color: var(--neutral-400) !important;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

footer .nav-link:hover {
  color: var(--neutral-100) !important;
  transform: translateX(5px);
}

footer .social-links {
  display: flex;
  gap: var(--space-md);
}

footer .social-link {
  color: var(--neutral-400);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

footer .social-link:hover {
  color: var(--neutral-100);
  transform: translateY(-3px);
}

/* Privacy and Terms pages */
.privacy-page, .terms-page {
  padding-top: 100px;
}

/* Success page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) 0;
}

.success-content {
  max-width: 600px;
  padding: var(--space-xxl);
  background-color: var(--neutral-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: fadeIn 1s ease-in-out;
}

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

/* Read more links */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-right: 1.5rem;
}

.read-more::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover::after {
  transform: translate(5px, -50%);
}

/* Media Queries */
@media (max-width: 991.98px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
  
  .timeline-item .timeline-content::before {
    left: -40px !important;
    right: auto !important;
  }
}

@media (max-width: 767.98px) {
  body {
    margin-top: 60px;
  }
  
  .hero-section {
    min-height: 70vh;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: 60vh;
    padding: var(--space-xl) 0;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
  
  .card-image {
    height: 200px;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Utilities */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

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

.rounded {
  border-radius: var(--radius-md) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-light {
  background-color: var(--neutral-200) !important;
}

.bg-dark {
  background-color: var(--neutral-900) !important;
}

.text-white {
  color: var(--neutral-100) !important;
}

.text-muted {
  color: var(--neutral-600) !important;
}

html,body{
  overflow-x: hidden;
}