/* Estilização aprimorada para o card de instruções de contato (contact-card) na tela de cursos */
/* Mantém apenas o espaçamento entre cards, sem grid */
.courses-grid {
    display: block;
    margin-top: 32px;
}

.contact-card {
    background: linear-gradient(135deg, #f8fafc 80%, #e1e8f0 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding: 32px 28px 28px 28px;
    border-top: 4px solid #b71c1c;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    color: #222;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 1.08rem;
}
.contact-card h2 {
    color: #b71c1c;
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.contact-card h3 {
    color: #7c141a;
    font-size: 1.1rem;
    margin-top: 12px;
    margin-bottom: 6px;
}
.contact-card ul {
    padding-left: 20px;
    margin-bottom: 0;
    line-height: 1.7;
}
.contact-card ul ul {
    margin-top: 6px;
    margin-bottom: 0;
    padding-left: 18px;
    font-size: 0.98em;
}
.contact-card a {
    color: #b71c1c;
    text-decoration: underline;
    word-break: break-all;
}
.contact-card a:hover {
    color: #7c141a;
    text-decoration: underline wavy;
}
.contact-card li {
    margin-bottom: 6px;
}
.contact-card li:last-child {
    margin-bottom: 0;
}
/* CSS migrado de cursos.css legado */
.hero-section.hero-courses {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    align-items: center;
    gap: clamp(24px, 5vw, 56px);
    padding: 60px;
    background: linear-gradient(140deg, #0f172a 0%, rgba(17, 25, 44, 0.94) 45%, rgba(225, 25, 35, 0.9) 100%);
    color: #fff;
}
/* ...demais regras do cursos.css legado... */
.hero-section.hero-courses {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    align-items: center;
    gap: clamp(24px, 5vw, 56px);
    padding: 60px;
    background: linear-gradient(140deg, #0f172a 0%, rgba(17, 25, 44, 0.94) 45%, rgba(225, 25, 35, 0.9) 100%);
    color: #fff;
}

.hero-section.hero-courses .hero-copy {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 22px);
}

.hero-section.hero-courses .hero-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-section.hero-courses h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    margin: 0;
}

.hero-section.hero-courses p {
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    background: transparent;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-action:hover,
.hero-action:focus {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.16);
}

.hero-action.primary {
    background: #fff;
    color: #0f172a;
    border-color: #fff;
}

.hero-action.primary:hover,
.hero-action.primary:focus {
    background: rgba(255, 255, 255, 0.9);
}

.hero-action.ghost {
    border-color: rgba(255, 255, 255, 0.32);
}

.hero-section.hero-courses .hero-media {
    display: flex;
    justify-content: center;
}

.hero-section.hero-courses .hero-media img {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 28px 60px rgba(8, 15, 30, 0.45);
    object-fit: cover;
    max-height: 440px;
}

.courses-content {
    padding: clamp(48px, 6vw, 96px) clamp(24px, 6vw, 96px) 120px;
    background: #f8fafc;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.courses-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-top: 4px solid rgba(225, 25, 35, 0.65);
}

.courses-card h2 {
    font-size: clamp(24px, 3vw, 30px);
    color: var(--madesa-red-dark);
    margin-bottom: 18px;
}

.courses-card p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 16px;
}

.courses-list {
    columns: 2;
    column-gap: 38px;
    padding-left: 18px;
    line-height: 1.6;
    color: #333;
}

    .courses-card,
    .courses-card p,
    .contact-card,
    .contact-card p,
    .courses-note {
        text-align: left;
    }

.courses-list li {
    break-inside: avoid;
}

.courses-note {
    margin-top: 24px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(225, 25, 35, 0.08);
    color: #333;
    line-height: 1.6;
}

.courses-content .contact-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    border-top: 4px solid rgba(225, 25, 35, 0.45);
    display: flex;
    flex-direction: column;
    gap: 16px;
    line-height: 1.65;
    color: #333;
}

.courses-content .contact-card h2 {
    font-size: clamp(24px, 3vw, 30px);
    color: var(--madesa-red-dark);
    margin-bottom: 4px;
}

.courses-content .contact-card .highlight {
    padding: 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.05);
    font-weight: 600;
}

@media (max-width: 720px) {
    .courses-card,
    .courses-content .contact-card {
        padding: 24px;
    }

    .courses-list {
        columns: 1;
    }
}

@media (max-width: 1024px) {
    .hero-section.hero-courses {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-section.hero-courses h1,
    .hero-section.hero-courses p {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-section.hero-courses .hero-media img {
        max-height: 360px;
    }
}
