/* ============================================================
   Gorriceta Awards Carousel 3 — gac3-style.css
   ============================================================ */

/* Reset */
.gac3-wrapper *,
.gac3-wrapper *::before,
.gac3-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── WRAPPER ── */
.gac3-wrapper {
    font-family: 'Georgia', serif;
    width: 100%;
}

/* ── OUTER (arrows sit outside carousel) ── */
.gac3-outer {
    display: flex;
    align-items: stretch;
}

/* ── CAROUSEL ── */
.gac3-carousel {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    position: relative;
    min-height: 480px; /* prevents collapse when both slides go absolute during push-slide transition */
}

/* ── ARROWS ── */
.gac3-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    background: transparent;
    border: none;
    color: #0d2154;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    font-weight: 300;
}

.gac3-arrow:hover {
    opacity: 1;
}

/* ── SLIDE ── */
.gac3-slide {
    display: none;
    width: 100%;
    min-height: 480px;
}

.gac3-slide.is-active {
    display: flex;
}

/* Push-slide only: outgoing slide stays visible & on top of the stack while it animates out */
.gac3-slide.gac3-leaving {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.gac3-slide.is-active.gac3-animating[data-effect="slide-left"] {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

/* ── LEFT PANEL ── */
.gac3-left {
    background-color: #0a1628;
    width: 28%;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    flex-shrink: 0;
}

.gac3-rank-box {
    border: 1.5px solid #c9a84c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 40px 28px;
    gap: 0;
    min-width: 180px;
    min-height: 220px;
    position: relative;
}

.gac3-rank-hash {
    font-family: 'Georgia', serif;
    font-size: 22px;
    color: #c9a84c;
    font-weight: 400;
    line-height: 1;
    align-self: flex-start;
    margin-bottom: -4px;
}

.gac3-rank-number {
    font-family: 'Georgia', serif;
    font-size: clamp(90px, 10vw, 130px);
    font-weight: 400;
    color: #c9a84c;
    line-height: 0.85;
    letter-spacing: -4px;
}

.gac3-rank-year {
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    color: #c9a84c;
    letter-spacing: 0.12em;
    margin-top: 16px;
    font-weight: 400;
}

/* ── RIGHT PANEL ── */
.gac3-right {
    background-color: #0d2154;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 48px 60px 48px 52px;
}

.gac3-right-inner {
    max-width: 680px;
    width: 100%;
}

/* Badge row */
.gac3-badge-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.gac3-badge-year {
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 2px 8px;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.gac3-badge-label {
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    color: #ffffff;
    letter-spacing: 0.14em;
    font-weight: 400;
}

/* Heading */
.gac3-heading {
    font-family: 'Georgia', serif;
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

/* Awards list */
.gac3-awards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.gac3-award-line {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
}

.gac3-award-line::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background-color: #c9a84c;
    flex-shrink: 0;
}

/* Divider */
.gac3-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255,255,255,0.2);
    margin-bottom: 22px;
}

/* Description */
.gac3-description {
    font-family: 'Arial', sans-serif;
    font-size: clamp(13px, 1.1vw, 15px);
    color: rgba(255,255,255,0.85);
    line-height: 1.75;
    font-weight: 400;
}


/* ── TAB BAR ── */
.gac3-tabs {
    display: flex;
    align-items: stretch;
    background-color: #ffffff;
    overflow-x: auto;
    scrollbar-width: none;
    padding-left: 44px;
    padding-right: 44px;
}

.gac3-tabs::-webkit-scrollbar {
    display: none;
}

.gac3-tab {
    flex: 1;
    min-width: 160px;
    border: none;
    background: transparent;
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #0d2154;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 18px 16px 16px;
    cursor: pointer;
    border-top: 3px solid transparent;
    transition: border-top-color 0.25s ease;
    line-height: 1.4;
}

.gac3-tab:hover {
    border-top-color: rgba(201, 168, 76, 0.4);
}

.gac3-tab.is-active {
    border-top-color: #c9a84c;
    font-weight: 700;
}

/* ── TRANSITION ANIMATIONS ── */

/* fade (default) */
@keyframes gac3-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* slide-left → direction-aware, pure slide (no fade) */
@keyframes gac3-slide-from-right {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@keyframes gac3-slide-from-left {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

/* outgoing slide: pushed fully off in the opposite direction it came from */
@keyframes gac3-slide-leave-to-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@keyframes gac3-slide-leave-to-right {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
}

/* slide-up */
@keyframes gac3-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* zoom */
@keyframes gac3-zoom {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

/* Applied by JS via data-effect on wrapper */
.gac3-slide.gac3-animating[data-effect="fade"]       { animation: gac3-fade var(--gac3-duration, 0.4s) ease forwards; }
.gac3-slide.gac3-animating[data-effect="slide-left"][data-direction="next"] { animation: gac3-slide-from-right var(--gac3-duration, 0.4s) ease forwards; }
.gac3-slide.gac3-animating[data-effect="slide-left"][data-direction="prev"] { animation: gac3-slide-from-left  var(--gac3-duration, 0.4s) ease forwards; }

.gac3-slide.gac3-leaving[data-effect="slide-left"][data-direction="next"] { animation: gac3-slide-leave-to-left  var(--gac3-duration, 0.4s) ease forwards; }
.gac3-slide.gac3-leaving[data-effect="slide-left"][data-direction="prev"] { animation: gac3-slide-leave-to-right var(--gac3-duration, 0.4s) ease forwards; }
.gac3-slide.gac3-animating[data-effect="slide-up"]   { animation: gac3-slide-up var(--gac3-duration, 0.4s) ease forwards; }
.gac3-slide.gac3-animating[data-effect="zoom"]       { animation: gac3-zoom var(--gac3-duration, 0.4s) ease forwards; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .gac3-arrow {
        width: 32px;
        font-size: 36px;
    }

    .gac3-slide.is-active {
        flex-direction: column;
    }

    .gac3-carousel {
        min-height: 900px; /* let height come from actual stacked content on mobile instead of a fixed floor */
    }

    .gac3-left {
        width: 100%;
        min-width: unset;
        padding: 36px 24px;
    }

    .gac3-rank-box {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 20px 32px;
        min-height: unset;
    }

    .gac3-rank-hash {
        align-self: center;
        font-size: 18px;
    }

    .gac3-rank-number {
        font-size: 56px;
        letter-spacing: -2px;
    }

    .gac3-rank-year {
        margin-top: 0;
    }

    .gac3-right {
        padding: 36px 24px;
    }

    .gac3-heading {
        font-size: 28px;
    }

    .gac3-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .gac3-tab {
        font-size: 10px;
        min-width: 130px;
        padding: 14px 12px 12px;
    }
}
