:root {
  /* Blue palette */
  --blue-1: #0f1b2e; /* darkest */
  --blue-2: #1A2A40; /* base */
  --blue-3: #233954; /* lighter */
  /* Header */
  --header-h: 92px;

  /* Surfaces & text */
  --bg: var(--blue-2);
  --bg-2: #1a2434;
  --text: #FAFAFA;
  --muted: #F7C948;
  --brand: #F7C948;
  --brand-2: #E63946;
  --card: #233954;
  --border: #F7C948
}

body[data-theme='light'] {
  /* Keep a light variant still tinted with the same blue family */
  --blue-1: #eaf2fb;
  --blue-2: #f5f8fe;
  --blue-3: #ffffff;

  --bg: var(--blue-2);
  --bg-2: #ffffff;
  --text: #1A2A40;
  --muted: #333333;
  --brand: #ff4e88;
  --brand-2: #ff83ab;
  --card: #ffffff;
  --border: #ff4e88
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: 'Roboto', Inter, system-ui, -apple-system, Segoe UI, Ubuntu, Cantarell, Noto Sans, sans-serif;
  background: linear-gradient(180deg, var(--blue-1), var(--blue-2) 60%, var(--blue-3));
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  transition: background .25s ease
}

.site-header:hover {
  /* align with blue palette */
  background: linear-gradient(90deg, rgba(26, 42, 64, .2), rgba(35, 57, 84, .2))
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  justify-content: space-between;
  align-items: center;
}

.brand {
  color: var(--border);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px
}

.nav { display: flex; justify-content: center; gap: 16px; }

.nav a {
  text-box: center;
  color: var(--border);
  text-decoration: none;
  margin-left: 0;
  transition: color .2s ease
}

.site-header:hover .nav a {
  color: var(--text)
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--text)
}

.hero {
  padding: 8rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(photos/donna.jpg);
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  transition: transform 0.6s ease, opacity 0.6s ease;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero:hover::before {
  transform: scale(1.05);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  background: linear-gradient(90deg, #ff4e88, #ffb347);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #fff;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}


.hero-inner {
  max-width: 820px;
  position: relative;
  z-index: 2;
}


h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px
}


.btn {
  display: inline-block;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: .2s
}

.btn:hover {
  border-color: var(--brand);
  background-color: var(--brand-2);
  color: var(--text)
}

.btn-primary {
  background-color: var(--brand);

  border: none;
  color: var(--text);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--brand-2);
  transform: translateY(-2px);
}

.features {
  padding: 40px 0
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px
}

.page-title {
  margin: 24px 0
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 48px
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.card-body {
  padding: 16px
}

.price {
  font-weight: 700;
  color: var(--brand)
}

.meta {
  color: var(--muted);
  font-size: 14px
}

.course-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 24px 0
}

.payment-section {
  margin: 24px 0
}

.payment-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.paypal-buttons {
  min-height: 45px
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--muted);
  margin-top: auto;
}

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

.footer-social { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
}

.footer-social .icon { width: 22px; height: 22px; }

/* Social brand colors */
.footer-social .social-ig .icon { stroke: #E4405F; color: #E4405F; }
.footer-social .social-tt .icon { color: #000000; }
.footer-social .social-li .icon { color: #0A66C2; }
.footer-social .social-fb .icon { color: #1877F2; }

.footer-social a { color: inherit; }

/* Mobile Responsive */
@media (max-width: 768px) {
  .container { padding: 0 12px; }
  
  .header-inner { 
    min-height: 56px; 
    height: auto;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  main
  
  .brand { font-size: 18px; }
  
  .nav { 
    display: flex; 
    gap: 12px; 
    margin-left: 0;
  }
  
  .nav a { 
    margin-left: 0; 
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .hero { 
    padding: 48px 0; 
    text-align: center;
  }
  
  .hero h1 { 
    font-size: 28px; 
    margin-bottom: 16px;
  }
  
  .hero p { 
    font-size: 16px; 
    margin-bottom: 24px;
  }
  
  .hero-actions { 
    display: flex; 
    justify-content: center; 
  }
  
  .btn { 
    padding: 12px 20px; 
    font-size: 16px;
    width: 100%;
    max-width: 280px;
  }
  
  .features { padding: 32px 0; }
  
  .features-grid { 
    grid-template-columns: 1fr; 
    gap: 16px; 
  }
  
  .feature { 
    padding: 20px; 
    text-align: center;
  }
  
  .feature h3 { 
    font-size: 18px; 
    margin-bottom: 8px;
  }
  
  .page-title { 
    font-size: 24px; 
    margin: 20px 0;
    text-align: center;
  }
  
  .cards-grid { 
    grid-template-columns: 1fr; 
    gap: 16px; 
    margin-bottom: 32px;
  }
  
  .card { 
    margin-bottom: 0;
  }
  
  .card-body { 
    padding: 20px; 
  }
  
  .card h3 { 
    font-size: 18px; 
    margin-bottom: 8px;
  }
  
  .card p { 
    font-size: 14px; 
    margin-bottom: 12px;
  }
  
  .price { 
    font-size: 18px; 
    margin-bottom: 12px;
  }
  
  .course-detail { 
    padding: 20px; 
    margin: 16px 0;
  }
  
  .course-detail h1 { 
    font-size: 24px; 
    margin-bottom: 16px;
  }
  
  .course-detail img { 
    width: 100%; 
    height: auto; 
    margin-bottom: 16px;
  }
  
  .payment-section { 
    margin: 20px 0; 
    text-align: center;
  }
  
  .payment-options { 
    flex-direction: column; 
    gap: 16px; 
    align-items: center;
  }
  
  .payment-options .btn { 
    width: 100%; 
    max-width: 300px;
  }
  
  .paypal-buttons { 
    width: 100%; 
    max-width: 300px;
  }
  
  .payment-note { 
    font-size: 14px; 
    margin-top: 16px;
  }
  
  .site-footer { 
    padding: 16px 0; 
    margin-top: 32px;
  }
  
  .footer-inner { 
    flex-direction: column; 
    gap: 12px; 
    text-align: center;
  }
  
  .footer-inner .nav { 
    justify-content: center;
  }
  
  /* Theme toggle mobile positioning */
  #theme-toggle.theme-switch { 
    top: 12px; 
    right: 12px; 
    width: 48px; 
    height: 26px;
  }
  
  #theme-toggle.theme-switch .knob { 
    width: 20px; 
    height: 20px;
  }
  
  body[data-theme='light'] #theme-toggle.theme-switch .knob { 
    transform: translateX(22px);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 8px; }
  
  .hero h1 { font-size: 24px; }
  
  .hero p { font-size: 14px; }
  
  .btn { 
    padding: 10px 16px; 
    font-size: 14px;
  }
  
  .feature { padding: 16px; }
  
  .card-body { padding: 16px; }
  
  .course-detail { padding: 16px; }
  
  .course-detail h1 { font-size: 20px; }
  
  .mission p { font-size: 16px; }
  
  .story-content p { font-size: 16px; }
  
  .courses-intro { font-size: 16px; }
  
  .course-types { 
    grid-template-columns: 1fr; 
    gap: 16px; 
  }
  
  .course-type { padding: 20px; }
  
  .course-card { padding: 12px; }
  
  .course-selection h2 { font-size: 24px; }
}

/* Course Selection Grid */
.course-selection {
  padding: 48px 20px;
  text-align: center;
}

.course-selection h2 {
  margin-bottom: 40px;
  color: var(--brand);
  font-size: 32px;
}

.course-grid {
  display: grid !important;
  gap: 20px;
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 0 20px;
  justify-content: center;
}

.course-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 140px;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.course-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.course-card:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.course-card:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.course-card:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(247, 201, 72, 0.1), transparent);
  transition: left 0.5s ease;
}

.course-card:hover::before {
  left: 100%;
}

.course-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand);
  box-shadow: 0 12px 24px rgba(247, 201, 72, 0.2);
  z-index: 10;
}

.difficulty-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.star {
  color: var(--brand);
  font-size: 18px;
  transition: all 0.3s ease;
}

.course-card:hover .star {
  color: var(--brand-2);
  transform: scale(1.2);
  text-shadow: 0 0 8px rgba(247, 201, 72, 0.6);
}

.course-content h3 {
  color: var(--text);
  margin-bottom: 8px;
  font-size: 16px;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.course-card:hover .course-content h3 {
  color: var(--brand);
}

.course-content p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  transition: color 0.3s ease;
  margin: 0;
}

.course-card:hover .course-content p {
  color: var(--text);
}

.help-section {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.help-btn {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 24px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  /* Ensure buttons match site font (inherit from body) */
  font-family: inherit;
}

.help-btn:hover {
  border-color: var(--brand);
  background: rgba(247, 201, 72, 0.1);
  transform: translateX(4px);
}

.help-text {
  transition: color 0.3s ease;
}

.help-btn:hover .help-text {
  color: var(--brand);
}

.help-arrow {
  transition: transform 0.3s ease;
  font-size: 18px;
}

.help-btn:hover .help-arrow {
  transform: translateX(4px);
  color: var(--brand);
}
.story {
  padding: 48px 0;
  text-align: center;
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-content h2 {
  margin-bottom: 24px;
  color: var(--brand);
}

.story-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--muted);
}

.courses-overview {
  padding: 48px 0;
  background: var(--card);
  border-radius: 16px;
  margin: 32px 0;
}

.courses-overview h2 {
  text-align: center;
  margin-bottom: 24px;
  color: var(--brand);
}

.courses-intro {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--muted);
}

.course-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.course-type {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.course-type:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.course-type h3 {
  color: var(--brand);
  margin-bottom: 12px;
  font-size: 18px;
}

.course-type p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.courses-cta {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.courses-cta p {
  font-size: 16px;
  margin-bottom: 24px;
  color: var(--muted);
}

.mission {
  padding: 48px 0;
  text-align: center;
}

.mission h2 {
  margin-bottom: 24px;
  color: var(--brand);
}

.mission p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--muted);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
/* floating slide switch for theme */
#theme-toggle.theme-switch {
  top: 14px;
  right: 16px;
  z-index: 20;
  appearance: none;
  cursor: pointer;
  padding: 0;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--border);
  transition: background .2s ease, border-color .2s ease
}

#theme-toggle.theme-switch:hover {
  background: rgba(255, 255, 255, .14)
}

#theme-toggle.theme-switch:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px
}

#theme-toggle.theme-switch .knob {
  display: block;
  width: 24px;
  height: 24px;
  background: linear-gradient(180deg, #fff, #d1d5db);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transform: translateX(3px);
  transition: transform .2s ease, background .2s ease
}

body[data-theme='light'] #theme-toggle.theme-switch {
  background: rgba(0, 0, 0, .08)
}

body[data-theme='light'] #theme-toggle.theme-switch .knob {
  background: linear-gradient(180deg, #111827, #374151);
  transform: translateX(29px)
}

/* Contacts page */
.contact-page {
  padding: 48px 0;
  max-width: 760px;
}

.contact-title {
  margin-bottom: 24px;
}

.contact-lead {
  margin-bottom: 24px;
}

.contact-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-control {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.mt-12 { margin-top: 12px; }

.form-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-submit { min-width: 120px; }

.social-section { margin-top: 32px; }
.social-title { margin-bottom: 16px; color: var(--brand); }
.social-list { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn .icon { width: 20px; height: 20px; vertical-align: middle; margin-right: 8px; }

/* Questionnaire Modal Styles */
.questionnaire-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.questionnaire-modal.show {
  opacity: 1;
}

.questionnaire-content {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.questionnaire-modal.show .questionnaire-content {
  transform: scale(1);
}

.questionnaire-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.questionnaire-header h3 {
  margin: 0;
  color: var(--brand);
  font-size: 20px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  /* Match site typography */
  font-family: inherit;
}

.close-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.questionnaire-body {
  padding: 24px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-2);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.question-container {
  min-height: 200px;
}

.question {
  margin-bottom: 24px;
}

.question h4 {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.4;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-btn {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  /* Match site typography for UI controls */
  font-family: inherit;
}

.answer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(247, 201, 72, 0.1), transparent);
  transition: left 0.5s ease;
}

.answer-btn:hover::before {
  left: 100%;
}

.answer-btn:hover {
  border-color: var(--brand);
  background: rgba(247, 201, 72, 0.05);
  transform: translateX(4px);
}

.answer-btn.selected {
  border-color: var(--brand);
  background: rgba(247, 201, 72, 0.1);
  color: var(--brand);
}

.result-container {
  text-align: center;
}

.result-content h4 {
  color: var(--brand);
  margin-bottom: 20px;
  font-size: 20px;
}

.recommended-course {
  background: var(--bg);
  border: 2px solid var(--brand);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  color: var(--text);
}

.recommended-course h5 {
  color: var(--brand);
  margin-bottom: 8px;
  font-size: 18px;
}

.recommended-course p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.result-actions .btn {
  min-width: 140px;
  /* Ensure CTA buttons match the site font */
  font-family: inherit;
}

/* Mobile responsive for questionnaire */
@media (max-width: 768px) {
  .questionnaire-modal {
    padding: 16px;
  }
  
  .questionnaire-content {
    max-height: 90vh;
  }
  
  .questionnaire-header {
    padding: 16px 20px;
  }
  
  .questionnaire-header h3 {
    font-size: 18px;
  }
  
  .questionnaire-body {
    padding: 20px;
  }
  
  .question h4 {
    font-size: 16px;
  }
  
  .answer-btn {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .result-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .result-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Courses Carousel Styles */
.courses-carousel {
  margin-bottom: 48px;
  position: relative;
  border-radius: 16px;
}

.carousel-container {
  overflow-x: hidden;
  overflow-y: visible;
  border-radius: 16px;
  position: relative;
}

.carousel-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.carousel-slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.carousel-btn {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
}

.carousel-btn:hover {
  border-color: var(--brand);
  background: rgba(247, 201, 72, 0.1);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.carousel-dots {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.carousel-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.carousel-dot.active {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(247, 201, 72, 0.4);
}

.carousel-dot:hover {
  border-color: var(--brand);
  transform: scale(1.1);
}

.carousel-dot:hover:not(.active) {
  background: rgba(247, 201, 72, 0.2);
}

.carousel-position {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin: 0 8px;
  min-width: 40px;
  text-align: center;
}

.carousel-position span {
  color: var(--brand);
  font-weight: 700;
}

/* Course Detail Card Styles */
.course-detail-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all 0.3s ease;
 /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
  position: relative;
}

.course-detail-card:hover {
  transform: translateY(-4px);
  /*box-shadow: 0 8px 24px rgba(247, 201, 72, 0.15);*/
  border-color: var(--brand);
}

.course-image {
  flex: 0 0 200px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.course-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-detail-card:hover .course-photo {
  transform: scale(1.05);
}

.course-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 16px;
  position: relative;
  padding-bottom: 60px;
}

.course-title {
  color: var(--brand);
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.difficulty-stars {
  display: flex;
  gap: 4px;
  margin: 0;
}

.difficulty-stars .star {
  font-size: 20px;
  transition: all 0.3s ease;
}

/* Gradiente di colore rosso in base alla difficoltà */
.course-detail-card:nth-child(1) .difficulty-stars .star {
  color: #F7C948; /* Giallo per principianti */
}

.course-detail-card:nth-child(2) .difficulty-stars .star {
  color: #FFB347; /* Arancione chiaro */
}

.course-detail-card:nth-child(3) .difficulty-stars .star {
  color: #FF8C42; /* Arancione */
}

.course-detail-card:nth-child(4) .difficulty-stars .star {
  color: #FF6B6B; /* Rosso-arancione */
}

.course-detail-card:nth-child(5) .difficulty-stars .star {
  color: #E63946; /* Rosso per avanzati */
}

.course-description {
  /*color: var(--muted);*/
  line-height: 1.6;
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
}

.course-actions {
  margin-top: auto;
}

.course-buy-btn {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #0b0c10;
  border: 0;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.course-buy-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(247, 201, 72, 0.3);
}

/* Mobile responsive for carousel */
@media (max-width: 768px) {
  .courses-carousel {
    margin-bottom: 32px;
  }
  
  .carousel-controls {
    gap: 16px;
    margin-top: 20px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-dot {
    width: 10px;
  }
  
  .course-detail-card {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    min-height: auto;
  }
  
  .course-image {
    flex: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .course-photo {
    height: 180px;
  }
  
  .course-title {
    font-size: 20px;
    text-align: center;
  }
  
  .course-description {
    font-size: 15px;
    text-align: center;
  }
  
  .course-actions {
    text-align: center;
  }
  
  .course-buy-btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .course-detail-card {
    padding: 16px;
  }
  
  .course-image {
    max-width: 100%;
  }
  
  .course-photo {
    height: 160px;
  }
  
  .course-title {
    font-size: 18px;
  }
  
  .course-description {
    font-size: 14px;
  }
}

/* Course Details Expandable Styles */
.course-details-toggle {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
}

.details-toggle-label {
  display: block;
  font-size: 11px;
  color: var(--brand);
  margin-top: 2px;
  margin-bottom: 4px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-info::after {
  content: '';
  position: absolute;
  bottom: 45px;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
  z-index: 2;
}

.course-info:has(.course-details-expanded.open)::after {
  display: none;
}

.details-btn {
  background: var(--card);
  border: 2px solid var(--brand);
  color: var(--brand);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 8px 16px;
  border-radius: 8px;
  min-width: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.details-btn:hover {
  background: var(--brand);
  color: var(--card);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(247, 201, 72, 0.3);
}

.details-arrow {
  transition: transform 0.3s ease;
  font-size: 16px;
}

.details-btn.expanded .details-arrow {
  transform: rotate(180deg);
}

/* Preview della prima riga dei dettagli */
.course-details-preview {
  display: none;
}

.course-details-expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, margin-top 0.4s ease;
  background: var(--bg-2);
  border-radius: 8px;
  margin-top: 0;
}

.course-details-expanded.open {
  max-height: 800px;
  padding: 20px;
  margin-top: 16px;
}

.course-details-content {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-details-expanded.open .course-details-content {
  opacity: 1;
}

.course-header-info {
  margin-bottom: 24px;
}

.course-header-info h3 {
  color: var(--brand);
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.course-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.course-duration,
.course-price {
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.course-price {
  color: var(--brand);
}

.course-overview {
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  font-size: 15px;
}

.course-program {
  margin-bottom: 24px;
}

.course-program h4 {
  color: var(--brand);
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

.course-program ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.course-program li {
  margin-bottom: 6px;
}

/* Mobile responsive for course details */
@media (max-width: 768px) {
  .course-details-expanded.open {
    padding: 16px;
  }
  
  .course-header-info h3 {
    font-size: 18px;
  }
  
  .course-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .course-duration,
  .course-price {
    font-size: 15px;
  }
  
  .course-overview {
    font-size: 14px;
  }
  
  .details-btn {
    width: 36px;
    height: 36px;
  }
  
  .details-arrow {
    font-size: 14px;
  }
}

/* Mobile tweaks for contacts */
@media (max-width: 768px) {
  .contact-page { padding: 32px 12px; }
  .contact-title { font-size: 24px; }
  .contact-lead { font-size: 16px; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .contact-submit { width: 100%; }
}

/* Calendar Page Styles */
.calendar-page {
  padding: 48px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.calendar-title {
  margin-bottom: 16px;
  color: var(--brand);
  text-align: center;
  font-size: 36px;
}

.calendar-lead {
  text-align: center;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.course-selector {
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
}

.course-selector label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.course-dropdown {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F7C948' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 45px;
}

.course-dropdown:hover {
  border-color: var(--brand);
}

.course-dropdown:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.1);
}

.calendar-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.calendar-info h2 {
  color: var(--brand);
  margin-bottom: 20px;
  font-size: 24px;
}

.calendar-steps {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 24px 24px 44px;
  margin-bottom: 24px;
}

.calendar-steps li {
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--text);
}

.calendar-steps li:last-child {
  margin-bottom: 0;
}

.calendar-note {
  background: var(--bg-2);
  border: 2px solid var(--brand);
  border-radius: 12px;
  padding: 20px;
}

.calendar-note h3 {
  color: var(--brand);
  margin-bottom: 12px;
  font-size: 18px;
}

.calendar-note p {
  margin: 0;
  line-height: 1.6;
}

.calendar-note a {
  color: var(--brand);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.calendar-note a:hover {
  opacity: 0.8;
}

.calendar-embed {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 0;
  min-height: 700px;
  height: 850px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.calendar-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

.calendar-embed.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.calendar-placeholder {
  text-align: center;
  color: var(--muted);
}

.calendar-placeholder svg {
  color: var(--brand);
  margin-bottom: 20px;
}

.calendar-placeholder h3 {
  color: var(--brand);
  margin-bottom: 12px;
  font-size: 24px;
}

.calendar-placeholder p {
  margin: 0;
  font-size: 16px;
}

.selected-course-display {
  text-align: center;
  font-size: 18px;
  color: var(--brand);
  margin-bottom: 24px;
  font-weight: 600;
  display: none;
}

.selected-course-display strong {
  color: var(--brand);
}

.calendar-back-link {
  text-align: center;
  margin-top: 32px;
}

.btn-secondary {
  background: var(--bg-2);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* Mobile responsive for calendar */
@media (max-width: 768px) {
  .calendar-page {
    padding: 32px 12px;
  }
  
  .calendar-title {
    font-size: 28px;
  }
  
  .calendar-lead {
    font-size: 16px;
    margin-bottom: 32px;
  }
  
  .calendar-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .calendar-steps {
    padding: 20px 20px 20px 40px;
  }
  
  .calendar-embed {
    padding: 0;
    min-height: 600px;
    height: 700px;
  }
  
  .selected-course-display {
    font-size: 16px;
  }
}

/* Modern Typography - Global Font Updates */
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.course-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.course-header-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.course-program h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn, .btn-primary, .course-buy-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.course-description {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.6;
}

.course-overview, .course-program ul, .course-program li {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

.course-meta, .course-duration, .course-price {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* iOS-Style Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  width: 28px;
  height: 2px;
  background-color: var(--brand);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

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

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

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

/* Mobile Menu Overlay - iOS Style Drawer */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease;
}

@media (max-width: 768px) {
  .mobile-menu-overlay {
    top: 56px;
    height: calc(100vh - 56px);
  }
}

body[data-theme='light'] .mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.25);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer Panel from Right */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 400px;
  height: calc(100vh - 0px);
  margin-top: 0;
  background: linear-gradient(180deg, rgba(26, 42, 64, 0.85), rgba(35, 57, 84, 0.85));
  backdrop-filter: saturate(1.2) blur(20px);
  -webkit-backdrop-filter: saturate(1.2) blur(20px);
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 999;
}

@media (max-width: 768px) {
  .mobile-menu-drawer {
    top: 56px;
    height: calc(100vh - 56px);
  }
}

body[data-theme='light'] .mobile-menu-drawer {
  background: linear-gradient(180deg, rgba(245, 248, 254, 0.85), rgba(255, 255, 255, 0.85));
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-menu-overlay.active .mobile-menu-drawer {
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 24px 24px 24px 24px;
  flex: 1;
}

.mobile-nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 28px;
  font-weight: 600;
  padding: 20px 24px;
  text-align: left;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  letter-spacing: -0.5px;
  border-bottom: 1px solid rgba(247, 201, 72, 0.15);
}

body[data-theme='light'] .mobile-nav-link {
  border-bottom: 1px solid rgba(255, 78, 136, 0.15);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-menu-overlay.active .mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-nav-link:active {
  background: rgba(247, 201, 72, 0.15);
  transform: scale(0.97);
}

body[data-theme='light'] .mobile-nav-link:active {
  background: rgba(255, 78, 136, 0.15);
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
  padding: 24px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-menu-overlay.active .mobile-theme-toggle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.mobile-theme-switch {
  appearance: none;
  cursor: pointer;
  padding: 0;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--border);
  transition: background .2s ease, border-color .2s ease;
  position: relative;
}

.mobile-theme-switch:hover {
  background: rgba(255, 255, 255, .14);
}

.mobile-theme-switch:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.mobile-theme-switch .knob {
  display: block;
  width: 24px;
  height: 24px;
  background: linear-gradient(180deg, #fff, #d1d5db);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transform: translateX(3px);
  transition: transform .2s ease, background .2s ease;
  position: absolute;
  top: 2px;
  left: 0;
}

body[data-theme='light'] .mobile-theme-switch {
  background: rgba(0, 0, 0, .08);
}

body[data-theme='light'] .mobile-theme-switch .knob {
  background: linear-gradient(180deg, #111827, #374151);
  transform: translateX(29px);
}

/* Mobile Responsive - Hamburger Menu */
@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }
  
  .header-inner .nav {
    display: none;
  }
  
  /* Hide desktop theme toggle on mobile */
  #theme-toggle.theme-switch {
    display: none;
  }
  
  body.menu-open {
    overflow: hidden;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}
