/* General Section Styles */
.section--page {
    padding: 20px;
    font-family: Arial, sans-serif;
    text-align: left;
}

.section--page h2 {
    text-align: left;
    margin-bottom: 20px;
}

/* Horizontally scrollable container */
.scroll-container {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 20px 40px; /* Extra left/right padding to accommodate expanded tiles */
    
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none;    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Tile Styling */
.tile {
    flex: 0 0 auto;
    width: 220px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: visible; /* Allow the tile to scale on hover without being clipped */
    scroll-snap-align: center;
    scroll-snap-stop: always;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Tile image container */
.tile-img {
    width: 100%;
    background: #f4f4f4;
}

.tile-img img {
    width: 100%;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Tile text container */
.tile-text {
    padding: 15px 10px;
    text-align: center;
}

.tile-text p {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}



/* Hover effects for interactivity */
.tile:hover {
    transform: scale(1.03); /* Slight scale on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Ensure the cursor is always a pointer over the scroll-container */
.scroll-container:hover {
    cursor: pointer;
}
