/* ==========================================================================
   QUALITY SECTION STYLES
   ========================================================================== */
.quality-section {
    background-color: var(--color-white);
}

.quality-container {
    max-width: 1440px;
    margin: 0 auto;
}

.quality-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Make sure image container is responsive */
    width: 100%;
    aspect-ratio: 3 / 2;
    /* Fix for some browsers ignoring overflow hidden on border radius */
    transform: translateZ(0);
}

.quality-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.quality-eyebrow {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 16px;
    display: inline-block;
    position: relative;
}

.quality-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-deep-navy);
    line-height: 1.2;
}

.quality-title span {
    color: var(--color-primary);
}

.quality-description {
    font-size: 17px;
    color: var(--color-text);
    line-height: 1.7;
}

/* Quality Cards / Features */
.quality-feature-section {
    background-color: var(--color-background);
}

.quality-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 6px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Subtle border for crispness */
}

.quality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(32, 110, 247, 0.08);
    /* Soft primary colored shadow */
}

.quality-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(32, 110, 247, 0.1);
    color: var(--color-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
}

.quality-card:hover .quality-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.quality-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-deep-navy);
    margin-bottom: 15px;
}

.quality-card p {
    /* font-size: 16px; */
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Certifications Section */
.certifications-section {
    background-color: var(--color-deep-navy);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.certifications-section .quality-eyebrow {
    color: var(--color-white);
}

.certifications-section .quality-title {
    color: var(--color-white);
}

.cert-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.cert-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.cert-badge h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Timeline / Progress Bar Process */
.process-timeline {
    position: relative;
    padding-left: 30px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background-color: #cce0ff;
    z-index: 1;
}

.timeline-card {
    position: relative;
    margin-bottom: 30px;
    z-index: 2;
    /* Add stacking context for inner elements */
}

.timeline-card>.d-flex {
    position: relative;
    z-index: 1;
}

.timeline-card::after {
    content: attr(data-number);
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 80px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.04);
    z-index: 0;
    font-family: var(--font-body);
    line-height: 1;
    pointer-events: none;
}

.timeline-card:last-child {
    margin-bottom: 0;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 6px var(--color-background);
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-card:hover::before {
    background-color: var(--color-deep-navy);
    box-shadow: 0 0 0 6px rgba(32, 110, 247, 0.15);
}

@media (max-width: 767px) {
    .process-timeline {
        padding-left: 20px;
    }

    .process-timeline::before {
        left: 19px;
    }
}

@media (max-width: 1199px) {
    .quality-title {
        font-size: 44px;
    }
}

@media (max-width: 991px) {
    .quality-title {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .quality-title {
        font-size: 32px;
    }

    .quality-description {
        font-size: 16px;
    }

    .quality-eyebrow {
        font-size: 16px;
    }

    .quality-card {
        padding: 30px 20px;
    }

    .timeline-card::after {
        font-size: 65px;
        top: 10px;
        right: 15px;
        transform: none;
    }
}

/* ==========================================================================
   BENTO BOX SECTION
   ========================================================================== */

.bento-card {
    background-color: var(--color-white);
    border-radius: 6px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.bento-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.bento-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(32, 110, 247, 0.1);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.bento-card h3 {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-deep-navy);
    margin: 0;
}

.bento-feature h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-deep-navy);
    margin-bottom: 10px;
}

.bento-feature p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* Primary Background Card (Global Standards) */
.bento-primary-bg {
    background-color: var(--color-deep-navy);
    color: var(--color-white);
}

.bento-primary-bg h3 {
    color: var(--color-white);
}

.bento-primary-bg .bento-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* Blue Background Card (Left Column) */
.bento-blue-bg {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
}

.bento-blue-bg h3,
.bento-blue-bg h5,
.bento-blue-bg .bento-feature h5,
.bento-blue-bg .bento-principle-item h5 {
    color: var(--color-white);
}

.bento-blue-bg p,
.bento-blue-bg .bento-feature p,
.bento-blue-bg .bento-principle-item p {
    color: rgba(255, 255, 255, 0.85);
}

.bento-standards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bento-standards-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.bento-standards-list li i {
    color: var(--color-primary);
    font-size: 20px;
}

.bento-highlight {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 24px 28px;
    border-radius: 12px;
    /* border-left: 6px solid var(--color-primary); */
    margin-top: 1.5rem;
}

.bento-highlight h6 {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-heading, inherit);
}

.bento-highlight p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Principles */
.bento-principle-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.principle-icon {
    width: 45px;
    height: 45px;
    background-color: var(--color-background);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.bento-principle-item h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-deep-navy);
    margin-bottom: 8px;
}

.bento-principle-item p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.bento-container {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 992px) {
    .bento-container {
        padding-right: 3rem !important;
        padding-left: 3rem !important;
    }
}

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

.bento-section-header .section-title {
    margin-bottom: 1rem;
}

.bento-layout-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: stretch;
}

.bento-left-col {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .bento-left-col {
        width: calc(66.666667% - 0.75rem);
    }
}

.bento-right-col {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .bento-right-col {
        width: calc(33.333333% - 0.75rem);
    }
}

.bento-tall {
    height: 100%;
}

.bento-left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.bento-testing-section {
    margin-bottom: 3rem;
}

.bento-features-grid,
.bento-principles-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    margin-left: -15px;
    margin-right: -15px;
}

.bento-feature-item,
.bento-principle-wrapper {
    flex: 0 0 auto;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.bento-feature-item:last-child,
.bento-principle-wrapper:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (min-width: 768px) {

    .bento-feature-item,
    .bento-principle-wrapper {
        width: 33.333333%;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .bento-feature-item:last-child,
    .bento-principle-wrapper:last-child {
        border-right: none;
    }
}

.bento-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 10px 0 40px 0;
    border-top: 1px solid;
    opacity: 1;
}

.bento-standards-desc {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.animate-fade-in {
    opacity: 0;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

@media (max-width: 991px) {
    .bento-card {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .bento-card {
        padding: 25px 20px;
    }

    .bento-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}