/* ============================================================
   Cursos Profissionalizantes – IBPIC® Educação
   /educacao/assets/css/profissionalizantes.css
   ============================================================ */

.prof-page {
    --prof-dark: var(--azul-profundo, #1A3A5C);
    --prof-dark-2: #0F2A44;
    --prof-accent: var(--edu-primary, #F2A67A);
    --prof-accent-2: var(--edu-accent, #E8844F);
    --prof-gold: var(--dourado, #C9A84C);
    --prof-text: #2D4254;
    --prof-muted: #687885;
    --prof-bg: #F6F8FA;
    --prof-border: #E1E7EC;
    --prof-white: #FFFFFF;
    --prof-success: #0F8E65;
    --prof-whatsapp: #25D366;

    width: 100%;
    color: var(--prof-text);
    background: #FFFFFF;
}

.prof-page .container {
    width: min(100% - 32px, 1180px);
    margin-inline: auto;
}

.prof-page .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


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

.prof-hero {
    padding:
        clamp(58px, 8vw, 88px)
        0
        clamp(48px, 7vw, 70px);

    color: #FFFFFF;
    text-align: center;

    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(242, 166, 122, 0.19),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            var(--prof-dark),
            var(--prof-dark-2)
        );
}

.prof-hero-content {
    max-width: 980px;
    margin: 0 auto;
}

.prof-eyebrow,
.prof-section-tag,
.prof-level-kicker {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.prof-eyebrow {
    margin-bottom: 12px;
    color: #F7C7AB;
}

.prof-hero h1 {
    max-width: 980px;
    margin: 0 auto 17px;
    color: #FFFFFF;
    font-size: clamp(2.1rem, 5.6vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.prof-hero h1 span {
    display: block;
    margin-top: 5px;
    color: #F4C7AA;
}

.prof-hero-lead {
    max-width: 850px;
    margin: 0 auto 24px;
    color: rgba(255,255,255,0.84);
    font-size: 1.02rem;
    line-height: 1.75;
}

.prof-hero-lead strong {
    color: #FFFFFF;
}

.prof-search {
    position: relative;
    display: flex;
    max-width: 720px;
    margin: 0 auto 20px;
    align-items: center;
}

.prof-search > i {
    position: absolute;
    left: 16px;
    color: #798894;
    pointer-events: none;
}

.prof-search input {
    width: 100%;
    min-height: 52px;
    padding: 11px 85px 11px 44px;
    color: #263A4F;
    background: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.42);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    font: inherit;
}

.prof-search input:focus {
    outline: none;
    border-color: var(--prof-accent);
    box-shadow:
        0 0 0 4px rgba(242,166,122,0.17),
        0 8px 22px rgba(0,0,0,0.08);
}

.prof-search button {
    position: absolute;
    right: 8px;
    min-height: 36px;
    padding: 6px 10px;
    color: var(--prof-dark);
    background: #F2F5F7;
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 750;
    cursor: pointer;
}

.prof-hero-actions,
.prof-finish-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.prof-btn {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 19px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.prof-btn-whatsapp {
    color: #FFFFFF;
    background: var(--prof-whatsapp);
}

.prof-btn-whatsapp:hover {
    color: #FFFFFF;
    background: #1FB85A;
}

.prof-btn-outline {
    color: #FFFFFF;
    background: transparent;
    border-color: rgba(255,255,255,0.62);
}

.prof-btn-outline:hover {
    color: #FFFFFF;
    background: rgba(255,255,255,0.08);
}

.prof-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 23px;
    color: rgba(255,255,255,0.72);
    font-size: 0.79rem;
}

.prof-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.prof-trust-row i {
    color: var(--prof-gold);
}


/* ============================================================
   INTENÇÕES
   ============================================================ */

.prof-intent-nav {
    background: #FFFFFF;
    border-bottom: 1px solid var(--prof-border);
    box-shadow: 0 4px 14px rgba(20,43,61,0.035);
}

.prof-intent-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.prof-intent-grid a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    color: var(--prof-dark);
    border-right: 1px solid var(--prof-border);
    font-size: 0.76rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

.prof-intent-grid a:first-child {
    border-left: 1px solid var(--prof-border);
}

.prof-intent-grid a:hover {
    background: #FFF8F4;
}


/* ============================================================
   SEÇÕES
   ============================================================ */

.prof-section {
    padding: clamp(52px, 7vw, 76px) 0;
    scroll-margin-top: 72px;
}

.prof-section-tag {
    margin-bottom: 8px;
    color: var(--prof-accent-2);
}

.prof-section-heading {
    max-width: 840px;
    margin: 0 auto 31px;
    text-align: center;
}

.prof-section-heading h2,
.prof-two-columns h2,
.prof-certificate h2 {
    margin: 0 0 12px;
    color: var(--prof-dark);
    font-size: clamp(1.65rem, 3.7vw, 2.35rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.prof-section-heading p,
.prof-two-columns p,
.prof-certificate p {
    color: var(--prof-muted);
    line-height: 1.75;
}

.prof-two-columns {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(280px, 0.75fr);
    gap: 38px;
    align-items: center;
}

.prof-two-columns p {
    margin: 0 0 14px;
}

.prof-answer-card,
.prof-official-card {
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid var(--prof-border);
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(20,43,61,0.04);
}

.prof-answer-card {
    border-top: 4px solid var(--prof-accent);
}

.prof-answer-card > strong {
    display: block;
    margin-bottom: 8px;
    color: var(--prof-dark);
    font-size: 1.08rem;
}

.prof-answer-card p {
    margin-bottom: 14px;
}

.prof-answer-card a,
.prof-official-card a {
    color: var(--prof-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ============================================================
   OBJETIVOS
   ============================================================ */

.prof-objectives {
    background: var(--prof-bg);
}

.prof-objective-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.prof-objective-grid article {
    padding: 21px;
    background: #FFFFFF;
    border: 1px solid var(--prof-border);
    border-radius: 13px;
}

.prof-objective-grid i {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    margin-bottom: 12px;
    color: var(--prof-dark);
    background: #FFF0E7;
    border-radius: 50%;
}

.prof-objective-grid h3 {
    margin: 0 0 7px;
    color: var(--prof-dark);
    font-size: 1rem;
}

.prof-objective-grid p {
    margin: 0;
    color: var(--prof-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}


/* ============================================================
   COMPARAÇÃO
   ============================================================ */

.prof-differences {
    background: #FFFFFF;
}

.prof-compare {
    overflow: hidden;
    border: 1px solid var(--prof-border);
    border-radius: 13px;
}

.prof-compare-row {
    display: grid;
    grid-template-columns:
        minmax(130px, 0.55fr)
        repeat(3, minmax(0, 1fr));
}

.prof-compare-row > * {
    padding: 14px 15px;
    border-right: 1px solid var(--prof-border);
    border-bottom: 1px solid var(--prof-border);
    font-size: 0.82rem;
    line-height: 1.55;
}

.prof-compare-row > *:last-child {
    border-right: 0;
}

.prof-compare-row:last-child > * {
    border-bottom: 0;
}

.prof-compare-head {
    color: #FFFFFF;
    background: var(--prof-dark);
    font-weight: 800;
}

.prof-compare-row:not(.prof-compare-head) strong {
    color: var(--prof-dark);
    background: #F7F9FA;
}

.prof-compare-row:not(.prof-compare-head) span {
    color: var(--prof-muted);
}


/* ============================================================
   CERTIFICADO
   ============================================================ */

.prof-certificate {
    background: var(--prof-bg);
}

.prof-certificate-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(280px, 0.65fr);
    gap: 36px;
    align-items: center;
}

.prof-certificate p {
    margin: 0 0 13px;
}

.prof-official-card {
    background: #FFFFFF;
    border-top: 4px solid var(--prof-dark);
}

.prof-official-card > i {
    margin-bottom: 12px;
    color: var(--prof-dark);
    font-size: 1.7rem;
}

.prof-official-card h3 {
    margin: 0 0 7px;
    color: var(--prof-dark);
    font-size: 1.08rem;
}

.prof-official-card p {
    font-size: 0.87rem;
}


/* ============================================================
   PROFISSÕES REGULAMENTADAS
   ============================================================ */

.prof-regulated {
    padding: 0 0 10px;
    background: var(--prof-bg);
}

.prof-regulated-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    color: #5E4A17;
    background: #FFF9E8;
    border: 1px solid #ECD995;
    border-radius: 12px;
}

.prof-regulated-box > i {
    margin-top: 3px;
    color: #A17408;
}

.prof-regulated-box strong {
    display: block;
    margin-bottom: 4px;
}

.prof-regulated-box p {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.6;
}


/* ============================================================
   CATÁLOGO
   ============================================================ */

.prof-catalog {
    background: #FFFFFF;
}

.prof-filter-wrap {
    margin-bottom: 20px;
}

.prof-category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.prof-category-filters button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    color: var(--prof-dark);
    background: #FFFFFF;
    border: 1px solid var(--prof-border);
    border-radius: 999px;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
}

.prof-category-filters button span {
    display: inline-grid;
    min-width: 21px;
    height: 21px;
    place-items: center;
    padding: 0 5px;
    color: var(--prof-muted);
    background: #F2F5F7;
    border-radius: 999px;
    font-size: 0.65rem;
}

.prof-category-filters button.is-active {
    color: #FFFFFF;
    background: var(--prof-dark);
    border-color: var(--prof-dark);
}

.prof-category-filters button.is-active span {
    color: var(--prof-dark);
    background: #FFFFFF;
}

.prof-results-count {
    margin: 13px 0 0;
    color: var(--prof-muted);
    font-size: 0.8rem;
    text-align: center;
}

.prof-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.prof-course-card {
    display: flex;
    min-height: 248px;
    flex-direction: column;
    padding: 19px;
    background: #FFFFFF;
    border: 1px solid var(--prof-border);
    border-top: 3px solid var(--prof-accent);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(20,43,61,0.035);
}

.prof-course-card[hidden] {
    display: none !important;
}

.prof-course-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin-bottom: 10px;
    color: var(--prof-dark);
    background: #FFF0E7;
    border-radius: 50%;
}

.prof-course-category {
    color: var(--prof-accent-2);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.prof-course-card h3 {
    margin: 7px 0;
    color: var(--prof-dark);
    font-size: 0.98rem;
    line-height: 1.35;
}

.prof-course-card p {
    flex: 1;
    margin: 0 0 13px;
    color: var(--prof-muted);
    font-size: 0.79rem;
    line-height: 1.55;
}

.prof-course-actions {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 7px;
}

.prof-course-actions a {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 9px;
    color: #FFFFFF;
    background: var(--prof-dark);
    border: 1px solid var(--prof-dark);
    border-radius: 7px;
    font-size: 0.73rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

.prof-course-actions a.secondary {
    color: var(--prof-dark);
    background: #FFFFFF;
    border-color: var(--prof-border);
}

.prof-empty {
    max-width: 560px;
    margin: 28px auto 0;
    padding: 26px;
    text-align: center;
    background: var(--prof-bg);
    border-radius: 12px;
}

.prof-empty > i {
    color: var(--prof-accent-2);
    font-size: 1.5rem;
}

.prof-empty h3 {
    margin: 9px 0 5px;
    color: var(--prof-dark);
}

.prof-empty p {
    color: var(--prof-muted);
}

.prof-empty a {
    color: var(--prof-dark);
    font-weight: 800;
}


/* ============================================================
   COMO ESCOLHER
   ============================================================ */

.prof-how {
    background: var(--prof-bg);
}

.prof-how-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.prof-how-grid article {
    min-height: 180px;
    padding: 18px 15px;
    background: #FFFFFF;
    border: 1px solid var(--prof-border);
    border-radius: 12px;
}

.prof-how-grid article > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #FFFFFF;
    background: var(--prof-dark);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
}

.prof-how-grid h3 {
    margin: 11px 0 6px;
    color: var(--prof-dark);
    font-size: 0.94rem;
}

.prof-how-grid p {
    margin: 0;
    color: var(--prof-muted);
    font-size: 0.81rem;
    line-height: 1.55;
}


/* ============================================================
   FINALIZAÇÃO
   ============================================================ */

.prof-finish {
    padding: clamp(56px, 8vw, 74px) 0;
    color: #FFFFFF;
    background:
        linear-gradient(
            135deg,
            var(--prof-dark),
            var(--prof-dark-2)
        );
    text-align: center;
}

.prof-finish-content {
    max-width: 860px;
    margin: 0 auto;
}

.prof-finish h2 {
    margin: 0 0 11px;
    color: #FFFFFF;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.prof-finish-content > p {
    margin: 0 auto 21px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

.prof-payment-details {
    max-width: 650px;
    margin: 20px auto 0;
    text-align: left;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
}

.prof-payment-details summary {
    padding: 13px 16px;
    color: #FFFFFF;
    font-size: 0.83rem;
    font-weight: 750;
    cursor: pointer;
}

.prof-payment-details > div {
    padding: 0 16px 16px;
}

.prof-payment-details p {
    color: rgba(255,255,255,0.76);
    font-size: 0.8rem;
    line-height: 1.55;
}

.prof-payment-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.prof-payment-actions a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    color: var(--prof-dark);
    background: #FFFFFF;
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}


/* ============================================================
   FAQ
   ============================================================ */

.prof-faq {
    background: #FFFFFF;
}

.prof-faq-list {
    max-width: 880px;
    margin: 0 auto;
}

.prof-faq details {
    margin-bottom: 10px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--prof-border);
    border-radius: 10px;
}

.prof-faq summary {
    position: relative;
    padding: 16px 48px 16px 18px;
    color: var(--prof-dark);
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

.prof-faq summary::-webkit-details-marker {
    display: none;
}

.prof-faq summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--prof-accent-2);
    font-size: 1.25rem;
    transform: translateY(-50%);
}

.prof-faq details[open] summary::after {
    content: '−';
}

.prof-faq details > div {
    padding: 0 18px 17px;
}

.prof-faq p {
    margin: 0;
    color: var(--prof-muted);
    font-size: 0.89rem;
    line-height: 1.7;
}


/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 1050px) {

    .prof-intent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .prof-intent-grid a {
        border: 1px solid var(--prof-border);
        border-top: 0;
    }

    .prof-objective-grid,
    .prof-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prof-how-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 800px) {

    .prof-two-columns,
    .prof-certificate-grid {
        grid-template-columns: 1fr;
    }

    .prof-compare {
        overflow-x: auto;
    }

    .prof-compare-row {
        min-width: 760px;
    }
}


@media (max-width: 680px) {

    .prof-page .container {
        width: min(100% - 24px, 1180px);
    }

    .prof-intent-grid,
    .prof-objective-grid,
    .prof-course-grid,
    .prof-how-grid,
    .prof-payment-actions {
        grid-template-columns: 1fr;
    }

    .prof-hero-actions,
    .prof-finish-actions {
        flex-direction: column;
    }

    .prof-hero-actions .prof-btn,
    .prof-finish-actions .prof-btn {
        width: 100%;
    }

    .prof-trust-row {
        flex-direction: column;
        align-items: center;
    }

    .prof-search input {
        padding-right: 72px;
        font-size: 0.9rem;
    }

    .prof-category-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .prof-category-filters button {
        flex: 0 0 auto;
    }

    .prof-how-grid article {
        min-height: auto;
    }
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }
}
