/* Hero section */

/* All content is in main.css */

/* -- End of Hero section -- */


/* -- -- Agenda section -- -- */
.agenda__section {
    padding-top: var(--size-10);
    padding-bottom: var(--size-10);
}

.agenda__section .container {
    display: flex;
    flex-direction: column;
    gap: var(--size-10);
}

.agenda__calendar-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--size-7);
}

.agenda__calendar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agenda__calendar-heading .agenda__current-month {
    margin: 0;
}

.agenda__current-month__text,
.agenda__current-month__year{
    font-style: normal;
}

.calendar__navigation {
    display: flex;
    gap: var(--size-4);
    align-items: center;
}

.agenda__calendar-filters{
    display: flex;
    flex-direction: column;
    gap: var(--size-5);
    border: 1px solid var(--deep-blue-300);
    padding: var(--size-6);
    border-radius: var(--size-3);
}

.filters__fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.filters__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--size-3);
}

.filters__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--size-4);
    padding: var(--size-3) var(--size-5);
    border: 1px solid var(--deep-blue-300);
    border-radius: var(--size-3);
    cursor: pointer;
    background-color: var(--white);
    margin: 0;
    transition: border-color 0.2s, background-color 0.2s;
}

.filters__item .filter__type-square{
    width: stretch;
    height: var(--size-5);
    border-radius: var(--size-2);
    border: 2px solid var(--white);
    margin: 0;
    padding: 0;
}

.filters__item:has(.filters__checkbox:checked) {
    border-color: var(--bright-blue-main);
    background-color: var(--deep-blue-600);
}

.filters__item:has(.filters__checkbox:focus) {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

.filters__item:has(.filters__checkbox:checked) .filters__label{
    color: var(--white);
}

.filters__checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: var(--size-5);
    height: var(--size-5);
    border-radius: 50%;
    border: 2px solid var(--deep-blue-300);
    background-color: transparent;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    transition: border-color 0.2s, background-color 0.2s;
}

.filters__checkbox:checked {
    border-color: var(--yellow);
    background-color: var(--yellow);
}

.filters__label {
    cursor: pointer;
    margin: 0;
    white-space: nowrap;
}

table.calendar {
    width: 100%;
    --border: 1px solid var(--deep-blue-50);
    border-radius: var(--size-3);
    border-spacing: 0;
    border-collapse: separate;
    border: var(--border);
    overflow: hidden;
    table-layout: fixed;
}

/* Apply a border to the right of all but the last column */
table.calendar th:not(:last-child),
table.calendar td:not(:last-child) {
    border-right: var(--border);
}

/* Apply a border to the bottom of all but the last row */
table.calendar>thead>tr:not(:last-child)>th,
table.calendar>thead>tr:not(:last-child)>td,
table.calendar>tbody>tr:not(:last-child)>th,
table.calendar>tbody>tr:not(:last-child)>td,
table.calendar>tfoot>tr:not(:last-child)>th,
table.calendar>tfoot>tr:not(:last-child)>td,
table.calendar>tr:not(:last-child)>td,
table.calendar>tr:not(:last-child)>th,
table.calendar>thead:not(:last-child),
table.calendar>tbody:not(:last-child),
table.calendar>tfoot:not(:last-child) {
    border-bottom: var(--border);
}

.calendar__head {
    background-color: var(--deep-blue-50);
}

.calendar__day.previous-month,
.calendar__day.next-month {
    opacity: 0.65;
    background-color: var(--gray);
}

.calendar__day-name {
    padding: var(--size-4) var(--size-2);
    text-align: center;
}

.calendar__body .calendar__day {
    padding: var(--size-2);
    height: var(--size-13);
    width: calc(100% / 7);
    vertical-align: top;
}

.calendar__day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar__event {
    margin: 0;
}

.calendar__event-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: var(--size-2) var(--size-3);
    border-radius: var(--size-2);
    border: none;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.4;
    margin: 0;
}

.is-selected-event-button{
    border-color: var(--yellow);
    outline: 2px solid var(--yellow);
    outline-offset: 0;
}

.agenda__events {
    display: flex;
    flex-direction: column;
    gap: var(--size-4);
}

/* Line clamp per event type */
.calendar__event-button[data-event-type="course"] {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.calendar__event-button[data-event-type="seminar"] {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.calendar__event-button[data-event-type="reading-group"] {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.calendar__event-button[data-event-type="conference"] {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.events__title {
    margin-bottom: 0;
}

.events__list-wrapper {
    display: flex;
    flex-direction: column;
}

.events__list {
    display: flex;
    flex-direction: column;
    gap: var(--size-6);
}

.event__item[hidden] {
    display: none;
}

.event__item {
    display: flex;
    flex-direction: column;
    gap: var(--size-5);
    scroll-margin-top: var(--size-4);
    transition: outline-color 0.2s;
    padding: var(--size-7);
    background-color: var(--white);
    border: 1px solid var(--deep-blue-300);
    border-radius: var(--size-3);
    margin: 0;
}

.event__item-type {
    display: inline-block;
    padding: var(--size-4) var(--size-5);
    border-radius: var(--size-2);
    margin: 0;
    width: fit-content;
    order: 1;
}

.event__item-content {
    display: flex;
    flex-direction: column;
    gap: var(--size-4);
    order: 2;
}

.event__item-title {
    margin: 0;
}

.event__item-guest {
    display: flex;
    align-items: center;
    gap: var(--size-5);
}

.event__item-guest .guest__icon {
    width: var(--size-7);
    height: var(--size-7);
}

.event__item-guest .guest__text{
    margin: 0;
}

.event__item-infos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--size-8);
    row-gap: var(--size-6);
    margin-bottom: var(--size-6);
    order: 3;
}

.event__item-info {
    display: flex;
    align-items: center;
    gap: var(--size-5);
    margin: 0;
}

.event__item-info .info__icon {
    width: var(--size-7);
    height: var(--size-7);
}

.event__item-info .info__date-text,
.info__date-text *,
.event__item-info .info__hour-text,
.event__item-info .info__location-text {
    margin: 0;
    font-style: normal;
}

.info__date-text,
.date__from,
.date__to{
    display: flex;
    flex-direction: row;
    gap: var(--size-2);
}

.title-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.event__item-actions {
    display: flex;
    flex-direction: column;
    gap: var(--size-4);
    order: 4;
}

.event__item-action {
    margin: 0;
    width: 100%;
}

.event__item.is-selected {
    border-color: var(--yellow);
    outline: 2px solid var(--yellow);
    outline-offset: 0;
}

.event__action-link {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    margin-right: 0!important;
}

.event__action-link[target="_blank"]::before {
    display: none;
}

.events__empty[hidden] {
    display: none;
}

.events__empty{
    margin: 0;
}

@media (min-width: 768px) {
    .agenda__section {
        padding-top: var(--size-11);
        padding-bottom: var(--size-11);
    }

    .agenda__section .container {
        display: grid;
        grid-template-columns: 6fr 4fr;
        gap: var(--size-9);
        align-items: start;
    }

    .filters__item {
        width: fit-content;
    }

    .filters__item .filter__type-square{
        width: var(--size-7);
    }

    .events__list-wrapper {
        max-height: 80vh;
        border: 1px solid var(--deep-blue-300);
        overflow-y: scroll;
        padding: var(--size-6) var(--size-7) var(--size-6) var(--size-6);
        border-radius: var(--size-3);
        scrollbar-width: var(--size-3);
        scrollbar-color: var(--deep-blue-600) var(--deep-blue-50);
        scrollbar-gutter: stable;
    }

    .event__item-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .event__action-link {
        width: auto;
        flex: 1;
    }
}

@media (min-width: 1200px) {
    .agenda__section .container {
        grid-template-columns: 7fr 4fr;
        gap: var(--size-10);
    }
}
/* -- -- End of Agenda section -- -- */


/* -- -- Newsletter section -- -- */
.newsletter__section {
    background-color: var(--deep-blue-50);
}

/* Rest of the styles are in main.css */

/* -- -- End of Newsletter section -- -- */

