:root {
  /* Retro-inspired color palette with analog color scheme */
  --primary-color: #ff6b6b;
  --primary-dark: #e55858;
  --primary-light: #ff8e8e;
  --secondary-color: #ffa96b;
  --secondary-dark: #e89057;
  --secondary-light: #ffc18e;
  --tertiary-color: #6b88ff;
  --tertiary-dark: #5873e5;
  --tertiary-light: #8ea4ff;
  --background-color: #f9f5f0;
  --dark-background: #292633;
  --light-text: #ffffff;
  --dark-text: #333333;
  --gray-text: #666666;
  --light-gray: #f4f4f4;
  --border-color: #dddddd;
  
  /* Typography */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Source Sans Pro', sans-serif;
  
  /* Transitions */
  --transition-slow: 0.5s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-fast: 0.2s ease-in-out;
  
  /* Shadows */
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  --button-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Global Styles */
body {
  font-family: var(--body-font);
  color: var(--dark-text);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.title {
  font-family: var(--heading-font);
}

.subtitle {
  font-family: var(--body-font);
  font-weight: 400;
}

a {
  color: var(--tertiary-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--tertiary-dark);
  text-decoration: none;
}

.section {
  padding: 4rem 1.5rem;
}

.container {
  padding: 0 1.5rem;
}

/* Custom button styles overriding Bulma */
.button {
  font-family: var(--body-font);
  font-weight: 600;
  border-radius: 4px;
  transition: all var(--transition-medium);
  box-shadow: var(--button-shadow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.button.is-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.button.is-light {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--dark-text);
  border-color: transparent;
}

.button.is-light:hover {
  background-color: #ffffff;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.button.is-outlined {
  background-color: transparent;
  border-width: 2px;
}

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

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

.button.is-outlined.is-info {
  color: var(--tertiary-color);
  border-color: var(--tertiary-color);
}

.button.is-outlined.is-info:hover {
  background-color: var(--tertiary-color);
  color: white;
}

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

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

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all var(--transition-medium);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar {
  min-height: 80px;
}

.navbar-brand a.navbar-item {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.navbar-burger {
  height: 80px;
  width: 80px;
}

.navbar-menu {
  transition: all var(--transition-medium);
}

.navbar-item {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  padding: 0.5rem 1rem;
}

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

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 80px; /* Account for fixed header */
}

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

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--light-text);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Partner Section */
.partners {
  background-color: #fff;
}

.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  padding: 1rem;
  transition: transform var(--transition-medium);
}

.partner-logo:hover {
  transform: scale(1.05);
}

.partner-logo img {
  max-height: 80px;
  max-width: 100%;
}

/* Accolades Section */
.accolades {
  background: linear-gradient(135deg, #f9f5f0, #f4f4f4);
  position: relative;
  overflow: hidden;
}

.accolades::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.05) 0%, rgba(255, 169, 107, 0.03) 50%, rgba(107, 136, 255, 0.02) 100%);
  transform: rotate(30deg);
  z-index: 0;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

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

.card-content h3 {
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.card-content p {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}

/* Statistics Widget */
.statistics-container {
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(107, 136, 255, 0.1));
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.statistic-widget {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-medium);
}

.statistic-widget:hover {
  transform: translateY(-5px);
  background-color: #fff;
}

.statistic-number {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1;
}

.statistic-label {
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--gray-text);
}

/* Instructors Section */
.instructors {
  background-color: #fff;
}

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

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

.progress-container {
  margin-top: 1.5rem;
}

.progress-container p {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.progress {
  margin-bottom: 1rem;
  height: 0.75rem;
  background-color: rgba(0, 0, 0, 0.05);
}

.progress.is-primary::-webkit-progress-value {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.progress.is-primary::-moz-progress-bar {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Behind the Scenes Section */
.behind-the-scenes {
  background: linear-gradient(135deg, #f4f4f4, #ffffff);
  position: relative;
}

.behind-scenes-content {
  position: relative;
  z-index: 1;
}

.behind-scenes-content img {
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.behind-scenes-content h3 {
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

.behind-scenes-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-text);
}

/* Resources Section */
.resources {
  background-color: #f9f5f0;
}

.resource-card {
  height: 100%;
}

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

.resource-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-links li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.resource-links li:last-child {
  border-bottom: none;
}

.resource-links a {
  font-weight: 600;
  transition: color var(--transition-fast);
  display: inline-block;
}

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

/* Awards Section */
.awards {
  background-color: #fff;
}

.award-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-medium);
}

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

.award-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.award-content {
  padding: 2rem;
}

.award-content h3 {
  margin-bottom: 1rem;
}

.award-content p {
  color: var(--gray-text);
}

/* Community Section */
.community {
  background: linear-gradient(135deg, #f9f5f0, #f4f4f4);
}

.community-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-medium);
}

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

.community-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.community-content {
  padding: 2rem;
}

.community-content h3 {
  margin-bottom: 1rem;
}

.community-content p {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}

/* Events Section */
.events {
  background-color: #fff;
}

.event-card {
  height: 100%;
}

.event-card .image-container {
  height: 200px;
}

.event-date {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.event-location {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 1rem;
  font-style: italic;
}

/* Events Carousel */
.events-carousel {
  position: relative;
  padding: 2rem 0;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 0 50px;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-medium);
}

.carousel-slide {
  flex: 0 0 250px;
  margin: 0 15px;
  text-align: center;
}

.carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: var(--card-shadow);
}

.carousel-slide p {
  font-weight: 600;
  color: var(--dark-text);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--button-shadow);
  transition: all var(--transition-fast);
  z-index: 2;
}

.carousel-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

/* Webinars Section */
.webinars {
  background: linear-gradient(135deg, #f4f4f4, #ffffff);
}

.webinar-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-medium);
}

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

.webinar-thumbnail {
  position: relative;
}

.webinar-thumbnail img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.webinar-duration {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.webinar-content {
  padding: 2rem;
}

.webinar-content h3 {
  margin-bottom: 0.5rem;
}

.webinar-date {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.webinar-content p {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
  background-color: #fff;
  position: relative;
}

.contact-info {
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: 12px;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item .icon {
  margin-right: 1rem;
  color: var(--primary-color);
}

.contact-form-container {
  padding: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.field {
  margin-bottom: 1.5rem;
}

.input, .textarea, .select select {
  background-color: #f9f9f9;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.checkbox {
  margin-right: 0.5rem;
}

.social-media .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Footer Section */
.footer {
  background-color: var(--dark-background);
  color: white;
  padding: 5rem 1.5rem 2rem;
}

.footer .title, .footer .subtitle {
  color: white;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

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

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

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

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

.newsletter .input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.newsletter .input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
}

.disclaimer {
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* Cookie Consent Popup */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(41, 38, 51, 0.95);
  color: white;
  z-index: 9999;
  padding: 1rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-content p {
  margin-right: 2rem;
}

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

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #f9f5f0, #f4f4f4);
}

.success-content {
  max-width: 600px;
  padding: 3rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.success-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  background-color: #fff;
}

.privacy-content, .terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
}

.privacy-content h2, .terms-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

.privacy-content p, .terms-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-text);
}

/* Responsive adjustments */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
  
  .behind-scenes-content .columns {
    flex-direction: column-reverse;
  }
  
  .behind-scenes-content .column:first-child {
    margin-top: 2rem;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    margin-top: 60px;
  }
  
  .navbar {
    min-height: 60px;
  }
  
  .navbar-burger {
    height: 60px;
    width: 60px;
  }
  
  .statistic-number {
    font-size: 2.5rem;
  }
  
  .card-image .image-container {
    height: 200px;
  }
  
  .award-item, .community-item, .webinar-item {
    margin-bottom: 2rem;
  }
  
  .award-item img, .community-item img, .webinar-item img {
    height: 200px;
  }
  
  .award-content, .community-content, .webinar-content {
    padding: 1.5rem;
  }
  
  .carousel-slide {
    flex: 0 0 200px;
    margin: 0 10px;
  }
  
  .carousel-slide img {
    height: 150px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

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

.animate-on-scroll {
  /*opacity: 0;*/
}

.animate-on-scroll.animated {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Particle animation */
@keyframes particle-animation {
  0% {
    /*opacity: 0;*/
    transform: translateY(0) rotate(0deg);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    /*opacity: 0;*/
    transform: translateY(-100px) rotate(360deg);
  }
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particle-animation 10s linear infinite;
}

/* Read more links */
.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary-dark);
}

.read-more::after {
  content: " →";
  transition: transform var(--transition-fast);
  display: inline-block;
}

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

/* Special page styles */
.about-page .hero,
.contacts-page .hero {
  height: 50vh;
}

/* Fix for images in cards */
.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}