/* Enhanced Projects Page Styles */

.projects-hero {
    padding: 12rem 0 6rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* Featured Projects Grid */
.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.featured-project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.featured-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-color);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
}

.project-content {
    padding: 2.5rem;
}

.project-content h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-description {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-light);
}

.project-meta i {
    color: var(--primary-color);
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: #f0f9ff;
    color: var(--primary-color);
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Project Detail Layout */
.project-detail-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.project-detail-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.detail-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.detail-subtitle {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.detail-section h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.detail-section p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.objectives-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.objectives-list li {
    display: flex;
    align-items: start;
    gap: 1rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.objectives-list i {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.achievement-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: scale(1.05);
}

.achievement-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.achievement-label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Components Grid */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.component-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.component-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.component-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.component-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.component-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Sidebar */
.project-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.info-value {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
}

.partners-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.partners-list li {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    padding-left: 1.5rem;
    position: relative;
}

.partners-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

.publication-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.publication-link:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.publication-link i {
    color: #dc2626;
    font-size: 1.25rem;
}

.story-preview {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.story-preview p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.story-author {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Projects Gallery */
.projects-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.gallery-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.gallery-image {
    height: 180px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.image-placeholder-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary-color);
}

.gallery-project-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 1.5rem 1.5rem 0.75rem;
}

.gallery-project-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    padding: 0 1.5rem 1.5rem;
    line-height: 1.6;
}

.project-status {
    display: inline-block;
    margin: 0 1.5rem 1.5rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
}

.project-status.active {
    background: #dcfce7;
    color: var(--secondary-color);
}

.project-status.planning {
    background: #fef3c7;
    color: #d97706;
}

/* Responsive */
@media (max-width: 968px) {
    .featured-projects-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .components-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 10rem 0 4rem;
    }

    .detail-title {
        font-size: 2rem;
    }

    .achievement-number {
        font-size: 2.5rem;
    }

    .projects-gallery-grid {
        grid-template-columns: 1fr;
    }
}