/* ================= CERTIFICATES PAGE ================= */

.certificates-page {
  --cert-brown: #3d2b1f;
  --cert-brown-dark: #241810;
  --cert-tan: #8b5e3c;
  --cert-cream: #f9f5f0;
  --cert-beige: #f0e8df;
  --cert-text: #4a3f38;
  --cert-white: #ffffff;
  --cert-max: 1250px;
  background: var(--cert-cream);
  color: var(--cert-text);
  font-family: "Poppins", sans-serif;
}

.certificates-page h1,
.certificates-page h2,
.certificates-page h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--cert-brown);
}

/* ================= HERO ================= */

.cert-hero {
  padding: 64px 5% 40px;
  max-width: var(--cert-max);
  margin: 0 auto;
}

.cert-hero-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.cert-hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cert-tan);
  margin-bottom: 14px;
}

.cert-hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
}

.cert-hero-content p {
  font-size: 14.5px;
  line-height: 1.85;
  margin: 0;
  max-width: 620px;
}

.cert-hero-badge {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4b220c, #3a1803);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 16px 40px rgba(75, 34, 12, 0.2);
  flex-shrink: 0;
}

.cert-hero-badge i {
  font-size: 42px;
}

.cert-hero-badge span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ================= SECTION TITLE ================= */

.cert-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 5% 36px;
  max-width: var(--cert-max);
  margin: 0 auto;
}

.cert-section-title::before,
.cert-section-title::after {
  content: "";
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: rgba(139, 94, 60, 0.35);
}

.cert-section-title span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  color: var(--cert-brown);
  text-align: center;
  padding: 0 16px;
}

/* ================= CERTIFICATE GRID ================= */

.cert-grid-section {
  padding: 0 5% 56px;
  max-width: var(--cert-max);
  margin: 0 auto;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--cert-white);
  border: 1px solid rgba(139, 94, 60, 0.12);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 28px rgba(61, 43, 31, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(61, 43, 31, 0.1);
}

.cert-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.cert-card-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cert-beige);
  color: var(--cert-brown);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-card-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.25;
}

.cert-card-sub {
  font-size: 12px;
  color: var(--cert-tan);
  font-weight: 500;
  margin: 0;
}

.cert-card-icon {
  margin-left: auto;
  color: #c0392b;
  font-size: 22px;
  opacity: 0.85;
}

.cert-card-desc {
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 16px;
  min-height: 42px;
}

.cert-preview {
  border: 1px solid #e8e0d8;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f0eb;
  margin-bottom: 16px;
  aspect-ratio: 3 / 4;
}

.cert-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.cert-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s ease;
}

.cert-btn i {
  font-size: 12px;
}

.cert-btn-primary {
  background: #3a1803;
  color: #fff;
}

.cert-btn-primary:hover {
  background: #4b220c;
  color: #fff;
}

.cert-btn-outline {
  background: #f5efe6;
  color: var(--cert-brown);
  border: 1.5px solid var(--cert-brown);
}

.cert-btn-outline:hover {
  background: #fff;
  color: var(--cert-brown);
}

/* ================= SHARE LINK ================= */

.cert-share {
  padding: 0 5% 32px;
  max-width: var(--cert-max);
  margin: 0 auto;
}

.cert-share-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #3a1803, #4b220c);
  color: #fff;
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 14px 36px rgba(58, 24, 3, 0.18);
}

.cert-share-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.cert-share-copy h2 {
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 8px;
}

.cert-share-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.cert-share-link-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-share-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
}

.cert-share-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
}

/* ================= NOTE ================= */

.cert-note {
  padding: 0 5% 70px;
  max-width: var(--cert-max);
  margin: 0 auto;
}

.cert-note-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--cert-beige);
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(139, 94, 60, 0.15);
}

.cert-note-inner i {
  font-size: 24px;
  color: var(--cert-tan);
  margin-top: 2px;
  flex-shrink: 0;
}

.cert-note-inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.cert-note-inner a {
  color: var(--cert-brown);
  font-weight: 600;
  text-decoration: underline;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .cert-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .cert-preview {
    aspect-ratio: 4 / 5;
    max-height: 420px;
  }
}

@media (max-width: 768px) {
  .cert-hero {
    padding: 44px 4% 32px;
  }

  .cert-hero-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cert-hero-content p {
    max-width: none;
    margin: 0 auto;
  }

  .cert-hero-badge {
    margin: 0 auto;
    width: 110px;
    height: 110px;
  }

  .cert-hero-badge i {
    font-size: 32px;
  }

  .cert-grid-section,
  .cert-note {
    padding-left: 4%;
    padding-right: 4%;
  }

  .cert-note-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .cert-share-inner {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
}
