:root {
  /* Tetrad color scheme */
  --primary-color: #0056b3;
  --primary-dark: #003d80;
  --primary-light: #4c8ddb;
  --secondary-color: #b30056;
  --secondary-dark: #80003d;
  --secondary-light: #db4c8d;
  --accent1-color: #56b300;
  --accent1-dark: #3d8000;
  --accent1-light: #8ddb4c;
  --accent2-color: #00b356;
  --accent2-dark: #00803d;
  --accent2-light: #4cdb8d;

  /* Neutral colors */
  --dark: #1a1a2e;
  --medium-dark: #2c2c3e;
  --medium: #4a4a6a;
  --medium-light: #7777a0;
  --light: #f0f2f5;
  --white: #ffffff;

  /* Typography */
  --heading-font: 'Oswald', sans-serif;
  --body-font: 'Nunito', sans-serif;
  --base-font-size: 16px;
  --h1-size: 3.5rem;
  --h2-size: 2.5rem;
  --h3-size: 1.75rem;
  --h4-size: 1.25rem;
  --small-font: 0.875rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;

  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-round: 50%;
  --box-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
  --box-shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.1);
  --box-shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --container-width: 1200px;
  --container-padding: 1.5rem;
  --section-spacing: 5rem;
}

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

html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
}

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

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

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

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

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

h1 {
  font-size: var(--h1-size);
}

h2 {
  font-size: var(--h2-size);
}

h3 {
  font-size: var(--h3-size);
}

h4 {
  font-size: var(--h4-size);
}

p {
  margin-bottom: var(--spacing-md);
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Button Styles */
.btn, 
button:not(.hamburger-menu),
input[type='submit'] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-medium);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 86, 179, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 4px 6px rgba(179, 0, 86, 0.2);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(179, 0, 86, 0.3);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0;
  background: none;
  border: none;
  transition: all var(--transition-fast);
}

.btn-link:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.btn-link .arrow {
  margin-left: 5px;
  transition: transform var(--transition-fast);
}

.btn-link:hover .arrow {
  transform: translateX(5px);
}

.btn-full {
  width: 100%;
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--medium);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--box-shadow-light);
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-medium);
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--box-shadow-medium);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: block;
}

.logo img {
  max-height: 60px;
  width: auto;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-list li {
  margin-left: var(--spacing-lg);
}

.nav-list a {
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-list a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-medium);
}

.nav-list a:hover:after {
  width: 100%;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  border-radius: 3px;
  transition: all var(--transition-fast);
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

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

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-lg);
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  color: var(--white);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
}

/* Features Section */
.features {
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  height: 100%;
}

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

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

.card-image {
  overflow: hidden;
}

.image-container {
  height: 250px;
  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: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

.card-content p {
  margin-bottom: var(--spacing-lg);
  color: var(--medium);
  flex-grow: 1;
}

/* Process Section */
.process {
  background-color: var(--light);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.process-step {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
  padding: var(--spacing-lg);
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-medium);
}

.step-number {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  opacity: 0.8;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--dark);
}

.step-content p {
  color: var(--medium);
}

/* Innovation Section */
.innovation {
  background-color: var(--white);
}

.innovation-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xl);
}

.innovation-text {
  flex: 1 1 450px;
}

.innovation-text h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

.innovation-text p {
  color: var(--medium);
  margin-bottom: var(--spacing-lg);
}

.innovation-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.innovation-feature {
  padding: var(--spacing-md);
  background-color: var(--light);
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-medium);
}

.innovation-feature:hover {
  transform: translateY(-5px);
}

.innovation-feature h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.innovation-feature p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--medium);
}

.innovation-image {
  flex: 1 1 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.innovation-image img {
  max-width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-medium);
}

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

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.resource-card {
  height: 100%;
}

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

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.instructor-card {
  height: 100%;
}

.instructor-card .card-content .instructor-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.accordion {
  margin-top: var(--spacing-md);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  border-bottom: 1px solid var(--light);
  transition: all var(--transition-fast);
}

.accordion-header:hover {
  color: var(--primary-dark);
}

.accordion-header .icon {
  font-weight: bold;
  transition: transform var(--transition-fast);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
}

.accordion-content ul {
  padding: var(--spacing-md) 0;
}

.accordion-content li {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-md);
  position: relative;
}

.accordion-content li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

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

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

.contact-info {
  flex: 1 1 400px;
}

.contact-info h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

.contact-info p {
  color: var(--medium);
  margin-bottom: var(--spacing-lg);
}

.contact-details {
  margin-bottom: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.contact-item .icon {
  font-size: 1.25rem;
  margin-right: var(--spacing-md);
  color: var(--primary-color);
}

.contact-item p {
  margin-bottom: 0;
}

.contact-map {
  margin-top: var(--spacing-lg);
}

.contact-map img {
  width: 100%;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-light);
}

.contact-form {
  flex: 1 1 400px;
  background-color: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-medium);
}

.contact-form h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

.contact-form p {
  color: var(--medium);
  margin-bottom: var(--spacing-lg);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--medium-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-md);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-toggle {
  display: flex;
  align-items: center;
}

.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  background-color: #ccc;
  border-radius: 10px;
  margin-right: var(--spacing-md);
  transition: background-color var(--transition-fast);
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(16px);
}

.toggle-label {
  font-size: 0.9rem;
  color: var(--medium);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  flex: 1 1 300px;
}

.footer-logo img {
  margin-bottom: var(--spacing-md);
}

.footer-logo p {
  color: var(--light);
  opacity: 0.8;
}

.footer-links {
  flex: 2 1 600px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

.footer-links-column {
  flex: 1 1 150px;
}

.footer-links-column h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.footer-links-column h3:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links-column ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-links-column ul li a {
  color: var(--light);
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.footer-links-column ul li a:hover {
  color: var(--white);
  opacity: 1;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--light);
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark);
  color: var(--white);
  padding: var(--spacing-lg);
  z-index: 999;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
}

.cookie-content a {
  color: var(--primary-light);
  text-decoration: underline;
}

.btn-cookie {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

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

.success-content {
  max-width: 600px;
}

.success-icon {
  font-size: 5rem;
  color: var(--accent1-color);
  margin-bottom: var(--spacing-lg);
}

.success-content h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
}

.success-content p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xl);
}

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

.privacy-content,
.terms-content {
  background-color: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-light);
}

.privacy-content h1,
.terms-content h1 {
  margin-bottom: var(--spacing-lg);
}

.privacy-content h2,
.terms-content h2 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  font-size: 1.75rem;
}

.privacy-content p,
.terms-content p {
  margin-bottom: var(--spacing-md);
}

.privacy-content ul,
.terms-content ul {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-lg);
  list-style-type: disc;
}

.privacy-content ul li,
.terms-content ul li {
  margin-bottom: var(--spacing-sm);
}

/* Media Queries */
@media (max-width: 992px) {
  :root {
    --h1-size: 3rem;
    --h2-size: 2.2rem;
    --h3-size: 1.5rem;
    --section-spacing: 4rem;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-medium);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
    padding: var(--spacing-xl);
  }
  
  .nav-list li {
    margin: var(--spacing-md) 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-list a {
    display: block;
    padding: var(--spacing-sm) 0;
    font-size: 1.2rem;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .process-step {
    flex-direction: column;
  }
  
  .step-number {
    margin-bottom: var(--spacing-sm);
  }
  
  .innovation-content {
    flex-direction: column;
  }
  
  .innovation-image {
    order: -1;
  }
  
  .contact-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  :root {
    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.4rem;
    --section-spacing: 3rem;
  }
  
  .section-header {
    margin-bottom: var(--spacing-lg);
  }
  
  .features-grid,
  .resources-grid,
  .instructors-grid {
    grid-template-columns: 1fr;
  }
  
  .innovation-features {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --h1-size: 2.2rem;
    --h2-size: 1.8rem;
    --h3-size: 1.3rem;
  }
  
  .logo img {
    max-height: 50px;
  }
  
  .contact-form {
    padding: var(--spacing-lg);
  }
}