/* Event Page (Real Estate style system) */

.event-hero-section {
    position: relative;
    min-height: 88vh;
    margin-top: -80px;
    overflow: hidden;
}

.event-hero-bg,
.event-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.event-hero-bg img {
    object-fit: cover;
}

.event-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(1, 75, 111, 0.8), rgba(23, 156, 216, 0.65));
}

.event-intro-section {
    padding-top: 70px;
}

.event-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0;
    margin-left: clamp(1rem, 4vw, 3rem);
    padding-top: clamp(11rem, 17vw, 14rem);
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
}

/* Event Success Stories only: push hero copy/CTA lower */
.event-success-stories-hero > .container-fluid {
    position: relative;
    z-index: 2;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
}

.event-success-stories-hero .event-hero-content {
    width: 100%;
    max-width: 820px;
    margin-left: clamp(1rem, 4vw, 3rem);
    padding-top: 0;
    padding-bottom: clamp(0rem, 2vw, 2rem);
}

.event-hero-content h1 {
    font-family: "Inter", sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 8px;
}

.event-hero-content .hero-highlight {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    margin-bottom: 18px;
    color: #d9f3ff;
}

.event-hero-content p,
.event-hero-content li {
    font-size: 1rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.event-success-stories-hero .hero-buttons {
    margin-top: clamp(2.25rem, 4vw, 3.25rem);
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hero-buttons .btn-primary {
    background: #179cd8;
    color: #fff;
    box-shadow: 0 8px 20px rgba(23, 156, 216, 0.3);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    background: #0e7cae;
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-buttons .btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.28);
}

.service-block {
    padding: 90px 0;
    background: #fff;
}

.service-block.alt {
    background: #f8fafc;
}

.service-grid {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.service-grid.single-col {
    grid-template-columns: 1fr;
    max-width: 1100px;
}

/* Event Success Stories: heading + image + body — stack on small screens, two columns on large */
.service-grid.service-grid--es {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}

.service-grid--es .es-body.service-text,
.service-grid--es .es-section-heading,
.service-grid--es .es-media {
    width: 100%;
    max-width: 100%;
}

.es-section-heading {
    font-family: "Inter", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: #000;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    font-weight: 700;
}

@media (min-width: 992px) {
    .service-grid.service-grid--es {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        gap: 36px;
        align-items: start;
    }

    .service-grid--es .es-body.service-text,
    .service-grid--es .es-section-heading,
    .service-grid--es .es-media {
        width: auto;
        max-width: none;
    }

    .service-grid--es.es-img-right .es-section-heading {
        grid-column: 1;
        grid-row: 1;
    }

    .service-grid--es.es-img-right .es-body {
        grid-column: 1;
        grid-row: 2;
    }

    .service-grid--es.es-img-right .es-media {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .service-grid--es.es-img-left .es-section-heading {
        grid-column: 2;
        grid-row: 1;
    }

    .service-grid--es.es-img-left .es-body {
        grid-column: 2;
        grid-row: 2;
    }

    .service-grid--es.es-img-left .es-media {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
    }
}

.service-text h2 {
    font-family: "Inter", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: #000;
    margin-bottom: 8px;
}

.service-text h3 {
    color: #179cd8;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.service-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.service-text ul {
    margin-top: 10px;
    padding-left: 20px;
    color: #444;
}

.service-text li {
    margin-bottom: 6px;
}

.event-section-link {
    color: #179cd8;
    font-weight: 700;
    text-decoration: none;
}

.event-section-link:hover {
    text-decoration: underline;
}

.service-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.mobile-flow-heading {
    display: none;
}

.event-success-rotator {
    position: relative;
    aspect-ratio: 4 / 3;
}

.event-success-rotator img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: eventSuccessFade 30s infinite;
}

.event-success-rotator img:nth-child(1) {
    animation-delay: 0s;
}

.event-success-rotator img:nth-child(2) {
    animation-delay: 5s;
}

.event-success-rotator img:nth-child(3) {
    animation-delay: 10s;
}

.event-success-rotator img:nth-child(4) {
    animation-delay: 15s;
}

.event-success-rotator img:nth-child(5) {
    animation-delay: 20s;
}

.event-success-rotator img:nth-child(6) {
    animation-delay: 25s;
}

.event-success-rotator.four-slide img {
    animation: eventSuccessFadeFour 20s infinite;
}

.event-success-rotator.four-slide img:nth-child(1) {
    animation-delay: 0s;
}

.event-success-rotator.four-slide img:nth-child(2) {
    animation-delay: 5s;
}

.event-success-rotator.four-slide img:nth-child(3) {
    animation-delay: 10s;
}

.event-success-rotator.four-slide img:nth-child(4) {
    animation-delay: 15s;
}

.event-success-rotator.ten-slide img {
    animation: eventSuccessFadeTen 50s infinite;
}

.event-success-rotator.ten-slide img:nth-child(1) {
    animation-delay: 0s;
}

.event-success-rotator.ten-slide img:nth-child(2) {
    animation-delay: 5s;
}

.event-success-rotator.ten-slide img:nth-child(3) {
    animation-delay: 10s;
}

.event-success-rotator.ten-slide img:nth-child(4) {
    animation-delay: 15s;
}

.event-success-rotator.ten-slide img:nth-child(5) {
    animation-delay: 20s;
}

.event-success-rotator.ten-slide img:nth-child(6) {
    animation-delay: 25s;
}

.event-success-rotator.ten-slide img:nth-child(7) {
    animation-delay: 30s;
}

.event-success-rotator.ten-slide img:nth-child(8) {
    animation-delay: 35s;
}

.event-success-rotator.ten-slide img:nth-child(9) {
    animation-delay: 40s;
}

.event-success-rotator.ten-slide img:nth-child(10) {
    animation-delay: 45s;
}

@keyframes eventSuccessFade {
    0% {
        opacity: 1;
    }
    16.666% {
        opacity: 1;
    }
    16.667% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes eventSuccessFadeFour {
    0% {
        opacity: 1;
    }
    25% {
        opacity: 1;
    }
    25.001% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes eventSuccessFadeTen {
    0% {
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    10.001% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.faq-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e6eef3;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 18px 20px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
    color: #123f5a;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .service-grid {
        grid-template-columns: 1fr;
        padding: 0 25px;
    }
    .event-success-rotator {
        aspect-ratio: 4 / 3;
    }

    .faq-wrapper {
        padding: 0 25px;
    }

    /* Event Success Stories: full width with 10px inset (no double padding from container + grid) */
    body.page-event-success-stories .service-block .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.page-event-success-stories .service-grid--es,
    body.page-event-success-stories .service-grid.single-col {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .event-hero-section > .container-fluid,
    .service-block .container-fluid,
    .faq-section .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .event-hero-overlay {
        /* Match About page hero tint on mobile */
        background: linear-gradient(135deg, rgba(1, 75, 111, 0.75) 0%, rgba(23, 156, 216, 0.65) 100%) !important;
        z-index: 2 !important;
    }

    .event-hero-content {
        margin-left: 0 !important;
        padding-top: 170px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-bottom: 52px !important;
    }

    .event-success-stories-hero > .container-fluid {
        min-height: 100svh;
        display: flex;
        align-items: flex-end;
        padding-bottom: calc(30px + env(safe-area-inset-bottom)) !important;
    }

    .event-success-stories-hero .event-hero-content {
        margin-left: 0 !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
    }

    .event-success-stories-hero .hero-buttons {
        margin-top: 44px !important;
    }

    .service-grid,
    .faq-wrapper {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Event Success Stories: 10px on container, grid full width of container */
    body.page-event-success-stories .service-block .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100%;
    }

    body.page-event-success-stories .service-grid--es,
    body.page-event-success-stories .service-grid.single-col {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mobile-flow-grid {
        display: flex;
        flex-direction: column;
    }

    .mobile-flow-grid .mobile-flow-heading {
        display: block;
        order: 1;
        margin-bottom: 14px;
    }

    .mobile-flow-grid .service-image {
        order: 2;
    }

    .mobile-flow-grid .service-text {
        order: 3;
    }

    .mobile-flow-grid .service-text > h2 {
        display: none;
    }

    .service-image img {
        min-height: 300px;
    }
}
