/* ===================================
   Innovations/Projects Page Styles
   Full Responsive Design
   =================================== */

/* Projects Overview Section */
.projects-overview {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 3rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.overview-stat {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(to bottom, var(--light-gray), var(--white));
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

.overview-stat h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.overview-stat p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin: 0;
}

/* Project Cards */
.project-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: var(--transition-fast);
}

.project-card:hover {
    box-shadow: var(--shadow-large);
    transform: translateY(-5px);
}

.project-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
    color: var(--white);
    padding: 2rem;
}

.project-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-title h3 {
    color: var(--white);
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.project-status {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.project-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
}

.project-body {
    padding: 2rem;
}

.project-overview {
    margin-bottom: 2rem;
}

.project-overview p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-medium);
}

/* Project Metrics */
.project-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric {
    text-align: center;
    padding: 1.25rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.metric i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Key Features */
.key-features {
    margin: 2rem 0;
}

.key-features h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

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

.feature-item {
    padding: 1.25rem;
    background: var(--light-gray);
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

.feature-item h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.feature-item p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Impact Areas */
.impact-areas {
    margin: 2rem 0;
}

.impact-areas h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.impact-list {
    list-style: none;
    padding: 0;
}

.impact-list li {
    padding: 1rem;
    margin: 0.75rem 0;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.impact-list i {
    color: var(--secondary-green);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.impact-list strong {
    color: var(--text-dark);
}

/* Partnership Section */
.partnership-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--secondary-light-blue);
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

.partnership-section h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.partnership-section ul {
    list-style: none;
    padding: 0;
}

.partnership-section li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.partnership-section li::before {
    content: "→";
    color: var(--primary-blue);
    font-weight: 600;
    margin-right: 0.75rem;
}

/* Budget Breakdown */
.budget-breakdown {
    margin: 2rem 0;
}

.budget-breakdown h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.budget-table {
    width: 100%;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
}

.budget-table table {
    width: 100%;
    border-collapse: collapse;
}

.budget-table thead {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
    color: var(--white);
}

.budget-table th,
.budget-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.budget-table th {
    font-weight: 600;
}

.budget-table tbody tr:hover {
    background: var(--light-gray);
}

.budget-table tfoot {
    background: var(--light-gray);
    font-weight: 600;
}

/* Funding Status */
.funding-status {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(to right, var(--secondary-light-blue), var(--light-gray));
    border-radius: 12px;
    border-left: 4px solid var(--status-warning);
}

.funding-status h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.funding-amount {
    font-size: 2rem;
    font-weight: 600;
    color: var(--status-warning);
    margin: 1rem 0;
}

.funding-note {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* Timeline */
.project-timeline {
    margin: 2rem 0;
}

.project-timeline h4 {
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 40px;
    bottom: -15px;
    width: 2px;
    background: var(--medium-gray);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 35px;
    height: 35px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.timeline-content h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin: 0;
}

/* Portfolio Summary Table */
.portfolio-summary {
    margin: 3rem 0;
    overflow-x: auto;
}

.portfolio-table {
    width: 100%;
    min-width: 800px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.portfolio-table table {
    width: 100%;
    border-collapse: collapse;
}

.portfolio-table thead {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
    color: var(--white);
}

.portfolio-table th,
.portfolio-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.portfolio-table tbody tr:hover {
    background: var(--light-gray);
}

.portfolio-table tfoot {
    background: var(--secondary-light-blue);
    font-weight: 600;
    font-size: 1.05rem;
}

/* ===================================
   Tablet Responsive (768px - 1024px)
   =================================== */
@media (max-width: 1024px) {
    .project-metrics,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .budget-table th,
    .budget-table td {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

/* ===================================
   Mobile Responsive (Below 768px)
   =================================== */
@media (max-width: 768px) {
    .projects-overview {
        padding: 1.5rem;
    }

    .overview-stats,
    .project-metrics,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-header {
        padding: 1.5rem;
    }

    .project-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .project-title h3 {
        font-size: 1.35rem;
        min-width: auto;
    }

    .project-status {
        font-size: 0.85rem;
        padding: 0.4rem 0.85rem;
    }

    .project-body {
        padding: 1.5rem;
    }

    .metric {
        padding: 1rem;
    }

    .metric i {
        font-size: 1.75rem;
    }

    .metric-value {
        font-size: 1.35rem;
    }

    .feature-item,
    .impact-list li {
        padding: 1rem;
    }

    .timeline-item {
        gap: 1rem;
    }

    .timeline-dot {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .timeline-item::before {
        left: 14px;
    }

    .timeline-content {
        padding: 0.85rem;
    }

    .funding-amount {
        font-size: 1.65rem;
    }

    .partnership-section,
    .funding-status {
        padding: 1.25rem;
    }

    /* Make tables horizontally scrollable on mobile */
    .portfolio-summary {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .budget-table,
    .portfolio-table {
        min-width: 600px;
    }

    .budget-table th,
    .budget-table td,
    .portfolio-table th,
    .portfolio-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   Small Mobile (Below 480px)
   =================================== */
@media (max-width: 480px) {
    .overview-stat h3 {
        font-size: 1.65rem;
    }

    .project-header {
        padding: 1.25rem;
    }

    .project-title h3 {
        font-size: 1.2rem;
    }

    .project-body {
        padding: 1.25rem;
    }

    .metric-value {
        font-size: 1.25rem;
    }

    .metric-label {
        font-size: 0.85rem;
    }

    .funding-amount {
        font-size: 1.5rem;
    }

    .budget-table,
    .portfolio-table {
        min-width: 500px;
    }

    .budget-table th,
    .budget-table td,
    .portfolio-table th,
    .portfolio-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }
}
