/* Project Detail Page */
.project-detail-section {
    padding: 45px 0;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-detail-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Project Meta */
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(81, 177, 70, 0.05);
    border-radius: 15px;
    border-left: 4px solid #51b146;
}

.project-category,
.project-date,
.project-featured {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #004b6b;
    font-weight: 500;
    font-size: 0.9rem;
}

.project-category i,
.project-date i,
.project-featured i {
    color: #51b146;
    font-size: 0.8rem;
}

.project-featured {
    color: #51b146;
    font-weight: 600;
}

/* Project Gallery */
.project-gallery {
    margin-bottom: 40px;
}

.main-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.main-image{
    max-height: 500px;
}

.main-image:hover {
    transform: translateY(-5px);
}

#main-project-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover #main-project-image {
    transform: scale(1.05);
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #51b146;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

/* Project Content */
.project-content {
    margin-bottom: 60px;
}

.project-description,
.project-objectives,
.project-impact {
    margin-bottom: 40px;
}

.project-description h3,
.project-objectives h3,
.project-impact h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004b6b;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.project-description h3::before,
.project-objectives h3::before,
.project-impact h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    border-radius: 2px;
}

.project-description p,
.project-objectives p,
.project-impact p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
}

/* Project Stats */
.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.05), rgba(0, 75, 107, 0.05));
    border-radius: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #004b6b;
    margin: 0 0 5px 0;
}

.stat-content p {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
    font-weight: 500;
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.share-btn,
.print-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #51b146;
    background: transparent;
    color: #51b146;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover,
.print-btn:hover {
    background: #51b146;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.3);
}

/* Related Projects */
.related-projects {
    margin-top: 80px;
}

.related-title {
    font-size: 2rem;
    font-weight: 700;
    color: #004b6b;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.related-image {
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 25px;
}

.related-card-title {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-card-title a {
    color: #004b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card-title a:hover {
    color: #51b146;
}

.related-excerpt {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.related-category,
.related-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999999;
    font-size: 0.8rem;
}

.related-category i,
.related-date i {
    color: #51b146;
    font-size: 0.7rem;
}

/* Dark Theme */
.dark-theme .project-detail-section {
    background: #1a1a1a;
}

.dark-theme .project-meta {
    background: rgba(81, 177, 70, 0.1);
    border-left-color: #51b146;
}

.dark-theme .project-category,
.dark-theme .project-date {
    color: #eeeff1;
}

.dark-theme .project-description h3,
.dark-theme .project-objectives h3,
.dark-theme .project-impact h3 {
    color: #eeeff1;
}

.dark-theme .project-description p,
.dark-theme .project-objectives p,
.dark-theme .project-impact p {
    color: #e0e0e0;
}

.dark-theme .project-stats {
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.1), rgba(0, 75, 107, 0.1));
}

.dark-theme .stat-content h4 {
    color: #eeeff1;
}

.dark-theme .stat-content p {
    color: #cccccc;
}

.dark-theme .project-actions {
    border-color: #333333;
}

.dark-theme .related-title {
    color: #eeeff1;
}

.dark-theme .related-card {
    background: #2d2d2d;
}

.dark-theme .related-card-title a {
    color: #eeeff1;
}

.dark-theme .related-card-title a:hover {
    color: #51b146;
}

.dark-theme .related-excerpt {
    color: #cccccc;
}

.dark-theme .related-category,
.dark-theme .related-date {
    color: #999999;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .project-detail-section {
        padding: 60px 0;
    }
    
    #main-project-image {
        height: 400px;
    }
    
    .project-stats {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 767.98px) {
    .project-detail-section {
        padding: 40px 0;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    #main-project-image {
        height: 300px;
    }
    
    .gallery-thumbnails {
        gap: 10px;
    }
    
    .thumbnail {
        width: 100px;
        height: 70px;
    }
    
    .project-description p,
    .project-objectives p,
    .project-impact p {
        font-size: 1rem;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .stat-item {
        justify-content: center;
        text-align: center;
    }
    
    .project-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-btn,
    .print-btn {
        justify-content: center;
    }
    
    .related-title {
        font-size: 1.6rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 575.98px) {
    #main-project-image {
        height: 250px;
    }
    
    .thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .project-description p,
    .project-objectives p,
    .project-impact p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-content h4 {
        font-size: 1.3rem;
    }
    
    .related-content {
        padding: 20px;
    }
}

