html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.industries-section {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.industries-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.industry-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px; /* Ensure cards don't shrink too much */
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.industry-card img {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
    opacity: 0.8;
}

.industry-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.industry-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.industry-card a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00cc99;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.industry-card a:hover {
    background-color: #00a67d;
}

/* Responsive Adjustments for the Card (can be simplified for carousel) */
@media (max-width: 768px) {
    .industry-card {
        text-align: center; /* Center content in carousel on smaller screens */
    }
}



.carousel-container {
    position: relative;
    overflow: hidden; /* Hide overflowing cards */
}

.industries-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth scrolling */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-button:hover {
    opacity: 1;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Responsive Carousel Adjustments */
@media (max-width: 768px) {
    .carousel-button {
        font-size: 1.2rem;
        padding: 8px 12px;
    }
}