/* Page-specific styling for Industries We Serve */

.industries-we-serve-page .project-item-2 {
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    will-change: transform, opacity; /* Enable hardware promotion for smooth touch scroll stacking */
    background-color: var(--tl-color-bg-1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.industries-we-serve-page .project-item-2:hover {
    border-color: var(--tl-color-theme-primary);
}

/* Flexbox layout for screen sizes 992px and up */
@media (min-width: 992px) {
    .industries-we-serve-page .project-item-2 {
        display: flex;
        flex-direction: row-reverse; /* Content (30%) on left, Image (70%) on right */
        align-items: stretch;
    }
    
    .industries-we-serve-page .project-item-2:nth-child(even) {
        flex-direction: row; /* Image (70%) on left, Content (30%) on right */
    }

    .industries-we-serve-page .project-item-2 .project-thumb {
        flex: 0 0 65%;
        width: 65%;
        height: auto !important; /* Let image height fill container height */
        min-height: 520px;
    }

    .industries-we-serve-page .project-content {
        flex: 0 0 35%;
        width: 35%;
        position: relative;
        left: auto;
        bottom: auto;
        right: auto;
        padding: 50px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        pointer-events: auto;
        box-sizing: border-box;
    }
}

/* Image styles */
.industries-we-serve-page .project-thumb {
    position: relative;
    overflow: hidden;
}

.industries-we-serve-page .project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.industries-we-serve-page .project-item-2:hover .project-thumb img {
    transform: scale(1.06);
}

/* Subtle image overlay instead of full dark gradient */
.industries-we-serve-page .project-thumb::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
    pointer-events: none;
    transition: background 0.4s ease;
}

.industries-we-serve-page .project-item-2:hover .project-thumb::before {
    background: rgba(0, 0, 0, 0.05);
}

/* Materials badges overlay */
.industries-we-serve-page .project-thumb ul {
    position: absolute;
    top: 30px;
    left: 35px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    z-index: 2;
}

.industries-we-serve-page .project-thumb ul li {
    font-family: var(--tl-ff-heading);
    color: var(--tl-color-common-white);
    font-size: 12px;
    font-weight: var(--tl-fw-regular);
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 100px;
    padding: 3px 12px;
    background-color: var(--tl-color-theme-secondary);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 2;
}

/* Content typography */
.industries-we-serve-page .project-content * {
    pointer-events: auto;
}

.industries-we-serve-page .project-content .industry-num {
    font-family: var(--tl-ff-heading);
    font-size: 16px;
    color: var(--tl-color-theme-primary);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.industries-we-serve-page .project-content .title {
    color: var(--tl-color-common-white);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    position: relative;
    padding-bottom: 15px;
}

.industries-we-serve-page .project-content .title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--tl-color-theme-primary);
}

.industries-we-serve-page .project-content .description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.industries-we-serve-page .project-content .items-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.industries-we-serve-page .project-content .items-list li {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.industries-we-serve-page .project-content .items-list li i {
    color: var(--tl-color-theme-primary);
    font-size: 14px;
    margin-top: 3px;
}

/* RESPONSIVE STYLES */

/* Tablet & Mobile Stacked Layout (below 992px) */
@media (max-width: 991px) {
    .industries-we-serve-page .project-item-2 {
        display: flex;
        flex-direction: column;
    }
    
    .industries-we-serve-page .project-item-2 .project-thumb {
        width: 100%;
        height: 380px !important;
    }
    
    .industries-we-serve-page .project-content {
        width: 100%;
        position: relative;
        left: auto;
        bottom: auto;
        right: auto;
        padding: 35px 30px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        pointer-events: auto;
        box-sizing: border-box;
    }

    .industries-we-serve-page .project-content .title {
        font-size: 24px;
        padding-bottom: 12px;
    }
    
    .industries-we-serve-page .project-thumb ul {
        top: 25px;
        left: 25px;
    }
}

/* Small Mobile Screen Adjustments */
@media (max-width: 767px) {
    .industries-we-serve-page .project-item-2 {
        margin-bottom: 30px;
    }
    
    .industries-we-serve-page .project-item-2 .project-thumb {
        height: 280px !important;
    }
    
    .industries-we-serve-page .project-content {
        padding: 25px 20px;
        gap: 12px;
    }
    
    .industries-we-serve-page .project-thumb ul {
        top: 20px;
        left: 20px;
    }
    
    .industries-we-serve-page .project-thumb ul li {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .industries-we-serve-page .project-content .industry-num {
        font-size: 15px;
    }
    
    .industries-we-serve-page .project-content .title {
        font-size: 20px;
    }
    
    .industries-we-serve-page .project-content .description {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .industries-we-serve-page .project-content .items-list {
        gap: 8px;
    }
    
    .industries-we-serve-page .project-content .items-list li {
        font-size: 15px;
    }
}
