/* Teaching Section Styles */
.teaching-categories {
    max-width: 1000px;
    margin: 0 auto;
}

.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #37474f;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #156d54;
    border-bottom-color: #156d54;
}

.tab-btn:hover {
    color: #156d54;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Materials Tab */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.material-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.material-card:hover {
    transform: translateY(-5px);
}

.material-icon {
    font-size: 3rem;
    color: #156d54;
    margin-bottom: 1rem;
}

.material-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.material-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.material-link {
    color: #156d54;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.material-link:hover {
    color: #156d54;
}

/* Methodology Tab */
.methodology-content {
    max-width: 800px;
    margin: 0 auto;
}

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.method-number {
    font-size: 2rem;
    font-weight: 700;
    color: #156d54;
    background: rgba(37, 99, 235, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.method-info p {
    color: #64748b;
    line-height: 1.6;
}

/* Courses Tab */
.courses-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

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

.course-header h4 {
    font-size: 1.3rem;
    color: #1e293b;
    margin: 0;
}

.course-level {
    background: #156d54;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.course-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.course-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-details i {
    color: #156d54;
}

.course-link {
    color: #156d54;
    text-decoration: none;
    font-weight: 500;
}

.course-link:hover {
    color: #c98660;
}

/* Pay It Forward Styles */
.payitforward-content {
    max-width: 1000px;
    margin: 0 auto;
}

.payitforward-content h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #1e293b;
}

/* Service Timeline */
.service-timeline {
    margin-bottom: 4rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #156d54;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: #156d54;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    flex: 1;
    max-width: 300px;
}

.timeline-content h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #64748b;
    line-height: 1.6;
}

/* Impact Metrics */
.impact-metrics {
    margin-bottom: 4rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.metric-card {
    background: #faf8f3;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-icon {
    font-size: 2.5rem;
    color: #156d54;
    margin-bottom: 1rem;
}

.metric-label {
    color: #12362b;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.metric-label a {
    color: #12362b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.metric-label a:hover {
    color: #156d54;
    text-decoration: underline;
}

.metric-desc {
    color: #37474f;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Partner Organizations */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: #faf8f3;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-logo {
    font-size: 5rem;
    color: #156d54;
    margin-bottom: 1rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    height: 85px;
    /*max-height: 150px;*/
    max-width: 175px;
    object-fit: contain;
}

.partner-logo-link {
    display: block;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
    cursor: pointer;
}

.partner-logo-link:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

.partner-logo-link:hover .partner-logo {
    color: #156d54;
}

.partner-card h4 {
    color: #12362b;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.partner-card h4 a {
    color: #12362b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.partner-card h4 a:hover {
    color: #156d54;
    text-decoration: underline;
}

.partner-card p {
    color: #37474f;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .courses-carousel {
        grid-template-columns: 1fr;
    }

    .course-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 80px;
    }

    .timeline-year {
        position: absolute;
        left: 0;
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }

    .timeline-content {
        margin: 0;
        max-width: none;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .research-nav,
    .category-tabs {
        margin: 0 15px;
        width: calc(100% - 30px);
    }
    
    .research-nav-btn,
    .tab-btn {
        width: 100%;
        max-width: 200px;
    }
}
