/* static/css/programs.css */
:root {
    --primary-green: #056e33;
    --secondary-brown: #8b4513;
    --accent-yellow: #ffd700;
    --light-gray: #f8f9fa;
}

.programs-container {
    min-height: 80vh;
}

.sidebar {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.sidebar-toggle {
    display: none;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-weight: 500;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1030;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 110, 51, 0.3);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.sidebar-toggle:hover {
    background: var(--secondary-brown);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(5, 110, 51, 0.4);
}

.sidebar-toggle i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.sidebar-toggle .btn-text {
    font-size: 0.6rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-card-sidebar {
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.program-card-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
}

.program-card-sidebar.active {
    border-color: var(--primary-green);
    background: linear-gradient(145deg, #ffffff 0%, #f0f8f4 100%);
    box-shadow: 0 5px 20px rgba(5, 110, 51, 0.15);
}

.program-icon-sidebar {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.program-card-sidebar.active .program-icon-sidebar {
    background: var(--accent-yellow);
    color: var(--primary-green);
}

.detail-panel {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 600px;
    overflow: hidden;
}

.detail-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-brown) 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.detail-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-yellow);
}

.detail-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
}

.detail-content {
    padding: 2rem;
}

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

.objectives-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.objectives-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.methodology-step {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-green);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.methodology-step:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.methodology-step h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}

.methodology-step small {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    display: block;
    line-height: 1.5;
    overflow: hidden;
}

.methodology-step div {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.methodology-step .d-flex div {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.program-detail-section {
    display: none;
}

.program-detail-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

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

.testimonial-section {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-green);
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--accent-yellow);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: var(--primary-green);
    font-family: Georgia, serif;
    opacity: 0.3;
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.testimonial-author-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--primary-green);
}

.testimonial-author-info small {
    color: #6c757d;
    display: block;
}

.testimonial-impact {
    background: rgba(5, 110, 51, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    border-left: 3px solid var(--primary-green);
}

.testimonial-impact .impact-label {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.testimonial-impact .impact-value {
    font-size: 0.85rem;
    color: #333;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 2rem;
}

.testimonials-header h5 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.testimonials-header .subtitle {
    color: #6c757d;
    font-size: 0.9rem;
}

.view-more-testimonials {
    text-align: center;
    margin-top: 1.5rem;
}

.view-more-testimonials .btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-more-testimonials .btn:hover {
    background: var(--secondary-brown);
    transform: translateY(-2px);
}

.program-stats {
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

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

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-brown) 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.cta-section .btn {
    background: var(--accent-yellow);
    color: var(--primary-green);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 350px;
        height: 100vh;
        overflow-y: auto;
        z-index: 1050;
        margin-bottom: 0;
        border-radius: 0;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar-toggle {
        display: flex !important;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .detail-panel {
        width: 100%;
    }
    
    .programs-container {
        min-height: auto;
    }
    
    .sidebar-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: var(--primary-green);
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 300px;
    }
    
    .program-card-sidebar {
        padding: 1rem;
    }
    
    .detail-header {
        padding: 1.5rem;
    }
    
    .detail-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .detail-content {
        padding: 1.5rem;
    }
    
    .testimonial-section {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .testimonial-avatar {
        align-self: center;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}