:root {
    --content-gutter: 8%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    font-family: sans-serif;
}

/* Hero Section */
.main {
    background-image: url("images/background_image.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover; /* Changed from max(1200px, 100vw) to cover */
    height: 70vh;
    position: relative;
}

.main .box {
    height: 100%;
    width: 100%;
    opacity: 0.7;
    background-color: black;
    position: absolute;
    top: 0;
}

/* Navbar */
nav {
    justify-content: space-between;
    max-width: 80vw;
    margin: auto;
    display: flex;
    align-items: center;
    height: 62px;
}

nav img {
    width: 144px;
    position: relative;
    z-index: 10;
}

nav div {
    display: flex;
    gap: 10px;
}

nav button {
    position: relative;
    z-index: 10;
}

/* Buttons */
.btn {
    padding: 6px 16px;
    font-weight: 400;
    background-color: rgba(248, 243, 243, 0.021);
    color: white;
    border-radius: 4px;
    border: 1px solid white;
    cursor: pointer;
}

.btn-red {
    height: 40px;
    padding: 0 20px;
    background-color: red;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    font-weight: 400;
    border: none;
}

.btn-red-sm {
    background-color: red;
    color: white;
    border-radius: 7px;
    border: none;
    padding: 6px 16px;
}

/* Hero Text */
.hero {
    height: calc(100% - 62px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    position: relative;
    gap: 15px;
    padding: 0 30px;
    text-align: center;
}

.hero > :nth-child(1),
.hero > :nth-child(2) {
    font-size: 48px;
    font-weight: 900;
}

.hero > :nth-child(3),
.hero > :nth-child(4),
.hero > :nth-child(5) {
    font-size: 16px;
    font-weight: 400;
}

/* Email Box */
.email-box {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.main input {
    height: 40px;
    padding: 0 20px;
    font-size: 16px;
    border-radius: 5px;
    background-color: rgba(248, 243, 243, 0.021);
    color: white;
    border: 1px solid gray;
}

/* Separation Bar */
.seperation {
    height: 5px;
    background-color: rgb(89, 90, 91);
}

/* Trending Section */
.trending {
    color: white;
    padding-left: var(--content-gutter);
    padding-top: 20px;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Slider */
.slider-container {
    width: 100%;
    padding: 0 var(--content-gutter);
    margin: 0 auto 40px auto;
    overflow: hidden; /* show only five cards at once */
    box-sizing: border-box;
}

.slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.slider::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 calc((100% - 60px) / 5); /* show exactly five cards with gap compensation */
    max-width: calc((100% - 60px) / 5);
    position: relative;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}
.card img {
    width: 100%;
    border-radius: 8px;
}

.rank {
    position: absolute;
    bottom: -15px;
    left: -10px;
    font-size: 80px;
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 10px black;
}

/* Responsive Sliders */
@media (max-width: 768px) {
    .card {
        flex: 0 0 60%;
        margin-top: 8px;
    }

    .trending{
        padding-left: 5%;
    }

    .slider-container{
        width: 90%;
    }
    .hero > :nth-child(1),
    .hero > :nth-child(2) {
        font-size: 32px;
    }
}
.now {
    padding-left: var(--content-gutter);
    margin-bottom: 15px;     
    color: white;
    font-size: 18px;
}

.features {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--content-gutter) 60px var(--content-gutter);
    margin-top: 30px;
    box-sizing: border-box;
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.feature-card {
    position: relative;
    background: linear-gradient(135deg, #1E182F, #000000);
    border-radius: 20px;
    padding: 48px 36px;
    flex: 0 0 calc((100% - 90px) / 4);
    max-width: calc((100% - 90px) / 4);
    min-height: 260px;
}

.feature-text {
    max-width: 80%;
}

.feature-text h2 {
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.feature-text p {
    font-size: 15px;
    color: #cccccc;
    line-height: 24px;
}

.feature-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.feature-icon img {
    width: 55px;
}

@media (max-width: 992px) {
    .features {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    .feature-card {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 600px) {
    .feature-card {
        flex: 1 1 100%;
        max-width: 100%;
        
    }
}
/* FAQ Section */
.faq { 
    width: 100%;
    margin: 60px auto;
    padding: 0 var(--content-gutter);
    box-sizing: border-box;
    color: white;
    font-family: sans-serif;
}

.faq-title {
    padding-left:0;
    font-weight: 500;
    margin-bottom: 15px;       /* vertical gap with content */
    color: white;
}

/* FAQ Row */
.faq-item {
    background-color: #2d2d2d;
    padding: 20px 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: white;
}

.faq-item span:first-child {
    font-size: 22px;
    text-align: left;
    flex: 1;
}

.faq-icon {
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    margin-left: 20px;
    color: white; /* Ensure plus is white */
}

.faq-item:hover {
    background-color: #414141;
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 26px;
    }

    .faq-item span:first-child {
        font-size: 18px;
    }

    .faq-icon {
        font-size: 28px;
    }
}

/* Footer */
footer {
    color: white;
    max-width: 80vw;
    margin: auto;
    padding-bottom: 30px;
}

footer .questions {
    padding: 34px 0;
}

.footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-item a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-item a:hover {
    color: red;
}
