/**
 * Services Grid Widget Stylesheet
 * @package Impact_Custom_Widget
 */

.icw-services-container {
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.icw-services-header {
    text-align: center;
    margin-bottom: 45px;
}

.icw-services-header .icw-services-title {
    margin: 0 0 12px 0;
    font-family: inherit;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    color: #1D3B6C;
}

.icw-services-header .icw-services-subtitle {
    margin: 0;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: #556987;
}

/* Grid Layout */
.icw-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    box-sizing: border-box;
}

/* Card Container */
.icw-service-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px 24px 28px 24px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.04), 0px 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icw-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.08);
}

/* Image & Badge Overlay */
.icw-service-image-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
}

.icw-service-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.icw-service-card:hover .icw-service-image-wrap img {
    transform: scale(1.04);
}

.icw-service-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.icw-service-badge i,
.icw-service-badge svg {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #2A85C8;
    fill: #2A85C8;
}

/* Body Content */
.icw-service-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.icw-service-item-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1D3B6C;
    line-height: 1.3;
}

.icw-service-desc {
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.55;
    color: #556987;
}

/* Features List */
.icw-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icw-feature-item {
    position: relative;
    padding-left: 24px;
    font-size: 13px;
    line-height: 1.4;
    color: #475467;
    font-weight: 500;
}

.icw-feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #2A85C8;
    box-sizing: border-box;
}

.icw-feature-item::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    width: 4px;
    height: 7px;
    border: solid #2A85C8;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    box-sizing: border-box;
}

/* Button */
.icw-service-btn-wrap {
    margin-top: auto;
}

.icw-service-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 6px;
    background-color: #FFFFFF;
    border: 1px solid #D0D5DD;
    border-radius: 30px;
    text-decoration: none;
    color: #1D3B6C;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
}

.icw-btn-arrow-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #2A85C8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.icw-btn-arrow-box svg,
.icw-btn-arrow-box i {
    color: #FFFFFF;
    fill: #FFFFFF;
    width: 14px;
    height: 14px;
}

.icw-service-btn:hover {
    border-color: #2A85C8;
    color: #2A85C8;
}

.icw-service-btn:hover .icw-btn-arrow-box {
    background-color: #1D3B6C;
    transform: translateX(2px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .icw-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .icw-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .icw-services-header .icw-services-title {
        font-size: 28px;
    }
}
