/* About Page Styles */

.page-header {
  /* Solid color instead of gradient */
  background: var(--primary);
  color: white;
  /* Increased padding */
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  min-height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-header h1 {
  /* Refined typography */
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: var(--spacing-sm);
  color: white;
  letter-spacing: -0.03em;
}

.page-header p {
  font-size: 1.375rem;
  opacity: 0.9;
  margin-bottom: 0;
  font-weight: 300;
}

/* Story Section */
.story-section {
  background-color: var(--bg-color);
}

.story-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
}

.story-text {
  ul {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 var(--spacing-lg) 0;
    li {
      display: flex;
      align-items: flex-start;
      gap: var(--spacing-sm);
      padding: 0.75rem 0;
      font-size: 1.0625rem;
      line-height: 1.6;
      p {
        margin: 0;
      }
    }
    li::before {
      content: "\F26A";
      font-family: bootstrap-icons !important;
      color: var(--theme-color);
      font-size: 1.25rem;
      margin-right: 0.5rem;
    }
    i {
      color: var(--primary);
      font-size: 1.25rem;
      margin-top: 0.125rem;
      flex-shrink: 0;
    }
  }
}

.story-text h2 {
  /* Refined typography */
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
  letter-spacing: -0.02em;
}

.story-text p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--secondary);
  margin-bottom: var(--spacing-md);
  font-weight: 300;
}

.story-image img {
  width: 100%;
  height: auto;
  /* Larger border radius */
  border-radius: var(--border-radius-lg);
  /* Softer shadow */
  box-shadow: 0 20px 60px var(--shadow-hover);
}

/* Vision, Mission, Values (VMV) Sections */
.vision-section,
.mission-section {
  padding: var(--spacing-xl) var(--spacing-lg);
}

.vision-section {
  background-color: var(--bg-color);
}

.mission-section {
  background-color: var(--footer-bg);
}

.vmv-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
}

.vmv-content.reverse {
  flex-direction: row-reverse;
}

.vmv-icon {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--border-radius-lg);
  color: white;
  font-size: 4rem;
  box-shadow: 0 12px 32px var(--shadow-hover);
}

.vmv-text h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
  letter-spacing: -0.02em;
}

.vmv-text p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--secondary);
  margin-bottom: 0;
  font-weight: 300;
}

/* Values Section */
.values-section {
  background-color: var(--bg-color);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.value-card {
  padding: var(--spacing-md);
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px var(--shadow);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px var(--shadow-hover);
  border-color: transparent;
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: var(--border-radius);
  color: white;
  font-size: 2rem;
}

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
}

.value-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--secondary);
  margin-bottom: 0;
  font-weight: 300;
}

/* Video Section */
.video-section {
  background-color: var(--footer-bg);
}

.video-container {
  max-width: 1000px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px var(--shadow-hover);
  background-color: var(--card-bg);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
}

/* Stats Section */
.stats-section {
  background-color: var(--footer-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.stat-card {
  text-align: center;
  /* Increased padding */
  padding: var(--spacing-xl);
  background-color: var(--card-bg);
  /* Larger border radius */
  border-radius: var(--border-radius);
  /* Softer shadow with border */
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.stat-card:hover {
  /* Enhanced lift effect */
  transform: translateY(-8px);
  box-shadow: 0 16px 32px var(--shadow-hover);
  border-color: transparent;
}

.stat-icon {
  /* Larger icons */
  width: 100px;
  height: 100px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Solid color instead of gradient */
  background: var(--primary);
  /* Larger border radius */
  border-radius: var(--border-radius);
  color: white;
  font-size: 2.5rem;
}

.stat-number {
  /* Refined typography */
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 1.125rem;
  color: var(--secondary);
  margin-bottom: 0;
}

/* Team Section */
.team-section {
  background-color: var(--footer-bg);
}

.section-title {
  /* Refined typography */
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: var(--spacing-xl);
  font-weight: 300;
}

.section-subtitle p:last-child {
  margin-bottom: 0;
}

.team-slider-container {
  --team-gap: var(--spacing-md);
  --team-per-view: 3;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Native scroll-snap track: swipe on touch, arrows/dots on top */
.team-track {
  list-style: none;
  margin: 0;
  display: flex;
  gap: var(--team-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* room for the hover lift and shadow */
  padding: var(--spacing-sm) 4px var(--spacing-md);
  scroll-padding-inline: 4px;
}

.team-track::-webkit-scrollbar {
  display: none;
}

.team-track:focus-visible {
  outline: 2px solid var(--theme-color);
  outline-offset: 4px;
  border-radius: var(--border-radius);
}

.team-card {
  flex: 0 0
    calc((100% - var(--team-gap) * (var(--team-per-view) - 1)) / var(--team-per-view));
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px var(--shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px var(--shadow-hover);
  border-color: transparent;
}

.team-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--light);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-image img {
  transform: scale(1.04);
}

.team-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Marcellus", serif;
  font-size: 4rem;
  color: var(--theme-color);
  letter-spacing: 0.05em;
}

[data-theme="dark"] .team-image {
  background-color: var(--border-color);
}

.team-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-md);
  text-align: center;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--text-color);
  font-weight: 500;
}

.team-role {
  color: var(--theme-color);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}

.team-bio {
  color: var(--secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: var(--spacing-md);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
  /* keep contacts aligned at the bottom of every card */
  margin-top: auto;
}

.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--footer-bg);
  color: var(--text-color);
  font-size: 1.05rem;
  transition: all var(--transition);
  border: 1px solid var(--border-color);
}

.team-social a:hover {
  background-color: var(--theme-color);
  color: white;
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--shadow-hover);
  border-color: var(--theme-color);
}

/* Slider controls (below the track) */
.team-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.team-controls[hidden] {
  display: none;
}

.slider-btn {
  flex-shrink: 0;
  background-color: var(--card-bg);
  border: 1.5px solid var(--border-color);
  color: var(--text-color);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px var(--shadow);
}

.slider-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.08);
  box-shadow: 0 8px 24px var(--shadow-hover);
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider-btn:disabled:hover {
  background-color: var(--card-bg);
  color: var(--text-color);
  border-color: var(--border-color);
  transform: none;
  box-shadow: 0 4px 16px var(--shadow);
}

/* Slider Dots */
.slider-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all var(--transition);
  /* bigger tap area without changing the visual size */
  background-clip: content-box;
  box-sizing: content-box;
  border: 7px solid transparent;
}

[data-theme="dark"] .slider-dot {
  background-color: var(--secondary);
}

.slider-dot.active {
  background-color: var(--primary);
  width: 40px;
  border-radius: 12px;
}

[data-theme="dark"] .slider-dot.active {
  background-color: var(--theme-color);
}

/* Reveal on scroll (class-based so hover transforms keep working) */
.reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}

.reveal {
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

@media (max-width: 991px) {
  .team-slider-container {
    --team-per-view: 2;
  }
}

@media (max-width: 767px) {
  .team-slider-container {
    --team-gap: var(--spacing-sm);
    /* ~1.2 cards visible: the peek of the next card signals "swipe" */
    --team-per-view: 1.2;
    /* bleed the track to the screen edges */
    margin-inline: calc(var(--spacing-md) * -1);
  }

  .team-track {
    padding-inline: var(--spacing-md);
    scroll-padding-inline: var(--spacing-md);
  }

  /* no lift on touch: it only flickers */
  .team-card:hover {
    transform: none;
    box-shadow: 0 4px 16px var(--shadow);
    border-color: var(--border-color);
  }

  .team-card:hover .team-image img {
    transform: none;
  }

  .team-info {
    padding: var(--spacing-sm);
  }

  .team-info h3 {
    font-size: 1.3125rem;
  }

  .team-bio {
    font-size: 0.9375rem;
    -webkit-line-clamp: 3;
  }

  /* swipe is the primary gesture: hide arrows, keep dots */
  .team-controls .slider-btn {
    display: none;
  }

  .section-subtitle {
    font-size: 1.0625rem;
    margin-bottom: var(--spacing-lg);
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .team-slider-container {
    --team-per-view: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-track {
    scroll-behavior: auto;
  }

  .team-card,
  .team-image img,
  .reveal {
    transition: none;
  }
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--footer-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.testimonial-card {
  /* Increased padding */
  padding: var(--spacing-xl);
}

.testimonial-rating {
  color: #ffc107;
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

.testimonial-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
  font-style: italic;
  font-weight: 300;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.author-info p {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .story-content {
    grid-template-columns: 1fr;
  }

  .story-image {
    order: -1;
  }

  .page-header h1 {
    font-size: 3rem;
  }

  /* Added responsive styles for new sections */
  .vmv-content,
  .vmv-content.reverse {
    flex-direction: column;
    text-align: center;
  }

  .vmv-icon {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }

  .vmv-text h2 {
    font-size: 2rem;
  }

  .vmv-text p {
    font-size: 1.125rem;
  }

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

@media (max-width: 767px) {
  .page-header h1 {
    font-size: 2.5rem;
  }

  .page-header p {
    font-size: 1.125rem;
  }

  .story-text h2 {
    font-size: 2.25rem;
  }

  .story-text p {
    font-size: 1.0625rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .stat-number {
    font-size: 3rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Added mobile responsive styles for new sections */
  .vmv-icon {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .vmv-text h2 {
    font-size: 1.75rem;
  }

  .vmv-text p {
    font-size: 1rem;
  }

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

  .value-card {
    padding: var(--spacing-lg);
  }
}
