/**
 * Luthra Pneumsys - Case Studies Frontend Styles v1.2.0
 * Pixel-perfect implementation based on official designs and user feedback
 */

:root {
    --luthra-brand-blue: #0090d8;
    --luthra-navy-blue: #004b6e;
    --luthra-orange: #f26522;
    --luthra-dark-slate: #0b1a2d;
    --luthra-card-bg: #eef1f4;
    --luthra-text-dark: #111827;
    --luthra-text-muted: #4b5563;
    --luthra-max-w: 1200px;
    --luthra-font: 'Hind', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --luthra-font-head: 'Montserrat', 'Hind', sans-serif;
}

/* Base Container */
.luthra-cs-container {
    font-family: var(--luthra-font);
    color: var(--luthra-text-dark);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.luthra-cs-container *,
.luthra-cs-container *::before,
.luthra-cs-container *::after {
    box-sizing: border-box;
}

.luthra-inner-wrap {
    max-width: var(--luthra-max-w);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================================
   1. HERO SECTION
   =================================================== */
.luthra-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 380px;
    display: flex;
    align-items: center;
    padding: 70px 0;
    transition: background-image 0.4s ease;
}

.luthra-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 26, 45, 0.78) 0%, rgba(11, 26, 45, 0.48) 55%, rgba(11, 26, 45, 0.2) 100%);
    z-index: 1;
}

.luthra-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.luthra-hero-title {
    font-family: var(--luthra-font-head);
    font-size: 52px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.luthra-hero-subtitle {
    font-family: var(--luthra-font-head);
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
    max-width: 900px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ===================================================
   2. FILTER SECTION (5 PILLS VISIBLE ON SCREEN)
   =================================================== */
.luthra-filter-section {
    background: #ffffff;
    padding: 30px 0 24px;
    border-bottom: 1px solid #e5e7eb;
}

.luthra-filter-header {
    margin-bottom: 14px;
}

.luthra-filter-tag {
    font-family: var(--luthra-font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0b2540;
    text-transform: uppercase;
}

.luthra-filter-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    width: 100%;
}

.luthra-pills-container {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 2px;
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
}

.luthra-pills-container::-webkit-scrollbar {
    display: none;
}

/* Exactly 5 items visible in viewport */
.luthra-project-pill {
    flex: 0 0 calc((100% - 48px) / 5);
    min-width: 165px;
    max-width: 230px;
    background: #ffffff;
    color: #0b2540;
    border: 1.5px solid #d0d7de;
    border-radius: 9999px;
    padding: 12px 14px;
    font-family: var(--luthra-font-head);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    scroll-snap-align: start;
    transition: all 0.22s ease;
    outline: none;
    line-height: 1.25;
}

.luthra-project-pill:hover {
    border-color: var(--luthra-brand-blue);
    color: var(--luthra-brand-blue);
    transform: translateY(-1px);
}

.luthra-project-pill.is-active {
    background: var(--luthra-brand-blue);
    color: #ffffff;
    border-color: var(--luthra-brand-blue);
    box-shadow: 0 4px 14px rgba(0, 144, 216, 0.35);
}

/* Bulletproof Circular Arrow Buttons (Overriding any Theme CSS) */
button.luthra-scroll-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    background-color: #003853 !important;
    border: none !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18) !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
    z-index: 5 !important;
}

button.luthra-scroll-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    display: block !important;
    stroke: #ffffff !important;
    stroke-width: 3.5px !important;
    fill: none !important;
    margin: auto !important;
    pointer-events: none !important;
}

button.luthra-scroll-btn:hover {
    background-color: var(--luthra-brand-blue) !important;
    transform: scale(1.08) !important;
}

.luthra-filter-caption {
    font-size: 13px;
    color: #6b7280;
    margin: 12px 0 0 0;
}

/* ===================================================
   DYNAMIC CONTENT TRANSITIONS
   =================================================== */
.luthra-dynamic-content {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.luthra-dynamic-content.is-switching {
    opacity: 0.15;
    transform: translateY(6px);
}

/* ===================================================
   3. PROJECT OVERVIEW SECTION (BOXED IN CONTAINER)
   =================================================== */
.luthra-overview-section {
    background: #ffffff;
    padding: 45px 0 50px;
}

.luthra-overview-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* Left: Slider Column */
.luthra-slider-col {
    position: relative;
    background: #111827;
    overflow: hidden;
    min-height: 450px;
}

.luthra-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
}

.luthra-slides-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.luthra-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.luthra-slide.active {
    opacity: 1;
    z-index: 2;
}

.luthra-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Slider Pagination Dots */
.luthra-slider-pagination {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.luthra-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px solid #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.luthra-dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 12px;
}

/* Right: Overview Blue Box */
.luthra-details-col {
    background: var(--luthra-brand-blue);
    padding: 50px 45px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.luthra-overview-heading {
    font-family: var(--luthra-font-head);
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 28px 0;
    line-height: 1.2;
}

.luthra-overview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.overview-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.item-bullet {
    font-size: 24px;
    line-height: 1;
    color: #ffffff;
    margin-top: -1px;
}

.item-content {
    flex-grow: 1;
}

.item-label {
    display: block;
    font-family: var(--luthra-font-head);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
    line-height: 1.3;
}

.item-value {
    font-family: var(--luthra-font);
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
}

/* ===================================================
   4. TRANSFORMING CHALLENGES INTO OPPORTUNITIES
   =================================================== */
.luthra-challenges-section {
    background: var(--luthra-brand-blue);
    padding: 55px 0;
    color: #ffffff;
}

.luthra-challenges-heading {
    font-family: var(--luthra-font-head);
    font-size: 25px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.luthra-challenges-text {
    font-family: var(--luthra-font);
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.96);
    margin: 0;
    max-width: 1020px;
}

/* ===================================================
   5. STRATEGY IMPLEMENTED (PERFECT CORNER ARCS & ARROWS)
   =================================================== */
.luthra-strategy-section {
    background: #ffffff;
    padding: 65px 0 75px;
}

.luthra-strategy-heading {
    font-family: var(--luthra-font-head);
    font-size: 26px;
    font-weight: 700;
    color: #0b1a2d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 45px 0;
    line-height: 1.25;
}

.luthra-strategy-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.luthra-strategy-card {
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* Navy & Orange colors */
.card-navy {
    color: var(--luthra-navy-blue);
}

.card-orange {
    color: var(--luthra-orange);
}

/* Inner Light Grey Card - Fills full card nicely */
.luthra-strat-inner-card {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 220px;
    background: #eef1f4;
    border-radius: 22px;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.luthra-strategy-card:hover .luthra-strat-inner-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Top-Right Arc: perfectly hugs top-right curve with downward arrowhead */
.corner-arc.top-right {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 58%;
    height: 52%;
    border-top: 8px solid currentColor;
    border-right: 8px solid currentColor;
    border-top-right-radius: 28px;
    pointer-events: none;
    z-index: 1;
}

.corner-arc.top-right .arrow-head-down {
    position: absolute;
    bottom: -15px;
    right: -14px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid currentColor;
}

/* Bottom-Left Arc & Arrow: perfectly hugs bottom-left curve and wraps to rightward arrowhead */
.corner-arc.bottom-left {
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: calc(100% - 6px);
    height: 52%;
    border-bottom: 8px solid currentColor;
    border-left: 8px solid currentColor;
    border-bottom-left-radius: 28px;
    pointer-events: none;
    z-index: 1;
}

.corner-arc.bottom-left .arrow-head-right,
.corner-arc.bottom-left .arrow-head {
    position: absolute;
    right: -15px;
    bottom: -14px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid currentColor;
}

.strategy-step-title {
    font-family: var(--luthra-font-head);
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.strategy-step-desc {
    font-family: var(--luthra-font);
    font-size: 13.5px;
    font-weight: 400;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* ===================================================
   6. SUMMARY OF SUCCESS STORY
   =================================================== */
.luthra-success-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0 70px;
    color: #ffffff;
}

.luthra-success-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 24, 45, 0.88), rgba(10, 24, 45, 0.88));
    z-index: 1;
}

.luthra-success-inner {
    position: relative;
    z-index: 2;
}

.luthra-success-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1.15fr;
    gap: 45px;
    align-items: center;
}

.luthra-success-heading {
    font-family: var(--luthra-font-head);
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 18px 0;
    line-height: 1.3;
}

.luthra-success-text {
    font-family: var(--luthra-font);
    font-size: 17.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.94);
    margin: 0;
}

.luthra-success-divider {
    background: rgba(255, 255, 255, 0.35);
    height: 100%;
    min-height: 210px;
    width: 1px;
}

.luthra-success-right {
    display: flex;
    flex-direction: column;
}

.luthra-quote-icon {
    font-size: 46px;
    line-height: 1;
    font-family: Georgia, serif;
    color: #ffffff;
    opacity: 0.85;
}

.luthra-quote-icon.quote-open {
    margin-bottom: 2px;
}

.luthra-quote-icon.quote-close {
    text-align: right;
    margin-top: -10px;
}

.luthra-quote-text {
    font-family: var(--luthra-font);
    font-size: 18.5px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
    padding: 0 4px;
}

.luthra-quote-author {
    font-family: var(--luthra-font-head);
    font-size: 14.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
    margin-top: 6px;
}

/* Bottom Bar */
.luthra-success-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 14px;
    background: var(--luthra-brand-blue);
    z-index: 3;
}

/* ===================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   =================================================== */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .luthra-hero-section {
        min-height: 340px;
        padding: 55px 0;
    }

    .luthra-hero-title {
        font-size: 42px;
    }

    .luthra-hero-subtitle {
        font-size: 20px;
    }

    .luthra-project-pill {
        flex: 0 0 calc((100% - 24px) / 3);
        min-width: 150px;
    }

    .luthra-overview-grid {
        grid-template-columns: 1fr;
    }

    .luthra-slider-col,
    .luthra-slider-container {
        min-height: 380px;
        height: 380px;
    }

    .luthra-details-col {
        padding: 40px 32px;
    }

    .luthra-strategy-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
    }

    .luthra-success-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .luthra-success-divider {
        display: block;
        width: 100%;
        height: 1px;
        min-height: 1px;
        background: rgba(255, 255, 255, 0.25);
        margin: 6px 0;
    }
}

/* Tablets (Portrait) & Large Mobile (<= 768px) */
@media (max-width: 768px) {
    .luthra-inner-wrap {
        padding: 0 16px;
    }

    .luthra-hero-section {
        min-height: 280px;
        padding: 45px 0;
    }

    .luthra-hero-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .luthra-hero-subtitle {
        font-size: 17px;
        line-height: 1.35;
    }

    .luthra-filter-section {
        padding: 22px 0 18px;
    }

    .luthra-filter-carousel-wrapper {
        gap: 8px;
    }

    button.luthra-scroll-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
    }

    button.luthra-scroll-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    .luthra-project-pill {
        flex: 0 0 calc((100% - 10px) / 2);
        min-width: 135px;
        max-width: 190px;
        padding: 10px 12px;
        font-size: 13.5px;
    }

    .luthra-filter-caption {
        font-size: 12px;
        margin-top: 8px;
    }

    .luthra-overview-section {
        padding: 35px 0 40px;
    }

    .luthra-slider-col,
    .luthra-slider-container {
        min-height: 280px;
        height: 280px;
    }

    .luthra-details-col {
        padding: 32px 22px;
    }

    .luthra-overview-heading {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .luthra-overview-list {
        gap: 16px;
    }

    .item-label {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .item-value {
        font-size: 14.5px;
    }

    .luthra-challenges-section {
        padding: 36px 0;
    }

    .luthra-challenges-heading {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .luthra-challenges-text {
        font-size: 15px;
        line-height: 1.6;
    }

    .luthra-strategy-section {
        padding: 42px 0 50px;
    }

    .luthra-strategy-heading {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .luthra-strategy-cards-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .luthra-strat-inner-card {
        min-height: 160px;
        padding: 22px 18px;
    }

    .strategy-step-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .strategy-step-desc {
        font-size: 13.5px;
        line-height: 1.5;
    }

    .luthra-success-section {
        padding: 50px 0 45px;
    }

    .luthra-success-heading {
        font-size: 21px;
        margin-bottom: 14px;
    }

    .luthra-success-text {
        font-size: 15px;
        line-height: 1.6;
    }

    .luthra-quote-icon {
        font-size: 38px;
    }

    .luthra-quote-text {
        font-size: 16px;
        line-height: 1.55;
    }

    .luthra-quote-author {
        font-size: 13.5px;
        margin-top: 4px;
    }
}

/* Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
    .luthra-hero-section {
        min-height: 240px;
        padding: 35px 0;
    }

    .luthra-hero-title {
        font-size: 26px;
    }

    .luthra-hero-subtitle {
        font-size: 15px;
    }

    .luthra-filter-section {
        padding: 18px 0 14px;
    }

    .luthra-filter-tag {
        font-size: 11.5px;
    }

    .luthra-project-pill {
        flex: 0 0 calc((100% - 8px) / 2);
        min-width: 125px;
        font-size: 12.5px;
        padding: 8px 10px;
    }

    button.luthra-scroll-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
    }

    button.luthra-scroll-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    .luthra-overview-section {
        padding: 28px 0 32px;
    }

    .luthra-slider-col,
    .luthra-slider-container {
        min-height: 220px;
        height: 220px;
    }

    .luthra-details-col {
        padding: 24px 16px;
    }

    .luthra-overview-heading {
        font-size: 19px;
        margin-bottom: 16px;
    }

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

    .item-value {
        font-size: 13.5px;
    }

    .luthra-challenges-section {
        padding: 28px 0;
    }

    .luthra-challenges-heading {
        font-size: 18px;
    }

    .luthra-challenges-text {
        font-size: 14px;
    }

    .luthra-strategy-section {
        padding: 36px 0 42px;
    }

    .luthra-strategy-heading {
        font-size: 20px;
    }

    .luthra-strat-inner-card {
        min-height: 145px;
        padding: 18px 14px;
    }

    .strategy-step-title {
        font-size: 15px;
    }

    .strategy-step-desc {
        font-size: 13px;
    }

    .luthra-success-section {
        padding: 40px 0 35px;
    }

    .luthra-success-heading {
        font-size: 19px;
    }

    .luthra-success-text {
        font-size: 14px;
    }

    .luthra-quote-icon {
        font-size: 32px;
    }

    .luthra-quote-text {
        font-size: 14.5px;
    }

    .luthra-quote-author {
        font-size: 13px;
    }
}
