/* Add smooth transitions for theme switching */
html, body, .navbar, .footer, .btn, .dropdown-content, .container, h1, p {
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

/* Make SVG icons larger */
.theme-icon {
    width: 24px; /* Adjust size as needed */
    height: 24px; /* Adjust size as needed */
}

/* Custom carousel height */
#carouselExampleIndicators {
    height: 225px; /* Adjust height as needed */
    overflow: hidden;
    position: relative;
}

/* Ensure images fit the carousel height */
#carouselExampleIndicators img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Carousel controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

/* Carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 1);
}

/* Scrollable horizontal card list */
.scrollable-card-list {
    display: flex;
    overflow-x: auto;
    gap: 16px; /* Space between cards */
    padding: 16px; /* Padding for the container */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #888 transparent; /* For Firefox */
    position: relative;
}

.scrollable-card-list::-webkit-scrollbar {
    height: 8px; /* For Chrome, Safari, and Edge */
}

.scrollable-card-list::-webkit-scrollbar-thumb {
    background-color: #888; /* Scrollbar thumb color */
    border-radius: 4px; /* Rounded corners */
}

.scrollable-card-list::-webkit-scrollbar-track {
    background-color: transparent; /* Scrollbar track color */
}

/* Line separator for scrollable menu */
.scrollable-card-list::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1); /* Light line separator */
}

/* Smaller card styling */
.small-card {
    width: 123px; /* Adjust width as needed */
    height: 100px; /* Adjust height as needed */
    border: 1px solid #e5e7eb; /* Border color */
    border-radius: 12px; /* Rounded corners */
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow */
    flex-shrink: 0; /* Prevent cards from shrinking */
    background-color: var(--tw-bg-opacity); /* Use theme-aware background */
    cursor: pointer; /* Add pointer cursor */
}

.small-card.selected {
    border: 2px solid #c7ab6b; /* Highlight selected card */
}

.small-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-card-content {
    padding: 12px;
    text-align: center;
}

.small-card-content label {
    display: block;
    font-size: 14px; /* Adjust font size */
    font-weight: 600; /* Bold text */
    color: var(--tw-text-opacity); /* Use theme-aware text color */
}

.small-card-content .subtext {
    font-size: 12px; /* Smaller subtext */
    color: var(--tw-text-opacity); /* Use theme-aware text color */
}

/* Main card styling */
.main-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 1rem;
    padding: 2rem;
    width: 100%; /* Full width of the grid cell */
    height: 10rem; /* Fixed height for all cards */
    margin: 0 auto; /* Center the cards */
    background-color: #fff; /* Ensure background color is consistent */
}

.main-card img.main-card-image {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover; /* Ensure the image covers the card */
    z-index: -1;
}

.main-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
    z-index: -1;
}

.main-card-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 100%; /* Ensure content doesn't overflow */
    overflow: hidden; /* Hide overflow */
}

.main-card h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin: 0; /* Remove default margin */
}

.main-card .description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0; /* Remove default margin */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit text to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflow */
}

#back-to-main-btn {
    background-color: #c7ab6b !important;
    color: white !important;
    border: none !important;
}