/* Slider Section Styling */
.practice-areas-slider-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.practice-areas-slider-section .section-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

/* Slider Container */
.slider {
    position: relative;
    overflow: hidden; /* Hide overflowing slides */
    width: 100%;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth sliding */
    width: 100%; /* Ensure full width for slides */
}

.card {
    flex: 0 0 100%; /* Default: One card per slide */
    text-align: center;
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 20px;
    height: 300px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background-color 0.3s ease, transform 0.3s ease;
}



.card img {
    max-width: 60px;
    margin-bottom: 15px;
    transition: transform 0.5s ease;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    transition: color 0.3s ease;
}

.card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.card .arrow-link {
    font-size: 18px;
    color: #ffcc00; /* Golden color for arrow */
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.card:hover {
    background-color: #1A567C; /* Golden background on hover */
    transform: scale(1.05); /* Slight scale effect on hover */
}

.card:hover h3, 
.card:hover p {
    color: #fff; /* White text on hover */
}

.card:hover img {
    transform: scaleX(-1); /* Flip the image horizontally */
    -webkit-filter: invert(100%);
}

/* Responsive Design */
@media screen and (min-width: 768px) {
    .card {
        flex: 0 0 50%; /* Two boxes per slide on tablets */
    }
}

@media screen and (min-width: 1200px) {
    .card {
        flex: 0 0 25%; /* Four boxes per slide on desktop */
    }
}
