/* ── Elementor container override ── */
.zh-outer-section,
.zh-outer-section.e-con {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.zh-outer-section > .e-con-inner {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ── Section ── */
.zoomies-history {
    --zh-orange: #e73b0c;
    --zh-cream:  #fffbed;
    --zh-dark:   #241e1e;
    --zh-green:  #57725a;
    --zh-card-gap: 16px;
    position: relative;
    width: 100%;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    display: flex !important;
    align-items: center;
    overflow: hidden;
}

/* Remove Elementor shortcode widget padding/margin when containing the history section */
.elementor-shortcode:has(.zoomies-history) {
    padding: 0 !important;
    margin: 0 !important;
}

.e-con:has(.zoomies-history),
.e-section:has(.zoomies-history),
.elementor-section:has(.zoomies-history),
.elementor-container:has(.zoomies-history) {
    transform: none !important;
    perspective: none !important;
    filter: none !important;
}

/* ── Inner wrapper ── */
.zoomies-history__inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 80px;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
}

.zoomies-history--split .zoomies-history__inner {
    grid-template-columns: 1fr 1fr;
}

/* ── Left column ── */
.zoomies-history__left {
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-self: center;
    max-height: 100vh;
    transition: opacity 0.4s ease;
}

.zoomies-history__header h2 {
    margin: 0 0 16px;
    color: var(--zh-cream);
    font-size: clamp(36px, 4.5vw, 68px);
    line-height: 1.05;
    font-weight: 400;
}

.zoomies-history__header p {
    margin: 0;
    color: var(--zh-cream);
    font-size: 16px;
    line-height: 1.65;
    opacity: 0.85;
}

.zoomies-history__image img {
    display: block;
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

/* ── Right column ── */
.zoomies-history__right {
    position: relative;
    align-self: center;
    height: 100%;
}

.zoomies-history__viewport {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.zoomies-history__track {
    display: flex;
    flex-direction: column;
    gap: var(--zh-card-gap);
    will-change: transform;
}

/* ── Cards ── */
.zoomies-history-card {
    display: grid;
    grid-template-columns: clamp(90px, 22%, 170px) 1fr;
    min-height: 155px;
    border: 2px solid var(--zh-orange);
    border-radius: 5px;
    background: var(--zh-cream);
    overflow: hidden;
}

.zoomies-history-card:first-child {
    margin-top: 50px;
}

.zoomies-history-card:last-child {
    margin-bottom: 50px;
}

/* ── Navigation controls (hidden on desktop) ── */
.zoomies-history__nav-controls {
    display: none;
}

.zoomies-history__nav {
    display: none;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.zoomies-history__nav:hover {
    color: var(--zh-orange);
}

.zoomies-history__nav:focus-visible {
    color: var(--zh-orange);
    outline: none;
}

.zoomies-history__nav:disabled {
    color: #fff;
    opacity: 0.25;
    cursor: not-allowed;
}

.zoomies-history-card__year {
        font-family: var(--font-header);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--zh-orange);
    color: #fff;
  font-size: 30px;
font-style: normal;
font-weight: 600;
line-height: 120%; /* 36px */
letter-spacing: 0.6px;
text-transform: capitalize;
text-align:center;
}

.zoomies-history-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 3vw, 30px);
    color: var(--zh-dark);
}

.zoomies-history-card__content h3 {
    margin: 0 0 10px;
        font-family: var(--font-header);

   color: var(--gray-900);
font-size: 30px;
font-style: normal;
font-weight: 600;
line-height: 120%; /* 36px */
letter-spacing: 0.6px;
text-transform: capitalize;
}

.zoomies-history-card__content p {
    margin: 0;
    color: var(--gray-900);
    font-family: var(--font-primary);

font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 150%;
}

/* ── Responsive ── */

@media only screen and (min-width: 768px) and (max-width: 1280px) {
    .zoomies-history-card__year {
        padding: 16px 10px;
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .zoomies-history {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden;
        padding-bottom: 50px;
    }

    .zoomies-history__inner {
        height: auto;
        min-height: 0;
        gap: 50px;
        padding: 48px 0;
    }

    .zoomies-history--split .zoomies-history__inner {
        grid-template-columns: 1fr;
    }

    .zoomies-history__right {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        overflow: hidden;
    }

    .zoomies-history__viewport {
        width: 100%;
        height: auto !important;
        overflow-x: auto;
        overflow-y: hidden;
        cursor: grab;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .zoomies-history__viewport::-webkit-scrollbar {
        display: none;
    }

    .zoomies-history__track {
        flex-direction: row;
        transform: none !important;
        width: max-content;
    }

    .zoomies-history-card {
        flex-shrink: 0;
        width: 75vw;
        max-width: 420px;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        scroll-snap-align: start;
    }

    .zoomies-history__nav-controls {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: flex-start;
    }

    .zoomies-history__nav {
        display: flex;
    }
}

@media (max-width: 768px) {
    .zoomies-history__inner {
        gap: 40px;
        padding: 32px 0;
    }

    .zoomies-history-card {
        width: 82vw;
        max-width: 340px;
        grid-template-columns: 80px 1fr;
        min-height: 0;
    }

    .zoomies-history-card__year {
        padding: 16px 10px;
        font-size: 20px;
    }

    .zoomies-history-card__content {
        padding: 16px 20px;
    }

    .zoomies-history-card {
        width: 82vw;
        max-width: 340px;
    }

}
