/* ========================================
   HERO SLIDESHOW
   Premium full-viewport product showcase
   ======================================== */

.hero-ss
{
    position: relative;
    width: 100%;
    /*height: 75vh;*/ height: 700px;
    min-height: 700px;
    max-height: 700px;
    overflow: hidden;
}

/* Ensure slideshow navigation and arrows receive pointer events and sit above slide visuals */
.hero-ss
{
    position: relative; /* ensure proper stacking context */
}

.hero-ss__nav,
.hero-ss__arrow
{
    pointer-events: auto;
    z-index: 30; /* high enough to sit above most slide visuals */
    position: relative; /* allow z-index to take effect without removing from flow */
}

    /* Make sure nav children are clickable */
    .hero-ss__nav > *,
    .hero-ss__arrow > *
    {
        pointer-events: auto;
    }

/* Prevent slide visuals/backgrounds from intercepting clicks */
.hero-ss__slide .hero-ss__visual,
.hero-ss__slide .hero-ss__bg
{
    pointer-events: none;
}

/* ---- Slide container ---- */
.hero-ss__slides
{
    position: relative;
    width: 100%;
    height: 100%;
}

/* ---- Individual slide ---- */
.hero-ss__slide
{
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Slide entering — fades in on top */
.hero-ss__slide--active
{
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
    animation: ssFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Slide leaving — fades out underneath */
.hero-ss__slide--leaving
{
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    animation: ssFadeOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes ssFadeIn
{
    from
    {
        opacity: 0;
    }

    to
    {
        opacity: 1;
    }
}

@keyframes ssFadeOut
{
    from
    {
        opacity: 1;
    }

    to
    {
        opacity: 0;
    }
}

/* ---- Backgrounds ---- */
.hero-ss__bg
{
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 7s cubic-bezier(0.2, 0, 0.2, 1);
}

.hero-ss__slide--active .hero-ss__bg
{
    transform: scale(1.04);
}

/* Deep, premium dark backgrounds with subtle radial accents */
.hero-ss__bg--schooltray
{
    background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(33, 150, 243, 0.35) 0%, transparent 70%), radial-gradient(ellipse 50% 50% at 20% 80%, rgba(13, 71, 161, 0.3) 0%, transparent 60%), linear-gradient(160deg, #0a1628 0%, #0d2137 40%, #102a4a 100%);
}

.hero-ss__bg--jman
{
    background: radial-gradient(ellipse 80% 60% at 65% 35%, rgba(255, 152, 0, 0.3) 0%, transparent 70%), radial-gradient(ellipse 50% 50% at 25% 75%, rgba(191, 54, 12, 0.25) 0%, transparent 60%), linear-gradient(160deg, #1a0e04 0%, #2a1508 40%, #3d1e0a 100%);
}

.hero-ss__bg--linkweb
{
    background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(76, 175, 80, 0.3) 0%, transparent 70%), radial-gradient(ellipse 50% 50% at 20% 80%, rgba(27, 94, 32, 0.25) 0%, transparent 60%), linear-gradient(160deg, #071a08 0%, #0d2a10 40%, #133518 100%);
}

.hero-ss__bg--scholarstack
{
    background: radial-gradient(ellipse 80% 60% at 65% 35%, rgba(171, 71, 188, 0.3) 0%, transparent 70%), radial-gradient(ellipse 50% 50% at 25% 75%, rgba(74, 20, 140, 0.25) 0%, transparent 60%), linear-gradient(160deg, #120822 0%, #1a0d30 40%, #221240 100%);
}

.hero-ss__bg--readyserve
{
    background: radial-gradient(ellipse 80% 60% at 65% 35%, rgba(0, 188, 212, 0.28) 0%, transparent 70%), radial-gradient(ellipse 50% 50% at 25% 75%, rgba(3, 169, 244, 0.22) 0%, transparent 60%), linear-gradient(160deg, #052028 0%, #063744 40%, #0b5560 100%);
}



/* ---- Inner layout ---- */
.hero-ss__inner
{
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    height: 100%;
    padding-top: 52px; /*calc(var(--vs-navbar-height, 52px) + 3rem);*/
    padding-bottom: 5rem;
}

/* ---- Text side ---- */
.hero-ss__text
{
    flex: 55%;
    /* max-width: 520px; gar */
    color: #ffffff;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.7s 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-ss__slide--active .hero-ss__text
{
    transform: translateY(0);
    opacity: 1;
}

.hero-ss__badge
{
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.hero-ss__title
{
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2rem + 1.5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.hero-ss__subtitle
{
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1rem;
}

.hero-ss__desc
{
    font-size: clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2rem;
    /*max-width: 440px;*/
}

/* ---- CTA buttons ---- */
.hero-ss__ctas
{
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.btn--white
{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: #ffffff;
    color: #1d1d1f;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn--white:hover
    {
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

.btn--ghost-light
{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: transparent;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .btn--ghost-light:hover
    {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.8);
    }

/* ---- Visual / mockup side ---- */
.hero-ss__visual
{
    flex: 45%;
    /* max-width: 560px; gar */
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.8s 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-ss__slide--active .hero-ss__visual
{
    transform: translateX(0) scale(1);
    opacity: 1;
}

.hero-ss__visual img
{
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
}

/* ========================================
   DOT NAVIGATION
   ======================================== */
.hero-ss__nav
{
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.25rem;
}

.hero-ss__dot
{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    outline: none;
    transition: opacity 0.3s ease;
}

    .hero-ss__dot:focus-visible
    {
        outline: 2px solid rgba(255,255,255,0.6);
        outline-offset: 2px;
        border-radius: 4px;
    }

.hero-ss__dot-label
{
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.hero-ss__dot--active .hero-ss__dot-label
{
    color: #ffffff;
}

.hero-ss__dot:hover .hero-ss__dot-label
{
    color: rgba(255, 255, 255, 0.75);
}

.hero-ss__dot--active:hover .hero-ss__dot-label
{
    color: #ffffff;
}

.hero-ss__dot-progress
{
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

    .hero-ss__dot-progress::after
    {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 0%;
        background: #ffffff;
        border-radius: 2px;
    }

.hero-ss__dot--active .hero-ss__dot-progress::after
{
    animation: hero-progress 7s linear forwards;
}

@keyframes hero-progress
{
    from
    {
        width: 0%;
    }

    to
    {
        width: 100%;
    }
}

/* ========================================
   ARROW NAVIGATION
   ======================================== */
.hero-ss__arrow
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
}

    .hero-ss__arrow:hover
    {
        background: rgba(255, 255, 255, 0.2);
    }

    .hero-ss__arrow:active
    {
        transform: translateY(-50%) scale(0.95);
    }

.hero-ss__arrow--prev
{
    left: clamp(1rem, 3vw, 2.5rem);
}

.hero-ss__arrow--next
{
    right: clamp(1rem, 3vw, 2.5rem);
}

/* ========================================
   STATS BAR
   ======================================== */
.hero-ss__stats
{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-ss__stat
{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 2.5rem;
    position: relative;
}

    .hero-ss__stat:not(:last-child)::after
    {
        content: '';
        position: absolute;
        right: 0;
        top: 25%;
        height: 50%;
        width: 1px;
        background: rgba(255, 255, 255, 0.12);
    }

.hero-ss__stat-number
{
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.hero-ss__stat-suffix
{
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.hero-ss__stat-label
{
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.35rem;
}

/* ========================================
   PRODUCTS GRID SECTION
   ======================================== */
.products-grid-section
{
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--vs-light-bg, #ffffff);
}

.products-grid
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.product-card
{
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: var(--vs-radius-lg, 20px);
    background: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: var(--vs-light-text, #1d1d1f);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

    .product-card:hover
    {
        transform: translateY(-5px);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    }

/* Per-product border glow on hover */
.product-card--schooltray:hover
{
    border-color: rgba(33, 150, 243, 0.4);
    box-shadow: 0 16px 48px rgba(33, 150, 243, 0.12);
}

.product-card--jman:hover
{
    border-color: rgba(255, 152, 0, 0.4);
    box-shadow: 0 16px 48px rgba(255, 152, 0, 0.12);
}

.product-card--linkweb:hover
{
    border-color: rgba(76, 175, 80, 0.4);
    box-shadow: 0 16px 48px rgba(76, 175, 80, 0.12);
}

.product-card--scholarstack:hover
{
    border-color: rgba(156, 39, 176, 0.4);
    box-shadow: 0 16px 48px rgba(156, 39, 176, 0.12);
}

/* readyserve hover/glow updated to match new --vs-readyserve (teal) */
.product-card--readyserve:hover
{
    border-color: rgba(0, 188, 212, 0.4);
    box-shadow: 0 16px 48px rgba(0, 188, 212, 0.12);
}

/* Top accent line per product */
.product-card--schooltray
{
    border-top: 3px solid var(--vs-schooltray, #2196F3);
}

.product-card--jman
{
    border-top: 3px solid #E65100;
}

.product-card--linkweb
{
    border-top: 3px solid var(--vs-linkweb, #4CAF50);
}

.product-card--scholarstack
{
    border-top: 3px solid var(--vs-scholarstack, #9C27B0);
}

.product-card--readyserve
{
    border-top: 3px solid var(--vs-readyserve, #9C27B0);
}

.product-card--schooltray .product-card__icon
{
    background: var(--vs-schooltray-light, #E3F2FD);
}

.product-card--jman .product-card__icon
{
    background: var(--vs-jman-light, #FFF3E0);
}

.product-card--linkweb .product-card__icon
{
    background: var(--vs-linkweb-light, #E8F5E9);
}

.product-card--scholarstack .product-card__icon
{
    background: var(--vs-scholarstack-light, #F3E5F5);
}

.product-card--readyserve .product-card__icon
{
    background: var(--vs-readyserve-light, #F3E5F5);
}

.product-card__icon
{
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-card__icon img
    {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }

.product-card__name
{
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.product-card--schooltray .product-card__name
{
    color: var(--vs-schooltray);
}

.product-card--jman .product-card__name
{
    color: #E65100;
}

.product-card--linkweb .product-card__name
{
    color: var(--vs-linkweb);
}

.product-card--scholarstack .product-card__name
{
    color: var(--vs-scholarstack);
}

.product-card--readyserve .product-card__name
{
    color: var(--vs-readyserve);
}

.product-card__role
{
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--vs-light-text, #1d1d1f);
    margin-bottom: 0.75rem;
}

.product-card__desc
{
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--vs-light-text-secondary, #86868b);
    flex: 1;
    margin-bottom: 1.25rem;
}

.product-card__cta
{
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease;
}

.product-card--schooltray .product-card__cta
{
    color: var(--vs-schooltray);
}

.product-card--jman .product-card__cta
{
    color: #E65100;
}

.product-card--linkweb .product-card__cta
{
    color: var(--vs-linkweb);
}

.product-card--scholarstack .product-card__cta
{
    color: var(--vs-scholarstack);
}

.product-card--readyserve .product-card__cta
{
    color: var(--vs-readyserve);
}

.product-card:hover .product-card__cta
{
    gap: 0.65rem;
}

/* ========================================================================
   RESPONSIVE — Hero Slideshow
   Width breakpoints: 1024px, 768px, 480px 
   Height breakpoints: If width is > 1024px && height is <= 768px, 480px 
   ======================================================================== */

@media (max-width: 1200px)
{
    .hero-ss
    {
        height: 600px;
        min-height: 600px;
        max-height: 600px;
    }

    .hero-ss__title
    {
        font-size: clamp(1rem, 2rem, 3rem);
    }

    .hero-ss__ctas .btn
    {
        min-height: 30px;
        padding: 0.25rem 1.25rem !important;
    }
}

@media (max-width: 750px)
{

    .hero-ss
    {
        height: 650px;
        min-height: 650px;
        max-height: 650px;
    }

    .hero-ss__inner
    {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0rem;
        padding-bottom: 4rem;
        padding-top: 4rem;
    }

    .hero-ss__desc
    {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ss__ctas
    {
        justify-content: center;
    }

    .hero-ss__visual
    {
        max-width: 200px;
    }

    .products-grid
    {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-card
    {
        padding: 1.5rem;
    }
}

@media (max-width: 550px)
{
    /* Allow dots to wrap to two rows and stay centered */
    .hero-ss__nav
    {
        left: 0; right: 0; bottom: 0;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0rem;
        padding: 0rem;
    }

    .hero-ss__dot
    {
        padding: 0rem 0.5rem;
    }

    .hero-ss__text
    {
        margin-top: 30px;
    }

    .hero-ss__visual
    {
        display: none;
    }

    .hero-ss__arrow
    {
        display: none;
    }
}


@media (max-width: 450px)
{
    .hero-ss
    {
        height: 100vh;
    }
}

/* Heights */
@media (max-height: 568px) and (max-width: 750px)
{
    .hero-ss
    {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }

    .hero-ss__visual
    {
        display: none;
    }
    .hero-ss__arrow
    {
        display: none;
    }
}
