html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: black;
}

/* Top part of the page */

.top-section {
    position: relative;
    min-height: 50vh;
    overflow: hidden;
    background: none;
    padding-top: 80px;
}

.overlay-content {
    position: relative;
    z-index: 1;
    color: white;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6vw;
    padding: 2rem;
}

.page-title {
    font-size: 6vw;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.1;
}

.content-left {
    flex: 1;
    text-align: right;
}

.content-right {
    flex: 1;
    /* text-align: left; */
    text-align: center;
    /* max-width: 40vw; */
    max-width: 100%;
}

.page-subtitle {
    font-size: 3vw;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.5vw;
    color: #ccc;
    line-height: 1.6;
    max-width: 30vw;
}

/* Bottom part of the page */

.bottom-section {
    height: 50vh;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#cardCarousel {
    position: relative;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    z-index: 9999;
}

.card-container {
    z-index: 2;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    flex-wrap: nowrap;
    overflow: visible;
}

.custom-card {
    width: 20vw;
    height: auto;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: visible;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #000;
    flex-shrink: 0;
}

.custom-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;


    position: absolute;
    top: 0;
    left: 0;
    border-radius: inherit;
}

.custom-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    z-index: 3;
}

.custom-card .card-img-overlay {
    position: absolute;
    /* top: 0; */
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    border-radius: inherit;
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    transition: all 0.3s ease;
}



.card-hover-text {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}



.custom-card:hover .card-hover-text {
    opacity: 1;
    transform: translateY(0);
}

/* @media */

 @media (max-width: 768px) {
.content {
flex: none;
flex-direction: column;
/* align-items: flex-start; */
align-items: center;
gap: 2rem;
}
.page-title {
    font-size: 7vw;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.1;
}
.page-subtitle {
    font-size: 4vw;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 3vw;
    color: #ccc;
    line-height: 1.6;
    max-width: 90%;
}

.top-section {
    position: relative;
    min-height: 50vh;
    height: auto;
    overflow: hidden;
    background: none;
    padding-top: 80px;
}

.content-left, .content-right {
    text-align: center;
}

.card-container {
    z-index: 2;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    /* flex-wrap: nowrap; */
    overflow: visible;
}
.custom-card {
    width: 30vw;
    height: 35vh;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #000;
}
}
