/* about.css - Final version with transparent background fix */

/* =================================== */
/* ==== 1. THE FIX FOR THE BLACK BOX ==== */
/* =================================== */

/* This new rule overrides the dark overlay from style.css for sections ON THIS PAGE */
.about-page section::before {
    background-color: transparent;
}

/* =================================== */
/* ==== 2. PAGE SETUP & BACKGROUND ==== */
/* =================================== */

body.about-page {
  background-image: url('images/background3.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

main {
  padding-top: 100px;
}

/* =================================== */
/* ==== 3. GENERAL SECTION STYLES ==== */
/* =================================== */

.about-content-section {
  max-width: 1100px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

/* MODIFIED: Changed title color back to the brand color for readability */
.section-title {
  text-align: center;
  font-size: 2.6em;
  font-weight: 600;
  color: var(--primary-color); /* Using your main green color */
  text-shadow: 1px 1px 3px rgba(255,255,255,0.7); /* Light shadow for contrast */
  margin-bottom: 40px;
}

/* MODIFIED: Changed subtitle color to a dark grey */
.section-subtitle {
  text-align: center;
  font-size: 1.1em;
  color: #333; /* Dark grey color */
  text-shadow: 1px 1px 3px rgba(255,255,255,0.7); /* Light shadow for contrast */
  max-width: 700px;
  margin: -20px auto 40px auto;
}


/* =================================== */
/* ==== 4. FOUNDER SECTION ==== */
/* =================================== */

.founder-card {
  display: flex;
  align-items: center;
  gap: 50px;
  background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.founder-image {
  flex: 0 0 250px;
  /* height: 250px; */
}

.founder-image img {
  /* width: 100%; */
  /* height: 100%; */
  /* object-fit: cover; */
  /* border-radius: 50%; */
  /* border: 4px solid white; */
}

.founder-details {
  flex: 1;
}

.founder-details h3 {
  font-size: 2em;
  font-weight: 600;
  color: black;
  margin: 0 0 15px 0;
}

.founder-details p {
  font-size: 1.1em;
  line-height: 1.7;
  color: black;
}

/* ======================================================= */
/* ==== 5. HISTORY & JOURNEY ==== */
/* ======================================================= */

.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.history-box {
  background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.history-box h4 {
  font-size: 1.4em;
  font-weight: 600;
  color: black;
  margin: 0 0 20px 0;
  border-bottom: 2px solid #2A6F5B;
  padding-bottom: 10px;
}

.history-box ul {
  list-style: none;
  padding-left: 0;
}

.history-box li {
  margin-bottom: 15px;
  font-size: 1em;
  color: black;
  line-height: 1.6;
}

/* =================================== */
/* ==== 6. CERTIFICATES SECTION ==== */
/* =================================== */

.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.trophy-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e9e9e9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trophy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.trophy-card img {
  width: 100%;
  height: 100%;
  display: block;
}


/* =================================== */
/* ==== 7. RESPONSIVE DESIGN ==== */
/* =================================== */

@media (max-width: 768px) {
  .founder-card {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .founder-image {
    width: 200px;
    height: 200px;
  }

  .history-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2.2em;
  }
  .trophy-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}