/* Project Detail Page Styles */

/* Project Hero Section */
.project-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.project-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.project-hero-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.project-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.project-hero-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.project-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.project-organization {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    opacity: 0.8;
}

.org-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.org-link:hover {
    opacity: 0.8;
}

/* Project Hero Progress */
.project-hero-progress {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-amount {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.progress-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Ensure hero progress bar is visible over dark background */
.project-hero .progress-bar {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 10px;
}

.project-hero .progress-fill {
    background: white;
}

/* Hero action buttons - white for dark background */
.project-hero .project-action-btn.primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.project-hero .project-action-btn.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.project-hero .project-action-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.project-hero .project-action-btn.secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Project Progress Section */
.project-progress-section {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.progress-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 800px;
}

.progress-stat {
    text-align: center;
}

.progress-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.progress-stat .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: block;
}

.progress-bar-container {
    width: 100%;
    max-width: 600px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: left;
}

.project-action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.project-action-btn.primary {
    background: var(--primary-color);
    color: white;
}

.project-action-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.project-action-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.project-action-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Main Content Layout */
.project-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.project-content {
    display: flex;
    flex-direction: column;
    /* gap: 3rem; */
}

.project-section {
    padding: 2rem 0;
    /* border-bottom: 1px solid var(--border-color); */
}

.project-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.expertise-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.expertise-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.expertise-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
}

.expertise-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.expertise-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.expertise-stat {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.impact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.impact-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

.impact-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.impact-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--border-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--border-color);
}

.timeline-item.completed .timeline-marker {
    background: var(--success-color);
    box-shadow: 0 0 0 2px var(--success-color);
}

.timeline-item.active .timeline-marker {
    background: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.timeline-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.member-avatar {
    flex-shrink: 0;
}

.member-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
}

.member-title {
    font-size: 0.9rem;
    color: #495057;
    margin: 0 0 0.25rem 0;
}

.member-role {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

/* Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-status.completed {
    background: #d4edda;
    color: #155724;
}

.project-status.active {
    background: #cce5ff;
    color: #004085;
}

.project-description {
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.project-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-amount,
.project-duration,
.project-location {
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #495057;
    border: 1px solid #dee2e6;
}



/* Sidebar */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

/* Details List */
.details-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.status-active {
    color: var(--success-color);
}

/* Funding Breakdown */
.funding-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.funding-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.funding-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.funding-amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.funding-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.funding-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 3px;
}

/* Project Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Related Projects */
.related-projects {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-project {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.related-project-image {
    flex-shrink: 0;
}

.related-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.related-project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-project-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.related-project-location {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

.related-project-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar.small {
    width: 60px;
    height: 4px;
}

.progress-text {
    font-size: 0.75rem;
    color: #6c757d;
}

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

@media (max-width: 768px) {
    .project-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .progress-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .project-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .project-action-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .project-hero {
        padding: 2rem 0;
    }
    
    .project-progress-section {
        padding: 2rem 0;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .update-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .update-images {
        flex-direction: column;
    }
    
    .update-img {
        width: 100%;
        height: 200px;
    }
} 