/* Custom styles to match Figma design exactly */
/* .recent-events:root {
            --primary-blue: #22286e;
            --light-gray: #f4f4f4;
            --medium-gray: #d9d9d9;
            --text-gray: #666666;
            --border-radius: 8px;
        } */

.recent-events {
    font-family: 'Inter', Arial, sans-serif;
    background-color: white;
    color: #333;
}

/* Filter title with underline - exact match to Figma */
.recent-events .filter-title {
    font-family: Inria Sans;
    font-weight: 700;
    font-size: 28px;
    text-transform: capitalize;
    position: relative;
    color: #22286E;
}

.recent-events .filter-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30%;
    height: 3px;
    background-color: #22286E;
}

.recent-events.important_noters {
    background: #22286E;
    color: white;
}

.recent-events.important_noters h3 {
    font-family: Inter;
    font-weight: 600;
    font-size: 48px;
    color: white;
    position: relative;
    margin-bottom: 25px;
}

.recent-events.important_noters h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30%;
    height: 3px;
    background-color: #ffffff;
}

.recent-events.important_noters ul li {
    font-family: Inria Sans;
    font-weight: 400;
    font-size: 20px;
    color: white;
}

/* Custom dropdown styling to match Figma */
.recent-events .custom-dropdown {
    position: relative;
    width: 100%;
}

.recent-events .custom-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background-color: white;
    border: 1px solid #22286e;
    border-radius: 8px;
    font-size: 14px;
    color: #22286e;
    text-align: left;
    cursor: pointer;
}

.recent-events .custom-dropdown-toggle i {
    font-size: 12px;
    color: #22286e;
}

/* Custom dropdown menu */
.recent-events .custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    width: 100%;
    padding: 8px 0;
    margin: 4px 0 0;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recent-events .custom-dropdown-menu.show {
    display: block;
}

.recent-events .custom-dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    clear: both;
    font-weight: 400;
    color: #333;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    font-size: 14px;
}

.recent-events .custom-dropdown-item:hover,
.recent-events .custom-dropdown-item:focus {
    color: #22286e;
    text-decoration: none;
    background-color: #f4f4f4;
}

/* View toggle buttons to match Figma */
.recent-events .view-toggle {
    display: flex;
    gap: 8px;
}

.recent-events .view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #22286e;
    background-color: white;
    cursor: pointer;
}

.recent-events .view-btn i {
    font-size: 18px;
    color: #22286e;
    border-color: #22286e;
}

.recent-events .view-btn-active {
    background-color: #22286e;
    border-color: #22286e;
}

.recent-events .view-btn-active i {
    color: white;
}


/* Event card styling - exact match to Figma */
.recent-events .event-card {
    background-color: #f4f4f4;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.recent-events .event-image-container {
    position: relative;
    width: 100%;
}

.recent-events .event-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Date badge - exact match to Figma */
.recent-events .date-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #22286e;
    color: white;
    padding: 16px;
    text-align: start;
    min-width: 280px;
}

.recent-events .date-text {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.recent-events .date-subtext {
    font-size: 14px;
    line-height: 1.2;
}

/* Event content - exact match to Figma */
.recent-events .event-content {
    display: flex;
    justify-content: space-between;
    padding: 24px;
    align-items: flex-end;
}

.recent-events .event-info {
    flex: 1;
    padding-right: 16px;
}

.recent-events .event-title {
    font-family: Inria Sans;
    font-weight: 700;
    font-size: 40px;
    text-transform: capitalize;
    color: #22286E;
}

.recent-events .event-subtitle {
    color: #22286e;
    font-family: Inria Sans;
    font-weight: 400;
    font-size: 32px;
}

.recent-events .event-description {
    font-family: Inria Sans;
    font-weight: 400;
    font-size: 20px;
    color: #22286E80;
}

/* Expand button - exact match to Figma */
.recent-events .expand-btn {
    width: 90px;
    height: 60px;
    flex-shrink: 0;
    background-color: #22286e;
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.recent-events .expand-btn i {
    font-size: 25px;
}

.recent-events {
    padding-block: 50px;
}

.recent-events .timeline_heading {
    margin-bottom: 50px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .recent-events .filter-title {
        margin-bottom: 16px;
    }

    .recent-events .view-toggle {
        margin-top: 16px;
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .recent-events .moblie-veiw-css {
        gap: 10px;
    }

    .recent-events .moblie-veiw-css .mt-3 {
        margin: 0;
    }

    .recent-events .view-toggle {
        margin: 0;
    }

    .recent-events .event-content {
        flex-wrap: wrap;
        gap: 10px;
    }
}


/* upcoming events */


.up-events .upevent-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    /* height: 100%; */
    position: relative;
}

.up-events .upevent-image {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
}

.up-events .badge-masons {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: #22286e;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: Inria Sans;
    font-weight: 400;
    font-size: 14px;
    line-height: 145%;
    letter-spacing: -2%;
    text-transform: capitalize;
}

.up-events .date-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #22286e;
    color: white;
    padding: 8px;
    min-width: 150px;
}

.up-events .date-badge .date {
    font-family: Inter;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -2%;
    text-transform: capitalize;
}

.up-events .date-badge .day-time {
    font-family: Inria Sans;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: -2%;
    text-transform: capitalize;
}

.up-events .upevent-content {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    background: #F4F4F4;
}

.up-events .header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.up-events .upevent-title {
    color: #22286e;
    margin-bottom: 2px;
    font-family: Inria Sans;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -2%;
    text-transform: capitalize;
}

.up-events .upevent-subtitle {
    margin-bottom: 0;
    font-family: Inria Sans;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: -2%;
    color: #22286e;
}

.up-events .closing-date {
    color: #22286E80;
    text-align: right;
    margin: 8px 0;
    font-family: Inria Sans;
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -2%;
}

.up-events .upevent-details {
    margin-top: auto;
}

.up-events .upevent-organization,
.up-events .upevent-location {
    margin-bottom: 0px;
    font-family: Inria Sans;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: -2%;
    color: #22286E80;
}

.up-events .btn-rsvp {
    color: #22286e;
    border: 1px solid #22286e;
    padding: 6px 16px;
    border-radius: 4px;
    min-width: 120px;
    font-family: Inria Sans;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -2%;
}

.up-events .btn-rsvp:hover {
    background-color: #f8f9fa;
    color: #22286e;
    border: 1px solid #22286e;
}

.more_button {
    background-color: #FFFFFF;
    border: 1px solid white;
    border-radius: 4px;
    padding: 6px 25px;
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
    font-family: Inter;
    font-weight: 600;
    font-size: 20px;
    padding-right: 30px;
}

.more_button a {
    text-decoration: unset;
}
.more_button a:hover {
    text-decoration: unset;
}
.recent_bck_side {
    background: #22286E;
    padding-block: 50px;
}

.upcoming_head_text h3 {
    font-family: Inter;
    font-weight: 600;
    font-size: 48px;
    color: #FFFFFF;
    position: relative;
}

.upcoming_head_text h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30%;
    height: 3px;
    background-color: #fff;
}