/* ===============================
   ABOUT PAGE – Ludevic Epie
   =============================== */

/* Page base */
body {
  background: #f7f7fb;
}

/* ===============================
   ABOUT HERO
   =============================== */

.about-hero {
  padding: 5rem 0 4rem;
}

.about-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111;
}

.about-hero p {
  color: #555;
  max-width: 720px;
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* ===============================
   CERTIFICATIONS SECTION
   =============================== */

.certifications {
  padding: 4rem 0 6rem;
}

.certifications h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111;
}

.cert-intro {
  color: #666;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 3rem;
}

/* ===============================
   CERTIFICATES GRID
   =============================== *

/* Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.2rem;
}

/* ===============================
   CERT CARD
   =============================== */

.cert-card {
  background: linear-gradient(145deg, #0f0f10, #1a1a1d);
  border-radius: 16px;
  padding: 1.8rem;
  color: #fff;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Tag */
.cert-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #9f8cff;
  margin-bottom: 0.6rem;
}

/* Title */
.cert-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* Meta text */
.cert-card p {
  font-size: 0.9rem;
  color: #d6d6d6;
  margin-bottom: 0.3rem;
}

.cert-card small {
  font-size: 0.8rem;
  color: #a9a9a9;
}

/* ===============================
   VIEW CERT BUTTON
   =============================== */

.cert-toggle {
  margin-top: 1.2rem;
  background: transparent;
  color: #b7a9ff;
  border: 2px solid #6c4ce3;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.cert-toggle:hover {
  background: rgba(108, 76, 227, 0.15);
  color: #fff;
}

/* ===============================
   CERTIFICATE PREVIEW
   =============================== */

.cert-preview {
  display: none;
  margin-top: 1.2rem;
  border-radius: 10px;
  overflow: hidden;
}

.cert-preview iframe {
  width: 100%;
  height: 280px;
  border: none;
}

/* Active state (JS toggles this) */
.cert-card.active .cert-preview {
  display: block;
}

/* ===============================
   DOCUMENTS SECTION
   =============================== */

.documents {
  padding: 4rem 0 6rem;
}

.documents h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #111;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.doc-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  color: #111;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.doc-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.doc-card p {
  color: #666;
  font-size: 0.95rem;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 768px) {
  .about-hero {
    padding: 4rem 0 3rem;
  }

  .cert-preview iframe {
    height: 220px;
  }
}