/* AEM Labs Limited - CSS Module: Hero Banner */
/* ========================================== */

.hero-container {
    padding: 40px 0;
    width: 100%;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#product-hero.hero-container {
    padding: 40px 0 0;
}

.hero-section {
    max-width: min(85%, var(--section-max-width));
    width: 100%;
    margin: 0 auto;
    background-color: #1d1d1d;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 20vh;
    transition: max-width 0.4s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

#pc-cases .hero-section {
    height: 10vh;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#pc-cases .hero-title {
    color: black;
    margin-bottom: 0;
}

#motherboards .hero-title {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 0;
}

.hero-video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-control {
    position: absolute;
    top: 5%;
    right: 1.2%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 15;
    padding: 0;
}

.video-control i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.video-control:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

.hero-video-wrapper:hover .video-control {
    opacity: 0.7;
}

.video-control:focus {
    outline: none;
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
}

.hero-msg-bar {
    max-width: min(80%, var(--section-max-width));
    width: 100%;
    margin: -1.4% auto 0;
    background-color: white;
    border-radius: 16px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: max-width 0.4s ease-out;
    z-index: 10;
}

.info-message {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.info-message i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 18px;
}

@media (max-width: 1440px) {
    .hero-section {
        max-width: min(85%, var(--section-max-width));
        height: 25vh;
    }

    .hero-title {
        font-size: 28px;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-msg-bar {
        max-width: fit-content;
        padding: 12px 25px;
    }

    #product-hero .hero-msg-bar {
        max-width: min(80%, var(--section-max-width));
    }

    .info-message {
        font-size: 14px;
    }

    .info-message i {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        max-width: min(90%, var(--section-max-width));
        height: 16vh;
    }

    .hero-title {
        font-size: 26px;
        font-weight: 600;
    }

    .hero-subtitle {
        font-size: 16px;
        width: 85%;
    }

    .hero-msg-bar {
        margin: -2% auto 0;
        padding: 10px 20px;
        border-radius: 14px;
    }

    #product-hero .hero-msg-bar {
        display: none;
    }

    .info-message {
        font-size: 12px;
    }

    .info-message i {
        font-size: 15px;
        margin-right: 8px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 20px 0;
    }

    #product-hero.hero-container {
        padding: 20px 0 0;
    }

    .hero-section {
        max-width: min(90%, var(--section-max-width));
        margin: 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        max-width: min(95%, var(--section-max-width));
    }

    .hero-container, #product-hero.hero-container {
        padding: 0;
    }

    .hero-title {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 10px;
        font-weight: 500;
        max-width: 100%;
    }

    .video-control {
        width: 24px;
        height: 24px;
        top: 4%;
        right: 2%;
    }

    .video-control i {
        font-size: 9px;
    }

    .hero-msg-bar {
        margin: -4% auto 0;
        border-radius: 10px;
    }

    .info-message {
        font-size: 10px;
    }

    .info-message i {
        font-size: 12px;
    }
}