/* Shared band sections (Stats, Logo Marquee, Good Karma Marquee), used by
   landing.css and by Page sections. No global element selectors here —
   shop-wrapper pages load this file on its own. */

/* School Logo Section */

/* Set the size of the images */
.logo-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 25px;
    cursor: pointer;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    padding: 0.35rem;
}

.logo-img-link {
    transition: all 0.15s ease-in-out;
    margin: 10px;
}

/* Add a drop shadow on hover */
.logo-img-link:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 15px var(--brand-primary);
}

@media (max-width: 992px) {
    .logo-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 767px) {
    .logo-img {
        width: 16%;
        height: initial;
        margin: 8px;
    }

    .logo-img {
        width: 14%;
    }

    .logo-img-link:hover {
        transform: initial !important;
        box-shadow: initial !important;
    }
}

.collegeLogos {
    border: 20px var(--brand-secondary) solid;
    border-style: groove;
    display: table;
    margin: 0 auto;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.collegesBackground {
    mask-image: linear-gradient(90deg, #ffffff00, #ffffff 6%, #ffffff 94%, #ffffff00);
}

@media (max-width: 1360px) {
    .logo-img {
        width: 100px;
        height: 100px;
    }

    .logo-img-link {
        margin: 0px;
    }
}

@media (max-width: 1160px) {
    .logo-img {
        width: 70px;
    }
}

@media (max-width: 934px) {
    .logo-img {
        width: 50px;
        height: 70px;
    }
}

@media (max-width: 900px) {
    .goodKarmaMarquee {
        display: flex !important;
        z-index: 1;
        position: relative;
        min-height: 44px;
        font-size: 0.9rem;
    }

    .goodKarmaMarquee::before,
    .goodKarmaMarquee::after {
        width: 30px;
    }

    .marquee > span {
        animation-duration: 250s;
    }

    .logo-img-link {
        margin: 10px;
    }

    .logo-img {
        width: 85px;
        height: 85px;
    }
}

/* Good Karma section wrapper */
.good-karma-section {
    background: #1a1a2e;
    padding: 0;
}

/* Make Good Karma marquee universal (desktop and mobile) */
.goodKarmaMarquee {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #F7B731 0%, #F5A623 50%, #e8991d 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    min-height: 48px;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.25);
}

/* Gradient edge masks for smooth fade */
.goodKarmaMarquee::before,
.goodKarmaMarquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.goodKarmaMarquee::before {
    left: 0;
    background: linear-gradient(to right, #F7B731, transparent);
}

.goodKarmaMarquee::after {
    right: 0;
    background: linear-gradient(to left, #e8991d, transparent);
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.marquee > span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 300s linear infinite;
    animation-play-state: paused;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.marquee.marquee-playing > span {
    animation-play-state: running;
}

/* Pause when the user hovers (or focuses) the marquee so they can actually
   read messages they're interested in. Override the .marquee-playing
   running state. */
.marquee.marquee-playing:hover > span,
.marquee.marquee-playing:focus-within > span {
    animation-play-state: paused;
}

/* Per-message structure on the orange band: sparkle + dark date pill +
   text. Each message can be hovered as a unit (the marquee pauses on
   hover so this is actually usable). */
.gk-message {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.65rem;
    border-radius: 0.6rem;
    transition: background-color 0.2s ease;
}

.gk-message:hover {
    background: rgba(255, 255, 255, 0.18);
}

.gk-sparkle {
    color: #fffbeb;
    font-size: 1.2rem;
    line-height: 1;
    text-shadow:
        0 0 16px rgba(255, 255, 255, 0.75),
        0 0 4px rgba(255, 255, 255, 0.6);
    animation: gkSparklePulse 2.4s ease-in-out infinite;
}

@keyframes gkSparklePulse {
    0%, 100% {
        opacity: 0.85;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gk-sparkle {
        animation: none;
    }
}

.gk-date {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(26, 26, 46, 0.55);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.3;
    text-shadow: none;
}

.gk-text {
    color: #fff;
}

.gk-separator {
    display: inline-block;
    margin: 0 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

/* Highlighted numbers — cream chip with dark navy text. Reads as a
   celebration badge stamped onto the message rather than a heavy stamp.
   The light chip on the orange band has the same contrast as the inverse
   would, but feels brighter and more festive. */
.marquee-message-highlight {
    display: inline-block;
    padding: 0.08rem 0.5rem;
    margin: 0 0.12rem;
    background: #fff7d6;
    color: #1a1a2e;
    border-radius: 0.4rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-shadow: none;
    box-shadow: 0 1px 2px rgba(26, 26, 46, 0.15);
}


@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* One-row auto-scrolling logos marquee */
.logos-marquee {
    overflow: hidden;
    white-space: nowrap;
    border-style: none;
    box-shadow: none;
}

.logos-marquee .logos-track {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    animation: logosScrollReverse 50s linear infinite;
    /* Start paused */
    animation-play-state: paused;
    padding: 12px 0;
}

.logos-marquee.marquee-playing .logos-track {
    /* Play when in view */
    animation-play-state: running;
}

.logos-marquee .logo-img {
    width: 110px;
    height: 110px;
    margin: 0;
    filter: grayscale(100%);
    opacity: 0.9;
}

.logos-marquee .logo-img-link {
    margin: 0;
    padding: 0.75rem;
    border-radius: 1rem;
}

/* Reverse direction animation - scrolls right to left (opposite of Good Karma) */
@keyframes logosScrollReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 658px) {
    .logo-img {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 601px) {
    .logo-img {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 578px) {
    .logo-img {
        width: 16%;
    }

    .logo-img-link {
        margin: 0px;
    }
}

/* ======================================== */
/* Stats / Trust Bar */
/* ======================================== */
.stats-trust-bar {
    background-color: #1a1a2e;
    padding: 32px 0;
    width: 100%;
}

.stats-trust-bar-inner {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stats-trust-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 0.75rem;
}

.stats-trust-bar-number {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.5px;
    transition: transform 0.2s ease;
}

.stats-trust-bar-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
}

.stats-trust-bar-divider {
    align-self: stretch;
    flex-shrink: 0;
    margin: 4px 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent
    );
}

.stats-trust-bar-item:hover .stats-trust-bar-number {
    transform: scale(1.06);
}

/* Tablet (768–992px) */
@media (max-width: 992px) {
    .stats-trust-bar {
        padding: 24px 0;
    }

    .stats-trust-bar-number {
        font-size: 26px;
    }

    .stats-trust-bar-label {
        font-size: 10px;
        letter-spacing: 1px;
    }
}

/* Mobile (<768px) */
@media (max-width: 767.98px) {
    .stats-trust-bar-inner {
        flex-wrap: wrap;
        gap: 20px 0;
        justify-content: center;
    }

    .stats-trust-bar-item {
        flex: 0 0 33.33%;
    }

    .stats-trust-bar-item:nth-child(4),
    .stats-trust-bar-item:nth-child(5) {
        flex: 0 0 50%;
    }

    .stats-trust-bar-divider {
        display: none;
    }

    .stats-trust-bar-number {
        font-size: 26px;
    }

    .stats-trust-bar-label {
        font-size: 10px;
        letter-spacing: 1px;
        margin-top: 6px;
    }
}

/* ======================================== */
/* Card shape: the band sits inside the page container as a rounded card */
/* ======================================== */
.stats-trust-bar--card {
    border-radius: 18px;
    padding: 2.5rem 1.5rem;
}

.stats-trust-bar--card .stats-trust-bar-inner {
    padding: 0;
}

.good-karma-section--card {
    background: transparent;
}

.good-karma-section--card .goodKarmaMarquee {
    border-radius: 18px;
    overflow: hidden;
}

/* The edge fade moves from the section onto the track, so the card keeps its rounded corners */
.collegesBackground--card {
    mask-image: none;
}

.collegesBackground--card .collegesContainer {
    border-radius: 18px;
}

.collegesBackground--card .logos-marquee {
    mask-image: linear-gradient(90deg, #ffffff00, #ffffff 6%, #ffffff 94%, #ffffff00);
}

@media (max-width: 575.98px) {
    .stats-trust-bar--card {
        padding: 2rem 1rem;
    }
}
