
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =========================================================
   GLOBAL
   ========================================================= */

.carousel-module,
.carousel-module * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.carousel-module {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* =========================================================
   CAROUSEL SLIDES
   ========================================================= */

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* =========================================================
   IMAGES
   ========================================================= */

.carousel-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-image img,
.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-bg {
    background: #000;
}

.mobile-only {
    display: none !important;
}

/* =========================================================
   TEXT OVERLAY
   ========================================================= */

.text-overlay {
    position: absolute;
    top: 15%;
    left: 5%;
    width: 45%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    z-index: 10;
    pointer-events: none;
}

.text-overlay * {
    pointer-events: auto;
}

/* =========================================================
   GENERAL CAROUSEL TITLE
   ========================================================= */

.carousel-title {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.carousel-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 55px;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   GENERAL BUTTON
   ========================================================= */

.carousel-btn {
    background-color: #cc0000;
    color: #fff;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: fit-content;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.carousel-btn:hover {
    background-color: #fff;
    color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover,
.expo-btn:hover {
    text-decoration: none !important;
}

/* =========================================================
   GLOBAL STOCK BANNER
   ========================================================= */

.global-stock-overlay {
    top: 0;
    left: 5%;
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-top: 13%;
}

.global-stock-overlay .carousel-title {
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: -1px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.global-stock-overlay .carousel-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.5;
    max-width: 600px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Global Stock Buttons */

.global-stock-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.global-stock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 165px;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* USA Button */

.global-stock-btn-primary {
    background: #cc0000;
    color: #ffffff;
    border: 1px solid #cc0000;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.25);
}

.global-stock-btn-primary:hover {
    background: #ffffff;
    color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* EU Button */

.global-stock-btn-secondary {
    background: rgba(255, 255, 255, 0.96);
    color: #222222;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.global-stock-btn-secondary:hover {
    background: #cc0000;
    color: #ffffff;
    border-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   AI SEARCH BANNER
   ========================================================= */

.ai-search-overlay {
    /* Uses the general text overlay layout on desktop */
}

/* =========================================================
   FIRE & SAFETY BANNER
   ========================================================= */

.fire-safety-overlay .carousel-title {
    color: #bf1205;
    -webkit-text-stroke: 0;
}

.fire-safety-overlay .carousel-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 500px;
    color: #333333;
}

/* Fire & Safety Buttons */

.fire-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 5px;
}

.fire-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 11px 24px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fire-btn:link,
.fire-btn:visited,
.fire-btn:hover,
.fire-btn:active,
.fire-btn:focus {
    text-decoration: none !important;
}

/* Smoke Alarm — Primary */

.fire-btn-primary {
    background-color: #bf1205;
    color: #ffffff;
    border: 1px solid #bf1205;
    box-shadow: 0 4px 12px rgba(191, 18, 5, 0.22);
}

.fire-btn-primary:hover {
    background-color: #ffffff;
    color: #bf1205;
    border-color: #bf1205;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(191, 18, 5, 0.18);
}

/* CO Alarm — Secondary */

.fire-btn-secondary {
    background-color: #ffffff;
    color: #bf1205;
    border: 1px solid #bf1205;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fire-btn-secondary:hover {
    background-color: #bf1205;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(191, 18, 5, 0.18);
}

/* =========================================================
   ALL IN ONE BANNER
   ========================================================= */

.all-in-one-overlay .carousel-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.all-in-one-overlay .carousel-subtitle {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 55px;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   CAROUSEL INDICATORS
   ========================================================= */

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 12;
}

.indicator {
    position: relative;
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.indicator.active {
    width: 32px;
    height: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
}

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

@keyframes indicator-progress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .carousel-module {
        height: 100vh;
        height: 100dvh;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* General Text Layout */

    .text-overlay {
        width: 90%;
        left: 5%;
        text-align: center;
        align-items: center;
        top: auto;
        bottom: 15%;
        height: auto;
    }

    .carousel-title {
        font-size: 2.5rem;
    }

    .carousel-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Global Stock */

    .global-stock-overlay {
        top: auto;
        bottom: 10%;
        left: 5%;
        width: 90%;
        height: auto;
        padding-top: 0;
        justify-content: flex-end;
        text-align: center;
    }

    .global-stock-overlay .carousel-title {
        font-size: 2.25rem !important;
        line-height: 1.08;
        margin-bottom: 10px;
    }

    .global-stock-overlay .carousel-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5;
        max-width: 330px;
        margin-bottom: 18px;
    }

    .global-stock-buttons {
        width: 100%;
        gap: 8px;
    }

    .global-stock-btn {
        width: 48%;
        min-width: 0;
        padding: 10px 8px;
        font-size: 0.78rem;
    }

    /* AI Search */

    .ai-search-overlay {
        bottom: 8% !important;
        top: auto !important;
        transform: none !important;
    }

    .ai-search-overlay .carousel-title {
        font-size: 2rem !important;
        position: static;
        transform: none !important;
        margin-bottom: 15px !important;
    }

    .ai-search-overlay .carousel-subtitle {
        margin-bottom: 20px !important;
    }

    .ai-search-overlay .carousel-btn {
        margin-top: 8px !important;
    }

    /* Fire & Safety */

    .fire-safety-overlay .carousel-title {
        color: #bf1205;
        font-size: 2.5rem !important;
    }

    .fire-safety-overlay .carousel-subtitle {
        font-size: 1rem !important;
        line-height: 1.6;
        margin-bottom: 20px;
        color: #FDEDDA;
    }

    .fire-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    /* All in One */

    .all-in-one-overlay .carousel-title {
        font-size: 2.5rem !important;
    }

    .all-in-one-overlay .carousel-subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px;
    }

    /* Indicators */

    .carousel-indicators {
        gap: 10px;
        bottom: 20px;
    }

    .indicator {
        width: 7px;
        height: 7px;
    }

    .indicator.active {
        width: 26px;
        height: 4px;
    }
}
