:root {
  /* Neutral color palette */
  --color-dark: #222222;
  --color-medium-dark: #444444;
  --color-medium: #666666;
  --color-medium-light: #888888;
  --color-light: #eeeeee;
  --color-white: #ffffff;
  
  /* Accent colors */
  --color-primary: #4a4a4a;
  --color-primary-dark: #2d2d2d;
  --color-primary-light: #707070;
  --color-secondary: #9c9c9c;
  --color-secondary-dark: #7c7c7c;
  --color-secondary-light: #bcbcbc;
  --color-accent: #e1e1e1;
  
  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-brutal: 8px 8px 0 rgba(0, 0, 0, 0.8);
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--color-white);
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  position: relative;
  padding: var(--spacing-lg) 0;
}

.display-3, .display-4 {
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: var(--spacing-md);
}

/* Brutalist Texture Effect */
.brutalist-texture {
  position: relative;
}

.brutalist-texture::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('image/texture-overlay.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* Buttons */
.btn, button, input[type='submit'] {
  position: relative;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 3px solid var(--color-dark);
  background-color: var(--color-light);
  color: var(--color-dark);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-brutal);
  overflow: hidden;
  z-index: 1;
}

.btn:hover, button:hover, input[type='submit']:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.8);
}

.btn:active, button:active, input[type='submit']:active {
  transform: translate(0, 0);
  box-shadow: var(--shadow-brutal);
}

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

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

/* Links */
a {
  color: var(--color-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration-thickness: 3px;
}

/* Read More Links */
a.btn-outline-primary, .card a {
  text-decoration: none;
}

.read-more-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: all var(--transition-fast);
}

.read-more-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-dark);
  transition: width var(--transition-medium);
}

.read-more-link:hover::after {
  width: 100%;
}

/* Header */
.header-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-dark);
  padding: 1rem 0;
  transition: all var(--transition-fast);
}

.header-section.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(34, 34, 34, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -1px;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--color-white);
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--color-white);
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--spacing-xl) 0;
  margin-top: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}



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

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto var(--spacing-md);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Timeline Section */
.errors-section {
  background-color: var(--color-white);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.timeline-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.75rem;
  border-radius: 50%;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.timeline-content {
  position: relative;
  width: calc(50% - 50px);
  margin-left: auto;
  padding: 0;
  box-shadow: var(--shadow-brutal);
  border: 3px solid var(--color-dark);
  transition: transform var(--transition-fast);
}

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

.timeline-content:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.8);
}

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

.timeline-content .card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.timeline-content .card-content {
  padding: var(--spacing-md);
  background-color: var(--color-white);
}

.timeline-content h3 {
  margin-top: 0;
  font-size: 1.75rem;
  border-bottom: 2px solid var(--color-dark);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* Card Styles */
.card {
  border: 3px solid var(--color-dark);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-brutal);
  margin-bottom: var(--spacing-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-white);
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.8);
}

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

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

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

.card-content {
  padding: var(--spacing-md);
  flex: 1;
  width: 100%;
}

.card-title {
  margin-top: 0;
  font-weight: 700;
}

/* Services Section */
.services-section {
  position: relative;
}

.services-section .card {
  height: 100%;
}

/* Resources Section */
.resources-section {
  background-color: var(--color-light);
}

.resource-card {
  height: 100%;
}

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

.resource-card .card-image img {
  height: 100%;
  object-fit: cover;
}

/* Instructors Section */
.instructors-section {
  background-color: var(--color-white);
}

.instructor-card {
  text-align: center;
}

.instructor-card .card-image {
  height: 350px;
  overflow: hidden;
}

.instructor-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-role {
  color: var(--color-medium);
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

.social-links a {
  margin-right: var(--spacing-sm);
  text-decoration: none;
  font-weight: 600;
}

/* Gallery Section */
.gallery-section {
  background-color: var(--color-light);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--color-dark);
  box-shadow: var(--shadow-brutal);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  height: 250px;
}

.gallery-item:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.8);
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--color-white);
  padding: var(--spacing-sm);
  transform: translateY(100%);
  transition: transform var(--transition-medium);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-caption h5 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.gallery-caption p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* News Section */
.news-section {
  background-color: var(--color-white);
}

.news-card {
  height: 100%;
}

.news-date {
  color: var(--color-medium);
  font-size: 0.9rem;
  font-style: italic;
}

/* Contact Section */
.contact-section {
  background-color: var(--color-light);
}

.contact-info {
  height: 100%;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-dark);
}

.contact-form .form-control {
  border: 2px solid var(--color-dark);
  border-radius: 0;
  padding: 0.75rem;
  font-family: var(--font-body);
}

.contact-form .form-control:focus {
  box-shadow: none;
  border-color: var(--color-dark);
}

.contact-form label {
  font-weight: 600;
}

.form-check-input {
  border-radius: 0;
  border: 2px solid var(--color-dark);
}

.form-check-input:checked {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
}

/* Footer Section */
.footer-section {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-dark);
}

.footer-section h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 10px;
  display: inline-block;
}

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

.footer-links a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.footer-section .social-links a {
  color: var(--color-white);
  margin-right: var(--spacing-md);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section .social-links a:hover {
  color: var(--color-secondary);
}

.newsletter-form .form-control {
  border: 2px solid var(--color-white);
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Cookie Consent */
.cookie-consent {
  border-top: 3px solid var(--color-white);
}

.cookie-consent p {
  margin-bottom: 0;
}

/* Success Page */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--spacing-lg);
}

.success-page .icon {
  font-size: 5rem;
  color: var(--color-dark);
  margin-bottom: var(--spacing-md);
}

/* Privacy & Terms Pages */
.content-page {
  padding-top: 100px;
  padding-bottom: var(--spacing-lg);
}

.content-page .container {
  max-width: 800px;
}

.content-page h1 {
  margin-bottom: var(--spacing-md);
  border-bottom: 3px solid var(--color-dark);
  padding-bottom: 10px;
}

.content-page h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  font-size: 1.75rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.fade-in {
  animation: fadeIn var(--transition-slow) forwards;
  opacity: 0;
}

.scale-in {
  animation: scaleIn var(--transition-slow) forwards;
  opacity: 0;
}

.slide-in {
  animation: slideIn var(--transition-slow) forwards;
  opacity: 0;
}

/* Animation Delays */
.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.5s;
}

.delay-4 {
  animation-delay: 0.7s;
}

/* Media Queries */
@media (max-width: 991.98px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-number {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 80px;
    margin-right: 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }
  
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .hero-section {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .display-3, .display-4 {
    font-size: 2.25rem;
  }
}

@media (max-width: 575.98px) {
  .card-image img {
    height: 200px;
  }
  
  .instructor-card .card-image {
    height: 300px;
  }
  
  .gallery-item {
    height: 200px;
  }
}