.as-fc3b7980-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.as-fc3b7980-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.as-fc3b7980-heading {
    margin: 0 0 15px 0;
}

.as-fc3b7980-sub {
    margin: 0;
    line-height: 1.6;
}

/* Custom 3-column bento/grid layout: 3 on top row, 2 centered below on large screens */
.as-fc3b7980-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.as-fc3b7980-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    box-sizing: border-box;
}

/* Row 2 Centered Grid placement: items 4 and 5 on desktop */
.as-fc3b7980-grid > .as-fc3b7980-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.as-fc3b7980-grid > .as-fc3b7980-card:nth-child(5) {
    grid-column: 4 / span 2;
}

/* Hover scales, changes border and adds accent glow */
.as-fc3b7980-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--accent-fc3b7980, #00f2fe);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.as-fc3b7980-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    margin-bottom: 25px;
    transition: all 0.4s ease;
    font-size: 24px;
    color: #ffffff;
}

.as-fc3b7980-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.as-fc3b7980-card:hover .as-fc3b7980-icon-wrapper {
    background-color: var(--accent-fc3b7980, #00f2fe);
    color: #000000;
    box-shadow: 0 0 20px var(--accent-fc3b7980, #00f2fe);
}

.as-fc3b7980-card-title {
    margin: 0 0 15px 0;
}

.as-fc3b7980-card-desc {
    margin: 0;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .as-fc3b7980-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .as-fc3b7980-card,
    .as-fc3b7980-grid > .as-fc3b7980-card:nth-child(4),
    .as-fc3b7980-grid > .as-fc3b7980-card:nth-child(5) {
        grid-column: span 1;
    }
    /* Let the 5th item stretch or stay clean */
    .as-fc3b7980-grid > .as-fc3b7980-card:nth-child(5) {
        grid-column: span 2;
        max-width: calc(50% - 15px);
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .as-fc3b7980-grid {
        grid-template-columns: 1fr;
    }
    .as-fc3b7980-card,
    .as-fc3b7980-grid > .as-fc3b7980-card:nth-child(4),
    .as-fc3b7980-grid > .as-fc3b7980-card:nth-child(5) {
        grid-column: span 1;
        max-width: 100%;
    }
}
