/* Programs Section Styles */
.programs-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.programs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.3)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat top;
    background-size: cover;
    opacity: 0.5;
    pointer-events: none;
}

.programs-section .container {
    position: relative;
    z-index: 2;
}

.programs-section .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.programs-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.programs-section .lead {
    font-size: 1.2rem;
    color: #5a6c7d;
    margin-bottom: 3rem;
}

/* Program Card */
.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

/* Program Image */
.program-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s ease;
}

.program-card:hover .program-card-image img {
    transform: scale(1.1);
}

.program-card-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 2;
}

.program-card-featured {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    z-index: 2;
    animation: pulse-featured 2s infinite;
}

@keyframes pulse-featured {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Program Body */
.program-card-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.program-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.program-card:hover .program-card-title a {
    color: #667eea;
}

.program-card-excerpt {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

/* Program Footer */
.program-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.program-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.program-card-meta i {
    color: #667eea;
}

.program-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(102, 126, 234, 0.1);
}

.program-card-link:hover {
    background: #667eea;
    color: white;
    transform: translateX(-5px);
}

.program-card-link i {
    transition: transform 0.3s ease;
}

.program-card-link:hover i {
    transform: translateX(-3px);
}

/* View All Button */
.view-all-programs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.view-all-programs:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    color: white;
}

.view-all-programs i {
    transition: transform 0.3s ease;
}

.view-all-programs:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .programs-section {
        padding: 60px 0;
    }
    
    .programs-section .section-title {
        font-size: 2rem;
    }
    
    .programs-section .lead {
        font-size: 1rem;
    }
    
    .program-card-image {
        height: 200px;
    }
    
    .program-card-body {
        padding: 20px;
    }
    
    .program-card-title {
        font-size: 1.2rem;
    }
    
    .program-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .view-all-programs {
        width: 100%;
        justify-content: center;
    }
}

/* Animation Classes */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}
