@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");

.container-intro {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;

    max-width: 1200px;
    width: 100%;
    margin: 0 auto;

    gap: 60px;

    P{
        font-size: 1rem;
    }
}


.introducao{
    max-width: 640px;
    flex: 1;
    margin-top: 50px;
    
    h1 {
        /* font-weight: bold; */
    }
    
    li{
        margin-top: 20px;
        font-size: 1.1rem;
        list-style: none;
        margin-bottom: 0;
    }
}

.agenda-calendario {
    --agenda-primary: #418641;
    --agenda-secondary: #ff5a1f;
    --agenda-surface: #ffffff;
    --agenda-soft: #eef6ec;
    --agenda-border: #d8e5d4;
    --agenda-text: #000000;
    --agenda-muted: #096d25;

    flex: 0 0 330px;
    margin-top: 50px;
    color: var(--agenda-text);
}

.agenda-calendario-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.agenda-calendario-header span {
    font-size: 0.67rem;
    font-weight: 700;
    color: var(--agenda-primary);
    text-transform: uppercase;
}

.agenda-calendario-header strong {
    font-size: 1rem;
    font-weight: 700;
}

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    max-width: 230px;
}

.agenda-weekday,
.agenda-day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
}

.agenda-weekday {
    height: 18px;
    aspect-ratio: auto;
    color: var(--agenda-muted);
    font-size: 0.65rem;
    font-weight: 700;
}

.agenda-day {
    position: relative;
    border: 1px solid var(--agenda-border);
    background: var(--agenda-surface);
    font-size: 0.67rem;
    line-height: 1;
}

.agenda-day.has-event {
    border-color: var(--agenda-primary);
    background: var(--agenda-soft);
    color: #244d27;
    font-weight: 700;
}

.agenda-day small {
    position: absolute;
    right: 3px;
    bottom: 2px;
    color: var(--agenda-secondary);
    font-size: 0.5rem;
    line-height: 1;
}

.agenda-day.is-today {
    border-color: var(--agenda-primary);
    background: var(--agenda-primary);
    color: #ffffff;
    font-weight: 700;
    padding-bottom: 4px;
}

.agenda-today-badge {
    position: absolute;
    right: 3px;
    bottom: 2px;
    background: var(--agenda-primary);
    color: #ffffff;
    font-size: 0.43rem;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 2px;
    line-height: 1;
    text-transform: uppercase;
}

.agenda-day-empty {
    border: 0;
    background: transparent;
}

.agenda-eventos {
    margin-top: 18px;
}

.agenda-eventos-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.agenda-eventos h2 {
    margin: 0;
    color: var(--agenda-text);
    font-size: 1.06rem;
    font-weight: 700;
}

.agenda-eventos-header span {
    color: var(--agenda-muted);
    font-size:  0.75rem;
}

.agenda-carousel {
    position: relative;
}

.agenda-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.agenda-card {
    overflow: hidden;
    border: 1px solid #dfe4df;
    border-radius: 8px;
    background: var(--agenda-surface);
    box-shadow: 0 10px 24px rgba(38, 50, 40, 0.08);
}

.agenda-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--agenda-soft);
}

.agenda-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agenda-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--agenda-primary);
    background: linear-gradient(135deg, #eef6ec, #ffffff);
}

.agenda-card-placeholder .material-symbols-outlined {
    font-size: 2.6rem;
}

.agenda-card-body {
    padding: 14px 15px 16px;
}

.agenda-card-body h3 {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #1f2b22;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.agenda-card-date,
.agenda-card-description,
.agenda-empty {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.agenda-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--agenda-secondary);
    font-weight: 600;
}

.agenda-card-date .material-symbols-outlined {
    font-size: 1rem;
}

.agenda-card-description {
    display: -webkit-box;
    margin-top: 6px;
    overflow: hidden;
    color: var(--agenda-muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.agenda-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.agenda-carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--agenda-primary);
    background: transparent;
    line-height: 1;
}

.agenda-carousel-arrow:hover,
.agenda-carousel-arrow:focus,
.agenda-carousel-arrow:active {
    color: var(--agenda-primary);
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: none;
}

.agenda-carousel-arrow .material-symbols-outlined {
    font-size: 1.25rem;
}

.agenda-carousel-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 78px;
}

.agenda-carousel-dot {
    display: none;
    width: 7px;
    height: 7px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--agenda-border);
    opacity: 1;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.agenda-carousel-dot.is-visible {
    display: block;
}

.agenda-carousel-dot.active {
    background: var(--agenda-primary);
    transform: scale(1.45);
}

.agenda-carousel-dot:hover,
.agenda-carousel-dot:focus,
.agenda-carousel-dot:active {
    background: var(--agenda-primary);
    box-shadow: none;
    outline: none;
}

.pesquisa {
    max-width: 1200px;
    margin: 30px auto;
    margin-top: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

    h1 {
        /* font-weight: bold; */
    }
}

@media (max-width: 992px) {
    .container-intro {
        flex-direction: column;
        gap: 30px;
    }

    .introducao,
    .agenda-calendario {
        max-width: 100%;
        width: 100%;
    }

    .agenda-calendario {
        flex-basis: auto;
        margin-top: 0;
    }

    .agenda-grid {
        max-width: 230px;
    }

    .agenda-carousel {
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    .agenda-calendario {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .agenda-calendario-header {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }

    .agenda-grid {
        margin: 0 auto;
        width: 100%;
        max-width: 340px;
        gap: 6px;
    }

    .agenda-weekday {
        font-size: 0.75rem;
    }

    .agenda-day {
        font-size: 0.9rem;
    }

    .agenda-day.is-today {
        padding-bottom: 12px;
    }

    .agenda-today-badge {
        font-size: 0.5rem;
        right: 50%;
        transform: translateX(50%);
        bottom: 4px;
        padding: 2px 4px;
    }

    .agenda-eventos {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .agenda-eventos-header {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .agenda-calendario-header {
        flex-direction: column;
        gap: 4px;
    }

    .agenda-day {
        font-size: 0.8rem;
    }

    .agenda-day.is-today {
        padding-bottom: 8px;
    }

    .agenda-today-badge {
        font-size: 0.43rem;
        bottom: 2px;
        padding: 1px 3px;
    }

    .agenda-eventos-header {
        flex-direction: column;
        gap: 2px;
    }

    .agenda-carousel {
        max-width: 100%;
    }
}
/* 
@media (prefers-color-scheme: dark) {
    .agenda-calendario {
        --agenda-primary: #9bcf95;
        --agenda-secondary: #ff8a55;
        --agenda-surface: #172018;
        --agenda-soft: #223022;
        --agenda-border: #365138;
        --agenda-text: #498137;
        --agenda-muted: #388b21;
    }

    .agenda-day.has-event {
        color: #eaf7e7;
    }

    .agenda-card {
        border-color: var(--agenda-border);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    }

    .agenda-card-placeholder {
        background: linear-gradient(135deg, #223022, #172018);
    }

    .agenda-card-body h3 {
        color: var(--agenda-text);
    }
} */

.barra-pesquisa {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 500px;
    

    button {
        border: none;
        background-color: #a3c79d;
        color: white;
        height: 35px;
        width: 35px;
        border-radius: 50%;
        margin-left: 3px;

        display: flex;
        align-items: center;
        justify-content: center;

        cursor: pointer;
        transition: background-color 0.3s ease;
        position: absolute;
        left: 2px;
        z-index: 10;
        padding: 0;

        &:hover {
            background-color: #94b896;
        }
    }
    .campo-pesquisa {
        color: #636363;
        border: 1px solid #a3c79d;
        border-radius: 50px;
        padding: 0 20px 0 55px;
        height: 43px;
        background: transparent;
        width: 100%;
        font-size: 1.12rem;
    
        &:focus,
        &:focus-visible {
            outline: none;
            box-shadow: none;
            border-color: #7ab87a;
            background-color: rgba(163, 199, 157, 0.1);
        }
    
        &::placeholder {
            color: #999;
            opacity: 1;
            font-weight: 400;
            font-size: 0.87rem;
            
        }
    }
}

/* Container da paginação */
.custom-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    list-style: none;
    margin: 2rem 0;
    padding: 0;

    font-family: system-ui, -apple-system, sans-serif;
    
    /* Estilo geral de cada item/botão */
    .page-item {
        display: inline-block;

        &:not(.active):not(.disabled) .page-link:hover {
            color: #2b6cb0; /* Azul do texto */
            background-color: #ebf8ff; /* Fundo azul bem clarinho */
            border-color: #bee3f8;
            transform: translateY(-1px); /* Leve efeito de subir */
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }
        
        /* Estilo da página ATUAL (Onde o usuário está) */
        &.active .page-link {
            color: #ffffff;
            background-color: #3182ce; /* Cor de destaque (Azul) */
            border-color: #3182ce;
            font-weight: 600;
            cursor: default;
        }
        
        /* Estilo dos botões DESABILITADOS (Ex: "Anterior" quando está na página 1) */
        &.disabled .page-link {
            color: #a0aec0; /* Texto apagado */
            background-color: #f7fafc; /* Fundo cinza claro */
            border-color: #edf2f7;
            cursor: not-allowed;
            transform: none;
        }
        
        /* Estilo para os três pontinhos (...) */
        &.ellipsis .page-link {
            border: none;
            background: transparent;
            cursor: default;
        }
    }

    /* O link clicável e o texto dentro dos botões */
    .page-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.6rem 1rem;
        min-width: 2.5rem;
        height: 2.5rem;
        color: #4a5568; /* Cinza escuro */
        background-color: #ffffff;
        border: 1px solid #e2e8f0; /* Borda sutil */
        border-radius: 8px; /* Cantos arredondados modernos */
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.2s ease-in-out;
        cursor: pointer;
        box-sizing: border-box;
    }
}

/* Responsividade para telas de celular */
@media (max-width: 600px) {
    .custom-pagination {
        gap: 0.25rem;
    }
    /* Esconde o "Primeira" e "Última" no mobile para não amassar a tela */
    .custom-pagination .first,
    .custom-pagination .last {
        display: none;
    }
    .custom-pagination .page-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
}