/* Websites We Build Custom Widget Styling */

.wwb-section-wrapper {
    box-sizing: border-box;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: inherit;
}

.wwb-header-title {
    margin: 0 0 15px 0;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.wwb-header-subtitle {
    margin: 0 auto 50px auto;
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    max-width: 650px;
}

.wwb-grid {
    display: grid;
    gap: 24px;
    justify-content: center;
}

/* Responsive grid layout - 3 up, 2 down centered */
@media (min-width: 1025px) {
    .wwb-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .wwb-grid .wwb-card:nth-child(1),
    .wwb-grid .wwb-card:nth-child(2),
    .wwb-grid .wwb-card:nth-child(3) {
        grid-column: span 2;
    }
    .wwb-grid .wwb-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
    .wwb-grid .wwb-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .wwb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .wwb-grid {
        grid-template-columns: 1fr;
    }
}

.wwb-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
    height: 100%;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    will-change: transform, box-shadow, background-color;
}

/* Icon layout */
.wwb-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: #eff6ff;
    border-radius: 50%;
    color: #3b82f6;
    margin-bottom: 24px;
    box-sizing: border-box;
    border: 1px solid transparent;
}

.wwb-icon-box i {
    font-size: 24px;
}

.wwb-icon-box svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.30s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wwb-icon-box i {
    transition: transform 0.30s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Card typography */
.wwb-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.wwb-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
    flex-grow: 1;
}

/* Smooth layout and viewport anim defaults */
.wwb-card-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.wwb-card-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
