/* ==========================================================================
   certifications-modern.css — Clean & minimal redesign for certifications.php
   Loaded ONLY on certifications.php, AFTER certifications.css.
   Every selector scoped to `body.certifications-modern` to keep specificity
   high and prevent bleed onto other pages.
   ========================================================================== */

/* ---- Design tokens ---- */
body.certifications-modern {
  --pp-primary: #2563eb;
  --pp-primary-dark: #1d4ed8;
  --pp-primary-soft: #eff6ff;
  --pp-ink: #0f172a;
  --pp-body: #475569;
  --pp-muted: #64748b;
  --pp-line: #e2e8f0;
  --pp-bg: #ffffff;
  --pp-bg-alt: #f8fafc;
  --pp-radius: 18px;
  --pp-radius-sm: 12px;
  --pp-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 12px 32px -12px rgba(15, 23, 42, 0.12);
  --pp-shadow-hover: 0 18px 48px -16px rgba(37, 99, 235, 0.28);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--pp-body);
  -webkit-font-smoothing: antialiased;
}

body.certifications-modern h1,
body.certifications-modern h2,
body.certifications-modern h3,
body.certifications-modern h4 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   HERO
   ========================================================================== */
body.certifications-modern .certifications-hero {
  background: radial-gradient(1200px 600px at 80% -10%, #eef4ff 0%, rgba(238, 244, 255, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, var(--pp-bg-alt) 100%);
  padding: 84px 0 72px;
  min-height: auto;
}

body.certifications-modern .certifications-hero-container {
  max-width: 1240px;
  padding: 0 40px;
}

body.certifications-modern .certifications-hero-content {
  max-width: 760px;
}

body.certifications-modern .certifications-hero-badge {
  background: var(--pp-primary-soft) !important;
  color: var(--pp-primary-dark) !important;
  border: 1px solid #dbeafe;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
  gap: 8px;
}
body.certifications-modern .certifications-hero-badge i {
  font-size: 14px;
}

body.certifications-modern .certifications-hero-title {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--pp-ink);
  margin: 0 0 18px;
}

body.certifications-modern .certifications-hero-description {
  font-size: 18px;
  color: var(--pp-muted);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 640px;
}

/* ==========================================================================
   CERTIFICATIONS GRID
   ========================================================================== */
body.certifications-modern .certifications-grid-section {
  padding: 80px 0;
  background: var(--pp-bg-alt);
}

body.certifications-modern .container {
  max-width: 1240px;
  padding: 0 40px;
}

body.certifications-modern .certifications-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

body.certifications-modern .certification-card {
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  padding: 26px;
  text-align: left;
  box-shadow: var(--pp-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}
body.certifications-modern .certification-card:hover {
  transform: translateY(-8px);
  border-color: #dbeafe;
  box-shadow: var(--pp-shadow-hover);
}

/* Certificate image — consistent aspect ratio + cover */
body.certifications-modern .certification-icon {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: var(--pp-radius-sm);
  background: var(--pp-bg-alt);
  border: 1px solid var(--pp-line);
}
body.certifications-modern .certification-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}
body.certifications-modern .certification-card:hover .certification-icon img {
  transform: scale(1.05);
}

/* Verified check badge on image */
body.certifications-modern .certification-verified {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pp-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.7);
}

/* Certificate icon tile */
body.certifications-modern .certification-badge-tile {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--pp-primary);
  background: var(--pp-primary-soft);
  border-radius: var(--pp-radius-sm);
  margin-bottom: 16px;
}

body.certifications-modern .certification-title {
  font-size: 19px;
  color: var(--pp-ink);
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.3;
}

body.certifications-modern .certification-description {
  font-size: 14.5px;
  color: var(--pp-muted);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   CALL TO ACTION
   ========================================================================== */
body.certifications-modern .certifications-cta {
  padding: 0;
  background: #fff;
}
body.certifications-modern .certifications-cta .container {
  padding-top: 72px;
  padding-bottom: 88px;
}
body.certifications-modern .certifications-cta .cta-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--pp-primary) 0%, var(--pp-primary-dark) 100%);
  text-align: center;
}
body.certifications-modern .certifications-cta .cta-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
body.certifications-modern .certifications-cta .cta-description {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin: 0 0 28px;
}
body.certifications-modern .cta-buttons {
  gap: 14px;
}

body.certifications-modern .cta-btn {
  padding: 13px 28px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  min-width: auto;
}
body.certifications-modern .cta-btn.primary {
  background: #fff !important;
  color: var(--pp-primary-dark) !important;
  border: 1px solid #fff !important;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.4) !important;
}
body.certifications-modern .cta-btn.primary:hover {
  background: #f1f5f9 !important;
  color: var(--pp-primary-dark) !important;
  transform: translateY(-2px);
}
body.certifications-modern .cta-btn.secondary {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
}
body.certifications-modern .cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-color: #fff !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  body.certifications-modern .certifications-hero {
    padding: 64px 0 56px;
  }
  body.certifications-modern .certifications-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
  }
  body.certifications-modern .certifications-grid-section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  body.certifications-modern .certifications-hero-container,
  body.certifications-modern .container {
    padding-left: 22px;
    padding-right: 22px;
  }
  body.certifications-modern .certifications-grid {
    grid-template-columns: 1fr;
  }
  body.certifications-modern .certifications-cta .cta-content {
    padding: 40px 24px;
  }
  body.certifications-modern .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  body.certifications-modern .cta-btn {
    width: 100%;
  }
}
