/* About Us Pages Specific Styles */

/* Page Title Section */
.page-title-section {
    text-align: center;
    padding: 40px 20px;
}

.page-title {
    font-size: 48px;
    color: var(--deep-blue);
    font-weight: bold;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 20px;
    color: var(--light-blue);
    font-weight: 400;
}

/* Wide Carousel */
.wide-carousel {
    padding: 0 20px 40px;
}

.wide-carousel.carousel {
    max-width: 80%; /* 80% of 1400px */
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Banner Section */
.banner-section {
    background-color: var(--deep-blue);
    padding: 25px 20px;
    margin: 60px 0 40px;
}

.banner-text {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Industries Grid with Buttons */
.industries-grid-with-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.industry-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.industry-card .industry-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.industry-card .industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industry-footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
}

.industry-footer .industry-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--deep-blue);
}

.learn-more-btn {
    background-color: var(--yellow);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.learn-more-btn:hover {
    background-color: #FFC700;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

/* Work Site Carousel Section */
.worksite-carousel-section {
    padding: 40px 20px 80px;
    background-color: #FAFAFA;
}

.worksite-carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
}

.worksite-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 400px;
}

.worksite-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.worksite-slide {
    min-width: 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
    height: 100%;
    position: relative;
}

.worksite-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    background-color: var(--gray);
    transition: all 0.5s ease;
}

/* Shadow overlay for side images */
.worksite-slide:not(.center-slide) img {
    filter: brightness(0.5);
}

.worksite-slide.center-slide img {
    filter: brightness(1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.worksite-carousel-btn {
    background-color: var(--deep-blue);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.worksite-carousel-btn:hover {
    background-color: var(--light-blue);
    transform: scale(1.1);
}

/* Gallery Styles */
.gallery-filter-section {
    padding: 40px 20px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--white);
    color: var(--deep-blue);
    border: 2px solid var(--deep-blue);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--light-blue);
    color: var(--white);
    border-color: var(--light-blue);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--deep-blue);
    color: var(--white);
}

.filter-btn i {
    font-size: 14px;
}

/* Gallery Grid */
.gallery-grid-section {
    padding: 0 20px 80px;
}

.gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item.hide {
    display: none;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    background-color: var(--gray);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
}

.view-btn {
    background-color: var(--yellow);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background-color: #FFC700;
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--yellow);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 18px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 5px;
    max-width: 80%;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .industries-grid-with-buttons {
        gap: 30px;
    }
    
    .worksite-carousel {
        height: 350px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .banner-text {
        font-size: 20px;
    }
    
    .industries-grid-with-buttons {
        grid-template-columns: 1fr;
    }
    
    .worksite-carousel-container {
        flex-direction: column;
    }
    
    .worksite-carousel {
        height: 300px;
    }
    
    .worksite-slide {
        min-width: 100%;
    }
    
    .worksite-carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 15px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .banner-text {
        font-size: 18px;
        padding: 0 10px;
    }
    
    .industry-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .learn-more-btn {
        width: 100%;
        text-align: center;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .gallery-image {
        height: 250px;
    }
}