.services-carousel {
max-width: 1200px;
margin: auto;
font-family: sans-serif;
position: relative;
padding: 40px 10px;
}
.carousel-wrapper {
overflow: visible;
position: relative;
width: 100%;
display: flex;
align-items: stretch;
}
.carousel-track {
display: flex;
transition: transform 0.5s ease;
width: max-content;
align-items: stretch;
}
.carousel-slide {
flex: 0 0 35%;
max-width: 35%;
margin: 30px 15px;
padding: 40px 30px;
background: #fff;
border-radius: 20px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
transition: transform 0.3s ease, box-shadow 0.3s ease;
box-sizing: border-box;
display: flex;
flex-direction: column;
position: relative;
min-height: 100px; /* Avoid collapsing before JS applies height */
}
.carousel-slide:hover {
transform: translateY(-6px);
box-shadow: 0 0 32px rgba(0, 0, 0, 0.18);
}
/* Category tag */
.category-label {
position: absolute;
top: 20px;
left: 20px;
background: #6a0dad;
color: #fff;
padding: 6px 12px;
border-radius: 8px;
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Slide top content block */
.slide-top {
flex: 0 0 auto;
display: block;
}
.slide-top h4 {
margin: 0 0 8px 0;
font-size: 1.1rem;
color: #333;
}
.slide-top p,
.slide-top ul {
font-size: 0.95rem;
color: #555;
}
.slide-top ul {
padding-left: 20px;
margin-top: 8px;
}
/* Slide footer */
.slide-footer {
margin-top: auto;
display: flex;
flex-direction: column;
gap: 8px;
}
.slide-footer .result {
font-weight: bold;
font-size: 1.1rem;
color: #6a0dad;
}
/* Navigation arrows */
.carousel-buttons {
position: absolute;
top: 50%;
left: -30px;
right: -30px;
display: flex;
justify-content: space-between;
transform: translateY(-50%);
pointer-events: none;
}
.carousel-buttons .arrow {
background: none;
border: none;
font-size: 2.5rem;
color: #444;
cursor: pointer;
pointer-events: auto;
transition: transform 0.2s ease;
}
.carousel-buttons .arrow:hover {
transform: scale(1.2);
color: #000;
}
/* Dots */
.carousel-dots {
text-align: center;
margin-top: 25px;
}
.carousel-dots .dot {
display: inline-block;
width: 10px;
height: 10px;
margin: 0 5px;
background-color: #ccc;
border-radius: 50%;
cursor: pointer;
transition: background 0.3s;
}
.carousel-dots .dot.active {
background-color: #6a0dad;
}
/* Responsive layout */
@media (max-width: 768px) {
.carousel-slide {
flex: 0 0 100%;
max-width: 100%;
margin: 20px 0;
height: auto !important; /* Allow stacking without enforced height */
}
}