/* Features Cards Section (Bento Grid) */
.features-cards-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.features-cards-wrapper {
    overflow: hidden;
}

.features-cards-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 64px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border-radius: 0;
}

.hero-media-icon {
    width: 80px;
    /* Reduced size */
    height: auto;
    display: block;
}

/* Bento Grid System */
.features-bento-grid {
    display: block;
    column-count: 2;
    column-gap: 32px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

/* Remove old column wrappers if any remain */
.features-bento-col {
    display: contents;
}

/* Bento Cards */
.bento-card {
    width: 100%;
    background: var(--color-bg-second);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    padding: 64px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    height: auto;

    /* Masonry Safety */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 32px;
    /* Replaces grid-gap for vertical spacing */
}

/* Typography Overrides for Cards */
/* Typography Overrides for Cards (Layout only) */
/* Typography is now handled by .text-card-title and .text-card-body */
.bento-card h3 {
    margin: 0;
}

.bento-card p {
    margin: 0;
}

/* Specific Card Layouts */


.card-integration {
    gap: 16px;
}

.card-communication {
    gap: 16px;
}

/* Internal Components */
.bento-image-wrapper {
    overflow: hidden;
    display: flex;
    justify-content: center;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-bento-grid {
        column-count: 2;
        column-gap: 24px;
    }

    .bento-card {
        padding: 40px 32px;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .features-bento-grid {
        column-count: 1;
        column-gap: 0;
    }

    .bento-card {
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .bento-card {
        padding: 32px 24px;
    }
}