﻿/* ===========================
   GLOBAL STYLES
=========================== */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    margin-bottom: 60px;
    padding-top: 85px; /* adjust based on navbar height */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Focus styles */
.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
    padding-top: 70px;
    min-height: 40vh;
    background-image: linear-gradient(to right, #212529, #343a40);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero .hero-headline-wrap {
        margin-top: 1cm;
    }
    /* spacing below navbar */
    .hero .lead {
        color: #ffffff;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }

    .hero .display-4 {
        color: silver;
        animation: silverToWhite 3s ease-in-out infinite alternate;
    }

@keyframes silverToWhite {
    0% {
        color: silver;
    }

    100% {
        color: white;
    }
}

/* ===========================
   BUTTONS
=========================== */
.btn-custom {
    background-color: #17a2b8; /* turquoise */
    color: #fff;
    border-radius: 5px;
}

    .btn-custom:hover {
        background-color: #1493a0;
    }

/* ===========================
   CARDS
=========================== */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: scale(1.05);
    }

    .card.h-100 {
        display: flex !important;
        flex-direction: column !important;
    }

.affiliate-card .card-body {
    margin-top: auto;
}

/* ===========================
   ANIMATIONS
=========================== */
.fade-in {
    animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}





/* Rainbow background for ITCAV Pack page */


@keyframes rainbowFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
/* Rainbow background inside the container for ITCAV Pack page */
/* Softer rainbow background for ITCAV Pack page */
body.itcav-pack-page .container {
    background: linear-gradient( 270deg, #e57373, /* muted red */
    #f9a825, /* softer orange/yellow */
    #fff176, /* pastel yellow */
    #81c784, /* muted green */
    #64b5f6, /* soft blue */
    #7986cb, /* muted indigo */
    #ba68c8 /* soft violet */
    );
    background-size: 1400% 1400%;
    animation: rainbowFlow 20s ease infinite;
    border-radius: 8px;
    padding: 2rem;
}

/* Keep cards readable */
body.itcav-pack-page .card {
    background-color: rgba(255,255,255,0.9);
    border-radius: 8px;
}




/* Pause auto-slide on hover */
.affiliate-card .affiliate-carousel:hover .slides {
  animation-play-state: paused;
}
/* FIX: Disable animation on the arrow-controlled carousel */
.affiliate-card .slides {
    animation: none !important;
}



.image-overlay-wrapper {
    position: relative;
    display: inline-block; /* keeps wrapper sized to the image */
    width: 100%; /* match other affiliate images */
}

    .image-overlay-wrapper img {
        display: block;
        width: 100%;
        height: auto; /* keep aspect ratio */
    }

.image-overlay-text {
    position: absolute;
    bottom: 10px; /* place text near bottom */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 4px;
}












/* ===========================
   AFFILIATE SCROLL STRIP
=========================== */
.affiliate-scroll-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 10px 0;
}

.affiliate-scroll-content {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    animation: scrollLeft 20s linear infinite; /* =Increase to slow it down =*/
}

    .affiliate-scroll-content:hover {
        animation-play-state: paused;
    }

.affiliate-banner {
    flex: 0 0 auto;
    width: 170px;
    height: 170px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease;
    background: #0f0f10;
}

    .affiliate-banner:hover {
        transform: scale(1.04);
    }

    .affiliate-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

/* Keyframes for smooth loop */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

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

/* ===========================
   AFFILIATE CARD SLIDER
=========================== */
.affiliate-card .image-strip-wrapper {
    width: 100%;
    overflow: hidden;
    padding-top: 100px;
    position: relative;
}

.affiliate-card .image-strip {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    animation: scrollCard 60s linear infinite;
}

    .affiliate-card .image-strip:hover {
        animation-play-state: paused;
    }

    .affiliate-card .image-strip a {
        display: block;
        flex-shrink: 0;
        text-decoration: none;
    }

    .affiliate-card .image-strip img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

        .affiliate-card .image-strip img:hover {
            transform: scale(1.05);
        }

/* Keyframes for card slider */
@keyframes scrollCard {
    0% {
        transform: translateX(0);
    }

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

/* ===========================
   OVERLAY TEXT
=========================== */
.image-overlay-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    flex-shrink: 0;
}

    .image-overlay-wrapper img {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 8px;
        object-fit: cover;
    }

.image-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    pointer-events: none;
}
