/*
  Page-specific stylesheet for the Project Detail page
  Version: 2.1 - "The Classic In-Depth Exhibit"
*/

/* --- 1. ★ REVERTED: Project Hero Section to Classic Layout ★ --- */
.project-hero-section {
    padding: var(--section-padding);
    background-color: var(--color-light-grey);
}

.project-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .project-hero-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 5rem;
    }
}

.project-hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-hero-details h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    /* Matches original */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

/* Using a UL for the specs list again */
.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.1rem;
}

.specs-list li:first-child {
    border-top: 1px solid var(--color-border);
}

.specs-list strong {
    color: var(--color-secondary);
    margin-right: 1rem;
    flex-shrink: 0;
    /* Prevents label from wrapping */
}

.specs-list span {
    text-align: right;
    font-weight: 500;
}


/* --- 2. Story Section --- */
.project-story-section {
    padding: var(--section-padding);
}

.story-content-wrapper {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #343a40;
}

.story-block {
    margin-bottom: 3rem;
    /* Adjusted margin */
}

.story-block:last-child {
    margin-bottom: 0;
}

.story-block h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

/* The story-image figure is no longer needed but we can keep the style just in case */
.story-image {
    margin: 2.5rem 0;
}

.story-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.story-image figcaption {
    font-size: 0.9rem;
    text-align: center;
    color: var(--color-secondary);
    margin-top: 1rem;
}

/* --- 3. Related Projects Section --- */
.related-projects-section {
    padding: var(--section-padding);
    background-color: var(--color-light-grey);
}

.related-projects-section .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Reverted to 2 columns for this section */
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Using showcase card styles for consistency */
.project-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: var(--color-light-grey);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.project-card-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-tech {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.project-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.project-card-excerpt {
    font-size: 1rem;
    color: var(--color-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 3;
}

/* --- Final CTA --- */
.final-cta-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/backgrounds/bg-showcase-main.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}