/* ================================================
   Values Grid Section
   Grid of company values with colored icon headers and white content
   ================================================ */

.values-grid {
    padding: 6rem 0;
}

.values-grid .container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100% !important; /* Prevent external CSS from breaking layout */
}

/* ------------------------------------------------
   Section Header
   ------------------------------------------------ */
.values-grid .section-header {
    margin-bottom: 4rem;
}

.values-grid .section-title {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.316;
    color: #1e1e23;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.values-grid .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #00e65f;
}

.values-grid .section-description {
    font-size: 1.5625rem;
    font-weight: 400;
    line-height: 1.316;
    color: #1e1e23;
    max-width: 1100px;
}

/* ------------------------------------------------
   Values Container Grid - Flexible Columns
   ------------------------------------------------ */
.values-container {
    display: grid;
    gap: 2rem;
}

/* Ensure grid items fill their grid cells, not affected by external CSS */
.values-container > * {
    width: auto !important;
    max-width: none !important;
}

.values-container[data-columns="1"] {
    grid-template-columns: 1fr;
}

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

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

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

/* ------------------------------------------------
   Value Card - Two Row Structure
   ------------------------------------------------ */
.value-card {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100% !important; /* Override any external width rules */
    max-width: none !important; /* Override any external max-width rules */
}

/* Icon Wrapper - Colored Background */
.value-icon-wrapper {
    width: 100%;
    aspect-ratio: 1 / 0.94;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 12px 12px 0 0;
}

/* Value Icon */
.value-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

/* Value Content - White Background */
.value-content {
    background-color: #ffffff;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 12px 12px;
}

/* Value Title */
.value-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.316;
    color: #1e1e23;
    margin-bottom: 1.5rem;
}

/* Value List */
.value-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-list li {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.316;
    color: #1e1e23;
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.value-list li:last-child {
    margin-bottom: 0;
}

.value-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background-color: #1e1e23;
    border-radius: 50%;
}

/* ------------------------------------------------
   Section CTA Button
   ------------------------------------------------ */
.values-cta {
    text-align: center;
    margin-top: 3rem;
}

.values-cta .button-green {
    background-color: #00e65f;
    color: #1e1e23;
    padding: 0.75rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: none !important;
    letter-spacing: normal !important;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.values-cta .button-green:hover {
    background-color: #00a843;
    color: #1e1e23;
}

/* SVG icon inside button - force black */
.values-cta .button-green svg,
.values-cta .button-green svg path,
.values-cta .button-green svg polygon {
    fill: #1e1e23 !important;
}

.values-cta .button-green:hover svg,
.values-cta .button-green:hover svg path,
.values-cta .button-green:hover svg polygon {
    fill: #1e1e23 !important;
}

/* ------------------------------------------------
   Responsive Styles
   ------------------------------------------------ */

/* Large Desktop */
@media (max-width: 1440px) {
    .values-grid .section-title {
        font-size: 2rem;
    }

    .values-grid .section-description {
        font-size: 1.25rem;
    }

    .value-title {
        font-size: 1.75rem;
    }

    .value-icon {
        max-width: 160px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .values-grid {
        padding: 4rem 0;
    }

    .values-grid .section-header {
        margin-bottom: 3rem;
    }

    /* Force 2 columns on tablet */
    .values-container[data-columns="3"],
    .values-container[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid .section-title {
        font-size: 1.75rem;
    }

    .values-grid .section-description {
        font-size: 1.125rem;
    }

    .value-title {
        font-size: 1.5rem;
    }

    .value-icon-wrapper {
        padding: 1.5rem;
    }

    .value-icon {
        max-width: 140px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .values-grid {
        padding: 3rem 0;
    }

    .values-grid .section-header {
        margin-bottom: 2.5rem;
    }

    /* Force 1 column on mobile */
    .values-container {
        grid-template-columns: 1fr !important;
    }

    .value-icon-wrapper {
        padding: 1.5rem;
        aspect-ratio: 1 / 0.6;
    }

    .value-content {
        padding: 1.5rem;
    }

    .values-grid .section-title {
        font-size: 1.5rem;
    }

    .values-grid .section-description {
        font-size: 1rem;
    }

    .value-title {
        font-size: 1.375rem;
    }

    .value-list li {
        font-size: 0.9375rem;
    }

    .value-icon {
        max-width: 120px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .values-grid {
        padding: 2.5rem 0;
    }

    .value-icon {
        max-width: 100px;
    }

    .value-title {
        font-size: 1.25rem;
    }
}