/* Program detail page styles */
.program-detail-page {
    background-color: var(--green-3);
    color: #333;
}

/* Program Header Container - New wrapper for header and logo */
.program-header-container {
    position: relative;
    margin-top: 70px;
    margin-bottom: 100px; /* Space for logo that extends below */
    padding: 0 20px; /* Added left and right padding */
}

.program-header {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.program-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-header-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
}

/* Logo positioned outside header, at the bottom with half overlay */
.program-logo {
    position: absolute;
    bottom: -75px; /* Half of logo height (150px / 2) extends below header */
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background-color: white;
    border-radius: 50%;
    padding: 10px;
    border: 7px solid var(--green-3);
    z-index: 20; /* Higher z-index to appear above header and other elements */
}

.program-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.default-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--green-1);
    border-radius: 50%;
}

.default-logo i {
    font-size: 3rem;
    color: white;
}

.program-title {
    margin-top: 80px; /* Space for the overlaying logo */
    text-align: center;
    padding: 0 20px;
}

.program-title h1 {
    font-weight: 600;
    color: var(--green-1);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.program-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0 40px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.meta-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.meta-item i {
    color: var(--green-1);
    font-size: 1.2rem;
}

.meta-item span {
    font-weight: 500;
}

.program-status {
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-upcoming {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.status-ongoing {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.status-ended {
    background-color: #fafafa;
    color: #616161;
}

.program-description {
    margin-bottom: 50px;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.program-description:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.program-description p.lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
}

.program-section {
    margin-bottom: 60px;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    color: var(--green-1);
    font-weight: 700;
    font-size: 1.8rem;
}

.section-title::after {
    display: none;
}

.program-stat {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--green-1);
}

.program-stat:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--green-1);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--green-1);
}

.stat-label {
    color: #6c757d;
    font-size: 1rem;
}

/* Horizontal stats style (for second row) */
.program-stat-horizontal {
    background-color: white;
    border-radius: 15px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--green-2);
}

.program-stat-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon-horizontal {
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.program-stat-horizontal:hover .stat-icon-horizontal {
    transform: rotate(10deg);
}

.stat-content {
    flex-grow: 1;
}

.stat-label-horizontal {
    color: #555;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.stat-value-horizontal {
    color: var(--green-1);
    font-weight: 700;
    font-size: 1.3rem;
}

.outcome-item {
    background-color: white;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--green-2);
}

.outcome-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.outcome-icon {
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    flex-shrink: 0;
}

.program-status {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.program-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.status-upcoming {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.status-ongoing {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.status-ended {
    background-color: #fafafa;
    color: #616161;
}

.card-body {
    padding: 25px;
}

.card-title {
    color: var(--green-1);
    font-weight: 700;
    margin-bottom: 15px;
}

.card-text {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--green-2), var(--green-1));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-secondary {
    color: var(--green-1);
    border: 2px solid var(--green-1);
    background: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--green-1);
    color: white;
    border-color: var(--green-1);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

.btn-outline-primary {
    color: var(--green-1);
    border: 2px solid var(--green-1);
}

.btn-outline-primary:hover {
    background-color: var(--green-1);
    border-color: var(--green-1);
    color: white;
}

.cta-section {
    background: linear-gradient(135deg, rgba(var(--green-1-rgb), 0.05), rgba(var(--green-2-rgb), 0.1));
    padding: 80px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(var(--green-1-rgb), 0.1);
}

.cta-section h2 {
    color: var(--green-1);
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 2.2rem;
}

.cta-section p.lead {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.alert {
    border-radius: 15px;
    padding: 20px 25px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.alert-info {
    background-color: rgba(var(--green-2-rgb), 0.1);
    color: var(--green-1);
}

.alert i {
    color: var(--green-1);
    margin-right: 10px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .program-header-container {
        margin: 20px 10px 120px 10px;
        padding: 0 15px; /* Adjusted padding for mobile */
    }
    
    .program-header {
        height: 250px;
    }
    
    .program-logo {
        width: 120px;
        height: 120px;
        bottom: -60px; /* Adjust for smaller logo */
    }
    
    .program-title {
        margin-top: 80px;
        padding: 0 15px;
    }
    
    .program-title h1 {
        font-size: 2rem;
    }
    
    .program-meta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .event-count {
        font-size: 0.9em;
        color: var(--green-1);
        font-weight: normal;
    }
    
    .event-number {
        color: #9b4848; /* Brown color */
        font-weight: 600; /* Semi-bold */
        font-size: 0.9em;
    }
    
    .section-title {
        position: relative;
        margin-bottom: 25px; /* Slightly reduced since there's no line */
        padding-bottom: 0; /* Remove padding that was making space for the line */
        color: var(--green-1);
        font-weight: 700;
        font-size: 1.8rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p.lead {
        font-size: 1.1rem;
        max-width: 95%;
    }
}

/* Custom: Reduce gap between stats columns on program detail */
.program-detail-stats-row {
    gap: 0.5rem !important;
}

/* Custom: Extra margin below overview section */
.program-overview-section {
    margin-bottom: 3rem !important;
}