﻿/* ===========================
   HEADER CAROUSEL
   =========================== */
#promo-wrapper {
    margin-top: 85px;
}

.promo-header-wrapper {
    position: relative;
    padding-right:15px;
    padding-left:15px;
}

.promo-header-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

    .promo-header-carousel::-webkit-scrollbar {
        display: none;
    }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    font-size: 1.2rem;
}

.carousel-btn {
    pointer-events: auto;
}

.header-card {
    pointer-events: auto;
}

.carousel-btn {
    z-index: 20;
}

.left-btn {
    left: 5px;
}

.right-btn {
    right: 5px;
}

.header-card {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
}

@media (min-width: 576px) {
    .header-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 992px) {
    .header-card {
        flex: 0 0 calc(25% - 1rem);
    }
}

.header-card {
    cursor: pointer;
}

    .header-card img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Top-right label */
.header-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: white;
    color: black;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Bottom overlay */
.header-bottom-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background: darkgray;
    color: white;
}

.header-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.header-sub {
    font-size: 0.9rem;
    opacity: 0.9;
}


/* ===========================
   BODY GRID
   =========================== */

.promo-body-grid {
    display: grid;
    grid-template-columns: 1fr; /* mobile: full width */
    gap: 1rem;
    margin-top: 2rem;
    padding: 15px;
}

@media (min-width: 576px) {
    .promo-body-grid {
        grid-template-columns: 1fr 1fr; /* tablet & desktop: 2 columns */
    }
}


.body-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 260px;
}

    .body-card img {
        width: 100%;
        height: auto;
    }

/* Glass overlay */
.body-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.25);
    color: white;
    padding-left: 5%;
    transform: translateY(0%); /* adjust 10–40% depending on taste */
}

.body-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.body-desc {
    font-size: 0.9rem;
    margin-top: 4px;
    opacity: 0.8;
}

.read-more {
    margin-top: 8px;
    padding: 15px 30px;
    background: white;
    color: black;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Rounded modal */
#promoModal .modal-content {
    border-radius: 20px;
    overflow: hidden; /* ensures header + body follow the curve */
}

/* Optional: soften the backdrop */
.modal-backdrop.show {
    opacity: 0.6;
}
