/* Programs Page Specific Styles */

/* Hero Section */
.programs-hero {
    background: linear-gradient(rgba(0, 109, 119, 0.8), rgba(0, 109, 119, 0.8)), url('../images/programs-hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.programs-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.programs-hero .lead {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb {
    background-color: transparent;
    justify-content: center;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #fff;
    font-weight: 500;
}

/* Filter Section */
.programs-filter-section {
    padding: 50px 0;
    background-color: #f8f9fa;
    position: relative;
    z-index: 2;
    margin-top: -30px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.filter-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-box h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.input-group-text {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.form-control, .form-select {
    height: 50px;
    border-radius: 0;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 109, 119, 0.25);
}

/* Featured Programs */
.featured-programs-section {
    padding: 80px 0 40px;
    background-color: #fff;
}

.featured-program-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.featured-program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.program-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-program-card:hover .program-image img {
    transform: scale(1.05);
}

.program-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.program-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-meta {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    font-weight: 600;
    padding: 6px 12px;
    font-size: 12px;
    text-transform: uppercase;
}

.program-date {
    font-size: 14px;
    color: var(--text-light);
}

.program-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.program-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.program-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-color);
}

.stat-item i {
    margin-right: 8px;
    color: var(--primary-color);
}

.program-details-btn {
    align-self: flex-start;
}

/* All Programs Section */
.all-programs-section {
    padding: 60px 0 80px;
    background-color: #f8f9fa;
}

.program-count {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
}

.program-count span {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 20px;
}

.program-card {
    margin-bottom: 30px;
}

.program-card-inner {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.program-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.program-card .program-image {
    height: 200px;
}

.program-card .program-content {
    padding: 20px;
}

.program-card h3 {
    font-size: 18px;
}

.program-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.program-counties {
    font-size: 14px;
    color: var(--text-light);
}

.program-counties i {
    color: var(--primary-color);
    margin-right: 5px;
}

#loadMorePrograms {
    padding: 12px 40px;
    font-weight: 600;
}

/* Program Impact Section */
.program-impact-section {
    padding: 80px 0;
    background-color: #fff;
}

.impact-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.impact-image img {
    width: 100%;
    height: auto;
    display: block;
}

.impact-stats-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 80%;
    z-index: 1;
}

.impact-stats-box .stat-item {
    text-align: center;
    padding: 0 15px;
}

.impact-stats-box .stat-item h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
}

.impact-stats-box .stat-item p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

.impact-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 109, 119, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.feature-content p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 15px;
}

/* Program Partners Section */
.program-partners-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.partners-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.partner-logo {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    width: 200px;
    transition: all 0.3s ease;
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* CTA Section */
.programs-cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 109, 119, 0.9), rgba(0, 109, 119, 0.9)), url('../images/programs-cta-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
}

.cta-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-box h2 {
    color: #fff;
    margin-bottom: 20px;
}

.cta-box p {
    margin-bottom: 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* Program Modal */
.program-meta-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-item i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.program-description {
    margin-bottom: 20px;
}

.program-objectives, .program-achievements {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.program-objectives h4, .program-achievements h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.program-objectives ul, .program-achievements ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.program-objectives li, .program-achievements li {
    margin-bottom: 8px;
    position: relative;
}

.program-objectives li::before, .program-achievements li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .impact-stats-box {
        max-width: 90%;
    }
    
    .partner-logo {
        width: 180px;
        height: 110px;
    }
}

@media (max-width: 991.98px) {
    .programs-hero {
        padding: 100px 0 60px;
    }
    
    .programs-hero h1 {
        font-size: 36px;
    }
    
    .featured-program-card {
        margin-bottom: 30px;
    }
    
    .impact-stats-box {
        position: static;
        margin-top: 30px;
        max-width: 100%;
    }
    
    .impact-image img {
        margin-bottom: 0;
    }
    
    .partner-logo {
        width: 160px;
        height: 100px;
        padding: 15px;
    }
}

@media (max-width: 767.98px) {
    .programs-hero {
        padding: 80px 0 40px;
    }
    
    .programs-hero h1 {
        font-size: 32px;
    }
    
    .programs-hero .lead {
        font-size: 18px;
    }
    
    .filter-box {
        padding: 20px;
    }
    
    .program-card .program-image {
        height: 180px;
    }
    
    .partner-logo {
        width: 140px;
        height: 90px;
        padding: 10px;
    }
    
    .cta-box {
        padding: 30px;
        text-align: center;
    }
    
    .cta-box .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .programs-hero h1 {
        font-size: 28px;
    }
    
    .featured-program-card .program-image {
        height: 200px;
    }
    
    .program-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .partner-logo {
        width: 120px;
        height: 80px;
    }
    
    #programModal .modal-body .row {
        flex-direction: column;
    }
    
    #programModal .carousel {
        margin-bottom: 20px;
    }
}