/* ============================================
   BENEFITS SECTION
   ============================================ */

.block-benefits-section {
    padding: 4rem 0;
    position: relative;
}

.block-benefits-section.reduce-padding {
    padding: 2rem 0;
}

.benefits-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   SIMPLE LAYOUT - Full Width Title
   ============================================ */

.block-benefits-section.layout-simple .benefits-title-wrapper {
    margin-bottom: 3rem;
    text-align: center;
}

.block-benefits-section.layout-simple .benefits-title {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   ADVANCED LAYOUT - Two Columns
   ============================================ */

.benefits-header-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.benefits-left-column .benefits-title {
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Info Box */
.info-box-wrapper {
    position: relative;
    padding-bottom: 1rem;
    padding-right: 1rem;
}

/* Shadow/Layer Effect */
.info-box-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
    border-radius: 0;
    z-index: -1;
}

.info-box-wrapper.shadow-green::after { background-color: #00e65f; }
.info-box-wrapper.shadow-green_light::after { background-color: #b4ffb4; }
.info-box-wrapper.shadow-green_dark::after { background-color: #326446; }
.info-box-wrapper.shadow-blue::after { background-color: #7dcdff; }
.info-box-wrapper.shadow-violet::after { background-color: #be91ff; }
.info-box-wrapper.shadow-orange::after { background-color: #ff9b69; }
.info-box-wrapper.shadow-magenta::after { background-color: #f56ef5; }
.info-box-wrapper.shadow-yellow::after { background-color: #ffd200; }
.info-box-wrapper.shadow-red::after { background-color: #ff6e6e; }

.info-box {
    position: relative;
    padding: 2rem;
    border-radius: 0;
    z-index: 1;
}

.info-box-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
}

.info-box-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.info-box-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-right: 80px; /* Space for icon */
}

.info-box-content {
    font-size: 1rem;
    line-height: 1.6;
}

.info-box-content ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-box-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   BENEFITS GRID
   ============================================ */

.benefits-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

/* Responsive grid based on item count */
.benefits-grid[data-columns="1"] {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.benefits-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.benefits-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Benefit Item */
.benefit-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.benefit-description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: inherit;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
    .benefits-header-two-column {
        gap: 2rem;
    }

    .benefits-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .block-benefits-section {
        padding: 3rem 0;
    }

    .benefits-section-inner {
        padding: 0 15px;
    }

    /* Stack two-column layout */
    .benefits-header-two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    /* Info box adjustments */
    .info-box {
        padding: 1.5rem;
    }

    .info-box-icon {
        width: 50px;
        height: 50px;
        top: 1rem;
        right: 1rem;
    }

    .info-box-title {
        font-size: 1.5rem;
        padding-right: 60px;
    }

    /* Single column grid on mobile */
    .benefits-grid[data-columns="2"],
    .benefits-grid[data-columns="3"],
    .benefits-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        gap: 2.5rem;
        margin-top: 2rem;
    }

    .benefit-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .benefit-title {
        font-size: 1.125rem;
    }

    .benefit-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .block-benefits-section {
        padding: 2rem 0;
    }

    .benefits-header-two-column {
        margin-bottom: 2rem;
    }

    .info-box-title {
        font-size: 1.25rem;
    }

    .benefits-grid {
        gap: 2rem;
    }
}

/* ============================================
   TYPOGRAPHY OVERRIDES
   ============================================ */

/* Ensure WYSIWYG content looks good */
.benefits-title p:last-child,
.info-box-content p:last-child {
    margin-bottom: 0;
}

.benefits-title p:first-child,
.info-box-content p:first-child {
    margin-top: 0;
}

/* ============================================
   Flip Flex
   ============================================ */
/* Feature Blocks Flip Order */

.card__feature-block.flip-item {
  flex-direction: row-reverse;
}

.block-fbl.flip-order .card__feature-block {
  display: flex;
  flex-direction: row !important;
}

.block-fbl.flip-order .card__feature-block.flip-item {
  flex-direction: row-reverse;
}
