/* Industry Blocks Widget Styles */

.ibw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 320px));
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.ibw-block {
    background: #ffffff;
    border-radius: 30px !important;
    box-shadow: 0px 0px 20px #999999 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
}

.ibw-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.ibw-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ibw-image-wrapper a {
    display: block;
}

.ibw-content {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #ffffff;
}

.ibw-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    flex: 1;
    line-height: 1.4;
}

.ibw-title:hover {
    color: #00ff9d;
}

a.ibw-title {
    cursor: pointer;
}

span.ibw-title {
    cursor: default;
}

.ibw-button {
    background: #00ff9d !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    padding: 0 !important;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ibw-button:hover {
    transform: scale(1.1);
    background: #00e68c !important;
}

.ibw-button span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.ibw-button .sow-icon-fontawesome {
    font-size: 20px !important;
    line-height: 1 !important;
}

/* Mobile Responsive - 1 column on small screens */
@media (max-width: 768px) {
    .ibw-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ibw-block {
        max-width: 100%;
    }
}

/* Tablet - 2 columns on medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .ibw-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop - 3 columns */
@media (min-width: 1025px) {
    .ibw-grid {
        grid-template-columns: repeat(3, minmax(300px, 320px));
    }
}
