/* VARIABLES */
:root {
  /* Primary colors */
  --primary-color: #3c8dbc;
  --primary-dark: #2c6d91;
  --primary-light: #5ba9d5;
  
  /* Secondary colors */
  --secondary-color: #287599;
  --secondary-dark: #1e5a77;
  --secondary-light: #4490b0;
  
  /* Monochromatic scheme */
  --mono-100: #f2f8fb;
  --mono-200: #ddeef6;
  --mono-300: #b8daea;
  --mono-400: #8ec0db;
  --mono-500: #5ba9d5;
  --mono-600: #3c8dbc;
  --mono-700: #287599;
  --mono-800: #1e5a77;
  --mono-900: #153e50;
  
  /* Text colors */
  --text-dark: #153e50;
  --text-medium: #4a6d80;
  --text-light: #f2f8fb;
  
  /* Neutral colors */
  --neutral-100: #ffffff;
  --neutral-200: #f5f8fa;
  --neutral-300: #e9f0f4;
  --neutral-400: #d1dde5;
  --neutral-500: #a3b8c4;
  --neutral-600: #6e8797;
  --neutral-700: #4a6d80;
  --neutral-800: #2c4250;
  --neutral-900: #153e50;
  
  /* Font families */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Merriweather', serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Animation speed */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
  
  /* Shadow */
  --shadow-sm: 0 2px 5px rgba(21, 62, 80, 0.1);
  --shadow-md: 0 4px 12px rgba(21, 62, 80, 0.15);
  --shadow-lg: 0 8px 25px rgba(21, 62, 80, 0.2);
}

/* BASE STYLES */
html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

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

a:hover {
  color: var(--primary-dark);
}

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

section {
  padding: var(--space-xl) 0;
  position: relative;
}

.container {
  padding: 0 var(--space-lg);
}

/* BUTTONS */
.button {
  transition: all var(--transition-normal);
  font-family: var(--heading-font);
  font-weight: 600;
  border-radius: var(--radius-md);
}

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

.button.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.button.is-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button.is-primary.is-outlined {
  color: var(--primary-color);
  background-color: transparent;
  border-color: var(--primary-color);
}

.button.is-primary.is-outlined:hover {
  color: var(--neutral-100);
  background-color: var(--primary-color);
}

.button.is-light {
  color: var(--text-dark);
  background-color: var(--neutral-100);
  border-color: var(--neutral-100);
}

.button.is-light:hover {
  background-color: var(--neutral-200);
  border-color: var(--neutral-200);
  color: var(--primary-color);
}

/* NAVBAR */
.navbar {
  background-color: var(--neutral-100);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal);
  padding: var(--space-sm) 0;
}

.navbar.is-transparent {
  background-color: transparent;
  box-shadow: none;
}

.navbar-brand .title {
  color: var(--primary-color);
}

.navbar-item {
  font-family: var(--heading-font);
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary-color);
  background-color: transparent !important;
}

.navbar-burger span {
  background-color: var(--text-dark);
}

/* HERO SECTION */
.hero {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
}

.hero-body {
  z-index: 2;
}

.hero-body .title,
.hero-body .subtitle,
.hero-body p {
  color: var(--neutral-100) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-body .title {
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.hero-body .subtitle {
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
}

.hero-foot {
  padding-bottom: var(--space-lg);
  z-index: 2;
}

.arrow-down {
  animation: bounce 2s infinite;
}

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

/* SERVICES SECTION */
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--neutral-100);
  margin-bottom: var(--space-lg);
}

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

.service-card .card-image {
  overflow: hidden;
}

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

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

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

.service-card .card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card .title {
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.service-card .content {
  margin-bottom: var(--space-lg);
}

.service-card .button {
  align-self: flex-start;
  margin-top: auto;
}

/* OUR PROCESS SECTION */
.process-card {
  background-color: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  margin-bottom: var(--space-lg);
  overflow: hidden;
  height: 100%;
  transition: transform var(--transition-normal);
}

.process-card:hover {
  transform: translateY(-5px);
}

.process-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--neutral-100);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.process-card .title {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
  color: var(--primary-color);
}

.process-card .content {
  padding-left: var(--space-lg);
}

/* STATISTICS SECTION */
.stat-card {
  background-color: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: transform var(--transition-normal);
}

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

.stat-number {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.stat-title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-medium);
}

/* INSTRUCTORS SECTION */
.instructor-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--neutral-100);
  margin-bottom: var(--space-lg);
}

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

.instructor-card .card-image {
  overflow: hidden;
}

.instructor-card .image-container {
  height: 350px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.instructor-card .card-content {
  padding: var(--space-lg);
  text-align: center;
}

.instructor-card .title {
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.instructor-card .subtitle {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

/* RESOURCES SECTION */
.resource-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--neutral-100);
  margin-bottom: var(--space-lg);
}

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

.resource-card .card-image {
  overflow: hidden;
}

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

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

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

.resource-card .card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-card .title {
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.resource-card .content {
  margin-bottom: var(--space-lg);
}

.resource-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.external-resource-card {
  background-color: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.external-resource-card .title {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.external-resource-card .content {
  margin-bottom: var(--space-lg);
}

.external-resource-card .button {
  align-self: flex-start;
  margin-top: auto;
}

/* TESTIMONIALS SECTION */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity var(--transition-slow);
}

.testimonial-slide:first-child {
  position: relative;
  opacity: 1;
}

.testimonial-card {
  background-color: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.testimonial-image {
  margin-bottom: var(--space-lg);
}

.testimonial-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 4px solid var(--primary-color);
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-dark);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.testimonial-rating {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.testimonial-controls {
  margin-top: var(--space-lg);
}

.testimonial-controls .button {
  margin: 0 var(--space-xs);
}

/* BLOG SECTION */
.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--neutral-100);
  margin-bottom: var(--space-lg);
}

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

.blog-card .card-image {
  overflow: hidden;
}

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

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

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

.blog-card .card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-date {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.blog-card .title {
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.blog-card .content {
  margin-bottom: var(--space-lg);
}

.blog-card .button {
  align-self: flex-start;
  margin-top: auto;
}

/* CONTACT FORM SECTION */
.contact-form .field {
  margin-bottom: var(--space-md);
}

.contact-form .label {
  color: var(--text-dark);
  font-weight: 600;
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border-radius: var(--radius-md);
  border: 2px solid var(--neutral-300);
  transition: border-color var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-light);
}

.contact-card {
  background-color: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
}

.contact-card .icon {
  color: var(--primary-color);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.contact-hours {
  background-color: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.contact-hours ul {
  list-style-type: none;
  padding: 0;
}

.contact-hours li {
  margin-bottom: var(--space-sm);
  color: var(--text-medium);
}

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

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: var(--radius-sm);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--neutral-100);
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  left: -16px;
}

.timeline-content {
  padding: var(--space-lg);
  background-color: var(--neutral-100);
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.timeline-content .title {
  color: var(--primary-color);
}

@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 15px;
    top: 15px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0%;
  }
  
  .timeline-item:nth-child(even)::after {
    left: 15px;
  }
}

/* FOOTER */
.footer {
  background-color: var(--neutral-900);
  color: var(--neutral-300);
  padding: var(--space-xl) 0;
}

.footer .title {
  color: var(--neutral-100);
}

.footer p {
  color: var(--neutral-300);
}

.footer-links {
  list-style-type: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--neutral-300);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.social-links {
  display: flex;
  flex-direction: column;
}

.social-links a {
  color: var(--neutral-300);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
  display: inline-block;
}

.social-links a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.newsletter .input {
  background-color: var(--neutral-800);
  border-color: var(--neutral-700);
  color: var(--neutral-300);
}

.newsletter .input:focus {
  border-color: var(--primary-color);
}

/* SUCCESS PAGE */
.success-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--neutral-200);
  padding: var(--space-xl);
}

.success-container {
  max-width: 600px;
  text-align: center;
  background-color: var(--neutral-100);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--space-lg);
}

/* PRIVACY & TERMS PAGES */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

.privacy-container,
.terms-container {
  background-color: var(--neutral-100);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

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

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

.slide-in-left {
  animation: slideInLeft var(--transition-slow) ease-out forwards;
}

.slide-in-right {
  animation: slideInRight var(--transition-slow) ease-out forwards;
}

/* PARALLAX EFFECT */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.parallax-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 1;
}

.parallax-content {
  z-index: 2;
  color: var(--neutral-100);
  text-align: center;
}

/* MEDIA QUERIES */
@media screen and (max-width: 1023px) {
  .container {
    padding: 0 var(--space-md);
  }

  .columns.is-reversed-tablet {
    flex-direction: column-reverse;
    display: flex;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: var(--space-lg) 0;
  }
  
  .title.is-1 {
    font-size: 2rem;
  }
  
  .title.is-2 {
    font-size: 1.75rem;
  }
  
  .subtitle.is-3 {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .buttons {
    flex-direction: column;
  }
  
  .buttons .button {
    width: 100%;
    margin-bottom: var(--space-sm);
  }
  
  .title.is-1 {
    font-size: 1.75rem;
  }
  
  .subtitle.is-3 {
    font-size: 1.25rem;
  }
}

/* UTILITY CLASSES */
.has-text-primary {
  color: var(--primary-color) !important;
}

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

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

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

.is-centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

.is-flex-column {
  display: flex;
  flex-direction: column;
}

.mt-auto {
  margin-top: auto;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.overflow-hidden {
  overflow: hidden;
}

/* BIOMORPHIC DESIGN ELEMENTS */
.bio-shape {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background-color: var(--primary-light);
  opacity: 0.1;
  z-index: -1;
}

.bio-shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -100px;
  animation: morph 15s linear infinite alternate;
}

.bio-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -200px;
  right: -150px;
  animation: morph 12s linear infinite alternate;
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* SPECIFIC COMPONENTS */
/* Add any additional specific component styles here */