/* ======================================================
   Premium Summer Special Discount Ticker (Navy & Cyan Theme)
   ====================================================== */

.summer-discount-slider {
    position: relative;
    top: 84px;
    /* Matches fixed navbar height on desktop */
    width: 100%;
    height: 90px;
    /* Perfect height within the 100px-150px range */
    background: linear-gradient(90deg, #060B18 0%, #0F1A36 50%, #060B18 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid rgba(38, 123, 255, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 99;
    /* Below fixed navbar but above other normal elements */
}

/* Scroll Container */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Rail - Animated parent to show items side-by-side continuously */
.ticker {
    display: flex;
    flex-wrap: nowrap;
    /* Strictly prevents vertical wrapping in all browsers */
    width: max-content;
    /* Allow the track to fit all items continuously in one line */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* A single complete banner set - sized to its content with spacing */
.ticker-item {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 35px;
    /* Spacing between internal elements of the item */
    padding: 0 50px;
    /* Elegant gap between different items in the continuous ribbon */
    box-sizing: border-box;
    flex-shrink: 0;
    white-space: nowrap;
}

/* --- Block 1: Limited Time Offer --- */
.promo-limited {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-icon {
    font-size: 26px;
    color: #FFE600;
    filter: drop-shadow(0 0 6px rgba(255, 230, 0, 0.5));
    animation: promo-shake 4s ease-in-out infinite;
}

.promo-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.limited-title {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.limited-subtitle {
    font-size: 14px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Vertical Divider (Matches Dashboard Blueprint) --- */
.promo-divider {
    width: 2px;
    height: 45px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.12) 80%, transparent);
    margin: 0 35px;
}

/* --- Block 2: Flat Discount --- */
.promo-discount {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.discount-light {
    font-size: 15px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.discount-bold {
    font-size: 32px;
    font-weight: 900;
    color: #FFE600;
    /* Glowing yellow */
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 8px rgba(255, 230, 0, 0.4));
}

/* --- Block 3: Services Pill & List --- */
.promo-services {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.services-pill {
    font-size: 10px;
    font-weight: 900;
    background: rgba(38, 123, 255, 0.15);
    color: #3B82F6;
    padding: 3px 12px;
    border-radius: 50px;
    border: 1px solid rgba(38, 123, 255, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
}

.services-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.bullet {
    color: #3B82F6;
    font-size: 16px;
    opacity: 0.8;
}

/* --- Block 4: CTA Button --- */
.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: #060B18;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.promo-cta-icon {
    font-size: 14px;
    color: #3B82F6;
}

.promo-cta-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* CTA Interactions */
.promo-cta:hover {
    background: #3B82F6;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.promo-cta:hover .promo-cta-icon {
    color: #FFFFFF;
}

.promo-cta:hover .promo-cta-arrow {
    transform: translateX(4px);
}

/* Slider keyframes are managed dynamically via summer-slider.js transition properties */

@keyframes promo-shake {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    20% {
        transform: translateY(-2px) rotate(-3deg);
    }

    40% {
        transform: translateY(1px) rotate(2deg);
    }

    60% {
        transform: translateY(-1px) rotate(-1deg);
    }

    80% {
        transform: translateY(1px) rotate(1deg);
    }
}

/* ======================================================
   Responsive Breakpoints
   ====================================================== */

@media (max-width: 1024px) {
    .summer-discount-slider {
        top: 56px;
        /* Matches Mobile/Tablet navbar */
        height: 100px;
    }

    .promo-divider {
        height: 35px;
        margin: 0 20px;
    }

    .promo-icon {
        font-size: 22px;
    }

    .limited-subtitle {
        font-size: 12px;
    }

    .discount-bold {
        font-size: 26px;
    }

    .services-list {
        font-size: 11px;
        gap: 6px;
    }

    .promo-cta {
        padding: 6px 16px;
        font-size: 10px;
    }
}

@media (max-width: 720px) {
    .summer-discount-slider {
        top: 56px;
        height: 90px;
    }

    .ticker-item {
        padding: 0 25px;
        gap: 20px;
        /* Snug item gap for continuous scroll on mobile */
    }

    .promo-divider {
        height: 25px;
        margin: 0 15px;
        display: block !important;
        /* Always show dividers for clean horizontal separations */
    }

    .promo-icon {
        font-size: 18px;
    }

    .limited-title {
        font-size: 8px;
    }

    .limited-subtitle {
        font-size: 11px;
    }

    .discount-light {
        font-size: 11px;
    }

    .discount-bold {
        font-size: 20px;
    }

    .services-pill {
        font-size: 9px;
        padding: 2px 10px;
    }

    .services-list {
        display: none !important;
        /* Hide details on mobile to keep continuous crawl clean */
    }

    .promo-cta {
        padding: 5px 12px;
        font-size: 9px;
    }
}