/***====================================================================
    Industries Section Five
====================================================================***/

.industries-section-five {
    position: relative;
    padding: 105px 0 10px;
    display: block;
    z-index: 2;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.industry-block-five {
    margin-bottom: 80px;
    display: flex;
    flex: 0 0 calc(33.333% - 20px); /* Consistent width for all blocks */
    max-width: none;
}

.industry-block-five .title {
    color: var(--sureways-black);
    font-family: var(--sureways-font-two);
    font-weight: 600;
}

.industry-block-five .inner-box {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--sureways-white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border: 1px solid rgba(255, 171, 80, 0.1);
}

.industry-block-five .inner-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 171, 80, 0.2);
    border-color: rgba(255, 171, 80, 0.3);
}

@media (max-width: 991.98px) {
    .industry-block-five .inner-box {
        text-align: center;
    }
}

.industry-block-five .inner-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--sureways-base) 0%, #ff8c42 100%);
    transition: all 0.4s ease;
    transform: scaleY(0);
    transform-origin: bottom;
    z-index: -1;
    opacity: 0.95;
}

.industry-block-five .inner-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--sureways-base), #ff8c42) border-box;
    border-radius: 20px;
    transition: all 0.4s ease;
    z-index: -1;
    opacity: 0;
}

.industry-block-five .inner-box:hover::before {
    transform: scaleY(1);
}

.industry-block-five .inner-box:hover::after {
    opacity: 1;
}

/* Read-more elements removed */

.industry-block-five .inner-box:hover .content-box .text {
    color: rgba(255, 255, 255, 0.9);
}

.industry-block-five .inner-box:hover .content-box .title {
    color: var(--sureways-white);
}

.industry-block-five .inner-box:hover .image-box .icon {
    background: var(--sureways-white);
    color: var(--sureways-base);
    box-shadow: 0 8px 25px rgba(255, 171, 80, 0.4);
    transform: scale(1.1);
}

.industry-block-five .inner-box:hover .image-box .image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.industry-block-five .inner-box .image-box {
    position: relative;
    padding: 30px 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 767.98px) {
    .industry-block-five .inner-box .image-box {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.industry-block-five .inner-box .image-box .image {
    max-width: 250px;
    max-height: 250px;
    width: 100%;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.industry-block-five .inner-box .image-box .image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 171, 80, 0.1), rgba(255, 140, 66, 0.1));
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.industry-block-five .inner-box:hover .image-box .image::before {
    opacity: 1;
}

.industry-block-five .inner-box .image-box .image img {
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.industry-block-five .inner-box .image-box .icon {
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    font-size: 35px;
    display: inline-block;
    border-radius: 50%;
    text-align: center;
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: linear-gradient(135deg, var(--sureways-base), #ff8c42);
    color: var(--sureways-white);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(255, 171, 80, 0.3);
    border: 3px solid var(--sureways-white);
}

@media (max-width: 767.98px) {
    .industry-block-five .inner-box .image-box .icon {
        left: 50%;
        transform: translateX(-50%);
    }
}

.industry-block-five .inner-box .content-box {
    padding: 30px 25px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    justify-content: center;
}

@media (max-width: 1399.98px) {
    .industry-block-five .inner-box .content-box {
        padding: 25px 20px 25px;
    }
}

/* Read-more styling removed */

.industry-block-five .inner-box .content-box .text {
    margin-bottom: 20px;
    color: #666666;
    transition: all 0.4s ease;
    font-size: 14px;
    line-height: 1.6;
}

.industry-block-five .inner-box .content-box .subheading {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.4s ease;
}

@media (max-width: 1199.98px) {
    .industry-block-five .inner-box .content-box .subheading {
        font-size: 17px;
    }
}

@media (max-width: 991.98px) {
    .industry-block-five .inner-box .content-box .subheading {
        font-size: 18px;
    }
}

/* Additional hover effects for better visual feedback */
.industry-block-five .inner-box:hover .image-box .image {
    box-shadow: 0 25px 50px rgba(255, 171, 80, 0.25), 0 10px 25px rgba(0, 0, 0, 0.15);
}

.industry-block-five .inner-box:hover .content-box .subheading {
    transform: translateY(-2px);
}

/* Animation keyframes for smooth transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.industry-block-five {
    animation: fadeInUp 0.6s ease-out;
}

.industries-section-five .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Specific styling for the second row with 2 items */
.industries-section-five .row:nth-child(2) {
    margin-top: 30px;
}

.industries-section-five .row:nth-child(2) .industry-block-five {
    flex: 0 0 calc(33.333% - 20px); /* Same width as first row blocks */
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced responsive design */
@media (max-width: 1200px) {
    .industry-block-five {
        flex: 0 0 calc(50% - 15px); /* 2 blocks per row on medium screens */
    }
    
    .industry-block-five .inner-box .image-box .image {
        max-width: 180px;
        max-height: 180px;
    }
    
    .industry-block-five .inner-box .image-box .icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 30px;
    }
    
    .industries-section-five .row:nth-child(2) .industry-block-five {
        flex: 0 0 calc(50% - 15px); /* Same as first row on medium screens */
    }
}

@media (max-width: 768px) {
    .industry-block-five {
        margin-bottom: 40px;
        flex: 0 0 calc(100% - 10px); /* 1 block per row on mobile */
    }
    
    .industry-block-five .inner-box .image-box .image {
        max-width: 150px;
        max-height: 150px;
    }
    
    .industry-block-five .inner-box .image-box .icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 25px;
    }
    
    .industry-block-five .inner-box .content-box {
        padding: 20px 15px 20px;
    }
    
    .industries-section-five .row:nth-child(2) .industry-block-five {
        flex: 0 0 calc(100% - 10px); /* Same as first row on mobile */
    }
    
    .industries-section-five .row {
        gap: 20px;
    }
}

/* Additional styling improvements */
.industries-section-five .section-title__title {
    font-family: var(--sureways-font-two);
    font-weight: 700;
    margin-bottom: 20px;
}

.industries-section-five .section-title__tagline {
    font-family: var(--sureways-font);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Smooth transitions for all interactive elements */
.industry-block-five .inner-box * {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.industry-block-five .inner-box:focus-within {
    outline: 2px solid var(--sureways-base);
    outline-offset: 2px;
}

.industry-block-five .inner-box .content-box .title:focus {
    outline: none;
    color: var(--sureways-base);
}

/* Loading state animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.industry-block-five .inner-box.loading {
    animation: pulse 2s infinite;
}

/* Print styles */
@media print {
    .industry-block-five .inner-box {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .industry-block-five .inner-box:hover {
        transform: none;
    }
}
