/* Mobile-first base styles */
body {
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Header */
#header {
    margin-bottom: 80px;
}

/* Home Section */
.home {
    position: relative;
    width: 100%;
    height: 75vh; /* Fixed height as requested */
    overflow: hidden;
    background-size: cover;
}

.main_home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 60px;
    z-index: 1;
    text-align: center;
}

.home_text h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 2.5rem;
    color: #fff;
}

/* Carousel */
.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75vh; /* Match .home */
}

.carousel-item {
    height: 75vh; /* Match .home */
}

.carousel-background {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-background img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill container, may crop to avoid letterboxing */
}

/* Overlay for each slide */
/* Carousel content (text/buttons) */
.carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.banner-content {
    padding: 1rem;
    max-width: 80%;
    text-align: center;
}

.banner-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.banner-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.banner-content .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

/* Carousel indicators */
.carousel-indicators {
    z-index: 2;
    margin-bottom: 1rem;
}

.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.7;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #007bff;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 2;
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Promo Section */
.promo-section {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #218abf, #236fad);
    color: #fff;
    text-align: center;
    padding: 15px;
}

.promo-content {
    max-width: 90%;
}

.promo-content h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.promo-content h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.promo-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.countdown {
    font-size: 1rem;
    margin-bottom: 25px;
}

.countdown span {
    font-weight: bold;
    color: #ffd700;
    padding: 0 4px;
}

.cta-button {
    display: inline-block;
    padding: 8px 15px;
    background: #ffd700;
    color: #212529;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: #ffea00;
    transform: scale(1.05);
}

/* Sidebar/Search Bar */
.wrapper {
    padding: 15px;
    max-width: 100%;
    margin: 0 auto;
}

.search-bar {
    margin-bottom: 15px;
}

.search-bar input {
    width: 100%;
    padding: 8px;
    font-size: 0.85rem;
    border: none;
    border-radius: 6px 6px 0 0;
    background: #d1e8ff;
    color: #212529;
}

.search-bar input::placeholder {
    color: #a3bffa;
}

.search-bar button {
    width: 100%;
    padding: 8px;
    background: #60a5fa;
    border: none;
    border-radius: 0 0 6px 6px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #93c5fd;
}

/* Back to Top Button */
#backToTopBtn {
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    padding: 0;
    position: fixed;
    bottom: 15px;
    right: 15px;
    font-size: 0.9rem;
    background: #60a5fa;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Media Queries */
@media (min-width: 768px) {
    .home,
    .carousel,
    .carousel-item {
        height: 75vh; /* Maintain fixed height */
    }

    .main_home {
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .home_text h1 {
        font-size: 2rem;
        line-height: 3rem;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }

    .banner-content p {
        font-size: 1.25rem;
    }

    .banner-content .btn {
        font-size: 1rem;
        padding: 0.5rem 1.5rem;
    }

    .carousel-control-prev i,
    .carousel-control-next i {
        font-size: 2rem;
    }

    .promo-section {
        min-height: 60vh;
        padding: 20px;
    }

    .promo-content h1 {
        font-size: 2rem;
    }

    .promo-content h2 {
        font-size: 1.5rem;
    }

    .promo-content p {
        font-size: 1rem;
    }

    .countdown {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .wrapper {
        padding: 20px;
        max-width: 1200px;
    }

    .search-bar input {
        padding: 10px;
        font-size: 0.9rem;
    }

    .search-bar button {
        padding: 10px;
        font-size: 1rem;
    }

    .search-bar input::placeholder {
        color: #a3bffa;
    }

    #backToTopBtn {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .promo-content h1 {
        font-size: 3rem;
    }

    .promo-content h2 {
        font-size: 2.5rem;
    }

    .promo-content p {
        font-size: 1.2rem;
    }

    .countdown {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .home,
    .carousel,
    .carousel-item {
        height: 50vh; /* Reduced height for smaller screens */
    }

    .home_text h1 {
        font-size: 1.8rem;
        line-height: 2.5rem;
    }

    .banner-content h1 {
        font-size: 1.75rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .banner-content .btn {
        font-size: 0.875rem;
        padding: 0.4rem 1.2rem;
    }

    .carousel-control-prev i,
    .carousel-control-next i {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .home,
    .carousel,
    .carousel-item {
        height: 40vh; /* Further reduced for very small screens */
    }

    .home_text h1 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .banner-content h1 {
        font-size: 1.5rem;
    }

    .banner-content p {
        font-size: 0.875rem;
    }

    .banner-content .btn {
        font-size: 0.875rem;
        padding: 0.4rem 1.2rem;
    }

    .promo-section {
        min-height: 40vh;
        padding: 10px;
    }

    .promo-content h1 {
        font-size: 1.5rem;
    }

    .promo-content h2 {
        font-size: 1.2rem;
    }

    .promo-content p {
        font-size: 0.85rem;
    }

    .countdown {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .main_home {
        padding-top: 60px;
        padding-bottom: 40px;
    }

    .search-bar input {
        padding: 8px;
        font-size: 0.85rem;
    }

    .search-bar button {
        padding: 8px;
        font-size: 0.9rem;
    }

    #backToTopBtn {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
}