/* =========================
   SEC-AGENDA
   ========================= */

.sec-agenda {
    padding: 60px 0 80px;
    background-color: #f8f7f4;
}

/* ── Year toggle ───────────────────────────────────────────────────────────── */

.agenda-year-row {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.agenda-year-toggle {
    color: var(--black);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #222;
    background: #fff;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    line-height: 1;
}

.agenda-year-toggle:hover {
    background: #f0f0f0;
}

.agenda-year-label {
    font-weight: 700;
}

.agenda-year-icon {
    font-size: 1rem;
    line-height: 1;
}

.agenda-year-panel {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1.5px solid #222;
    border-radius: 6px;
    padding: 6px;
    z-index: 20;
    min-width: 90px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scaleY(0.92);
    transform-origin: top left;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.agenda-year-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
}

.agenda-year-option {
    color: var(--black);
    background: none;
    border: none;
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
    width: 100%;
    transition: background 0.15s;
}

.agenda-year-option:hover {
    background: #f0f0f0;
}

.agenda-year-option.active {
    background: var(--primary);
    color: #fff;
}

/* ── Month pills ───────────────────────────────────────────────────────────── */

.agenda-months {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.agenda-month-pill {
    color: var(--black);
    border: 1.5px solid #ccc;
    background: #fff;
    padding: 8px 22px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    text-transform: capitalize;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    line-height: 1;
}

.agenda-month-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.agenda-month-pill.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

/* ── Grid ──────────────────────────────────────────────────────────────────── */

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .agenda-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .agenda-grid { grid-template-columns: 1fr; }
}

/* ── Card ──────────────────────────────────────────────────────────────────── */

.agenda-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.agenda-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.agenda-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.agenda-card:hover .agenda-card__img img {
    transform: scale(1.04);
}

.agenda-card__date-bar {
    background: var(--secondary);
    color: #fff;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
}

.agenda-card__body {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.agenda-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
    line-height: 1.3;
}

.agenda-card__text {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.55;
    margin-bottom: 14px;
}

.agenda-card__text p { 
    margin-bottom: 0;
    line-height: 1.2;
}

.agenda-card__location {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.agenda-card__location i {
    color: var(--primary);
    font-size: 0.85rem;
}

.agenda-card__btn {
    align-self: flex-start;
    margin-top: auto;
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.agenda-card__btn:hover {
    color: #fff;
    background: var(--primary);
}

/* ── No events message ─────────────────────────────────────────────────────── */

.agenda-no-events {
    text-align: center;
    color: #888;
    padding: 48px 0 0;
    font-size: 0.95rem;
}

/* ── sec-cta ────────────────────────────────────────────── */
.sec-cta {
    position: relative;
    overflow: hidden;
    height: 900px;
}

.sec-cta .cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    text-align: left;
    height: 100%;
}

.sec-cta .cta-text {
    color: var(--white);
    max-width: 500px;
}

.sec-cta .cta-text h1{
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 1.1;
}

.sec-cta .cta-text p {
    margin: 0;
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .sec-cta{
        height: auto;
        padding: 280px 0 80px;
    }

    .sec-cta .cta-text {
        font-size: 0.95rem;
    }

    .sec-cta .cta-text h1{
        font-size: 1.8rem;
    }
}