.industry-grid-section {
    padding: 100px 0;
    background-color: #f2f4f7;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-left: 50px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 24px;
    color: #01355D;
    margin-bottom: 0;
    font-weight: 400;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.industry-item-link {
    text-decoration: none;
    display: block;
}

.industry-item {
    position: relative;
    height: 300px;
    /* Adjusted height */
    /* background-color: #01355D; */
    background-color: var(--primary-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 30px;
}

.industry-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.industry-item:hover .industry-bg-image {
    opacity: 1;
    transform: scale(1.05);
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--primary-color) 100%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.industry-item:hover .industry-overlay {
    opacity: 1;
}

.industry-content-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
}

.industry-icon-box i {
    font-size: 60px;
}

.industry-admin-icon {
    max-width: 80px;
    height: auto;
    filter: brightness(0) invert(1) opacity(0.8);
    /* Make it look like a branded icon if it's a monochrome logo, or just keep it clean */
    transition: all 0.4s ease;
}

.industry-item:hover .industry-admin-icon {
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
}

.industry-icon-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: #fff;
    /* Brand icon */
    transition: all 0.4s ease;
    width: 100%;
    text-align: center;
}

.industry-item:hover .industry-icon-box {
    opacity: 0;
    transform: translate(-50%, -70%);
}

.industry-title-box {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: calc(100% - 30px);
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

.industry-accent-line {
    width: 4px;
    height: 30px;
    background-color: var(--primary-color);
    margin-right: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.industry-item:hover .industry-accent-line {
    opacity: 1;
}

.industry-title {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    transition: all 0.4s ease;
}

.industry-item:hover .industry-title {
    transform: translateX(0);
}

@media (max-width: 1200px) {
    .industry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .industry-grid-section {
        padding: 60px 0;
    }

    .section-subtitle {
        font-size: 20px;
    }

    .industry-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .industry-item {
        height: 280px;
        padding: 20px;
    }

    .industry-title {
        font-size: 18px;
    }
}