
.carousel-container {
    position: relative;
    width: 100%;
    /*padding: 0 20px;*/
}

.product-grid {
    display: flex; /* Changed from grid to flex for carousel */
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE */
}

.product-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.product-tile {
    flex: 0 0 calc(33.333% - 7px); /* Shows exactly 3 items */
    min-width: 300px; /* Fallback for small screens */
    height: 80vh;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
    border-radius: 4px; /* Subtle Tesla rounding */
}


.nav-btn {
    background: none;
    border: none;
    font-size: 40px;
    color: black;
    cursor: pointer;
    line-height: 35px;
    transition: opacity 0.3s;
    background-color: hsla(0, 0%, 100%, .7490196078431373);
    box-shadow: 0 4px 4px rgba(0, 0, 0, .25098039215686274);
    z-index: 2;
    height: 40px;
    width: 40px;
    border-radius: 4px;
}

.carousel-container .next{
    position: absolute;
    top: calc(50% - 15px);
    right: 25px;
    color: black;
}

.carousel-container .prev{
    position: absolute;
    top: calc(50% - 15px);
    left: 25px;
    color: black;
}

.nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.product-tile {
    /*height: 85vh;*/
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 60px;
    color: white;
}
.tile-content h2 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 8px;
}
.tile-content p {
    color: #e2e3e3;
    margin-bottom: 30px;
    font-size: 14px;
}
.btn-container {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    padding: 10px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s ease;
}
.btn-white {
    background: white;
    color: black;
}
.btn-blur {
    background: rgba(0,0,0,0.2);
    color: white;
    backdrop-filter: blur(15px);
}
.btn-border {
    display: inline-block;
    border: 3px solid black;
    padding: 8px 60px;
    text-decoration: none;
    color: black;
    font-weight: 600;
    margin-top: 20px;
}
.btn-dark {
    display: inline-block;
    background: black;
    color: white;
    padding: 12px 80px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
}

/* Gallery Styles */
.department .images-gallery {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust based on your image aspect ratio */
    overflow: hidden;
    margin-bottom: 30px;
}

.department .images-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
    border-radius: 4px;
}

/* Show the image when it has the .active class */
.department .images-gallery img.active {
    opacity: 1;
    z-index: 1;
}

/* Track/Carousel Styles */
.department .dept-list {
    display: flex;
    gap: 30px;
    overflow-x: auto; /* Changed to auto to allow scrolling */
    scroll-behavior: smooth;
    padding-bottom: 20px;
    /* Hide scrollbar for a cleaner look */
    scrollbar-width: none;
}

.department .dept-list::-webkit-scrollbar {
    display: none;
}

.department .dept-list .dept-item {
    border-top: 3px solid #ccc; /* Default border */
    opacity: 0.4;
    cursor: pointer;
    min-width: 400px; /* Adjusted for better visibility in track */
    transition: all 0.3s ease;
    padding-top: 15px;
}

.department .dept-list .dept-item a{
    text-decoration: underline;
    color: #ef9a3e;
}

.department .dept-list .selected {
    border-top: 3px solid #ef9a3e;
    opacity: 1;
}


/* Section 5: Join Us (Light Background) */
.join-us-section {
    position: relative;
    width: 100%;
}

.join-us-section img {
    width: 100%;
    object-fit: cover;
    /* 1.0 is normal, 0.4 makes it 60% darker */
    filter: brightness(0.4);
}
.join-us-section .join-us-content{
    position: absolute;
    top: 30%;
    width: 400px;
    left: calc(50% - 200px);
    color: white;
}
