/* Regions Page Styling */
.regions-page {
    background-color: #f8f9fa;
}

/* General Styles */
body {
    background-color: #f8f9fa;
}

/* Introduction Card */
.intro-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.intro-card .card-body {
    padding: 3rem;
}

.section-title {
    font-size: 3rem;
    color: #d9534f;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.section-text {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Interactive Card */
.interactive-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.card-title {
    font-family: 'Playfair Display', serif;
    color: #d9534f;
    font-size: 2rem;
}

/* Form Select Styling */
.form-select-lg {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-select-lg:focus {
    border-color: #d9534f;
    box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
}

/* Products Container */
.products-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem 0;
}

.product-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.product-item:hover {
    background-color: #f8f9fa;
}

.product-item:last-child {
    border-bottom: none;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #fff;
    color: #d9534f;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #d9534f;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #d9534f;
    color: white;
}

/* Custom Scrollbar */
.products-container::-webkit-scrollbar {
    width: 8px;
}

.products-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.products-container::-webkit-scrollbar-thumb {
    background: #d9534f;
    border-radius: 4px;
}

.products-container::-webkit-scrollbar-thumb:hover {
    background: #c9302c;
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }

    .card-title {
        font-size: 1.75rem;
    }

    .intro-card .card-body {
        padding: 2rem;
    }

    .products-container {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .intro-card .card-body {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-text {
        font-size: 1.1rem;
    }

    .interactive-card .card-body {
        padding: 1rem;
    }

    .col-lg-4, .col-lg-8 {
        width: 100%;
    }

    .products-container {
        max-height: 400px;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-section {
        height: 40vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1.2rem;
    }
}

/* Regions Page-Specific Styles */

/* Limit the height of the products list and make it scrollable */
.products-list-container {
    flex: 2;
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 250px); /* Adjust for header and margins */
    overflow-y: auto; /* Enable vertical scrolling */
}

/* Sticky footer for the regions page */
footer {
    background-color: #d9534f;
    color: white;
    padding: 1rem;
    text-align: center;
    position: relative;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body occupies the full viewport height */
}

main {
    flex: 1; /* Push the footer to the bottom when content is short */
}

/* Optional: Add a scrollbar style for the products list */
.products-list-container::-webkit-scrollbar {
    width: 10px;
}

.products-list-container::-webkit-scrollbar-thumb {
    background-color: #d9534f;
    border-radius: 5px;
}
