/* === BASE DESKTOP STYLES === */
body {
    overflow-x: hidden;
}

#heroCarousel .carousel-item {
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.carousel-caption {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
    padding: 0;
    background: none;
}

.carousel-caption>.custom-caption-light,
.carousel-caption>.custom-caption-dark {
    width: 80%;
    height: 80%;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.custom-caption-light {
    background-color: rgba(255, 255, 255, 0.6);
    color: #000;
}

.custom-caption-dark {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.carousel-caption h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 1rem;
    margin-bottom: 0;
}

@media (max-width: 576px) {

    .carousel-caption>.custom-caption-light,
    .carousel-caption>.custom-caption-dark {
        width: 90%;
        height: auto;
        padding: 15px;
    }

    .carousel-caption h2 {
        font-size: 1.3rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
}

.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

section .img-fluid {
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

section .img-fluid:hover {
    filter: grayscale(0%);
}

.row.align-items-stretch {
    align-items: stretch;
}

.flip-container,
.flipper,
.front,
.back {
    width: 100%;
    height: 100%;
}

.flip-container {
    perspective: 1000px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.flipper {
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-container:hover .flipper {
    transform: rotateY(180deg);
}

.front,
.back {
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.front {
    background: #fff;
    color: #000;
    z-index: 2;
    padding: 20px;
    box-sizing: border-box;
}

.back {
    background: #000;
    transform: rotateY(180deg);
    position: relative;
}

.flip-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.read-more-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 0.7rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    border-top: 1px solid #ddd;
}

/* Video box (no flip) */
.video-box {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

/* === MOBILE SPRITE STYLE OVERRIDE ===
@media (max-width: 576px) {

    /* Preserve your custom height settings for transparent boxes */
    .carousel-caption {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        height: 60% !important;
        /* your chosen percentage */
        padding: 0 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .carousel-caption>.custom-caption-light,
    .carousel-caption>.custom-caption-dark {
        width: 90%;
        height: 100% !important;
        padding: 1rem;
    }

    /* Add vertical space between stacked blocks on mobile */
    .col-md-6.d-flex:first-child {
        margin-bottom: 1.5rem;
    }
}
@media (max-width: 576px) {
    .carousel-caption {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        height: 60% !important;
        /* you set the percentage here */
        padding: 0 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .carousel-caption>.custom-caption-light,
    .carousel-caption>.custom-caption-dark {
        width: 90%;
        height: 100% !important;
        /* make sure the inner box fills the caption height */
        padding: 1rem;
    }
}
@media (max-width: 576px) {
    .col-md-6.d-flex:first-child {
        margin-bottom: 1.5rem;
    }
}
/* Desktop title + text (slider + parallax) */
.carousel-caption h2,
.parallax .custom-caption-dark h2,
.parallax .custom-caption-light h2 {
    font-size: 2rem;
}

.carousel-caption p,
.parallax .custom-caption-dark p,
.parallax .custom-caption-light p {
    font-size: 1rem;
}

/* Mobile override */
@media (max-width: 576px) {

    .carousel-caption h2,
    .parallax .custom-caption-dark h2,
    .parallax .custom-caption-light h2 {
        font-size: 1.5rem;
    }

    .carousel-caption p,
    .parallax .custom-caption-dark p,
    .parallax .custom-caption-light p {
        font-size: 1.2rem;
        text-align: center;
    }
}
@media (max-width: 576px) {
    .block-export {
        background-color: #e9ecef;
        border: 1px solid #ddd;
        border-radius: 0.5rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }
}
@media (max-width: 576px) {
    .row.align-items-stretch {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .col-md-4.d-flex {
        background-color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 0.5rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        margin-bottom: 1rem;
    }
}
/* REMOVE grayscale or dark overlay on investor logos */
.carousel-inner img,
.carousel-inner img:hover {
    filter: none !important;
    -webkit-filter: none !important;
    transition: none !important;
}