/* ============================================================
   CEAD — Novo Sistema de Certificados — Page Styles
   ============================================================ */

.cead-ns * { box-sizing: border-box; }

/* ---- Zera padding-top do Eduma (60px padrão) + margem do entry-content ---- */
.container.site-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.site-main .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ---- Hero ---- */
.cead-ns-hero {
    background: linear-gradient(160deg, #1e3f72 0%, #2c6bc9 100%);
    color: #fff;
    text-align: center;
    padding: 56px 24px 48px;
}
.cead-ns-hero__tag {
    display: inline-block;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.cead-ns-hero h1 {
    font-size: clamp(26px, 4.5vw, 44px);
    font-weight: 800;
    line-height: 1.18;
    margin: 0 0 16px;
    color: #fff;
}
.cead-ns-hero__sub {
    font-size: 17px;
    opacity: .86;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ---- Generic section ---- */
.cead-ns-section { padding: 56px 24px; }
.cead-ns-section--gray { background: #f4f7fb; }

.cead-ns-container { max-width: 900px; margin: 0 auto; }

.cead-ns-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #2563b8;
    margin-bottom: 12px;
}
.cead-ns-section h2 {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 800;
    color: #1a2d4a;
    margin: 0 0 20px;
    line-height: 1.22;
}
.cead-ns-section p {
    font-size: 16px;
    line-height: 1.78;
    color: #4a5568;
    margin: 0 0 16px;
}

/* ---- Why cards ---- */
.cead-ns-why-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.cead-ns-why-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 22px;
    box-shadow: 0 2px 14px rgba(0,0,0,.07);
    border-top: 3px solid #2563b8;
}
.cead-ns-why-card__icon { font-size: 26px; margin-bottom: 12px; display: block; }
.cead-ns-why-card h3 { font-size: 15px; font-weight: 700; color: #1a2d4a; margin: 0 0 8px; }
.cead-ns-why-card p { font-size: 14px; color: #6b7280; margin: 0; line-height: 1.6; }

/* ---- Steps ---- */
.cead-ns-steps {
    display: flex;
    flex-direction: column;
    margin-top: 48px;
    position: relative;
}
.cead-ns-steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(to bottom, #2563b8, #f59e0b);
}
.cead-ns-step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding-bottom: 36px;
    position: relative;
}
.cead-ns-step:last-child { padding-bottom: 0; }
.cead-ns-step__num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2563b8;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 5px #f4f7fb;
}
.cead-ns-step__body h3 { font-size: 17px; font-weight: 700; color: #1a2d4a; margin: 10px 0 6px; }
.cead-ns-step__body p { font-size: 15px; color: #6b7280; margin: 0; line-height: 1.68; }

/* ---- Certs intro header ---- */
.cead-ns-certs-intro { padding-bottom: 0; }
.cead-ns-certs-header { text-align: center; }
.cead-ns-certs-header p { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---- Tier sections ---- */
.cead-ns-tier { padding: 72px 24px; border-top: 1px solid #e5e9f0; }
.cead-ns-tier:first-of-type { border-top: none; }

.cead-ns-tier__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.cead-ns-tier__inner--reverse .cead-ns-tier__visual { order: 2; }
.cead-ns-tier__inner--reverse .cead-ns-tier__content { order: 1; }

/* ---- Certificate image ---- */
.cead-ns-tier__img-wrap {
    position: relative;
    filter: drop-shadow(0 20px 48px rgba(0,0,0,.18));
    transition: transform .35s ease;
}
.cead-ns-tier__img-wrap:hover { transform: translateY(-6px) rotate(0.5deg); }
.cead-ns-cert-img { width: 100%; height: auto; display: block; border-radius: 6px; }

.cead-ns-tier--gratuito  .cead-ns-tier__img-wrap::before,
.cead-ns-tier--exclusivo .cead-ns-tier__img-wrap::before,
.cead-ns-tier--premium   .cead-ns-tier__img-wrap::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 16px;
    z-index: -1;
    opacity: .3;
    filter: blur(28px);
}
.cead-ns-tier--gratuito  .cead-ns-tier__img-wrap::before { background: #16a34a; }
.cead-ns-tier--exclusivo .cead-ns-tier__img-wrap::before { background: #2563b8; }
.cead-ns-tier--premium   .cead-ns-tier__img-wrap::before { background: #d97706; }

/* ---- Tier content ---- */
.cead-ns-tier__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
    color: #fff;
}
.cead-ns-tier--gratuito  .cead-ns-tier__badge { background: #16a34a; }
.cead-ns-tier--exclusivo .cead-ns-tier__badge { background: #2563b8; }
.cead-ns-tier--premium   .cead-ns-tier__badge { background: #d97706; }

.cead-ns-tier__title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    color: #1a2d4a;
    margin: 0 0 14px;
    line-height: 1.15;
}
.cead-ns-tier__desc {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.78;
    margin: 0 0 24px;
}

.cead-ns-tier__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 26px;
    padding: 14px 20px;
    border-radius: 10px;
    width: fit-content;
}
.cead-ns-tier--gratuito  .cead-ns-tier__price { background: rgba(22,163,74,.12); }
.cead-ns-tier--exclusivo .cead-ns-tier__price { background: rgba(37,99,184,.1); }
.cead-ns-tier--premium   .cead-ns-tier__price { background: rgba(217,119,6,.1); }

.cead-ns-tier__price-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #9ca3af;
}
.cead-ns-tier__price-value { font-size: 34px; font-weight: 900; line-height: 1; }
.cead-ns-tier--gratuito  .cead-ns-tier__price-value { color: #16a34a; }
.cead-ns-tier--exclusivo .cead-ns-tier__price-value { color: #1e40af; }
.cead-ns-tier--premium   .cead-ns-tier__price-value { color: #b45309; }

.cead-ns-tier__features {
    list-style: none;
    padding: 0; margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cead-ns-tier__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
}
.cead-ns-tier__features li::before {
    content: '\2713';
    width: 22px; height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cead-ns-tier--gratuito  .cead-ns-tier__features li::before { background: #dcfce7; color: #16a34a; }
.cead-ns-tier--exclusivo .cead-ns-tier__features li::before { background: #dbeafe; color: #1e40af; }
.cead-ns-tier--premium   .cead-ns-tier__features li::before { background: #fef3c7; color: #b45309; }
.cead-ns-tier__features li.highlight::before { background: #1a2d4a; color: #fff; }

.cead-ns-tier__cta {
    display: inline-block;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.cead-ns-tier__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.22); text-decoration: none; color: #fff; }
.cead-ns-tier--gratuito  .cead-ns-tier__cta { background: #16a34a; }
.cead-ns-tier--exclusivo .cead-ns-tier__cta { background: #2563b8; }
.cead-ns-tier--premium   .cead-ns-tier__cta { background: #d97706; }

/* ---- Legacy cards (three-column) ---- */
.cead-ns-legacy-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 36px;
}
.cead-ns-legacy-card {
    border-radius: 12px;
    padding: 28px 26px;
    border-top: 4px solid transparent;
}
.cead-ns-legacy-card--ok {
    background: #f0fdf4;
    border-top-color: #16a34a;
}
.cead-ns-legacy-card--warn {
    background: #fffbeb;
    border-top-color: #d97706;
}
.cead-ns-legacy-card--deadline {
    background: #eff6ff;
    border-top-color: #2563b8;
}
.cead-ns-legacy-card__icon { font-size: 26px; margin-bottom: 12px; display: block; }
.cead-ns-legacy-card h3 { font-size: 15px; font-weight: 700; color: #1a2d4a; margin: 0 0 10px; }
.cead-ns-legacy-card p { font-size: 14px; line-height: 1.7; color: #4a5568; margin: 0; }

/* ---- Start / course search ---- */
.cead-ns-start {
    background: linear-gradient(135deg, #1a2d4a 0%, #0f1e33 100%);
    text-align: center;
}
.cead-ns-start h2 { color: #fff; margin-bottom: 14px; }
.cead-ns-start p { color: rgba(255,255,255,.78); margin: 0 auto 36px; max-width: 560px; font-size: 17px; }

.cead-ns-search { max-width: 660px; margin: 0 auto; }
.cead-ns-search__wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    gap: 10px;
}
.cead-ns-search__icon { font-size: 17px; flex-shrink: 0; opacity: .5; }
.cead-ns-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1a2d4a;
    background: transparent;
    min-width: 0;
    padding: 8px 0;
}
.cead-ns-search__input::placeholder { color: #9ca3af; }
.cead-ns-search__btn {
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}
.cead-ns-search__btn:hover { background: #d97706; }

.cead-ns-start-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255,255,255,.55);
}
.cead-ns-start-links a {
    color: #f59e0b;
    font-weight: 600;
    text-decoration: none;
}
.cead-ns-start-links a:hover { text-decoration: underline; }
.cead-ns-start-links__sep { color: rgba(255,255,255,.3); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .cead-ns-tier__inner,
    .cead-ns-tier__inner--reverse { grid-template-columns: 1fr; gap: 36px; }
    .cead-ns-tier__inner--reverse .cead-ns-tier__visual { order: 0; }
    .cead-ns-tier__inner--reverse .cead-ns-tier__content { order: 0; }
    .cead-ns-tier { padding: 52px 20px; }
    .cead-ns-steps::before { display: none; }
    .cead-ns-why-cards { grid-template-columns: 1fr 1fr; }
    .cead-ns-legacy-cards { grid-template-columns: 1fr; }
    .cead-ns-start-links { flex-direction: column; gap: 8px; }
    .cead-ns-section { padding: 52px 20px; }
    .cead-ns-hero { padding: 64px 20px; }
    .cead-ns-search__wrap { border-radius: 14px; flex-wrap: wrap; padding: 12px 16px; }
    .cead-ns-search__btn { width: 100%; text-align: center; border-radius: 8px; }
}
@media (max-width: 480px) {
    .cead-ns-why-cards { grid-template-columns: 1fr; }
    .cead-ns-start-links { flex-direction: column; gap: 6px; }
}
