:root {
  --primary: #5d7c5d;
  --primary-dark: #4a6349;
  --primary-light: #8fae8f;
  --secondary: #a68b5b;
  --secondary-dark: #8b7349;
  --accent: #c9a86c;
  --text-dark: #3d3d3d;
  --text-light: #6b6b6b;
  --text-muted: #9a9a9a;
  --bg-light: #f9f6f1;
  --bg-cream: #faf8f5;
  --bg-sage: #e8ede8;
  --white: #ffffff;
  --tan: #d4c4a8;
  --tan-light: #e8dcc8;
  --olive: #7a8b6e;
  --forest: #4a5d4a;
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--olive) 100%);
  --gradient-soft: linear-gradient(135deg, #f9f6f1 0%, #f5f2eb 50%, #e8ede8 100%);
  --gradient-warm: linear-gradient(135deg, #f9f6f1 0%, #e8dcc8 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  margin-bottom: 0;
  line-height: 1.6;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

.display-title {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .display-title {
    font-size: 4rem;
  }
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 600px;
}

/* Buttons */
.btn-primary-gradient {
  background: var(--gradient-primary);
  border: none;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline-primary-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  background: transparent;
  transition: all 0.3s ease;
}

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

/* Cards */
.card-custom {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.card-custom .card-body {
  padding: 1.5rem;
}

.card-custom .card-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.card-custom .card-text {
  color: var(--text-light);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-soft);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0.1;
}

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

/* Section Styling */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-gradient {
  background: var(--gradient-soft);
}

/* Feature Icons */
.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

/* Navbar Custom */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-custom .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover {
  color: var(--primary);
  background: var(--bg-light);
}

.navbar-custom .nav-link.active {
  color: var(--primary);
}

.nav-cta {
  background: var(--gradient-primary);
  color: white !important;
  -webkit-text-fill-color: white !important;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: white !important;
}

/* Footer */
.footer-custom {
  background: var(--text-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-custom h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-custom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-custom .footer-brand {
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-contact i {
  color: var(--primary-light);
}

.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: white;
}

/* Form Styling */
.form-control-custom {
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  transition: all 0.2s ease;
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-label-custom {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.accordion-custom .accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-custom .accordion-button {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--white);
  padding: 1.25rem 1.5rem;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background: var(--bg-light);
  color: var(--primary);
  box-shadow: none;
}

.accordion-custom .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-custom .accordion-body {
  padding: 1.5rem;
  color: var(--text-light);
}

/* Blog Cards */
.blog-card {
  height: 100%;
}

.blog-card .blog-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.blog-card .blog-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.blog-card .blog-category {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lesson Cards */
.lesson-card {
  height: 100%;
}

.lesson-card .lesson-image {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.lesson-card .lesson-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.lesson-card .lesson-duration {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-light);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card .testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.testimonial-card .testimonial-author {
  font-weight: 600;
  color: var(--text-dark);
}

/* Page Headers */
.page-header {
  background: var(--gradient-soft);
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header .lead {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Utilities */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-soft {
  background: var(--gradient-soft);
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 4rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .display-title {
    font-size: 2.25rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

/* Top Bar */
.top-bar {
  background: var(--text-dark);
  padding: 0.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1031;
}

.top-bar-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.top-bar-link:hover {
  color: white;
}

.top-bar-link i {
  font-size: 0.8rem;
}

/* Adjust navbar position when top bar is present */
@media (min-width: 992px) {
  .navbar-custom.fixed-top {
    top: 36px;
  }
  
  main[role="main"] {
    padding-top: 112px !important;
  }
}

/* ============================================
   ELEGANT PROFESSIONAL STYLES
   Inspired by Valle Ballet
   ============================================ */

/* Hero Elegant */
.hero-elegant {
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 50%, var(--bg-sage) 100%);
  padding: 6rem 0 5rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-content-elegant {
  padding-right: 2rem;
}

.hero-tagline {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.hero-title-elegant {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle-elegant {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-image-frame {
  position: relative;
}

.hero-image-placeholder {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-xl);
}

.hero-image-placeholder i {
  font-size: 5rem;
  display: block;
  margin-bottom: 1rem;
}

.hero-image-placeholder span {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Elegant Buttons */
.btn-primary-elegant {
  background: var(--primary);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-elegant:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-elegant {
  background: transparent;
  color: var(--primary);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-elegant:hover {
  background: var(--primary);
  color: white;
}

.btn-outline-elegant-dark {
  background: transparent;
  color: var(--text-dark);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--text-dark);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-elegant-dark:hover {
  background: var(--text-dark);
  color: white;
}

.btn-white-elegant {
  background: white;
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-white-elegant:hover {
  background: var(--bg-cream);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white-elegant {
  background: transparent;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid white;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-white-elegant:hover {
  background: white;
  color: var(--primary);
}

/* Section Elegant */
.section-elegant {
  padding: 5rem 0;
}

.section-alt-elegant {
  background: var(--bg-light);
}

.section-tagline {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.section-title-elegant {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle-elegant {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Service Cards Elegant */
.service-card-elegant {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card-elegant:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-icon-elegant {
  width: 80px;
  height: 80px;
  background: var(--bg-sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon-elegant i {
  font-size: 2rem;
  color: var(--primary);
}

.service-card-elegant h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-card-elegant p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: var(--primary-dark);
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Teacher Section */
.teacher-image-frame {
  position: relative;
}

.teacher-image-placeholder {
  background: linear-gradient(135deg, var(--tan-light) 0%, var(--tan) 100%);
  border-radius: var(--radius-xl);
  padding: 5rem 2rem;
  text-align: center;
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
}

.teacher-image-placeholder i {
  font-size: 6rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--primary);
}

.teacher-bio {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.teacher-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary);
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.teacher-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Offering Cards */
.offering-card {
  text-align: center;
  padding: 1rem;
}

.offering-image {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.offering-image:hover {
  transform: scale(1.03);
}

.offering-image i {
  font-size: 3rem;
  color: white;
}

.offering-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.offering-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Testimonials Elegant */
.testimonial-elegant {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: #f59e0b;
  margin-bottom: 1rem;
}

.testimonial-stars i {
  margin-right: 2px;
}

.testimonial-text-elegant {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.testimonial-author-elegant {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--bg-light);
  padding-top: 1.25rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.author-info strong {
  display: block;
  color: var(--text-dark);
  font-weight: 600;
}

.author-info span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Location Card */
.location-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.location-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.location-card h3 i {
  color: var(--primary);
}

.contact-info-elegant {
  margin-bottom: 0.75rem;
}

.contact-info-elegant i {
  color: var(--primary);
  margin-right: 0.5rem;
}

.contact-info-elegant a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-info-elegant a:hover {
  color: var(--primary);
}

/* CTA Elegant */
.cta-elegant {
  background: var(--gradient-primary);
  padding: 5rem 0;
  text-align: center;
}

.cta-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-divider {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.cta-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive Elegant */
@media (max-width: 991.98px) {
  .hero-title-elegant {
    font-size: 2.75rem;
  }
  
  .hero-content-elegant {
    padding-right: 0;
    text-align: center;
  }
  
  .hero-subtitle-elegant {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .section-title-elegant {
    font-size: 2rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-elegant {
    padding: 4rem 0 3rem;
    min-height: auto;
  }
  
  .hero-title-elegant {
    font-size: 2.25rem;
  }
  
  .hero-subtitle-elegant {
    font-size: 1.1rem;
  }
  
  .section-elegant {
    padding: 3.5rem 0;
  }
  
  .teacher-cta {
    justify-content: center;
  }
  
  .location-card {
    padding: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
}

/* Story Content */
.story-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-light);
}

.lead-text {
  font-size: 1.3rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.7;
}