/* PMI Certifications Page — certifications.css */
/* Min font-size: 14px throughout as instructed */

*, *::before, *::after { box-sizing: border-box; }

.elementor-widget-pmicert_hero .elementor-widget-container,
.elementor-widget-pmicert_cards .elementor-widget-container,
.elementor-widget-pmicert_cta .elementor-widget-container { padding: 0 !important; margin: 0 !important; }

/* ── HERO ─────────────────────────────────────────────────────── */
.pmicert-hero {
    background: #0f2d58;
    background-image: radial-gradient(ellipse at 70% 50%, rgba(26,143,232,0.12) 0%, transparent 60%);
    padding: 72px 32px 80px;
    text-align: center;
    color: #fff;
}
.pmicert-hero__inner { max-width: 720px; margin: 0 auto; }
.pmicert-hero__icon { margin-bottom: 20px; }
.pmicert-hero__icon svg { width: 52px; height: 52px; }
.pmicert-hero__heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 40px; font-weight: 800; color: #fff;
    line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em;
}
.pmicert-hero__sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.82);
    line-height: 1.65; margin: 0; max-width: 620px; margin: 0 auto;
}

/* ── CERT CARDS SECTION ───────────────────────────────────────── */
.pmicert-cards-section {
    background: #f8fafc;
    padding: 72px 0 80px;
}
.pmicert-cards-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.pmicert-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Individual cert card ──────────────────────────────────────── */
.pmicert-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;          /* clip the coloured header to card radius */
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.pmicert-card:hover {
    box-shadow: 0 8px 32px rgba(15,45,88,0.14);
    border-color: #0f2d58;
    transform: translateY(-3px);
}

/* Top row: acronym left, level badge right */
.pmicert-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    /* Coloured header bar — navy bg with bottom orange accent line */
    background: #0f2d58;
    margin: -28px -24px 20px;   /* bleed to card edges, undo card padding */
    padding: 18px 20px 16px;
    border-radius: 10px 10px 0 0;
    border-bottom: 3px solid #f97316;
}
.pmicert-card__acronym {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px; font-weight: 800;
    color: #ffffff; letter-spacing: -0.01em;
}
.pmicert-card__level {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.10em; text-transform: uppercase;
    color: #0f2d58; background: #f97316;
    border-radius: 4px; padding: 3px 8px;
    white-space: nowrap;
}

/* Full certification name */
.pmicert-card__name {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; font-weight: 600;
    color: #111827; line-height: 1.35;
    margin: 0; padding: 0;
}

/* Meta list: experience + study group */
.pmicert-card__meta {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
    flex: 1;
}
.pmicert-card__meta-item {
    display: flex; align-items: center; gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 400; color: #374151;
    line-height: 1.4;
}
.pmicert-card__meta-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.pmicert-card__meta-item strong { font-weight: 700; color: #111827; }

/* CTA button */
.pmicert-card__btn {
    display: flex; align-items: center; justify-content: center;
    gap: 6px;
    width: 100%; padding: 11px 16px;
    background: transparent; border: 1px solid #d1d5db;
    border-radius: 6px; cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 600; color: #111827;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    margin-top: auto;
    text-align: center;
}
.pmicert-card__btn:hover {
    background: #0f2d58; border-color: #0f2d58; color: #fff;
}
.pmicert-card__btn:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }

/* ── INQUIRY MODAL ─────────────────────────────────────────────── */
.pmicert-modal {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.pmicert-modal[hidden] { display: none !important; }

.pmicert-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(10,20,50,0.70); cursor: pointer;
}
.pmicert-modal__box {
    position: relative; background: #fff; border-radius: 12px;
    width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
    padding: 36px 32px 32px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.30);
    animation: pmicert-fadein 0.22s ease;
}
@keyframes pmicert-fadein {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pmicert-modal__close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    background: #f3f4f6; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s ease;
}
.pmicert-modal__close:hover { background: #e5e7eb; }
.pmicert-modal__close svg { width: 14px; height: 14px; color: #374151; }

.pmicert-modal__icon { text-align: center; margin-bottom: 12px; }
.pmicert-modal__icon svg { width: 40px; height: 40px; }

.pmicert-modal__heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px; font-weight: 800; color: #111827;
    text-align: center; margin: 0 0 8px; letter-spacing: -0.01em;
}
.pmicert-modal__sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; color: #6b7280; text-align: center;
    line-height: 1.55; margin: 0 0 24px;
}

.pmicert-modal__form { display: flex; flex-direction: column; gap: 16px; }
.pmicert-modal__field { display: flex; flex-direction: column; gap: 6px; }
.pmicert-modal__field label {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 600; color: #374151;
}
.pmicert-modal__field label span { color: #f97316; }
.pmicert-modal__field input {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid #e5e7eb; border-radius: 6px;
    font-family: 'DM Sans', sans-serif; font-size: 14px; color: #111827;
    background: #fff; transition: border-color 0.18s ease;
    outline: none;
}
.pmicert-modal__field input:focus { border-color: #f97316; }
.pmicert-modal__field input.pmicert-readonly { background: #f9fafb; color: #6b7280; cursor: default; }

.pmicert-modal__msg {
    padding: 12px 16px; border-radius: 6px;
    font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
}
.pmicert-modal__msg--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.pmicert-modal__msg--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pmicert-modal__msg[hidden]  { display: none; }

.pmicert-modal__submit {
    width: 100%; padding: 14px;
    background: #f97316; border: none; border-radius: 6px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; color: #fff;
    transition: background 0.18s ease, transform 0.15s ease;
}
.pmicert-modal__submit:hover   { background: #ea6c0a; transform: translateY(-1px); }
.pmicert-modal__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── NEED HELP CTA SECTION ─────────────────────────────────────── */
.pmicert-cta-section { background: #fff; padding: 72px 24px 80px; text-align: center; }
.pmicert-cta-inner { max-width: 600px; margin: 0 auto; }
.pmicert-cta-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px; font-weight: 800; color: #111827;
    margin: 0 0 16px; letter-spacing: -0.02em;
}
.pmicert-cta-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px; color: #6b7280; line-height: 1.65; margin: 0 0 32px;
}
.pmicert-cta-btn {
    display: inline-flex; align-items: center; padding: 14px 36px;
    background: #0f2d58; border-radius: 6px; color: #fff;
    font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700;
    text-decoration: none; transition: background 0.18s ease, transform 0.15s ease;
}
.pmicert-cta-btn:hover { background: #1a4a8a; transform: translateY(-2px); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px)  { .pmicert-cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  {
    .pmicert-cards-grid { grid-template-columns: 1fr; }
    .pmicert-hero__heading { font-size: 30px; }
    .pmicert-hero { padding: 52px 20px 60px; }
}
@media (max-width: 420px)  { .pmicert-modal__box { padding: 28px 20px 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
