/* ===================================
   MODERN INDUSTRIES SECTION (S2)
   =================================== */

.modern-industries-section {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 80px 0 !important;
    position: relative;
}

.modern-industries-section .common-heading {
    margin-bottom: 0;
}

/* Industry Slider Container */
.industry-slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.industry-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding: 20px 0;
}

.industry-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Industry Card */
.industry-card {
    flex: 0 0 350px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 128, 96, 0.15);
    border-color: #008060;
}

/* Card Image */
.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.industry-card:hover .card-overlay {
    opacity: 1;
}

/* Card Content */
.card-content {
    padding: 25px;
    text-align: center;
}

.card-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
    transition: color 0.3s ease-in-out;
}

.industry-card:hover .card-content h4 {
    color: #008060;
}

.card-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
    background: linear-gradient(135deg, #008060 0%, #00a078 100%);
    border-color: #008060;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 128, 96, 0.3);
}

.slider-nav svg {
    width: 24px;
    height: 24px;
    color: #374151;
    transition: color 0.3s ease-in-out;
}

.slider-nav:hover svg {
    color: #ffffff;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.dot.active {
    background: #008060;
    width: 40px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .modern-industries-section {
        padding: 60px 0 !important;
    }

    .industry-slider-container {
        padding: 0 60px;
    }

    .industry-card {
        flex: 0 0 300px;
    }

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 20px;
    }

    .card-content h4 {
        font-size: 18px;
    }

    .card-content p {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .modern-industries-section {
        padding: 50px 0 !important;
    }

    .industry-slider-container {
        padding: 0 50px;
    }

    .industry-slider {
        gap: 20px;
    }

    .industry-card {
        flex: 0 0 280px;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        padding: 18px;
    }

    .card-content h4 {
        font-size: 17px;
    }

    .card-content p {
        font-size: 12px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .slider-nav svg {
        width: 20px;
        height: 20px;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 30px;
    }
}