/* ==========================================================================
   Widget 2: Feature / Value Cards — Scoped Styles
   Prefix: gfw-fc-
   ========================================================================== */

/* Grid Container */
.gfw-fc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

/* Card */
.gfw-fc-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-sizing: border-box;
    /* transition handled by style-effects.css via CSS variables */
}

/* Border Toggle — controlled by prefix_class */
.gfw-fc-border-yes .gfw-fc-card {
    border: 1px solid #e2e8f0;
}

/* Default hover removed — all hover effects are now controlled
   by the preset system in style-effects.css via CSS variables.
   Set a Hover Preset (Lift, Grow, Tilt, etc.) to enable effects. */

/* Icon Wrapper */
.gfw-fc-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: #0b2239;
    margin-bottom: 20px;
    --gfw-icon-scale: 1;
    transform: scale(var(--gfw-icon-scale));
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}

.gfw-fc-card:hover .gfw-fc-icon-wrap {
    --gfw-icon-scale: 1.05;
}


.gfw-fc-icon-wrap i {
    font-size: 24px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.gfw-fc-icon-wrap svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    transition: fill 0.3s ease;
}

/* Title */
.gfw-fc-title {
    margin: 0 0 12px 0;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0b2239;
    line-height: 1.3;
}

/* Description */
.gfw-fc-desc {
    margin: 0 0 16px 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #54595f;
}

/* Bullet List */
.gfw-fc-bullets {
    margin: 0;
    padding: 0 0 0 20px;
    list-style-type: square;
}

.gfw-fc-bullets li {
    font-size: 14px;
    line-height: 1.6;
    color: #54595f;
    padding-left: 4px;
}

.gfw-fc-bullets li + li {
    margin-top: 6px;
}

.gfw-fc-bullets li::marker {
    color: #0b2239;
}

/* Custom bullet icon style */
.gfw-fc-bullets--custom {
    list-style: none;
    padding-left: 0;
}

.gfw-fc-bullets--custom li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
}

.gfw-fc-bullet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.gfw-fc-bullet-icon i {
    font-size: 12px;
    color: #0b2239;
}

.gfw-fc-bullet-icon svg {
    width: 12px;
    height: 12px;
    fill: #0b2239;
}

/* ==========================================================================
   Responsive Defaults
   ========================================================================== */

@media (max-width: 1024px) {
    .gfw-fc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .gfw-fc-card {
        padding: 24px;
    }
}

/* Dividers */
.gfw-fc-divider-yes .gfw-fc-card {
    position: relative;
}

.gfw-fc-divider-yes .gfw-fc-card::after {
    content: "" !important;
    position: absolute;
    top: 50%;
    right: calc( var(--gfw-fc-gap, 24px) / -2 );
    width: 1px;
    height: var(--gfw-fc-divider-height, 60%);
    transform: translateY(-50%);
    background-color: var(--gfw-fc-divider-color, rgba(255, 255, 255, 0.1));
    z-index: 10;
    pointer-events: none;
    display: block;
}

/* Hide on last column - Desktop */
.gfw-fc-divider-yes .gfw-fc-card:nth-child(3n)::after,
.gfw-fc-divider-yes .gfw-fc-card:last-child::after {
    display: none !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .gfw-fc-divider-yes .gfw-fc-card:nth-child(3n)::after {
        display: block !important;
    }
    .gfw-fc-divider-yes .gfw-fc-card:nth-child(2n)::after,
    .gfw-fc-divider-yes .gfw-fc-card:last-child::after {
        display: none !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .gfw-fc-divider-yes .gfw-fc-card::after {
        display: none !important;
    }
}
