/* GLOBAL */
body {
    margin: 0;
    font-family: Arial;
    background: #0f172a;
    color: #fff;
}

/* NAVBAR */
.navbar {
    background: #1e2a47;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand { font-size: 48px; font-weight: bold; }

.nav-links a {
    color: #ddd;
    margin-left: 25px;
    text-decoration: none;
    font-size: 22px;
}

/* HERO */
.hero { text-align: center; padding: 40px; }
.hero h1 { font-size: 36px; }
.hero p { opacity: 0.85; }

/* SEARCH WRAPPER */
.search-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    position: relative;
}

.search-wrapper input {
    width: 380px;
    padding: 12px;
    border-radius: 8px 0 0 8px;
    border: none;
    outline: none;
    font-size: 18px;
}

.search-wrapper button {
    padding: 12px 20px;
    background: #10b981;
    border: none;
    color: white;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

/* DROPDOWN SEARCH RESULTS */
.search-results {
    position: absolute;
    top: 55px;
    background: white;
    color: black;
    width: 600px;
    padding: 20px;
    display: flex;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.3);
    z-index: 100;
}
.hidden { display: none; }

.col { width: 50%; }

.col h3 {
    font-size: 18px;
    color: #10b981;
    margin-bottom: 10px;
}

.divider {
    width: 1px;
    background: #ccc;
    margin: 0 20px;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}
.sub { color: #555; font-size: 14px; }
.share { color: #10b981; font-size: 14px; }

/* SPACING */
.slider-gap { height: 40px; }

/* AUTO SLIDER */
.auto-slider {
    padding: 20px 0;
    overflow: hidden;
}

.slide-track {
    display: flex;
    gap: 25px;
    animation: scrollLeft 27s linear infinite; /* faster */
}

@keyframes scrollLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* CARD */
.scroll-card {
    width: 250px;
    height: 200px;
    padding: 20px;
    border-radius: 15px;
    color: white;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.icon { font-size: 40px; }
.price { margin: 10px 0; }
.join-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
}
/* ===================== PROPER MOBILE OPTIMIZATION ===================== */
@media (max-width: 768px) {

    /* ===== NAVBAR ===== */
    .navbar {
        padding: 14px 18px;
        flex-direction: column;
        align-items: center;
    }

    .brand {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 16px;
        margin-left: 0;
    }

    /* ===== HERO ===== */
    .hero {
        padding: 30px 20px;
    }

    .hero h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 14px;
        padding: 0 10px;
    }

    /* ===== SEARCH ===== */
    .search-wrapper {
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
    }

    .search-wrapper input {
        width: 90%;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .search-wrapper button {
        width: 90%;
        border-radius: 8px;
    }

    /* Dropdown */
    .search-results {
        width: 95%;
        left: 2.5%;
        flex-direction: column;
        gap: 20px;
    }

    .col {
        width: 100%;
    }

    .divider {
        display: none;
    }

    .slide-track {
        gap: 15px;
        animation: scrollLeft 5s linear infinite;
    }
    @keyframes scrollLeft {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }
    

    .scroll-card {
        width: 200px;
        padding: 15px;
    }

    .icon {
        font-size: 32px;
    }

}

