/* Responsive Design for Project Details */
@media (max-width: 900px) {
    #project-detail {
        grid-template-columns: 1fr;
        padding: 40px 10px;
        min-height: unset;
    }
    .project-detail-left, .project-detail-right {
        width: 100%;
        margin: 0;
        align-items: flex-start;
    }
    .project-featured-image {
        width: 100%;
        height: 220px;
        margin-left: 0;
        margin-top: 30px;
        object-fit: contain;
    }
    .project-title {
        font-size: 2rem;
    }
    .project-cat {
        font-size: 1rem;
        padding: 7px;
    }
    .back-text {
        font-size: 1rem;
        gap: 10px;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    #project-detail {
        padding: 20px 2vw;
    }
    .project-title {
        font-size: 1.2rem;
    }
    .project-cat {
        font-size: 0.9rem;
        padding: 5px;
    }
    .back-text {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }
    .project-featured-image {
        height: 120px;
    }
    .article-content, .project-meta {
        font-size: 0.95rem;
    }
}
/* --- MAIN PROJECT DETAIL SECTION --- */
#project-detail {
    min-height: 90vh;
    padding: 60px 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: linear-gradient(90deg, #025835 0%, #025835 35%, rgba(2, 88, 53, 0.85) 55%, #0d0d0d 100%);
    overflow: hidden;
}

.project-detail-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    color: #fff;
    height: 70%;
}

.project-detail-right {
    position: relative;
}

.back-text {
    text-decoration: none;
    color: white;
    font-size: 1.26625rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.project-cat {
    border: 1px solid white;
    padding: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 600;
}

.project-meta {
    margin-top: 1.25rem;
}

#project-category {
    font-size: 1.25rem;
}

.project-featured-image {
    width: 70%;
    height: 60%;
    margin-left: 120px;
    object-fit: contain;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.5;
}

.gallery-btn {
    background-color: white;
    color: #004225;
    width: auto;
    text-decoration: none;
    font-size: clamp(0.2rem, 1vw, 1rem);
    font-weight: 600;
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #004225;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gallery-btn:hover {
    background-color: #b1ffa8;
    color: black;
}

.gallery-btn .arrow {
    width: 1.5rem;
    margin-left: 10px;
}


/* --- NEWS SECTION --- */
.news {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
}

/* --- ARTICLE CONTENT --- */
.project-article {
    background-color: white;
    padding-top: 50px;
    overflow: hidden;
    margin-bottom: 40px;
}

.article-content {
    max-width: 1300px;
    margin: auto;
    padding: 10px;
    font-size: clamp(16px, 2vw, 18px);
    text-align: justify;
}

.article-content h2 {
    color: #025836;
    font-weight: 700;
    margin-bottom: 0;
}
.article-content h3 {
    color: #025836;

    margin-bottom: 0;
}

.article-text {
    font-size: 18px;
    line-height: 1.8;
    font-weight: 400;
    color: black;
    margin-bottom: 25px;
    text-align: justify;
}

.tagline {
    font-weight: 600;
    color: black;
}

/* --- PROJECT IMAGE SECTION --- */
.project-image-section {
    max-width: 1300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.project-image-section img {
    width: 433px;
    height: 268px;
}

/* --- IMAGE GALLERY --- */
.image-gallery {
    display: flex;
    gap: 20px;
    max-width: 1300px;
    margin: auto;
}

.gallery-item {
    flex: 1;
}

.gallery-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- RESPONSIVE DESIGN --- */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    #project-detail {
        grid-template-columns: 1fr;
        padding: 50px 40px;
    }

    .project-detail-left {
        align-items: center;
        margin-top: -100px;
    }

    .project-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
    }

    .hero-text {
        text-align: center;
        margin-top: 20px;
    }

    .project-meta {
        text-align: justify;
    }

    .article-content {
        padding: 10px 20px;
    }

    .project-image-section {
        flex-wrap: wrap;
        padding: 0 20px;
    }

    .project-image-section img {
        width: 300px;
        height: auto;
    }

    .image-gallery {
        flex-direction: column;
        padding: 0 20px 30px 20px;
    }

    .social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .social-links {
        justify-content: center;
        width: 100%;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    #project-detail {
        padding: 40px 20px;
        min-height: auto;
    }

    .project-title {
        font-size: 28px;
    }

    .back-text {
        font-size: 18px;
    }

    .project-cat {
        font-size: 1rem;
    }

    #project-category {
        font-size: 1rem;
    }

    .project-featured-image {
        width: 100%;
        height: auto;
        margin-left: 0;
    }

    .gallery-btn {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .gallery-btn .arrow {
        width: 1.2rem;
        margin-left: 8px;
    }

    .article-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .share-text {
        font-size: 18px;
    }

    .social-link {
        font-size: 18px;
    }

    .project-image-section img {
        width: 100%;
        height: auto;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    #project-detail {
        padding: 30px 15px;
        min-height: auto;
    }

    .project-title {
        font-size: 24px;
        margin-top: 10px;
    }

    .back-text {
        font-size: 1rem;
    }

    #project-category {
        font-size: 0.7rem;
    }

    .project-featured-image {
        width: 100%;
        height: auto;
        margin-left: 0;
    }

    .gallery-btn {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .gallery-btn .arrow {
        width: 1rem;
        margin-left: 6px;
    }

    .article-content {
        padding: 20px 15px;
    }

    .image-gallery {
        padding: 0 15px 20px 15px;
        gap: 15px;
    }

    .project-image-section {
        padding: 0 15px;
        gap: 15px;
    }

    .project-image-section img {
        width: 100%;
        height: auto;
    }
}