/* About page specific styling */

/* Hero section */
.about-hero {
  background-color: var(--color-secondary);
  position: relative;
  padding: 80px 0 100px;
}

.about-hero:before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 209, 82, 0.15);
  border-radius: 50%;
  z-index: 0;
}

.about-hero .hero-text h1 {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  line-height: 1.2;
}

.about-hero .hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 90%;
}

/* Teacher intro section */
.about-intro {
  padding: 90px 0;
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 40px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.fitted-image {
  height: 400px;
  position: relative;
}

.fitted-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.teacher-image img {
  border-radius: 8px;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.teacher-image:hover img {
  transform: scale(1.05);
}

/* Qualifications section */
.qualifications {
  padding: 90px 0;
  background-color: var(--color-secondary);
  position: relative;
}

.qualifications:before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background-color: rgba(146, 129, 150, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.qualifications .section-title {
  margin-bottom: 40px;
}

.qualifications p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.teaching-approach {
  margin-top: 70px;
  position: relative;
  z-index: 1;
}

.teaching-approach .section-title {
  margin-bottom: 40px;
}

.teaching-approach ul {
  max-width: 800px;
  margin: 30px auto;
  list-style-type: none;
  padding: 0;
}

.teaching-approach ul li {
  background-color: white;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-left: 35px;
  border-left: 4px solid var(--color-accent);
}

.teaching-approach ul li strong {
  color: var(--color-primary-dark);
  font-size: 1.05rem;
}

/* Gallery section */
.teaching-gallery {
  padding: 100px 0 100px;
  background-color: white;
  margin-top: 60px;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  aspect-ratio: 4/3;
}

.gallery-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Values section */
.values-section {
  padding: 100px 0 80px;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.values-section .section-title {
  text-align: center;
  margin-bottom: 30px;
  padding: 50px 20px 0;
}

.values-section .section-title h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--color-primary-dark);
  font-weight: normal;
}

.values-section .section-title p {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 15px auto 0;
  line-height: 1.5;
}

/* Match the layout in screenshot with items in a row */
.values-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 0 50px;
  margin: 0 auto;
  max-width: 1100px;
}

.value-item {
  width: calc(25% - 30px);
  text-align: center;
  padding: 20px 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-icon-circle {
  width: 100px;
  height: 100px;
  background-color: rgba(255, 209, 82, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.value-icon-circle svg {
  color: #444;
  width: 42px;
  height: 42px;
  stroke-width: 1.5;
}

.value-item h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.value-accent-line {
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 0 auto 15px;
  /* Already centered with auto margins */
}

.value-item p {
  line-height: 1.5;
  font-size: 0.95rem;
  color: #555;
  padding: 0 5px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .about-text {
    order: 1;
  }
  
  .about-image {
    order: 0;
    margin-bottom: 20px;
  }
  
  .values-container {
    flex-direction: column;
    align-items: center;
  }
  
  .value-item {
    width: 90%;
    margin-bottom: 20px;
    padding: 20px 15px;
  }
  
  .gallery-images {
    flex-direction: column;
    align-items: center;
  }
  
  .gallery-image {
    width: 100%;
    max-width: 350px;
  }
  
  .values-section {
    padding: 100px 0 120px;
  }
  
  .values-section .section-title {
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .values-section {
    padding: 80px 0 100px;
  }
  
  .values-section .section-title h2 {
    font-size: 2.2rem;
  }
  
  .values-section .section-title p {
    font-size: 1.1rem;
    margin-top: 20px;
  }
  
  .value-item {
    padding: 20px 15px;
  }
  
  .value-icon-circle {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }
  
  .value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .value-item p {
    font-size: 1rem;
  }
}