/*
===========================================
   AIRLINE CASE STUDY SECTION STYLES
===========================================
*/

.airline-case-study-section {
    background-color: #f7f9fe;
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.airline-case-study-container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

/*
===========================================
   HEADER SECTION
===========================================
*/

.case-study-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-4xl);
    align-items: start;
    max-width: 1340px;
    margin-left: auto;
    margin-right: auto;
}

.case-study-title-column {
    position: sticky;
    top: 6rem;
}

.case-study-title {
    font-size: 40px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    letter-spacing: -0.4px;
    color: #0b2051;
    margin: 0;
    text-align: left;
}

.case-study-content-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5.5rem;
}

.case-study-description {
    max-width: 887px;
    text-align: left;
}

.case-study-description p {
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.18px;
    color: #091026;
    opacity: 0.7;
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.director-quote {
    font-style: italic;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.16px;
    color: #0b2051;
    font-weight: 600;
    margin-top: var(--spacing-lg);
}

.case-study-description p:last-child {
    margin-bottom: 0;
}

/*
===========================================
   FLEET IMPACT SECTION
===========================================
*/

.fleet-impact-section {
    width: 100%;
    max-width: 887px;
}

.section-title {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    line-height: normal;
    letter-spacing: -0.24px;
    color: #091026;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.fleet-impact-table-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.fleet-impact-table {
    background: var(--color-white);
    border-radius: 10px;
    border: 1px solid #e0eaf8;
    overflow: hidden;
    width: 100%;
}

.table-header,
.table-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.table-header {
    background: var(--color-white);
}

.table-row {
    background: var(--color-white);
    border-top: 1px solid #e0eaf8;
}

.table-cell {
    padding: 15px 10px;
    font-size: 16px;
    letter-spacing: -0.16px;
    color: #0b2051;
    border-right: 1px solid #e0eaf8;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    text-align: center;
}

.table-cell:last-child {
    border-right: none;
}

.table-header .table-cell {
    background: #f8fbff;
    font-weight: var(--font-weight-semibold);
}

.table-row .table-cell {
    font-weight: var(--font-weight-normal);
    line-height: 1.4;
}

.table-note {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.16px;
    color: #0b2051;
    opacity: 0.7;
    text-align: center;
    margin: 0;
}

/*
===========================================
   BENEFITS SUMMARY BOXES
===========================================
*/

.benefits-summary {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 887px;
}

.benefit-summary-box {
    background: linear-gradient(60.57deg, #ffffff 76.31%, #e0f4fc 101.75%);
    border: 1px solid #e0eaf8;
    border-radius: 10px;
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    height: 120px;
    width: 433px;
    max-width: 433px;
    transition: var(--transition-normal);
}

.benefit-summary-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 91, 255, 0.1);
    background: linear-gradient(81deg, #FFF 6.31%, #E0F4FC 100%);
    border-color: #d4e6ff;
}

.benefit-summary-box:last-child {
    background: linear-gradient(70.98deg, #ffffff 78.07%, #e0fce5 100%);
}

.benefit-summary-box:last-child:hover {
    background: linear-gradient(81deg, #FFF 6.31%, #E0FCE5 100%);
    border-color: #d4e6ff;
}

.benefit-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.benefits-icon {
    background: linear-gradient(45deg, #5DDB87, #4CAF50);
}

.roi-icon {
    background: linear-gradient(45deg, #155BFF, #2196F3);
}

.benefit-content {
    flex: 1;
}

.benefit-label {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    line-height: normal;
    letter-spacing: -0.16px;
    color: #0b2051;
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-normal);
}

.benefit-summary-box:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-summary-box:hover .benefit-label {
    color: var(--color-brand);
}

.benefit-value {
    font-size: 20px;
    font-weight: var(--font-weight-normal);
    line-height: normal;
    letter-spacing: -0.2px;
    color: rgba(11, 32, 81, 0.7);
}

/*
===========================================
   BOTTOM DESCRIPTION
===========================================
*/

.bottom-description {
    text-align: center;
    margin-top: 1.87rem;
}

.bottom-description p {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.16px;
    color: #0b2051;
    opacity: 0.7;
    max-width: 886px;
    margin: 0 auto;
    font-weight: var(--font-weight-normal);
}

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

.benefits-tables-section {
    margin-top: var(--spacing-5xl);
}

.benefits-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    max-width: 1340px;
    margin: 0 auto;
}

.benefits-table {
    width: 100%;
}

.table-title {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    line-height: normal;
    letter-spacing: -0.24px;
    color: #091026;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.benefits-table-content {
    background: var(--color-white);
    border-radius: 10px;
    border: 1px solid #e0eaf8;
    overflow: hidden;
}

.benefits-table-header,
.benefits-table-row {
    display: grid;
}

/* Left table (Customer Experience) - 3 columns */
.benefits-table:first-child .benefits-table-header,
.benefits-table:first-child .benefits-table-row {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Right table (Operational Gains) - 2 columns */
.benefits-table:last-child .benefits-table-header,
.benefits-table:last-child .benefits-table-row {
    grid-template-columns: 1fr 1fr;
}

.benefits-table-header {
    background: var(--color-white);
}

.benefits-table-row {
    background: var(--color-white);
    border-top: 1px solid #e0eaf8;
}

.benefits-table-cell {
    padding: 0.62rem;
    font-size: 16px;
    letter-spacing: -0.16px;
    color: #0b2051;
    border-right: 1px solid #e0eaf8;
    display: flex;
    align-items: center;
    min-height: 60px;
    height: 64.59px;
}

.benefits-table-cell:last-child {
    border-right: none;
}

.benefits-table-header .benefits-table-cell {
    background: #f8fbff;
    font-weight: var(--font-weight-semibold);
}

.benefits-table-row .benefits-table-cell {
    font-weight: var(--font-weight-normal);
    line-height: 1.4;
}

/*
===========================================
   RESPONSIVE DESIGN - MOBILE FIXES
===========================================
*/

/* iPad Air and tablets - Use mobile layout */
@media (max-width: 1024px) {
    .airline-case-study-container {
        padding: 0 var(--spacing-md);
    }

    /* Switch to mobile layout */
    .case-study-header {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .case-study-title-column {
        position: static;
        display: flex;
        justify-content: center;
    }

    .case-study-content-column {
        align-items: center;
        gap: var(--spacing-3xl);
    }

    .case-study-title {
        font-size: 36px;
        text-align: center;
    }

    .case-study-description {
        text-align: center;
        max-width: 100%;
    }

    .case-study-description p {
        text-align: center;
        font-size: 17px;
    }

    .fleet-impact-section,
    .benefits-summary {
        max-width: 100%;
    }

    /* Use vertical table on tablets */
    .fleet-impact-table {
        display: none;
    }

    .fleet-impact-mobile-vertical {
        display: block !important;
        background: var(--color-white);
        border-radius: 10px;
        border: 1px solid #e0eaf8;
        overflow: hidden;
        width: 100%;
    }

    .fleet-impact-vertical-table {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        width: 100%;
    }

    .fleet-impact-vertical-header {
        background: #f8fbff;
        padding: var(--spacing-md) var(--spacing-sm);
        font-weight: var(--font-weight-semibold);
        font-size: 14px;
        color: #0b2051;
        border-right: 1px solid #e0eaf8;
        border-bottom: 1px solid #e0eaf8;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
    }

    .fleet-impact-vertical-header:last-child {
        border-right: none;
    }

    .fleet-impact-vertical-cell {
        padding: var(--spacing-md) var(--spacing-sm);
        font-size: 14px;
        color: #0b2051;
        border-right: 1px solid #e0eaf8;
        border-bottom: 1px solid #e0eaf8;
        display: flex;
        align-items: center;
        min-height: 45px;
        text-align: center;
        justify-content: center;
    }

    .fleet-impact-vertical-cell:nth-child(3n) {
        border-right: none;
    }

    .fleet-impact-vertical-cell:nth-last-child(-n+3) {
        border-bottom: none;
    }

    .fleet-impact-vertical-label {
        font-weight: var(--font-weight-semibold);
        background: #f8fbff;
    }

    .benefits-summary {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
    }

    .benefit-summary-box {
        width: 100%;
        max-width: 500px;
    }

    .benefits-tables {
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .airline-case-study-section {
        padding: var(--spacing-xl) 0;
    }

    .case-study-description p {
        font-size: 16px;
    }

    .case-study-title {
        font-size: 28px;
    }

    .section-title,
    .table-title {
        font-size: 20px;
    }

    .table-note {
        font-size: 14px;
        margin-top: var(--spacing-md);
    }

    .benefit-summary-box {
        height: auto;
        padding: var(--spacing-lg);
        flex-direction: row;
        text-align: left;
        gap: var(--spacing-md);
        width: 100%;
        max-width: 100%;
    }

    .benefits-tables-section {
        margin-top: var(--spacing-3xl);
    }

    /* Benefits Tables - Stack Layout */
    .benefits-tables {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .benefits-table-content {
        display: block;
        border: none;
        background: none;
        border-radius: 0;
    }

    .benefits-table-header,
    .benefits-table-row {
        display: block;
        border: none;
    }

    .benefits-table-header {
        display: none;
        /* Hide headers on mobile */
    }

    .benefits-table-row {
        border: 1px solid #e0eaf8;
        border-radius: var(--border-radius-md);
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-lg);
        background: var(--color-white);
    }

    .benefits-table-row:last-child {
        margin-bottom: 0;
    }

    .benefits-table-cell {
        display: block;
        border: none;
        padding: var(--spacing-sm) 0;
        min-height: auto;
        height: auto;
    }

    .benefits-table-cell:before {
        content: attr(data-label) ": ";
        font-weight: var(--font-weight-semibold);
        color: #0b2051;
    }

    .benefits-table-cell:first-child {
        font-weight: var(--font-weight-semibold);
        font-size: 16px;
        margin-bottom: var(--spacing-sm);
        border-bottom: 1px solid #e0eaf8;
        padding-bottom: var(--spacing-sm);
    }

    .benefits-table-cell:first-child:before {
        display: none;
    }
}

@media (max-width: 480px) {
    .case-study-title {
        font-size: 24px;
    }

    .case-study-description p {
        font-size: 15px;
    }

    .section-title,
    .table-title {
        font-size: 18px;
    }

    .benefit-summary-box {
        padding: var(--spacing-md);
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .benefit-icon {
        width: 50px;
        height: 50px;
    }

    .benefit-icon svg {
        width: 50px;
        height: 50px;
    }

    .benefit-label {
        font-size: 15px;
    }

    .benefit-value {
        font-size: 18px;
    }

    .fleet-impact-vertical-table {
        grid-template-columns: 1fr 1fr 1fr;
        font-size: 13px;
    }

    .fleet-impact-vertical-header,
    .fleet-impact-vertical-cell {
        padding: var(--spacing-sm);
        font-size: 13px;
        min-height: 40px;
    }

    .table-note {
        font-size: 13px;
    }
}

/*
===========================================
   ACCESSIBILITY IMPROVEMENTS
===========================================
*/

@media (prefers-reduced-motion: reduce) {
    .benefit-summary-box {
        transition: none;
    }
}

/* Focus states for keyboard navigation */
.benefit-summary-box:focus-within {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .fleet-impact-table,
    .benefits-table-content,
    .benefit-summary-box {
        background-color: var(--color-white);
        border: 2px solid var(--color-text-primary);
    }

    .table-cell,
    .benefits-table-cell {
        border-color: var(--color-text-primary);
    }
}