/*
 * Main CSS file for the rehabilitation center website
 */

/* Base styles and variables */



@import url("/css/normalize.css");
@import url("/css/variables.css");
@import url("/css/navigation.css");
@import url("/css/breadcrumbs.css");



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

body {
  font-family: var(--font-system);
  font-size: 1rem;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

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

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

ul, ol {
  list-style: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  margin-bottom: 50px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header styles */
.main-header {
  background: #fff;
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  height: 56px;
  object-fit: contain;
}


/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
  padding: 0;
  margin-left: 16px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 3px;
  transition: all 0.3s;
}

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

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

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

/* Hero section */
.hero {
  background: linear-gradient(90deg, #f7f8fc 70%, #e5eeff 100%);
  padding: 56px 0 32px 0;
}

.hero-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1 1 340px;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 100%;
  height: auto;
}

.h1 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.lead {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 1.2rem;
}

.hero-list {
  margin-bottom: 1.4rem;
}

.hero-list li {
  margin-bottom: 0.4rem;
  padding-left: 1.2em;
  position: relative;
}

.hero-list li::before {
  content: '✓';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Page hero */
.page-hero {
  background: linear-gradient(90deg, #f7f8fc 70%, #e5eeff 100%);
  padding: 40px 0;
  text-align: center;
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

/* Buttons */
.cta-btn,
.cta-btn-lg {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  text-align: center;
  padding: 12px 28px;
  margin-top: 12px;
  box-shadow: var(--shadow);
  transition: background var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}

.cta-btn-lg {
  font-size: 1.15rem;
  padding: 16px 38px;
  margin-top: 0;
}

.cta-btn:hover,
.cta-btn-lg:hover {
  background: var(--primary-dark);
  color: #fff;
}

.more-link {
  display: inline-block;
  margin: 20px auto 0 auto;
  color: var(--primary);
  font-weight: 500;
  padding: 6px 18px;
  border-radius: 6px;
  background: #eef3fe;
  transition: background var(--transition);
  text-align: center;
}

.more-link:hover {
  background: #dce6fd;
}

.service-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 500;
  color: var(--primary);
}

.service-link:hover {
  text-decoration: underline;
}

/* Features section */
.features {
  margin: 56px auto 0 auto;
  padding-bottom: 16px;
}

.features h2,
.section-intro + h2,
.service-faq h2,
.service-details h2,
.service-process h2,
.service-benefits h2,
.service-testimonials h2 {
  font-size: 1.5rem;
  margin-bottom: 1.6rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  color: var(--gray);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.feature-card img {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.feature-card p {
  color: var(--gray);
  font-size: 1rem;
}

/* Programs preview */
.programs-preview {
  margin-top: 48px;
  padding-bottom: 8px;
}

.programs-preview h2 {
  text-align: center;
  margin-bottom: 1.3rem;
}

.program-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.program-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 14px;
  width: 260px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.program-item img {
  border-radius: 10px;
}

.program-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.program-item p {
  color: var(--gray);
  font-size: 0.98rem;
}

/* Testimonials */
.testimonials-preview {
  margin-top: 48px;
  padding-bottom: 24px;
}

.testimonials-preview h2 {
  text-align: center;
  margin-bottom: 1.3rem;
}

.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.testimonials-list li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  width: 340px;
  min-width: 280px;
}

.testimonials-list blockquote {
  font-style: italic;
  margin-bottom: 12px;
  position: relative;
}

.testimonials-list blockquote::before {
  content: '"';
  font-size: 3rem;
  color: #eef3fe;
  position: absolute;
  left: -15px;
  top: -15px;
  z-index: -1;
}

.testimonials-list cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  text-align: right;
  color: var(--primary-dark);
}

/* CTA section */
.cta-bottom {
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  padding: 48px 0;
  margin-top: 48px;
}

.cta-inner {
  text-align: center;
  max-width: 800px;
}

.cta-inner h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-inner p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.cta-inner .cta-btn,
.cta-inner .cta-btn-lg {
  background: #fff;
  color: var(--primary);
}

.cta-inner .cta-btn:hover,
.cta-inner .cta-btn-lg:hover {
  background: #f0f0f0;
  color: var(--primary-dark);
}

/* Footer */
.main-footer {
  background: #fff;
  padding: 40px 0;
  border-top: 1px solid var(--light-gray);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

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

.footer-info p {
  margin-bottom: 12px;
  color: var(--gray);
}

.footer-info address {
  font-style: normal;
  color: var(--gray);
}

.footer-nav ul {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--gray);
  transition: color var(--transition);
}

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

/* About page */
.about-mission-flex,
.service-intro-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 40px 0;
}

.about-mission-text,
.service-intro-text {
  flex: 1 1 500px;
}

.about-mission-text h2,
.service-intro-text h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  text-align: center;
}

.about-mission-text p,
.service-intro-text p {
  margin-bottom: 1rem;
}

.about-mission-image img,
.service-intro-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.approach-cards,
.details-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.approach-card,
.details-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.approach-card h3,
.details-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.team-grid,
.facility-grid,
.certificates-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.team-member,
.facility-item,
.certificate-item,
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}

.team-member img,
.facility-item img,
.certificate-item img {
  border-radius: 8px;
  margin-bottom: 16px;
}

.team-member h3,
.facility-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.team-role {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Services page */
.services-overview {
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.service-card img {
  border-radius: 8px;
  margin-bottom: 16px;
}

.service-card h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.feature-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.process-steps {
  margin: 30px 0;
}

.process-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  background: #f7f8fc;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.pricing-row.header {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: 1.5px solid var(--primary-dark);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
}

.pricing-cell {
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-gray);
}

.pricing-row.header .pricing-cell {
  border-color: rgba(255, 255, 255, 0.1);
}

.pricing-note {
  font-size: 0.9rem;
  color: var(--gray);
  font-style: italic;
}

/* Service detail pages */
.service-hero {
  background: linear-gradient(90deg, #f7f8fc 70%, #e5eeff 100%);
  padding: 40px 0;
  margin-bottom: 40px;
}

.breadcrumbs {
  margin-bottom: 16px;
  color: var(--gray);
}

.breadcrumbs a {
  color: var(--gray);
  transition: color var(--transition);
}

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

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.benefit-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}

.benefit-icon {
  margin-bottom: 16px;
}

.benefit-item h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.service-faq {
  text-align: center;
}

.faq-list {
  margin: 30px 0;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  position: relative;
  font-size: 1.1rem;
  color: var(--primary-dark);
  transition: background-color var(--transition);
  text-align: center;
}

.faq-question:hover {
  background-color: #f5f8ff;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-question.active::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  margin-bottom: 16px;
}

.faq-answer p:last-child {
  margin-bottom: 20px;
}

/* FAQ page */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  justify-content: center;
}

.faq-category {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}

.faq-category:hover {
  background: #f5f8ff;
  border-color: var(--primary);
}

.faq-category.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.faq-list.hidden {
  display: none;
}

.faq-contact {
  text-align: center;
  margin: auto;
  padding: 40px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq-contact h2 {
  margin-bottom: 16px;
}

.faq-contact p {
  margin-bottom: 24px;
}

.faq-contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}

.contact-icon {
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.contact-note {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 8px;
}

.contact-form-section {
  margin: auto;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 800px;
  margin: 30px auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

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

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--danger);
}

.error-message {
  color: var(--danger);
  font-size: 0.9rem;
  margin-top: 4px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
  margin-top: 4px;
}

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

.form-note {
  font-size: 0.9rem;
  color: var(--gray);
}

.map-section {
  margin: 48px 0;
}

.map-container {
  width: 100%;
  height: 400px;
  background: #eef3fe;
  border-radius: var(--radius);
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary-dark);
}

.map-note {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 8px;
}

.additional-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.info-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.info-item p {
  margin-bottom: 8px;
}

/* Programs page specific styles */

.programs-intro-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.programs-intro-text {
  flex: 1 1 500px;
}

.programs-intro-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  text-align: center;
}

.programs-intro-text p {
  margin-bottom: 1.2rem;
  color: var(--gray);
  line-height: 1.7;
}

.programs-intro-image {
  flex: 1 1 400px;
}

.programs-intro-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Program stages */

.program-stages h2 {
  text-align: center;
}

.stages-timeline {
  margin-top: 40px;
}

.stage-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  position: relative;
}

.stage-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 32px;
  bottom: -16px;
  width: 2px;
  height: 16px;
  background: var(--primary);
}

.stage-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.stage-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.stage-content p {
  margin-bottom: 16px;
  color: var(--gray);
  line-height: 1.6;
}

.stage-features {
  margin: 16px 0;
  padding-left: 0;
}

.stage-features li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  color: var(--gray);
}

.stage-features li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Therapeutic methods */

.therapeutic-methods h2 {
  text-align: center;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.method-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.method-card img {
  border-radius: 8px;
  margin-bottom: 16px;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.method-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.method-card p {
  margin-bottom: 16px;
  color: var(--gray);
  line-height: 1.6;
}

.method-benefits {
  padding-left: 0;
}

.method-benefits li {
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
  color: var(--gray);
  font-size: 0.95rem;
}

.method-benefits li::before {
  content: '✓';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Specialized programs tabs */


.specialized-programs h2 {
  text-align: center;
}

.specialized-tabs {
  margin-top: 40px;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
  background: #f8fafc;
  padding: 8px;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tab-content {
  display: none;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-content h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--primary-dark);
}

.program-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.program-image {
  flex: 1 1 300px;
}

.program-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}

.program-text {
  flex: 1 1 400px;
}

.program-text p {
  margin-bottom: 16px;
  color: var(--gray);
  line-height: 1.6;
}

.program-text h4 {
  font-size: 1.2rem;
  margin: 20px 0 12px 0;
  color: var(--primary-dark);
}

.program-text ul {
  margin-bottom: 20px;
  padding-left: 0;
}

.program-text ul li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  color: var(--gray);
}

.program-text ul li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Daily schedule */


.daily-schedule h2 {
  text-align: center;
}

.schedule-table {
  margin-top: 40px;
  display: grid;
  gap: 2px;
  background: var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.schedule-row {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  background: #fff;
  min-height: 60px;
}

.schedule-row.header {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.schedule-time,
.schedule-activity,
.schedule-description {
  padding: 16px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--light-gray);
}

.schedule-row.header .schedule-time,
.schedule-row.header .schedule-activity,
.schedule-row.header .schedule-description {
  border-right-color: rgba(255, 255, 255, 0.2);
}

.schedule-time {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  background: #f8fafc;
}

.schedule-row.header .schedule-time {
  color: #fff;
  background: transparent;
}

.schedule-activity {
  font-weight: 500;
  color: var(--primary-dark);
}

.schedule-row.header .schedule-activity {
  color: #fff;
}

.schedule-description {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.4;
}

.schedule-row.header .schedule-description {
  color: #fff;
}

.schedule-note {
  margin-top: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.schedule-note p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Success stories */

.success-stories h2 {
  text-align: center;
}

.stories-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.story-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  position: relative;
}

.story-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  color: #eef3fe;
  font-family: serif;
  line-height: 1;
}

.story-quote {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.story-quote p {
  font-style: italic;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.story-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.author-info p {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

/* Testimonials page specific styles */


.testimonials-intro h2 {
  text-align: center;
}

.testimonials-intro-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.testimonials-intro-text {
  flex: 1 1 500px;
}

.testimonials-intro-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  text-align: center;
}

.testimonials-intro-text p {
  margin-bottom: 1.2rem;
  color: var(--gray);
  line-height: 1.7;
}

.testimonials-intro-image {
  flex: 1 1 400px;
}

.testimonials-intro-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Testimonials grid section */

.testimonials-grid-section h2 {
  text-align: center;
}

.testimonials-grid .testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.testimonials-grid .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonials-grid .testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  color: #eef3fe;
  font-family: serif;
  line-height: 1;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-author h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.testimonial-author p {
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}

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

.testimonial-content p {
  margin-bottom: 16px;
  color: var(--gray);
  line-height: 1.6;
  font-style: italic;
}

.testimonial-content p:last-child {
  margin-bottom: 0;
}

/* Video testimonials */

.video-testimonials h2 {
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.video-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
  position: relative;
  overflow: hidden;
}

.video-placeholder img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-placeholder img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
  padding: 24px;
}

.video-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.video-info p {
  color: var(--gray);
  margin: 0;
}

/* Family testimonials */

.family-testimonials h2 {
  text-align: center;
}

.family-testimonials-list {
  margin-top: 40px;
  display: grid;
  gap: 30px;
}

.family-testimonial {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  position: relative;
}

.family-testimonial::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  color: #eef3fe;
  font-family: serif;
  line-height: 1;
}

.family-testimonial-content {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.family-testimonial-content p {
  margin-bottom: 16px;
  color: var(--gray);
  line-height: 1.6;
  font-style: italic;
}

.family-testimonial-content p:last-child {
  margin-bottom: 0;
}

.family-testimonial-author {
  text-align: right;
  position: relative;
  z-index: 1;
}

.family-testimonial-author strong {
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.family-testimonial-author p {
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}

/* Statistics */

.statistics h2 {
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1;
}

.stat-description h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.stat-description p {
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

.stats-note {
  margin-top: 32px;
  padding: 20px;
  background: #f8fafc;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.stats-note p {
  color: var(--gray);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}

/* Leave testimonial */

.leave-testimonial h2 {
  text-align: center;
}

.testimonial-form-container {
  margin-top: 40px;
}

.testimonial-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-form .form-submit {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.testimonial-form .form-note {
  text-align: center;
  max-width: 600px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .main-nav ul {
    gap: 16px;
  }

  /* Programs page responsive */
  .programs-intro-flex,
  .program-content {
    flex-direction: column;
  }

  .stage-item {
    flex-direction: column;
    text-align: center;
  }

  .stage-number {
    align-self: center;
  }

  .methods-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .tabs-nav {
    flex-direction: column;
  }

  .tab-btn {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: var(--shadow);
    transition: right 0.3s ease;
    padding: 80px 24px 24px;
    z-index: 150;
  }

  .main-nav.active {
    right: 0 !important;
  }

  /* Overlay when menu is open */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .call-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 40px 0 24px;
  }

  .hero-flex {
    flex-direction: column;
    gap: 32px;
  }

  .hero-image {
    order: -1;
  }

  .cta-btn-lg {
    font-size: 1rem;
    padding: 12px 24px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav ul {
    justify-content: center;
  }

  .pricing-row {
    grid-template-columns: 1fr;
  }

  .pricing-row.header {
    display: none;
  }

  .pricing-cell {
    padding: 16px;
  }

  .pricing-cell:before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
  }

  .faq-categories {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .form-submit {
    flex-direction: column;
    gap: 16px;
  }

  .form-note {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 1rem;
  }

  .feature-cards,
  .program-list,
  .testimonials-list,
  .approach-cards,
  .team-grid,
  .facility-grid,
  .certificates-grid,
  .services-grid,
  .features-list,
  .benefits-grid,
  .contact-grid,
  .additional-info {
    grid-template-columns: 1fr;
  }

  .faq-contact-buttons {
    flex-direction: column;
  }

  /* Programs page mobile styles */
  .programs-intro-text h2 {
    font-size: 1.5rem;
  }

  .stage-item {
    padding: 20px;
  }

  .stage-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .stage-content h3 {
    font-size: 1.2rem;
  }

  .methods-grid {
    grid-template-columns: 1fr;
  }

  .tab-content {
    padding: 20px;
  }

  .tab-content h3 {
    font-size: 1.3rem;
  }

  /* Mobile schedule table */
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .schedule-row.header {
    display: none;
  }

  .schedule-time,
  .schedule-activity,
  .schedule-description {
    border-right: none;
    border-bottom: 1px solid var(--light-gray);
    padding: 12px 16px;
  }

  .schedule-time {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-align: center;
  }

  .schedule-activity {
    background: #f8fafc;
    font-weight: 600;
    color: var(--primary-dark);
  }

  .schedule-description {
    background: #fff;
    padding-bottom: 16px;
  }

  .stories-slider {
    grid-template-columns: 1fr;
  }

  .story-card {
    padding: 24px;
  }

  /* Testimonials page mobile styles */
  .testimonials-intro-flex {
    flex-direction: column;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-form {
    padding: 24px 16px;
  }
}
