/* About Page Specific Styles */

/* Hero Section - Using global hero styles from style.css */

/* Our Story Section */
.our-story {
  padding: var(--space-xl) 0;
}

.our-story .two-column {
  align-items: center;
  gap: var(--space-xl);
}

.our-story h2 {
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

.our-story h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}

.our-story p {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
  color: var(--gray-700);
}

.about-image {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

.image-wrapper:hover .about-image {
  transform: scale(1.02);
}

/* Our Mission Section */
.our-mission {
  padding: var(--space-xl) 0;
}

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

.value-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-medium);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px; /* Adjusted for text icon */
  color: var(--dark); /* Added color for the icon */
}

.value-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.mission-statement {
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.mission-statement h3 {
  color: white;
  margin-bottom: var(--space-sm);
}

.mission-statement p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Our Team Section */
.our-team {
  padding: var(--space-xl) 0;
}

.team-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  font-size: 1.1rem;
  color: var(--gray-700);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.team-member {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Team Member Photos - Fixed for better mobile display */
.member-image {
  height: auto;
  max-height: 350px;
  overflow: hidden;
  position: relative;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* Position image to show more of the face/upper body */
  aspect-ratio: 3/4; /* Maintain consistent aspect ratio */
  transition: transform var(--transition-medium);
}

/* Responsive adjustments for team member photos */
@media (max-width: 768px) {
  .member-image {
    max-height: 400px; /* Allow more height on mobile */
  }
  
  .member-image img {
    object-position: center 25%; /* Adjust positioning on mobile to show more of the face */
  }
  
  .team-member {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .member-image img {
    aspect-ratio: 4/5; /* Slightly taller aspect ratio for smallest screens */
  }
}

.member-info {
  padding: var(--space-md);
  text-align: center;
}

.member-info h3 {
  margin-bottom: var(--space-xs);
}

.position {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.description {
  color: var(--gray-700);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Certifications Section */
.certifications {
  padding: var(--space-xl) 0;
}

.cert-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  font-size: 1.1rem;
  color: var(--gray-700);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  text-align: center;
}

.cert-item {
  background-color: white;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.cert-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.cert-item img {
  height: 100px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: var(--space-sm);
}

.cert-item h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Gallery Section */
.gallery {
  padding: var(--space-xl) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(2, 48, 71, 0.8);
  color: white;
  padding: var(--space-sm);
  transform: translateY(100%);
  transition: transform var(--transition-fast);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Animations */
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.our-story,
.our-mission,
.our-team,
.certifications,
.gallery {
  opacity: 0;
  animation: fade-in 1s ease forwards;
}

.our-story {
  animation-delay: 0.1s;
}

.our-mission {
  animation-delay: 0.2s;
}

.our-team {
  animation-delay: 0.3s;
}

.certifications {
  animation-delay: 0.4s;
}

.gallery {
  animation-delay: 0.5s;
}

/* Responsive Styles for About Page */
@media (max-width: 991px) {
  .our-story .two-column {
    flex-direction: column;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .our-story p {
    font-size: 1rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .mission-statement {
    padding: var(--space-md);
  }
  
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }
}