/**
 * Software Service Card Sections Pattern Styles
 * 
 * Styles for the three-column software service cards layout
 */

/* Main background container */
.software-services-main-bg {
    position: relative;
}

/* Cards row - 3 cards in a row */
.software-service-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--large, 2rem);
}

.software-service-cards-row > .wp-block-column {
    flex: 1 1 calc(33.333% - var(--wp--preset--spacing--large, 2rem));
    min-width: 300px;
}

/* Individual service card wrapper */
.software-service-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    height: 100%;
}

.software-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Card header - cover block with background image */
.software-card-header.wp-block-cover {
    min-height: 290px !important;
    width: 100% !important;
    overflow: hidden;
}

/* Ensure image covers full area as background */
.software-card-header .wp-block-cover__image-background {
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* Card content section */
.software-card-content {
    background-color: #ffffff;
    flex-grow: 1;
}

/* Icon box styling - main card icons */
.software-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.software-icon-box .wp-block-image {
    margin: 0;
}

.software-icon-box .wp-block-image img {
    display: block;
}

.software-icon-box figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Feature icon circles - smaller feature icons */
.feature-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    flex-shrink: 0;
}

.feature-icon-circle .wp-block-image {
    margin: 0;
    width: 36px !important;
    height: 36px !important;
}

.feature-icon-circle .wp-block-image img {
    display: block;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
}

.feature-icon-circle figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
}

/* Learn more button */
.software-learn-more-btn .wp-block-button__link {
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.software-learn-more-btn .wp-block-button__link:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .software-service-cards-row > .wp-block-column {
        flex: 1 1 calc(50% - var(--wp--preset--spacing--large, 2rem));
    }
}

@media (max-width: 768px) {
    .software-service-cards-row {
        flex-direction: column;
    }
    
    .software-service-cards-row > .wp-block-column {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .software-card-header.wp-block-cover {
        min-height: 200px !important;
    }
}

/* Ensure equal height cards */
.software-service-cards-row .wp-block-column {
    display: flex;
}

.software-service-cards-row .wp-block-column > .wp-block-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Fix image block placeholder in editor */
.software-icon-box .components-placeholder,
.feature-icon-circle .components-placeholder {
    min-height: auto !important;
    padding: 0 !important;
}

.software-icon-box .block-editor-media-placeholder,
.feature-icon-circle .block-editor-media-placeholder {
    min-height: auto !important;
}
