.teaching-hero {
    padding-top: 4.4rem;
    padding-bottom: 1.2rem;
    text-align: center;
}

.teaching-intro {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.8rem 2rem;
    border-top: 1px solid rgba(107, 15, 26, 0.16);
    border-bottom: 1px solid rgba(107, 15, 26, 0.12);
    background: rgba(255, 255, 255, 0.62);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(36, 20, 14, 0.06);
}

.teaching-intro p {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.65;
}

.teaching-submenu {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.9rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 28px rgba(36, 20, 14, 0.06);
}

.teaching-submenu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(107, 15, 26, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #372625;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(36, 20, 14, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.teaching-submenu a:hover,
.teaching-submenu a:focus-visible {
    color: var(--accent);
    border-color: rgba(107, 15, 26, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(36, 20, 14, 0.1);
}

.teaching-content {
    padding-top: 2.4rem;
}

.teaching-grid {
    display: grid;
    gap: 1.8rem;
}

.teaching-block {
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid rgba(107, 15, 26, 0.09);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 34px rgba(36, 20, 14, 0.08);
}

.teaching-block-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 1.2rem;
    align-items: center;
}

.teaching-block-header {
    display: grid;
    gap: 0.45rem;
}

.workshop-name {
    margin: 0;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.workshop-name-vinculos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    align-items: baseline;
}

.workshop-name-main {
    color: #111111;
}

.workshop-name-con {
    color: #264fb2;
}

.workshop-name-slash {
    color: #111111;
}

.workshop-name-sentidos {
    color: #6b0f1a;
}

.workshop-name-digitalmente {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: baseline;
}

.workshop-name-digital {
    color: #111111;
}

.workshop-name-mente {
    color: #2164b2;
}

.teaching-block-header h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.8vw, 2.3rem);
    line-height: 1.14;
    color: #201616;
}

.workshop-logo-slot {
    width: 220px;
    aspect-ratio: 1;
    justify-self: end;
    display: grid;
    place-items: center;
    padding: 0;
}

.workshop-logo-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.workshop-logo-slot-small img {
    width: 84%;
    height: 84%;
}

.teaching-subgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.teaching-subgrid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workshop-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(107, 15, 26, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 240, 234, 0.94));
    box-shadow: 0 14px 28px rgba(36, 20, 14, 0.08);
}

.workshop-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(107, 15, 26, 0.9), rgba(177, 103, 70, 0.65));
}

.workshop-card h3 {
    margin: 0 0 0.8rem;
    color: #251919;
    font-size: 1.1rem;
    line-height: 1.32;
}

.workshop-card p {
    margin: 0;
    color: #403433;
    line-height: 1.72;
}

.workshop-card-wide {
    padding-top: 1.9rem;
}

.materials-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(107, 15, 26, 0.05);
    border: 1px solid rgba(107, 15, 26, 0.1);
}

.materials-label {
    margin: 0;
    color: #241918;
    font-size: 1rem;
    font-weight: 700;
}

.materials-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
    font-size: 1.15rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.materials-link:hover,
.materials-link:focus-visible {
    background: #1b1b1b;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 900px) {
    .teaching-block-top,
    .teaching-subgrid,
    .teaching-subgrid.two-columns {
        grid-template-columns: 1fr;
    }

    .workshop-logo-slot {
        justify-self: start;
        width: min(220px, 100%);
    }
}

@media (max-width: 640px) {
    .teaching-hero {
        padding-top: 3.4rem;
    }

    .teaching-intro,
    .teaching-block {
        padding: 1.25rem;
    }

    .teaching-submenu {
        justify-content: flex-start;
    }

    .teaching-intro p,
    .workshop-card p {
        font-size: 0.98rem;
    }

    .materials-panel {
        align-items: flex-start;
    }
}
