/* ==================== VALUES SECTION ==================== */

.values-section {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    width: 100%;
}

/* Title */
.values-title {
    font-weight: 700;
    color: #141414;
    margin: 0;
    text-align: center;
}

.values-title-highlight {
    color: #B704F6;
}

/* Grid Layout - 3 columns */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}

/* ==================== VALUE ITEM ==================== */

.value-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    text-align: left;
    padding: 2rem 0;
    border-bottom: 1px solid #E5E7EB;
}

/* Add left and right borders to center column (2nd item in each row) */
.value-item:nth-child(3n+2) {
    border-left: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

/* Add right padding to left column */
.value-item:nth-child(3n+1) {
    padding-right: 2.5rem;
}

/* Add left padding to right column */
.value-item:nth-child(3n) {
    padding-left: 2.5rem;
}

/* Remove border from last row items */
.value-item:nth-last-child(1),
.value-item:nth-last-child(2),
.value-item:nth-last-child(3) {
    border-bottom: none;
}

/* Icon */
.value-icon {
    width: 48px;
    height: 48px;
    background-color: #4F1862;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Title */
.value-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #4F1862;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Description */
.value-description {
    font-size: 0.875rem;
    font-weight: 500;
    color: #525252;
    line-height: 1.25rem;
    margin: 0;
    text-align: left;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablet Large - 992px to 1199px */
@media (max-width: 1199px) {
    .values-title {
        font-size: 2.5rem;
    }

    .value-item {
        gap: 0.625rem;
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .value-item:nth-child(3n+2) {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .value-item:nth-child(3n+1) {
        padding-right: 2rem;
    }

    .value-item:nth-child(3n) {
        padding-left: 2rem;
    }

    .value-icon {
        width: 44px;
        height: 44px;
    }

    .value-icon img {
        width: 22px;
        height: 22px;
    }

    .value-title {
        font-size: 1rem;
    }

    .value-description {
        font-size: 0.8125rem;
        line-height: 1.2rem;
    }
}

/* Tablet - 768px to 991px */
@media (max-width: 991px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reset center column borders */
    .value-item:nth-child(3n+2) {
        border-left: none;
        border-right: none;
        padding-left: 0;
        padding-right: 0;
    }

    .value-item:nth-child(3n+1),
    .value-item:nth-child(3n) {
        padding-left: 0;
        padding-right: 0;
    }

    /* Add right border to left column (odd items) */
    .value-item:nth-child(2n+1) {
        border-right: 1px solid #E5E7EB;
        padding-right: 2rem;
    }

    /* Add left padding to right column (even items) */
    .value-item:nth-child(2n) {
        padding-left: 2rem;
    }

    /* Reset borders for last row */
    .value-item:nth-last-child(1),
    .value-item:nth-last-child(2),
    .value-item:nth-last-child(3) {
        border-bottom: 1px solid #E5E7EB;
    }

    .value-item:nth-last-child(1),
    .value-item:nth-last-child(2) {
        border-bottom: none;
    }
}

/* Mobile - 767px and below */
@media (max-width: 767px) {
    .values-section {
        gap: 2rem;
    }

    .values-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    /* 2-COLUMN LAYOUT ON MOBILE */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .value-item {
        gap: 0.5rem;
        padding: 1.25rem 0.75rem;
        border-bottom: none;
    }

    /* Reset all previous border styles */
    .value-item:nth-child(3n+2),
    .value-item:nth-child(2n+1),
    .value-item:nth-child(2n) {
        border-left: none;
        border-right: none;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Add vertical borders between columns */
    .value-item:nth-child(2n+1) {
        border-right: 1px solid #E5E7EB;
    }

    /* Add horizontal borders */
    .value-item {
        border-bottom: 1px solid #E5E7EB;
    }

    /* Remove bottom border from last row */
    .value-item:nth-last-child(1),
    .value-item:nth-last-child(2) {
        border-bottom: none;
    }

    .value-icon {
        width: 40px;
        height: 40px;
    }

    .value-icon img {
        width: 20px;
        height: 20px;
    }

    .value-title {
        font-size: 0.8125rem;
        line-height: 1.2;
        font-weight: 700;
    }

    .value-description {
        font-size: 0.6875rem;
        line-height: 1rem;
        font-weight: 500;
    }
}

/* Mobile Small - 479px and below */
@media (max-width: 479px) {
    .values-section {
        gap: 1.75rem;
    }

    .values-title {
        font-size: 1.25rem;
    }

    .value-item {
        gap: 0.4rem;
        padding: 1rem 0.625rem;
    }

    .value-item:nth-child(3n+2),
    .value-item:nth-child(2n+1),
    .value-item:nth-child(2n) {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }

    .value-icon {
        width: 36px;
        height: 36px;
    }

    .value-icon img {
        width: 18px;
        height: 18px;
    }

    .value-title {
        font-size: 0.75rem;
        line-height: 1.1;
    }

    .value-description {
        font-size: 0.625rem;
        line-height: 0.95rem;
    }
}

/* Mobile Extra Small - 360px and below */
@media (max-width: 360px) {
    .values-section {
        gap: 1.5rem;
    }

    .values-title {
        font-size: 1.125rem;
    }

    .value-item {
        gap: 0.35rem;
        padding: 0.875rem 0.5rem;
    }

    .value-item:nth-child(3n+2),
    .value-item:nth-child(2n+1),
    .value-item:nth-child(2n) {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .value-icon {
        width: 32px;
        height: 32px;
    }

    .value-icon img {
        width: 16px;
        height: 16px;
    }

    .value-title {
        font-size: 0.6875rem;
        line-height: 1;
    }

    .value-description {
        font-size: 0.5625rem;
        line-height: 0.875rem;
    }
}
