/* --- PAGE HEADER --- */
.page-header {
  padding: 120px 0;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(rgba(26, 29, 36, 0.7), rgba(26, 29, 36, 0.7)),
    url("https://placehold.co/1920x500/34495e/ffffff?text=About+Us") no-repeat
      center center;
  background-size: cover;
  background-attachment: fixed;
  margin-top: -95px;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
}

.page-header .subtitle {
  font-size: 1.2rem;
  margin-top: 10px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- GENERAL SECTION STYLES --- */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: #91c63c;
  border-radius: 2px;
}
.section-title.text-center {
  display: block;
  text-align: center;
}
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 50px;
}

/* --- WELCOME SECTION --- */
.welcome-section {
  padding: 80px 0;
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.welcome-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.welcome-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

/* --- VALUES / CERTIFICATION SECTION --- */
.values-section {
  padding: 80px 0;
  background-color: #f0f2f5;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.value-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
}
.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.value-icon {
  font-size: 2.5rem;
  color: #ffffff;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #91c63c;
  border-radius: 50%;
  margin: 0 auto 25px;
}
.value-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 15px;
}
.value-card p {
  color: #555;
  line-height: 1.7;
}

/* --- MISSION & VISION SECTION --- */
.mission-vision-section {
  padding: 80px 0;
  background-color: #1a1d24;
  color: #bdc3c7;
}
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}
.mv-card {
  text-align: center;
}
.mv-icon {
  font-size: 2.5rem;
  color: #91c63c;
  margin-bottom: 20px;
}
.mv-card h3 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 15px;
}
.mv-card p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* --- CERTIFICATES DISPLAY SECTION --- */
.certificates-display-section {
  padding: 80px 0;
}

/* New: Wrapper for the entire layout */
.certificates-layout-wrapper {
  margin-top: 50px;
}

/* New: Styles for the single top row */
.certificate-top-row {
  display: flex;
  justify-content: center;
  margin-bottom: 40px; /* Space between the top row and the bottom grid */
}

.certificate-top-row .certificate-item {
  max-width: 300px; /* Control the size of the top certificate */
  width: 100%;
}

/* New: Styles for the grid of certificates on the bottom */
.certificates-bottom-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* This is the existing style for individual certificate items - it remains the same */
.certificate-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}
.certificate-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.certificate-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- REVEAL ON SCROLL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .welcome-image {
    margin-bottom: 40px;
  }
  .mv-grid {
    grid-template-columns: 1fr;
  }
}
