/* events page styling */

.page-template-events-page .intro.innerIntro .flexInner .introImage {
    margin: 0 !important;
    width: 50% !important;
}

.page-template-events-page .intro.innerIntro .full h1:first-child, .intro.innerIntro .full h2:first-child {
    font-size: revert;

}

.page-template-events-page #events-page-title {
    font-size: clamp(30px, 3vw, 45px);
}


/* CTA Boxes */

.page-template-events-page .cta-boxes {
    margin: 70px 0 80px;
}

.page-template-events-page .cta-boxes__wrap {
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
    margin: 0 auto;
}

.page-template-events-page  .cta-boxes .box {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.page-template-events-page .cta-boxes .box__icon {
    position: relative;
    margin: 0 auto -70px;
    width: 140px;
    height: 140px;
    background-color: #003a5d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-template-events-page .cta-boxes .box__icon {
    position: relative;
    margin: 0 auto -70px;
    width: 140px;
    height: 140px;
    background-color: #003a5d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-template-events-page .cta-boxes .box__icon img {
    max-height: 75px;
    width: auto;
    margin: 0 auto;
}

.page-template-events-page .cta-boxes .box__content {
    background: #e5ebee;
    padding: 90px 40px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
}

.page-template-events-page .cta-boxes .box__heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.13;
}

.page-template-events-page .cta-boxes .box p:not(.box__heading) {
    max-width: 75%;
    margin: 0 auto;
    margin-bottom: 25px;
}

.page-template-events-page .cta-boxes .box__content .button {
    font-weight: 700;
    background-color: #fff;
    padding-right: 30px;
    padding-left: 30px;
    margin: auto 0 0;
    border-color: #00b9f2 ;
}

.page-template-events-page .cta-boxes .box__content .button:hover {
    background-color: #003a5d;
    color: #fff;
    border-color: #003a5d ;
}

/* FAQs */


.page-template-events-page .accordion-aceni.accordion-events .accordion-item .accordion-title, 
.page-template-events-page .accordion-aceni.accordion-events .accordion-item .accordion-content,
.page-template-events-page .accordion-aceni.accordion-events .accordion-item {
    background-color: #002a3a !important;
}


.accordion-events .accordion-item:first-child>:first-child {
    border-radius: 8px;
}

.accordion-events .accordion-content {
    border-radius: 8px !important;
}


.accordion-events :last-child:not(.is-active)>.accordion-title {
    border-radius: 8px
}

.accordion.accordion-events .accordion-title .accordion-title-text {
    font-size: 18px;
    padding: 1rem 1rem 1rem 0;
}

.accordion.accordion-events .accordion-title:after, .accordion.accordion-events .accordion-title:before {
    top: 1.25rem;
}

/* Calendar */

.events-calendar-wrapper {
    margin: 70px 0 80px;

}
.events-calendar {
    display: grid;
    gap: 2rem;
}

.event-row {
    display: grid;
    grid-template-columns: 220px 180px 1fr;
    gap: 1rem;
    /* align-items: center; */
    background-color: #002a3a;
    color: #fff;
    border-radius: 20px;
    padding: 2rem;
}

.event-content {padding-left: 2rem}

.event-title {
    color: #fff;
}

.event-organiser {
    font-size: 16px;
}

.event-location {
    font-weight: 500;
    color: #f7951e;
}


/* Hide the actual checkbox */
.summary-toggle {
    display: none;
}

/* Line clamp for summary text */
.summary-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Expand when checkbox is checked */
.summary-toggle:checked ~ .summary-text {
    display: block;
    -webkit-line-clamp: unset;
}

/* Label styled as button */
.summary-label {
    cursor: pointer;
    color: #f7951e;
    font-weight: bold;
    display: inline-block;
    margin-top: 0.5em;
    font-size: 12px;
}

/* Toggle text content via pseudo-elements */
.summary-label::after {
    content: 'read more';
}

.summary-toggle:checked + .summary-text + .summary-label::after {
    content: 'read less';
}


.event-summary {
    margin-bottom: 1rem;
}

 .event-ctas {
    display: flex;
    gap: 1rem;
}

.event-ctas button {
    margin-bottom: 0;
}


.event-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-meta-date-time {
    display: flex;
    flex-direction: column;
}

.event-meta-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-meta-info span {
    display: flex;
    gap: 1rem;
    /* line-height: 30px; */
}

.event-meta-info svg {
    height: 1.5rem;
    width: 1.5rem;
    flex-shrink: 0;
}

.event-time {
    font-size: 2rem;
    color: #f7951e;
    font-weight: 500;
}

.event-calendar-icon {
    text-align: center;
    border: 1px solid #ccc;
    padding: 0.75rem;
}

.event-calendar-icon .day {
    font-size: 2rem;
    font-weight: bold;
}


.calendar-badge {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    max-height: 180px;
}

/* ORANGE TOP */
.calendar-top {
    position: relative;
    background: #f7951e;
    height: 35px;
}

/* LOOPS */
.calendar-loop {
    position: absolute;
    top: -10px;
    width: 14px;
    height: 28px;
    background: #000;
    border-radius: 10px;
}

.calendar-loop.left {
    left: 22px;
}

.calendar-loop.right {
    right: 22px;
}

/* WHITE BOTTOM */
.calendar-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    height: calc(100% - 35px);
    background: #fff;
    padding: 1rem;
}

.calendar-day {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #000;
}
.calendar-month {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: #000;
}


/* Mobile stacking for event rows */
@media (max-width: 1024px) {
    .event-row {
        grid-template-columns: 1fr; /* single column */
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .event-meta,
    .calendar-badge,
    .event-content {
        width: 100%;
        display: block;
    }

    .calendar-badge {
        max-width: 200px;
        margin: 0 auto;
    }

    .event-ctas {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .event-ctas .button {
        width: 100%;
        text-align: center;
    }
    .page-template-events-page .cta-boxes__wrap {
        grid-template-columns: 1fr;
    }
    .page-template-events-page .accordion-aceni, .accordion-epay {
        margin-bottom: 0;
        margin-top: 0;
    }
    
}

.button-calendar {
    background-color: #99e3fa;
    border-color: #99e3fa;
    color: #002a3a;
    margin: 0;
}

.button-calendar:hover {
    background-color: #fff;
    border-color: #00b9f2;
    color: #002a3a;
}

.event-faqs-intro, .cta-intro {
    text-align: center;
    margin: auto;
    max-width: 800px
}