:root {
  --color-midnight: #0A0F1A;
  --color-indigo: #152238;
  --color-steel: #1E3A5F;
  --color-gold: #E4C989;
  --color-mist: #DCE7F2;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 8px rgba(10, 15, 26, 0.1);
  --shadow-md: 0 4px 16px rgba(10, 15, 26, 0.2);
  --shadow-lg: 0 8px 32px rgba(10, 15, 26, 0.3);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-midnight);
  background-color: var(--color-mist);
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-midnight);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

a {
  color: var(--color-steel);
  text-decoration: none;
}

a:hover {
  color: var(--color-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.header-wrapper {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.95) 0%, rgba(21, 34, 56, 0.9) 100%);
  padding: var(--space-md) 0;
}

.header-wrapper.scrolled {
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.98) 0%, rgba(21, 34, 56, 0.95) 100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-lg);
  position: relative;
}

.header-content .nav-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
}

.logo-text {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text:hover {
  color: var(--color-mist);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  position: relative;
  flex-shrink: 1;
  min-width: 0;
}

.nav-menu .close-menu {
  display: none;
  background: rgba(228, 201, 137, 0.1);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-sm);
  color: var(--color-gold);
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  transition: all var(--transition-base);
}

.nav-menu .close-menu::before {
  content: '×';
  font-size: 1.8rem;
  line-height: 1;
}

.nav-menu .close-menu i {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}

.nav-menu .close-menu:hover {
  background: rgba(228, 201, 137, 0.2);
  color: var(--color-mist);
  border-color: var(--color-mist);
  transform: scale(1.1);
}

.nav-menu li {
  flex-shrink: 0;
  white-space: nowrap;
}

nav {
  flex-shrink: 1;
  min-width: 0;
  order: 1;
}

.nav-menu a {
  color: var(--color-mist);
  font-size: 0.95rem;
  padding: var(--space-xs) var(--space-sm);
}

.nav-menu a:hover {
  color: var(--color-gold);
}

.burger-toggle {
  display: none;
  background: rgba(228, 201, 137, 0.1);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-sm);
  color: var(--color-gold);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
  padding: var(--space-xs) var(--space-sm);
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  order: 2;
}

@media (min-width: 769px) {
  .burger-toggle {
    display: none !important;
    visibility: hidden !important;
  }
  
  .nav-menu {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    height: auto !important;
    width: auto !important;
  }
}

@media (max-width: 768px) {
  .burger-toggle {
    display: flex;
    visibility: visible;
    opacity: 1;
  }

  body.nav-open .burger-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

.burger-toggle:hover {
  color: var(--color-mist);
  background: rgba(228, 201, 137, 0.2);
  border-color: var(--color-mist);
}

.burger-toggle i {
  display: inline-block;
  font-size: 1.5rem;
}

.burger-toggle::before {
  content: '☰';
  font-size: 1.5rem;
  line-height: 1;
  display: inline-block;
}

.burger-toggle i {
  display: none;
}

.burger-toggle.close-btn {
  display: none;
}


.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-midnight) 0%, var(--color-indigo) 50%, var(--color-steel) 100%);
  overflow: hidden;
}


.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-mist);
  padding: var(--space-xl) var(--space-md);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-lg);
  color: var(--color-gold);
  text-shadow: 0 4px 20px rgba(228, 201, 137, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.cta-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  word-wrap: normal;
  text-align: center;
  min-width: fit-content;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-midnight);
}

.btn-primary:hover {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 20px rgba(228, 201, 137, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-midnight);
  box-shadow: 0 0 20px rgba(228, 201, 137, 0.4);
}

.section-wrapper {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-midnight);
}

.pathways-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.pathway-bubble {
  background: linear-gradient(135deg, var(--color-mist) 0%, rgba(220, 231, 242, 0.8) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.pathway-bubble::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(228, 201, 137, 0.1) 0%, transparent 70%);
  opacity: 0;
}

.pathway-bubble:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pathway-bubble:hover::before {
  opacity: 1;
}

.pathway-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-steel);
}

.pathway-text {
  font-size: 1rem;
  color: var(--color-midnight);
  font-weight: 500;
  line-height: 1.6;
  margin-top: var(--space-sm);
}

.pathway-title {
  font-size: 1.1rem;
  color: var(--color-steel);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  margin-top: var(--space-sm);
}

.tutor-spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.tutor-card {
  background: var(--color-mist);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-gold);
  position: relative;
  overflow: hidden;
}

.tutor-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(228, 201, 137, 0.2) 0%, transparent 70%);
  opacity: 0;
}

.tutor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.tutor-card:hover::after {
  opacity: 1;
}

.tutor-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-md);
  border: 3px solid var(--color-gold);
  box-shadow: 0 4px 12px rgba(228, 201, 137, 0.3);
}

.tutor-name {
  text-align: center;
  color: var(--color-steel);
  margin-bottom: var(--space-xs);
}

.tutor-bio {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-indigo);
  line-height: 1.5;
}

.timeline-container {
  position: relative;
  padding: var(--space-xl) 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-steel) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  background: var(--color-mist);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--color-gold);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--color-gold);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(228, 201, 137, 0.6);
  z-index: 2;
}

.testimonials-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.testimonial-card {
  background: var(--color-mist);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--color-gold);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-md);
  color: var(--color-indigo);
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-steel);
  text-align: right;
}

.cta-panel {
  background: linear-gradient(135deg, var(--color-steel) 0%, var(--color-indigo) 100%);
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-mist);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.cta-panel p {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

.split-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
}

.split-content {
  background: var(--color-mist);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.split-content h2 {
  color: var(--color-steel);
  margin-bottom: var(--space-md);
}

.split-content p {
  color: var(--color-indigo);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.split-content ul {
  list-style: none;
  margin-top: var(--space-md);
}

.split-content ul li {
  padding-left: var(--space-lg);
  position: relative;
  margin-bottom: var(--space-sm);
  color: var(--color-steel);
  font-weight: 500;
}

.split-content ul li::before {
  content: '•';
  position: absolute;
  left: var(--space-sm);
  color: var(--color-gold);
  font-size: 1.5rem;
  line-height: 1;
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 320px;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.value-card {
  background: var(--color-mist);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-gold);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.value-card i {
  font-size: 2rem;
  color: var(--color-steel);
  margin-bottom: var(--space-sm);
}

.value-card h3 {
  color: var(--color-steel);
  margin-bottom: var(--space-xs);
}

.value-card p {
  color: var(--color-indigo);
  line-height: 1.6;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.language-card {
  background: var(--color-mist);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.language-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-steel) 100%);
}

.language-card:nth-child(even) {
  transform: translateY(20px);
}

.language-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.language-flag {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  text-align: center;
}

.language-name {
  font-size: 1.5rem;
  color: var(--color-steel);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.language-desc {
  font-size: 0.95rem;
  color: var(--color-indigo);
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.pricing-card {
  background: var(--color-mist);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 2px solid transparent;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-gold);
  box-shadow: 0 0 30px rgba(228, 201, 137, 0.3);
  transform: scale(1.05);
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
  transform: translateY(-8px) scale(1.07);
}

.pricing-name {
  font-size: 1.5rem;
  color: var(--color-steel);
  margin-bottom: var(--space-md);
}

.pricing-price {
  font-size: 2.5rem;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.pricing-period {
  color: var(--color-indigo);
  margin-bottom: var(--space-lg);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-lg);
  text-align: left;
}

.pricing-features li {
  padding: var(--space-xs) 0;
  color: var(--color-indigo);
  position: relative;
  padding-left: var(--space-md);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: bold;
}

.contact-wrapper {
  background: linear-gradient(135deg, var(--color-midnight) 0%, var(--color-indigo) 100%);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  color: var(--color-mist);
  margin: var(--space-xl) 0;
}

.contact-form {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: var(--space-xs);
  color: var(--color-gold);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: var(--space-md);
  border: 2px solid rgba(228, 201, 137, 0.3);
  border-radius: var(--radius-md);
  background: rgba(220, 231, 242, 0.1);
  color: var(--color-mist);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.9rem;
  line-height: 1.5;
}


.footer-minimal {
  background: var(--color-midnight);
  color: var(--color-gold);
  padding: var(--space-md) 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-minimal a {
  color: var(--color-gold);
  margin: 0 var(--space-xs);
}

.footer-minimal a:hover {
  color: var(--color-mist);
}

.privacy-popup {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  background: var(--color-midnight);
  color: var(--color-mist);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
  border: 2px solid var(--color-gold);
  max-width: 600px;
  margin: 0 auto;
}

.privacy-popup.show {
  display: block;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.privacy-popup-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.privacy-popup-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.thank-you-panel {
  background: linear-gradient(135deg, var(--color-steel) 0%, var(--color-indigo) 100%);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--color-mist);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-lg);
}

.thank-you-panel h1 {
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.thank-you-panel p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

body.thank-you-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.thank-you-page .section-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
}

body.thank-you-page .section-wrapper .container {
  width: 100%;
}

body.thank-you-page .footer-minimal {
  margin-top: auto;
}

.values-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.values-gallery .value-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.values-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.values-gallery .value-card .value-card-body {
  padding: var(--space-lg);
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

.error-page h1 {
  font-size: 4rem;
  color: var(--color-steel);
  margin-bottom: var(--space-md);
}

.error-page p {
  font-size: 1.2rem;
  color: var(--color-indigo);
  margin-bottom: var(--space-lg);
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-lg);
  background: var(--color-mist);
  color: var(--color-indigo);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.legal-page h1 {
  color: var(--color-midnight);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.legal-page h2 {
  color: var(--color-steel);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-page p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--color-indigo);
}

.legal-page ul {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-page li {
  margin-bottom: var(--space-xs);
  color: var(--color-indigo);
}

.legal-page a {
  color: var(--color-steel);
  text-decoration: underline;
}

.legal-page a:hover {
  color: var(--color-gold);
}


@media (max-width: 768px) {
  .header-content {
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .logo-text {
    font-size: clamp(1rem, 4vw, 1.5rem);
    order: 1;
  }

  .nav-menu:not(.active) {
    display: none !important;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-midnight);
    flex-direction: column;
    padding: var(--space-xl) var(--space-md) var(--space-md);
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .nav-menu li {
    width: 100%;
    flex-shrink: 0;
  }

  .nav-menu li a {
    display: block;
    padding: var(--space-sm);
    width: 100%;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-menu.active .close-menu {
    display: flex !important;
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    background: rgba(228, 201, 137, 0.1);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-sm);
    color: var(--color-gold);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: var(--space-xs) var(--space-sm);
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: all var(--transition-base);
  }

  .nav-menu.active .close-menu i {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .nav-menu.active .close-menu::before {
    content: '×';
    font-size: 1.8rem;
    line-height: 1;
    display: block;
  }

  .nav-wrapper:has(.nav-menu.active) .burger-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  

  .nav-menu.active ~ * .burger-toggle,
  .nav-menu.active + * .burger-toggle {
    display: none !important;
  }

  .nav-menu.active .close-menu:hover {
    background: rgba(228, 201, 137, 0.2);
    color: var(--color-mist);
    border-color: var(--color-mist);
    transform: scale(1.1);
  }

  .burger-toggle {
    display: flex !important;
    order: 2;
    align-items: center;
    justify-content: center;
  }

  nav {
    order: 2;
  }

  .header-content .nav-wrapper {
    order: 2;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .split-content {
    padding: var(--space-lg);
  }

  .split-image {
    min-height: 260px;
  }

  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .contact-wrapper {
    padding: var(--space-md);
    margin: var(--space-md) 0;
  }

  .contact-form {
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
  }

  .form-group input,
  .form-group textarea {
    padding: var(--space-sm);
    font-size: 1rem;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .checkbox-group {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .hero-section {
    min-height: 60vh;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
    padding-left: var(--space-xl);
  }

  .timeline-content {
    width: 100%;
  }

  .timeline-dot {
    left: 20px;
  }

  .pathways-container {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: var(--space-md);
  }

  .language-card:nth-child(even) {
    transform: translateY(0);
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  

  .testimonials-carousel {
    grid-template-columns: 1fr;
  }

  .cta-group {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }

  .section-wrapper {
    padding: var(--space-lg) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 320px) {
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  body {
    font-size: clamp(0.875rem, 4vw, 1rem);
  }

  .container {
    padding: 0 var(--space-xs);
  }

  .header-wrapper {
    padding: var(--space-sm) 0;
  }

  .header-content {
    gap: var(--space-sm);
  }

  .section-wrapper {
    padding: var(--space-md) 0;
  }

  .hero-content {
    padding: var(--space-lg) var(--space-xs);
  }

  .hero-title {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: clamp(0.85rem, 4vw, 1.1rem);
    word-wrap: break-word;
  }

  h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
    word-wrap: break-word;
  }

  h2 {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
    word-wrap: break-word;
  }

  h3 {
    font-size: clamp(1rem, 5vw, 1.5rem);
    word-wrap: break-word;
  }

  .pathways-container {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .pathway-bubble {
    padding: var(--space-sm);
    min-height: 120px;
  }

  .pathway-text {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    word-wrap: break-word;
  }

  .logo-text {
    font-size: clamp(0.75rem, 4vw, 1rem);
    order: 1;
    word-wrap: break-word;
  }

  .nav-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: var(--space-lg) var(--space-xs);
  }

  .nav-menu li a {
    font-size: clamp(0.875rem, 3vw, 1rem);
    padding: var(--space-sm);
    word-wrap: break-word;
  }

  .nav-menu.active .close-menu {
    display: flex !important;
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 1.8rem;
    padding: var(--space-xs);
    min-width: 44px;
    min-height: 44px;
  }

  .burger-toggle {
    display: flex !important;
    order: 2;
    font-size: 1.5rem;
    padding: var(--space-xs);
    min-width: 40px;
    min-height: 40px;
  }

  .burger-toggle::before {
    font-size: 1.3rem;
  }

  nav {
    order: 2;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: clamp(0.8rem, 3vw, 0.95rem);
    white-space: normal;
    word-wrap: break-word;
    min-height: 44px;
  }

  .cta-group {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }

  .tutor-spotlight {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .tutor-card {
    padding: var(--space-sm);
  }

  .tutor-bio {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    word-wrap: break-word;
  }

  .tutor-portrait {
    width: 80px;
    height: 80px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .pricing-card {
    padding: var(--space-sm);
  }

  .pricing-card h3 {
    font-size: clamp(1rem, 5vw, 1.25rem);
  }

  .language-card {
    padding: var(--space-sm);
  }

  .language-card h3 {
    font-size: clamp(1rem, 5vw, 1.25rem);
    word-wrap: break-word;
  }

  .language-card p {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    word-wrap: break-word;
  }

  .testimonials-carousel {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .testimonial-card {
    padding: var(--space-sm);
  }

  .testimonial-text {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    word-wrap: break-word;
  }

  .timeline-item {
    padding-left: var(--space-lg);
  }

  .timeline-content {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    word-wrap: break-word;
  }

  .split-section {
    gap: var(--space-md);
  }

  .split-content {
    padding: var(--space-sm);
  }

  .split-image {
    min-height: 180px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .contact-wrapper {
    padding: var(--space-sm);
    margin: var(--space-sm) 0;
    border-radius: var(--radius-md);
  }

  .contact-wrapper h2 {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
    margin-bottom: var(--space-sm);
  }

  .contact-wrapper p {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    margin-bottom: var(--space-sm);
  }

  .contact-form {
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
  }

  .form-group {
    margin-bottom: var(--space-xs);
  }

  .form-group label {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    margin-bottom: var(--space-xs);
  }

  .form-group input,
  .form-group textarea {
    font-size: clamp(0.875rem, 3vw, 1rem);
    padding: var(--space-xs) var(--space-sm);
    width: 100%;
    box-sizing: border-box;
  }

  .form-group textarea {
    min-height: 80px;
    resize: vertical;
  }

  .checkbox-group {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
  }

  .checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
  }

  .checkbox-group label {
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    line-height: 1.5;
  }

  .contact-form .btn-primary {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: clamp(0.875rem, 3vw, 1rem);
  }

  .legal-page {
    padding: var(--space-sm);
    font-size: clamp(0.85rem, 3vw, 0.95rem);
  }

  .legal-page h1 {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .legal-page h2 {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  .legal-page p,
  .legal-page li {
    word-wrap: break-word;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
  }

  .footer-minimal {
    font-size: clamp(0.7rem, 3vw, 0.85rem);
    padding: var(--space-sm) 0;
  }

  .footer-minimal a {
    display: block;
    margin: var(--space-xs) 0;
    word-wrap: break-word;
  }

  .section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    word-wrap: break-word;
    margin-bottom: var(--space-md);
  }

  p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: clamp(0.85rem, 3vw, 1rem);
  }
}

