/* Section Styling */
.industries-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
}

.section-description {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Grid Layout */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Industry Card Styling */
.industry-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.industry-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.industry-card:hover img {
    transform: scale(1.05);
}

/* Overlay Styling - Always Visible */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    opacity: 1; /* Always visible */
    height: 40%;
    flex-direction: column;
    justify-content: center;
    transition: background 0.3s ease-in-out;
}

.overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.overlay p {
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Services Card Styling */
.service-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom:20px;
}

.service-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

/* Overlay Styling - Always Visible */
.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    opacity: 1; /* Always visible */
    height: 33%;
    flex-direction: column;
    justify-content: center;
    transition: background 0.3s ease-in-out;
}

.service-overlay h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
        line-height: 20px;
}

.service-overlay p {
    margin-top: 5px;
    font-size: 0.85rem;
    line-height:18px;
    margin-bottom:20px!important;
}

@media (max-width: 1200px) {
    .service-overlay h3 {
        font-size: 1rem; /* Reduce slightly */
    }


@media (max-width: 992px) {
    .service-overlay h3 {
        font-size: 0.9rem; /* Reduce further for tablets */
    }

    .service-overlay p {
        font-size: 0.75rem;
        line-height: 15px;
    }
    
    .service-overlay p {
        font-size: 0.8rem;
        line-height: 16px; /* Adjust for better readability */
    }
    .button-container {
    margin-bottom: 20px;
}
}
.service-card img {
    height: 400px;
}
}

@media (max-width: 768px) {
    .service-overlay h3 {
        font-size: 1.1rem; /* Smallest for extra small screens */
    }

    .service-overlay p {
        font-size: 0.85rem;
        line-height: 14px;
        margin-bottom: 15px !important;
    }
    .service-overlay {
    height: 30%;
}
}

@media (max-width: 576px) {
    .service-overlay h3 {
        font-size: 1.1rem; /* Smallest for extra small screens */
    }

    .service-overlay p {
        font-size: 0.85rem;
        line-height: 13px;
        margin-bottom: 10px !important;
    }
}


/* View More Button */
.button-container {
    margin-top: 10px;
}

.view-more-btn {
    display: inline-block;
    padding: 8px 24px;
    background-color: #0F2D50 !important;
    color: white !important;
    font-size: 0.85rem;
    text-decoration: none !important;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border 0.3s ease-in-out;
    line-height:18px;
}

.view-more-btn:hover {
    background-color: #ffffff !important; /* Fades the background to white */
    color: #0F2D50 !important; /* Changes text color to dark blue */
}