/* GITEX popup (centre of the screen) and its sub header pill */

/* ===== Overlay ===== */
.zl-gitex {
    position: fixed;
    inset: 0;
    z-index: 9990; /* above the navbar, below the booking popup (10000) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    visibility: hidden;
    opacity: 0;
    /* Closing: visibility switches off only after the fade and slide have finished */
    transition: opacity 0.25s ease, visibility 0s linear 0.35s;
}

.zl-gitex[hidden] { display: none; }

.zl-gitex--open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.zl-gitex-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 19, 52, 0.62);
}

.zl-gitex-dialog {
    position: relative;
    width: 550px;
    max-width: 100%;
    transform: translateY(24px) scale(0.94);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.zl-gitex--open .zl-gitex-dialog { transform: none; }

.zl-gitex-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(4, 19, 52, 0.6);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.zl-gitex-close:hover {
    background: #041334;
    transform: rotate(90deg);
}

/* ===== Sub header pill (beside Partnership Program) ===== */
.zl-top-pills {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    white-space: nowrap;
}

/* Narrow desktop: tighten spacing so both pills fit on one line */
@media screen and (min-width: 1131px) and (max-width: 1320px) {
    .home-one-top-section .nav-top-left-box { column-gap: 16px; }
    .home-one-top-section .nav-top-item-box { column-gap: 10px; white-space: nowrap; }
    .home-one-top-section .zl-partner-badge-top::before { left: -18px; }
}

/* Smallest desktop widths: drop the "Follow us:" label so the social icons keep their space */
@media screen and (min-width: 1131px) and (max-width: 1200px) {
    .home-one-top-section .zl-top-marquee-group > .nav-top-item-box > .home-one-top-text { display: none; }
}

/* Same look as .zl-partner-badge-top in custom-fixes.css */
.zl-gitex-top {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.zl-gitex-top:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

.zl-gitex-top[hidden] { display: none; }
.zl-gitex-top img { flex-shrink: 0; }

/* ===== Ticker: second sub header with the event details ===== */
.zl-ticker {
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(100deg, #041334 0%, #0a3d9e 50%, #041334 100%);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    line-height: 0.7;
}

.zl-ticker[hidden] { display: none; }

.zl-ticker-track {
    display: flex;
    width: max-content;
    animation: zl-marquee-scroll 40s linear infinite; /* keyframes live in custom-fixes.css */
}

/* Pause so visitors can read or click */
.zl-ticker:hover .zl-ticker-track,
.zl-ticker:focus-within .zl-ticker-track { animation-play-state: paused; }

.zl-ticker-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    padding: 8px 0;
    min-width: 100vw; /* each copy fills the screen, so no gap appears on wide monitors */
}

.zl-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    white-space: nowrap;
}

/* Diamond separator after each item */
.zl-ticker-item::after {
    content: '';
    width: 6px;
    height: 6px;
    margin: 0 24px 0 16px;
    background: #35e0cf;
    transform: rotate(45deg);
}

.zl-ticker-item strong { font-weight: 800; }

.zl-ticker-badge {
    padding: 2px 10px;
    border-radius: 999px;
    background: #35e0cf;
    color: #041334;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.zl-ticker-label {
    color: #35e0cf;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zl-ticker-link {
    padding: 0;
    border: 0;
    background: none;
    color: #35e0cf;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.zl-ticker-link:hover { color: #fff; }

/* ===== Panel ===== */
.zl-gitex-panel {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 100% 100%, #ddf8f2 0, rgba(221, 248, 242, 0) 36%),
        radial-gradient(circle at 130% 76%, #e6effd 0, #e6effd 23.6%, rgba(230, 239, 253, 0) 24%),
        #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(4, 19, 52, 0.45);
    outline: none;
}

/* Photo header */
.zl-gitex-hero {
    position: relative;
    overflow: hidden;
    min-height: 288px;
    background: linear-gradient(100deg, #012160 0%, #012c7d 55%, #0449aa 100%);
}

.zl-gitex-skyline {
    position: absolute;
    top: 0;
    right: 0;
    width: 196px;
    height: 282px; /* runs under the white curve so its lower edge never shows */
    object-fit: cover;
    object-position: 50% 25%; /* tower top at the top edge, skyline and water above the curve */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%);
    mask-image: linear-gradient(90deg, transparent 0, #000 45%);
}

.zl-gitex-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 56px;
}

.zl-gitex-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 40px 0;
}

.zl-gitex-logo {
    display: block;
    width: 140px;
    height: 51px;
    margin-bottom: 18px;
}

.zl-gitex-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 11px;
    padding: 5px 13px;
    border: 1px solid #4c9bf0;
    border-radius: 999px;
    background: rgba(16, 90, 200, 0.25);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
    text-transform: uppercase;
}

.zl-gitex-title {
    margin: 0;
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.zl-gitex-title span { color: #35e0cf; }

.zl-gitex-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    margin: 6px 0 9px;
    border-radius: 3px;
    background: linear-gradient(90deg, #35e0cf 40%, rgba(53, 224, 207, 0));
}

.zl-gitex-text {
    max-width: 330px;
    margin: 0;
    color: #fff;
    font-size: 13.5px;
    line-height: 19px;
    text-shadow: 0 1px 4px rgba(1, 20, 70, 0.8);
}

/* Schedule and buttons */
.zl-gitex-body {
    position: relative;
    margin-top: -13px;
    padding: 0 22px 18px;
}

.zl-gitex-schedule {
    display: grid;
    gap: 11px;
    margin: 10px 0 18px;
    padding: 0;
    list-style: none;
}

.zl-gitex-schedule li {
    display: grid;
    grid-template-columns: 116px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    min-height: 65px;
    margin: 0;
    padding: 7px 0;
    border: 1px solid #d9e8fc;
    border-radius: 16px;
    background: #e5effd;
    color: #0a52cc;
}

.zl-gitex-schedule li.zl-gitex-expo {
    border-color: #d2f1ea;
    background: #e4f8f3;
    color: #0a7d62;
}

.zl-gitex-tag {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-right: 1px solid rgba(10, 82, 204, 0.25);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.zl-gitex-expo .zl-gitex-tag { border-right-color: rgba(10, 125, 98, 0.25); }

.zl-gitex-date {
    padding-left: 20px;
    color: #061a52;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.zl-gitex-venue {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 2px 6px 0 20px;
    color: #0b1f55;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 16px;
}

.zl-gitex-venue svg { flex-shrink: 0; }

.zl-gitex-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: calc(100% - 26px);
    margin: 0 auto;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.zl-gitex-btn svg { flex-shrink: 0; }

.zl-gitex-btn--primary {
    gap: 14px;
    min-height: 47px;
    background: linear-gradient(100deg, #021a55 10%, #0a63ee) border-box;
    box-shadow: 0 8px 18px rgba(10, 82, 204, 0.28);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.zl-gitex-btn--primary:hover {
    box-shadow: 0 10px 24px rgba(10, 82, 204, 0.45);
    transform: translateY(-1px);
}

.zl-gitex-btn--secondary {
    gap: 10px;
    min-height: 41px;
    margin-top: 12px;
    border-color: #0a4fcc;
    background: #fff;
    color: #0a4fcc;
    font-size: 14px;
    font-weight: 600;
}

.zl-gitex-btn--secondary:hover {
    background: #eef5ff;
    color: #0a4fcc;
}

/* ===== Phones: tighter sizes so the text and photo fit a narrow card ===== */
@media screen and (max-width: 600px) {
    .zl-gitex-hero { min-height: 252px; }
    .zl-gitex-skyline { width: 130px; height: 240px; object-position: 50% 0; }
    .zl-gitex-wave { height: 50px; }
    .zl-gitex-intro { padding: 21px 24px 0; }
    .zl-gitex-logo { width: 121px; height: 44px; margin-bottom: 16px; }
    .zl-gitex-title { font-size: 25px; }
    .zl-gitex-text { max-width: 250px; font-size: 11px; line-height: 15px; }
    .zl-gitex-body { padding: 0 16px 15px; }
    .zl-gitex-schedule li { grid-template-columns: 88px 1fr; }
    .zl-gitex-date { padding-left: 14px; font-size: 18px; }
    .zl-gitex-venue { padding-left: 14px; font-size: 11px; line-height: 14px; }
}

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
    .zl-gitex,
    .zl-gitex-dialog,
    .zl-gitex-close,
    .zl-gitex-top { transition: none; }
    /* No scrolling: show one copy that wraps onto as many lines as it needs */
    .zl-ticker-track { width: auto; animation: none; }
    .zl-ticker-group { flex-wrap: wrap; justify-content: center; min-width: 0; }
    .zl-ticker-group[aria-hidden="true"] { display: none; }
    .zl-ticker-item { white-space: normal; }
}
