/* General Project Detail Page Styles */
.project-detail-section {
    padding: 12rem 9% 4rem;
    background: #f9fafb;
    color: #333;
}

.project-header {
    text-align: center;
    margin-bottom: 4rem;
}

.project-title {
    font-size: 4.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.project-main-image {
    margin-bottom: 4rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.project-main-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.15);
}

.project-main-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Two-column layout */
.project-content-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 5rem;
}

.project-details h2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e6ed;
    display: flex;
    align-items: center;
}

.project-details h2 i {
    margin-right: 1.5rem;
    /* Color is now section-specific */
}

/* --- Section Icon Colors --- */
.project-situation h2 i { color: #0d6efd; } /* Blue */
.project-task h2 i { color: #fd7e14; } /* Orange */
.project-action h2 i { color: #6f42c1; } /* Purple */
.project-results-reflection h2 i { color: #198754; } /* Green */

.project-details p, .project-details ul {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 3rem;
}

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

.project-details ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

.project-details ul li i {
    position: absolute;
    left: 0;
    top: 6px;
    color: #20c997; /* A nice checkmark color */
}

/* Sidebar Styles */
.project-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.sidebar-widget {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.tech-stack-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-stack-list li {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.tech-stack-list li i {
    font-size: 2.4rem;
    margin-right: 1.5rem;
    /* Color is now brand-specific via Devicon's 'colored' class or inline style */
}

.cta-widget .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.cta-widget .btn-secondary {
    background: #fff;
    color: #495057;
    border: 1px solid #ced4da;
}

.cta-widget .btn-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .project-content-wrapper {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        position: static; /* Let it flow naturally on smaller screens */
        top: auto;
    }
}

@media (max-width: 768px) {
    .project-detail-section {
        padding: 10rem 5% 3rem;
    }

    .project-title {
        font-size: 3.6rem;
    }

    .project-subtitle {
        font-size: 1.8rem;
    }
}