/* ============================================================
   Case Study: Salt Trailer
   Prefix: cs-st-  (avoids conflicts with global styles)
   ============================================================ */

/* Commons */
.cs-st-bold {
    font-weight: 700;
}

.cs-st-orange {
    color: #F48120;
}

.cs-st-underline {
    width: 280px;
    height: 1px;
    border-bottom: 1px solid #F58320;
}

.cs-st-underline--white {
    border-bottom-color: #fff;
}

/* Remove Bootstrap pseudo-elements inside containers */
.container::before,
.container::after {
    content: unset;
}

/* ============================================================
   Section 1 - Hero
   ============================================================ */
.cs-st-hero {
    position: relative;
    width: 100%;
    height: 150vh;
    overflow: hidden;
}

.cs-st-hero .cs-st-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cs-st-hero .cs-st-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-st-hero-content {
    position: absolute;
    bottom: 7%;
    left: 50%;
    transform: translate(-50%, 0%);
    text-align: center;
    width: 100%;
    max-width: 900px;
    z-index: 1;
}

.cs-st-hero-title {
    /* font-family: 'Mark Pro', sans-serif; */
    font-weight: 700;
    font-size: 42px;
    line-height: 54px;
    letter-spacing: 1.1px;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 30px;
}

.cs-st-hero-highlight {
    color: #E87E26;
}

.cs-st-hero-subtitle {
    display: inline-block;
    background: rgba(40, 45, 42, 0.85);
    padding: 18px 40px;
}

.cs-st-hero-subtitle p {
    /* font-family: 'Mark Pro', sans-serif; */
    font-weight: 700;
    font-size: 25px;
    line-height: 33px;
    letter-spacing: 1.2px;
    color: #E87E26;
    text-transform: uppercase;
    margin: 0;
}

/* ============================================================
   Section 2 - The Indian Trailer Market
   ============================================================ */
.cs-st-market {
    background: #F48120;
    padding: 60px 0 80px;
    overflow: hidden;
}

.cs-st-market-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cs-st-market-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #010101;
    text-transform: uppercase;
    letter-spacing: 1.35px;
    line-height: 35px;
    margin: 0 0 40px;
}

.cs-st-market-title span {
    color: #fff;
}

.cs-st-market-images {
    display: flex;
    margin-bottom: 50px;
}

.cs-st-market-img {
    flex: 1;
    height: 420px;
    overflow: hidden;
}

.cs-st-market-img--left {
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.cs-st-market-img--right {
    max-width: 870px;
    margin: 0 auto;
}

.cs-st-market-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-st-market-text {
    max-width: 870px;
    margin: 0 auto;
}

.cs-st-market-text p {
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: 0.46px;
    margin: 0 0 25px;
}

.cs-st-market-text p.cs-st-bold {
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0.68px;
    margin-bottom: 0;
}

.cs-st-market-cta {
    text-align: center;
    margin-top: 35px;

    .cs-st-market-cta-img {
        height: 45px;
        width: fit-content;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #231F20;
        border-radius: 50px;
        margin: 0 auto;

        picture {
            height: 100%;
            width: 100%;
            object-fit: cover;
        }

        img{
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
    }

    .cs-st-market-cta-img:hover {
        transform: translateY(-1px);
        scale: 1.01;
        transition: all 0.2s ease;
    }
}

.cs-st-press-release-btn {
    display: inline-block;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 700;
    color: #231F20;
    text-decoration: none;
    /* background: linear-gradient(180deg, #D58752 0%, #AF632D 100%); */
    border: 1px solid #231F20;
    border-radius: 50px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: opacity 0.2s ease;
}

.cs-st-press-release-btn:hover {
    opacity: 0.9;
    color: #231F20;
    text-decoration: none;
}

.img-container {
    width: 100%;
}

.img-fluid-web {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.img-fluid-mobile {
    width: 100%;
    height: auto;
    display: none;
    object-fit: cover;
}

.cs-st-section {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.cs-st-cta a {
    display: block;
}

.cs-st-section-8 {
   position: relative;
}

.cs-st-section-8 .cta {
    position: absolute;
    bottom: 5%;
    right: 50%;
    transform: translateX(50%);
    width: fit-content;
    height: auto;
    z-index: 2;
}

.cs-st-section-8 .btn-cta, .cs-st-market-cta .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 0 35px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #231F20;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    border: 2px solid #231F20;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        #ffffff00 0%,
        #fdfdfd00 37.26%,
        #231f203c 100%
    );
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.cs-st-section-8 .btn-cta:hover {
    opacity: 0.9;
    color: #231F20;
    text-decoration: none;
}

@media (max-width: 768px) {
    .img-fluid-web {
        display: none;
    }

    .img-fluid-mobile {
        display: block;
    }

    /* Hero Mobile */
    .cs-st-hero {
        height: auto;
    }

    .cs-st-hero .cs-st-img-container {
        position: relative;
        height: auto;
    }

    .cs-st-hero-content {
        bottom: 2%;
        width: 90%;
        max-width: 100%;
    }

    .cs-st-hero-title {
        font-size: 18px;
        font-style: normal;
        font-weight: 100;
        line-height: 22px;
        margin-bottom: 10px;
        letter-spacing: 0.2px;
    }

    .cs-st-hero-subtitle {
        padding: 15px 20px;
    }

    .cs-st-hero-subtitle p {
        font-size: 12px;
        font-weight: 600;   
        line-height: 16px;
        letter-spacing: 0.2px;
    }

    /* Market Mobile */
    .cs-st-market {
        padding: 40px 0;
    }

    .cs-st-market-cta .btn-cta {
        padding: 0 20px;
        font-size: 16px;
        min-height: 40px;
    }

    .cs-st-section-8{
         .cta{
            bottom: 2%; 
            .btn-cta {
                padding: 0 15px;
                font-size: 14px;
                min-height: 25px;
            }
        }
    }

    .cs-st-market-title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 30px;
        letter-spacing: 1px;
    }

    .cs-st-market-images {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .cs-st-market-img {
        height: auto;
        width: 100%;
    }

    .cs-st-market-img--right {
        margin: 0;
        max-width: 100%;
    }

    .cs-st-market-text p {
        font-size: 18px;
        line-height: 24px;
    }

    .cs-st-market-text p.cs-st-bold {
        font-size: 18px;
        line-height: 26px;
    }

    .cs-st-press-release-btn {
        padding: 10px 25px;
        font-size: 16px;
    }

    /* Mobile Table Handling */
    .img-fluid-mobile-container {
        display: block !important;
        background: #282D2A; /* Matches the dark background of the images */
    }

    .cs-st-mobile-wrapper {
        position: relative;
        width: 100%;
    }

    .cs-st-table-wrapper {
        /* position: absolute; */
        left: 13px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px;
        z-index: 2;
    }

    .cs-st-table-wrapper img {
        max-width: none; /* Allow image to exceed container width */
        width: auto;     /* Let image define its own width */
        height: auto;
        display: block;
    }

    /* Specific Table Positioning and Heights */
    .cs-st-table-wrapper-6-1 { top: 35%; }
    .cs-st-table-6-1 { height: 350px !important; }

    .cs-st-table-wrapper-6-2 { top: 35%; }
    .cs-st-table-6-2 { height: 150px !important; }
    
    .cs-st-table-wrapper-7-1 { top: 20%; }
    .cs-st-table-7-1 { height: 88px !important; }

    .cs-st-table-wrapper-7-2 { top: 60%; }
    .cs-st-table-7-2 { height: 88px !important; }
    
    .cs-st-table-wrapper-7-3 { top: -21%; }
    .cs-st-table-7-3 { height: 229px !important; }

    .cs-st-table-wrapper-7-4 { top: 58%; }
    .cs-st-table-7-4 { height: 473px !important; }
    
    /* Ensure mobile images stack without gaps */
    .img-fluid-mobile {
        display: block;
        width: 100%;
        height: auto;
        margin-bottom: -1px; /* Fix sub-pixel rendering gaps */
    }

    /* Hide desktop images on mobile */
    .img-fluid-web {
        display: none;
    }
}

/* Desktop Styles for Table Container */
.img-fluid-mobile-container {
    display: none;
}

/* ACF sales banner in market section */
.cs-st-market-cta .contact-section {
    max-width: 100%;
}

.cs-st-market-cta .contact-section .sales-cta-link img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sales CTA: keep banner link clickable if global img uses pointer-events: none */
.contact-section .sales-cta-link {
    display: inline-block;
    cursor: pointer;
}

.contact-section .sales-cta-link img {
    pointer-events: auto;
}