/* --- Project Detail Page Specific Styles --- */

/* Apply padding to the body to account for the static fixed header */
body {
    padding-top: var(--header-height-desktop);
}

.section-padding {
    padding: 100px 0; /* Slightly less padding for these pages */
}

/* Page Hero/Title Section */
.page-hero {
    padding: 60px 0;
    background-color: var(--white-bg);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.page-hero h1 {
    margin-bottom: 15px;
}

.page-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Swiper Slider Section --- */
.slider-section {
    background-color: var(--light-bg);
}

.swiper-container-wrapper {
    padding: 30px;
    background-color: var(--white-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.swiper-container {
    width: 100%;
    height: 550px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* Indicates images are clickable for lightbox */
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
    --swiper-navigation-size: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--white-bg);
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* --- Project Details Section --- */
.project-details-section {
    background-color: var(--white-bg);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    align-items: start;
}

.project-description h2,
.project-tasks h2 {
    margin-bottom: 20px;
    color: var(--text-heading);
}

.project-description p:last-of-type {
    margin-bottom: 0;
}

.project-tasks ul {
    list-style: none;
    padding: 0;
}

.project-tasks li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    color: var(--text-muted);
    font-weight: 300;
}

.project-tasks li::before {
    content: '\f00c'; /* Font Awesome checkmark icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
}

/* --- Lightbox Styles --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    margin: 5vh auto 0;
    display: block;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

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


/* --- Responsive Overrides for Project Detail Pages --- */
@media (max-width: 992px) {
    body {
        padding-top: calc(var(--header-height-desktop) - 10px);
    }
    .section-padding {
        padding: 80px 0;
    }
    .details-grid {
        gap: 40px;
    }
    .swiper-container {
        height: 450px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: var(--header-height-mobile);
    }
    .section-padding {
        padding: 60px 0;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
    .swiper-container {
        height: 40vh;
        min-height: 300px;
    }
    .swiper-container-wrapper {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 50px 0;
    }
    .page-hero {
        padding: 40px 0;
    }
    .page-hero p {
        font-size: 1rem;
    }
    .swiper-container {
        height: 35vh;
        min-height: 250px;
    }
    .swiper-container-wrapper {
        padding: 10px;
    }
}