.agendas-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem;
    color: #23313f;
}
.agendas-heading { text-align: center; margin-bottom: 2rem; }
.agendas-eyebrow {
    display: inline-block;
    color: #477a80;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.agendas-heading h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; margin: 0 0 .65rem; }
.agendas-heading p { color: #667581; margin: 0; }
.agendas-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.agenda-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e9ec;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(32, 54, 65, .07);
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.agenda-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(32, 54, 65, .12); }
.agenda-photo-wrap {
    height: 160px;
    padding: .75rem .75rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #f4f8f8, #eaf1f2);
}
.agenda-photo {
    width: 124px;
    height: 124px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 14px;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(25, 50, 60, .12);
}
.agenda-card-content { padding: 1rem 1.15rem 1.2rem; display: flex; flex: 1; flex-direction: column; }
.agenda-card h2, .espermograma-content h2 { font-size: 1.12rem; font-weight: 700; margin: 0 0 .85rem; }
.agenda-date-label { color: #6a7a84; font-size: .86rem; }
.agenda-date { color: #276a70; font-size: 1.08rem; font-weight: 700; margin: .25rem 0 1.05rem; }
.agenda-unavailable { color: #7a5a35; margin: .6rem 0 1rem; }
.agenda-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    min-height: 44px;
    padding: .7rem 1rem;
    border: 0;
    border-radius: 10px;
    background: #286f75;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    text-align: center;
    transition: background .15s ease;
}
.agenda-button:hover { background: #205b60; }
.agenda-button-disabled { background: #aab5b8; cursor: not-allowed; }
.orientacao-terapeutica {
    max-width: 950px;
    margin: 1.5rem auto 0;
    text-align: center;
    border-left: 0;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    border-left: 4px solid #8aaeb0;
    background: #f4f8f8;
    color: #344b53;
    line-height: 1.65;
    border-radius: 0 10px 10px 0;
}
.espermograma-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid #e3e9ec;
    border-radius: 16px;
    background: #fff;
}
.espermograma-entry h2 { font-size: 1.15rem; margin: 0 0 .35rem; font-weight: 700; }
.espermograma-entry p { margin: 0; color: #667581; }
.espermograma-entry .agenda-button { margin-top: 0; flex-shrink: 0; }
.agenda-back-link { display: inline-block; margin-bottom: 1.25rem; color: #286f75; text-decoration: none; font-weight: 600; }
.agenda-back-link:hover { text-decoration: underline; }
.espermograma-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e3e9ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(32, 54, 65, .06);
}
.espermograma-image-wrap { min-height: 270px; background: #edf3f4; }
.espermograma-image-wrap img { display: block; width: 100%; height: 100%; min-height: 270px; object-fit: cover; }
.espermograma-content { padding: clamp(1.4rem, 3vw, 2.3rem); align-self: center; }
.espermograma-content p { color: #667581; }
@media (max-width: 900px) {
    .agendas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .agendas-page { padding: 1.5rem .85rem 2rem; }
    .agendas-grid { grid-template-columns: 1fr; }
    .agenda-photo-wrap { height: 150px; }
    .agenda-photo { width: 116px; height: 116px; }
    .espermograma-entry { align-items: stretch; flex-direction: column; padding: 1.15rem; }
    .espermograma-entry .agenda-button { width: 100%; }
    .espermograma-card { grid-template-columns: 1fr; }
    .espermograma-image-wrap, .espermograma-image-wrap img { min-height: 0; height: auto; aspect-ratio: 618 / 388; }
}

.voltar-inicio {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.voltar-inicio:hover {
    text-decoration: underline;
}

.voltar-inicio:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 3px;
}

