/* ==========================================================================
   Home: offers section ("Exclusive offers") as boarding passes, on ice.
   Markup: resources/views/user/new_home/home-partitions/section2.blade.php
   (loaded by AJAX into #offer-section_div). Owl Carousel runs on .offer-slider
   with autoWidth, so each slide has a fixed width here.
   All colours come from gateway-theme.css.
   ========================================================================== */

/* ---- Section ---- */
.offer-section.gw-offers-light {
    background: var(--gw-ice);
    border-radius: 0;
    padding: 96px 0;
    overflow: hidden;
}

/* ---- Header row ---- */
.gw-offers-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.gw-offers-intro { max-width: 680px; }
.gw-offers-kicker {
    margin: 0 0 10px;
    font-family: var(--gw-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gw-gold-dark);
}
.gw-offers-light .gw-offers-title {
    margin: 0 0 12px;
    font-family: var(--gw-font);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    background: none;
    color: var(--gw-navy);
    -webkit-text-fill-color: var(--gw-navy);
}
.gw-offers-light .gw-offers-title .gw-offers-accent {
    background: none;
    color: var(--gw-gold-dark);
    -webkit-text-fill-color: var(--gw-gold-dark);
}
.gw-offers-sub {
    margin: 0;
    font-family: var(--gw-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gw-slate);
}

/* ---- Arrow controls ---- */
.gw-offers-nav {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.gw-offers-arrow {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gw-navy);
    color: var(--gw-white);
    cursor: pointer;
    transition: background-color 200ms ease, transform 200ms ease;
}
.gw-offers-arrow:hover { background: var(--gw-navy-light); }
.gw-offers-arrow:active { transform: scale(.94); }
.gw-offers-arrow:focus { outline: none; }
.gw-offers-arrow:focus-visible {
    outline: 3px solid var(--gw-gold-dark);
    outline-offset: 3px;
}

/* ---- Slider (overrides the old navy-section mask / spacing) ---- */
.gw-offers-light .offer-slider.gw-offers-slider {
    margin-top: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--gw-navy) 3%, var(--gw-navy) 97%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, var(--gw-navy) 3%, var(--gw-navy) 97%, transparent 100%);
}
/* Owl clips overflow: room so the lift, tilt and shadow are not cut off. */
.gw-offers-slider .owl-stage-outer { padding: 14px 0 32px; }
/* Equal-height tickets */
.gw-offers-slider .owl-stage { display: flex; }
.gw-offers-slider .owl-item { display: flex; }
.gw-offer-slide {
    display: flex;
    width: 340px;
    padding: 0 4px;
}

/* ---- Ticket ---- */
.gw-offers-light .gw-ticket {
    --gw-ticket-edge: rgba(var(--gw-navy-rgb), .12);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--gw-white);
    border: 1px solid var(--gw-ticket-edge);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(var(--gw-navy-rgb), .08);
    color: var(--gw-navy);
    font-family: var(--gw-font);
    text-decoration: none;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.gw-offers-light a.gw-ticket[href] { cursor: pointer; }
.gw-offers-light .gw-ticket:hover {
    --gw-ticket-edge: var(--gw-gold);
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 0 18px 36px rgba(var(--gw-navy-rgb), .16);
    text-decoration: none;
    color: var(--gw-navy);
}
.gw-offers-light .gw-ticket:focus { outline: none; }
.gw-offers-light .gw-ticket:focus-visible {
    --gw-ticket-edge: var(--gw-gold);
    outline: 3px solid var(--gw-gold);
    outline-offset: 3px;
}

/* 1. Top bar (inner radius = 16px card radius minus the 1px border) */
.gw-ticket-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    background: var(--gw-navy);
    border-radius: 15px 15px 0 0;
}
.gw-ticket-no {
    color: var(--gw-white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
}
.gw-ticket-stamp {
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--gw-gold);
    color: var(--gw-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1.5;
}

/* 2. Photo strip */
.gw-ticket-photo {
    aspect-ratio: 16 / 10;                  /* was a 120px strip that cut people in half */
    height: auto;
    background: var(--gw-ice);
    overflow: hidden;
}
.gw-offers-slider .gw-ticket-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;            /* keep faces and the main subject in frame */
}

/* 3. Route row */
.gw-ticket-route {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 4px;
    background: var(--gw-white);
}
.gw-ticket-point {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.gw-ticket-point-to { text-align: right; flex: 0 1 auto; max-width: 46%; }
.gw-ticket-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gw-slate);
    line-height: 1.4;
}
.gw-ticket-place {
    font-size: 13px;
    font-weight: 700;
    color: var(--gw-navy);
    line-height: 1.3;
}
.gw-ticket-path {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 60px;
    color: var(--gw-gold-dark);
}
.gw-ticket-dash {
    flex: 1;
    height: 0;
    border-top: 2px dashed currentColor;
    opacity: .45;
}
.gw-ticket-plane {
    flex-shrink: 0;
    display: block;
    transition: transform 280ms ease;
}
.gw-ticket:hover .gw-ticket-plane,
.gw-ticket:focus-visible .gw-ticket-plane { transform: translateX(6px); }

/* 4. Title + description */
.gw-ticket-body {
    flex: 1;
    padding: 12px 16px 6px;
}
.gw-offers-light .gw-ticket .gw-offer-title {
    margin: 0 0 6px;
    font-family: var(--gw-font);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    background: none;
    color: var(--gw-navy);
    -webkit-text-fill-color: var(--gw-navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gw-offers-light .gw-ticket .gw-offer-desc {
    margin: 0;
    font-family: var(--gw-font);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--gw-slate);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 5. Perforation: dashed line + two notches "cut" in the edges.
   Each notch is an ice disc centred on the card's outer edge, clipped to its
   inner half so it covers the border and draws the cut's curved edge. */
.gw-ticket-perf {
    position: relative;
    height: 22px;
    margin-top: 8px;
    padding: 0 18px;
    background-image: linear-gradient(90deg, rgba(var(--gw-navy-rgb), .22) 55%, transparent 0);
    background-size: 9px 1px;
    background-repeat: repeat-x;
    background-position: 0 50%;
    background-origin: content-box;
    background-clip: content-box;
}
.gw-ticket-perf::before,
.gw-ticket-perf::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border-radius: 50%;
    background: var(--gw-ice);
    border: 1px solid var(--gw-ticket-edge);
    transform: translateY(-50%);
    transition: border-color 240ms ease;
}
.gw-ticket-perf::before { left: -12px;  clip-path: inset(0 0 0 50%); }
.gw-ticket-perf::after  { right: -12px; clip-path: inset(0 50% 0 0); }

/* 6. Stub */
.gw-ticket-stub {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 16px;
}
.gw-ticket-intake {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}
.gw-ticket-intake-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--gw-navy);
    line-height: 1.3;
}
.gw-ticket .gw-offer-tc {
    flex: 1;
    font-size: 10.5px;
    color: var(--gw-slate);
    text-align: center;
    white-space: nowrap;
}
.gw-ticket-claim {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--gw-gold-shine);
    box-shadow: var(--gw-gold-glow);
    color: var(--gw-navy);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.gw-ticket-claim-arrow {
    display: inline-block;
    transition: transform 220ms ease;
}
.gw-ticket:hover .gw-ticket-claim-arrow,
.gw-ticket:focus-visible .gw-ticket-claim-arrow { transform: translateX(3px); }

/* ---- Responsive ---- */
@media (max-width: 1199.98px) {
    .offer-section.gw-offers-light { padding: 80px 0; }
    .gw-offers-light .gw-offers-title { font-size: 34px; }
}
@media (max-width: 991.98px) {
    .gw-offers-light .gw-offers-title { font-size: 30px; }
}
@media (max-width: 767.98px) {
    .offer-section.gw-offers-light { padding: 64px 0; }
    .gw-offers-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 24px;
    }
    .gw-offers-light .gw-offers-title { font-size: 26px; }
    .gw-offers-sub { font-size: 15px; }
    .gw-offers-light .offer-slider.gw-offers-slider {
        -webkit-mask-image: none;
        mask-image: none;
    }
}
@media (max-width: 575.98px) {
    /* phone: exactly one ticket at a time (no half of the next one peeking in) */
    .gw-offer-slide { width: 100%; max-width: none; }
}
/* Below 400px Owl shows one ticket at full width (autoWidth off). */
@media (max-width: 399.98px) {
    .gw-offer-slide { width: 100%; max-width: none; }
    .gw-ticket-stub { gap: 8px; padding-left: 14px; padding-right: 14px; }
    .gw-ticket-claim { padding: 8px 12px; font-size: 12.5px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .gw-offers-arrow,
    .gw-offers-light .gw-ticket,
    .gw-ticket-plane,
    .gw-ticket-claim-arrow,
    .gw-ticket-perf::before,
    .gw-ticket-perf::after { transition: none; }
    .gw-offers-light .gw-ticket:hover,
    .gw-offers-arrow:active,
    .gw-ticket:hover .gw-ticket-plane,
    .gw-ticket:focus-visible .gw-ticket-plane,
    .gw-ticket:hover .gw-ticket-claim-arrow,
    .gw-ticket:focus-visible .gw-ticket-claim-arrow { transform: none; }
}

/* Phone: the "Download Our Study Abroad Guide" cards fill their slot (they were a 300px card centred in a 366px slot -> empty strips on both sides) */
@media (max-width: 575.98px) {
    .country-files-section .country-slider .country-card { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
    .country-files-section .country-slider .country-card { height: 420px; }
    .country-files-section .country-slider .country-card .contry-img, .country-files-section .country-slider .country-card .contry-img img { height: 100% !important; width: 100%; object-fit: cover; }
}

/* "Download Our Study Abroad Guide": heading must out-rank its subtext (it was light heading + bold sub) */
.country-files-section .section-dark-title { font-weight: 700; color: var(--gw-white); }
.country-files-section .country-sub-desc { font-weight: 500; color: var(--gw-gold); }
