.aais-subscription-list{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.aais-subscription-list .aais-subscription-item{
	display: flex;
	align-items: center;
	gap: 20px;
    padding: 5px 5px 5px 20px;
    background: transparent;;
    border: 1px solid #fff;
    border-radius: 50px;
    font-family: 'Poppins';
    color: #fff;
}
.aais-subscription-list .aais-subscription-item:hover{
    background: #35A0D3;
    color: #fff;
	border: 1px solid #35A0D3;
}




/* Shared layout */

.aais-event-card {
    height: 100%;
    min-height: 175px;
    padding: 25px;
    background: #edf6fc;
    border-radius: 16px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
}

.aais-event-card__title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 500;
    color: var(--e-global-color-text);
    margin: 0 0 8px;
}
.aais-event-card__title a{
    color: var(--e-global-color-text);
    text-decoration: none !important;
}
.aais-event-card__title a:hover{
    color: var(--e-global-color-text);
}

.aais-event-card__description {
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.aais-event-card__image {
    width: 100%;
    aspect-ratio: 1.8 / 1;
    overflow: hidden;
    border-radius: 16px;
    margin-top: auto;
    margin-bottom: 10px;
}

.aais-event-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.aais-event-card:hover .aais-event-card__image img {
    transform: scale(1.05);
}

.aais-event-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    color: var(--e-global-color-text) !important;
    margin-top: auto;
    text-decoration: none !important;
}

.aais-event-card__link:hover {
    color: #1267a5;
}

.aais-event-card__arrow {
    font-size: 15px;
}


/* ======================================
   AAIS EVENT LIST
====================================== */

.aais-event-list {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Event row */

.aais-event-row {
    display: grid;
    grid-template-columns: 268px minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: stretch;

    padding: 32px 0 36px;
    border-bottom: 1px solid #555;
    box-sizing: border-box;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
}

.aais-event-row:first-child {
    padding-top: 0;
}

/* Image */

.aais-event-row__image {
    width: 100%;
    height: 168px;
    overflow: hidden;
    border-radius: 12px;
}

.aais-event-row__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.aais-event-row__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.aais-event-row__image a:hover img {
    transform: scale(1.04);
}

/* Event details */

.aais-event-row__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.aais-event-row__title {
    font-weight: 400;
    line-height: 1.12;
    margin: 0 0 20px;
    color: #111;
}

.aais-event-row__title a {
    color: inherit;
    text-decoration: none;
}

.aais-event-row__title a:hover {
    color: #1265d8;
}

/* Date / Time / Venue */

.aais-event-meta {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    line-height: 1.4;

    margin-bottom: 20px;
}
.aais-event-meta svg{
    margin-top: 4px
}

.aais-event-meta:last-child {
    margin-bottom: 0;
}

.aais-event-meta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #444;
}

.aais-event-meta__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* Description and Learn More */

.aais-event-row__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.aais-event-row__description {
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

.aais-event-row__link {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    color: #0866df;
    text-decoration: none;

    font-size: 15px;
    font-weight: 400;
    margin-top: 20px;
}

.aais-event-row__link:hover {
    color: #004bb0;
}

.aais-event-row__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aais-event-row__arrow svg {
    width: 20px;
    height: 20px;
    transition: transform .25s ease;
}

.aais-event-row__link:hover .aais-event-row__arrow svg {
    transform: translateX(5px);
}

/* ======================================
   TABLET
====================================== */

@media (max-width: 1024px) {

    .aais-event-row {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 24px;
    }

    .aais-event-row__image {
        height: 150px;
    }

    .aais-event-row__content {
        grid-column: 2;
    }

    .aais-event-row__description {
        font-size: 15px;
        line-height: 1.4;
    }

    .aais-event-row__link {
        margin-top: 20px;
    }

}

/* ======================================
   MOBILE
====================================== */

@media (max-width: 600px) {

    .aais-event-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 0;
    }

    .aais-event-row:first-child {
        padding-top: 0;
    }

    .aais-event-row__image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .aais-event-row__details {
        gap: 0;
    }

    .aais-event-row__title {
        font-size: 21px;
        margin-bottom: 18px;
    }

    .aais-event-meta {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .aais-event-row__content {
        grid-column: auto;
        gap: 20px;
    }

    .aais-event-row__description {
        font-size: 15px;
        line-height: 1.5;
    }

    .aais-event-row__link {
        margin-top: 0;
    }

}


/* GRID LAYOUT */

.aais-event-grid {
    display: grid;
    grid-template-columns: repeat(var(--aais-columns, 4), minmax(0, 1fr));
    gap: 12px;
}

/* CAROUSEL LAYOUT */

.aais-event-carousel {
    width: 100%;
    overflow: hidden;
}

.aais-event-swiper {
    width: 100%;
    overflow: hidden;
}

.aais-event-swiper .swiper-slide {
    height: auto;
}

/* Navigation */

.aais-event-carousel__navigation {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 15px;
}

.aais-event-carousel__navigation button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #d6e3ed;
    border-radius: 50%;
    background: #edf6fc;
    color: #20252a;
    font-size: 15px;
    cursor: pointer;
}

.aais-event-carousel__navigation button:hover {
    background: #d9ebf8;
}

.aais-event-carousel__navigation button.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}


.aais-subscription-item {
    cursor: pointer;
}

/* Popup overlay */
.aais-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aais-popup-overlay.active {
    display: flex;
}

.aais-popup-content {
    position: relative;
    background: #fff;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    border-radius: 12px;
}

.aais-popup-content h3 {
    margin: 0 0 25px;
}

.aais-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.aais-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.aais-popup-btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: 600;
}

.aais-read-btn {
    background: #35A0D3;
    color: #fff !important;
}
.aais-read-btn:hover{
	background: #0589c7a6;
}
.aais-subscribe-btn {
    background: #222;
    color: #fff !important;
}
.aais-subscribe-btn:hover{
	background: #000;
}

@media(max-width: 480px) {
    .aais-popup-content {
        padding: 35px 20px;
    }

    .aais-popup-buttons {
        flex-direction: column;
    }
}


/* Responsive */

@media (max-width: 900px) {

    .aais-event-grid {
        grid-template-columns: repeat(
            min(var(--aais-columns, 4), 2),
            minmax(0, 1fr)
        );
    }

}

@media (max-width: 599px) {

    .aais-event-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .aais-event-card {
        min-height: 190px;
    }

    .aais-event-card__title {
        font-size: 14px;
    }

}




/* Membership carousel */

.aais-membership-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.aais-membership-swiper {
    width: 100%;
    overflow: hidden;
}

.aais-membership-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
}

/* Membership logo card */

.aais-membership-card {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
}

.aais-membership-card img {
    display: block;

    max-width: 100%;
    max-height: 75px;

    width: auto;
    height: auto;

    object-fit: contain;
}

/* Navigation */

.aais-membership-carousel__navigation {
    display: none;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 15px;
}

.aais-membership-carousel__navigation button {
    width: 32px;
    height: 32px;

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

    padding: 0;

    border: 1px solid #d6e3ed;
    border-radius: 50%;

    background: #edf6fc;
    color: #20252a;

    font-size: 16px;
    cursor: pointer;
}

.aais-membership-carousel__navigation button:hover {
    background: #d9ebf8;
}

.aais-membership-carousel__navigation button.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}
