/* Project Detail Page Styles */

/* Hero Section with Project Logo */
.project-detail-hero {
    padding: 100px 0 40px;
    background-color: #fff;
    text-align: center;
}

.project-hero-logo {
    max-width: 600px;
    margin: 0 auto;
}

.project-hero-logo img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

/* SALSA Special Hero Styling with EU Flag */
.salsa-hero {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.project-hero-banner {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f7ff;
    border-left: 4px solid #0066cc;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 8px;
}

.eu-flag {
    flex-shrink: 0;
}

.funding-notice {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Content Layout */
.project-detail-content {
    padding: 60px 0 80px;
    background-color: #FAFAFA;
}

.project-content-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

.project-main-content {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.project-main-content h1 {
    font-size: 2.2rem;
    color: #1A1A1A;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.project-main-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-main-content p:last-child {
    margin-bottom: 0;
}

.project-main-content a {
    color: #2E7D32;
    text-decoration: none;
    font-weight: 500;
}

.project-main-content a:hover {
    text-decoration: underline;
}

/* Sidebar - Other Projects */
.project-sidebar {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.project-sidebar h3 {
    font-size: 1.3rem;
    color: #1A1A1A;
    margin-bottom: 1.5rem;
    font-weight: 700;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #2E7D32;
}

.other-projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.other-project-item {
    display: flex;
    gap: 1rem;
    padding: 15px;
    background-color: #F8F9FA;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.other-project-item:hover {
    background-color: #fff;
    border-color: #2E7D32;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.other-project-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background-color: white;
    padding: 10px;
    flex-shrink: 0;
}

.other-project-info h4 {
    font-size: 0.95rem;
    color: #1A1A1A;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.other-project-info p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .project-content-layout {
        grid-template-columns: 1fr 320px;
        gap: 2rem;
    }

    .project-main-content {
        padding: 40px;
    }

    .project-sidebar {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .project-detail-hero {
        padding: 80px 0 30px;
    }

    .project-hero-logo {
        max-width: 450px;
    }

    .project-hero-logo img {
        max-height: 250px;
    }

    .project-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-main-content {
        padding: 30px 25px;
    }

    .project-main-content h1 {
        font-size: 1.8rem;
    }

    .project-main-content p {
        font-size: 0.95rem;
    }

    .project-sidebar {
        position: static;
        padding: 30px 20px;
    }

    .other-project-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .other-project-item img {
        width: 100px;
        height: 100px;
    }

    .project-hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .funding-notice {
        text-align: center;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .project-detail-hero {
        padding: 70px 0 20px;
    }

    .project-hero-logo {
        max-width: 300px;
    }

    .project-main-content {
        padding: 25px 20px;
    }

    .project-main-content h1 {
        font-size: 1.5rem;
    }

    .project-main-content p {
        font-size: 0.9rem;
    }

    .project-sidebar h3 {
        font-size: 1.1rem;
    }

    .other-projects-list {
        gap: 1rem;
    }

    .other-project-item {
        padding: 12px;
    }

    .other-project-info h4 {
        font-size: 0.9rem;
    }

    .other-project-info p {
        font-size: 0.8rem;
    }
}
