/* Program Detail Page Styles */

/* Hero Section */
.program-hero {
    background: linear-gradient(135deg, rgba(10, 56, 20, 0.9), rgba(45, 112, 64, 0.8)), url('/static/images/base2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 70vh;
    padding: 120px 0 80px 0;
    position: relative;
    margin-top: 80px;
    transition: background-image 0.5s ease-in-out;
}

.program-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: #d4af37 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #fff !important;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

/* Program Level Badge */
.program-level-badge {
    display: inline-block;
}

.level-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #2d5a27;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.level-1 { border-left: 4px solid #28a745; }
.level-2 { border-left: 4px solid #17a2b8; }
.level-3 { border-left: 4px solid #ffc107; }
.level-4 { border-left: 4px solid #dc3545; }

/* Program Quick Info */
.program-quick-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.info-item i {
    color: #d4af37;
    font-size: 1.1rem;
}

.info-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37, #e6c547);
    color: #0a3814;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 2rem;
    border-radius: 8px;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #e6c547, #d4af37);
    color: #0a3814;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Program Image */
.program-image-container {
    position: relative;
    text-align: center;
}

.program-hero-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.program-hero-image:hover {
    transform: scale(1.02);
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.section-title {
    color: #2d5a27;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    border-radius: 2px;
}

.program-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8ecef;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.module-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.module-title {
    color: #2d5a27;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

.module-credits {
    background: #e8f5e8;
    color: #2d5a27;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.module-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.module-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.detail-item i {
    color: #2d5a27;
}

/* Learning Outcomes */
.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.outcome-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecef;
    transition: all 0.3s ease;
}

.outcome-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.outcome-item i {
    color: #28a745;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.outcome-item h5 {
    color: #2d5a27;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.outcome-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Requirements */
.requirements-list {
    margin-top: 2rem;
}

/* Learning Outcomes and Admission Requirements Lists */
.learning-outcomes-list,
.admission-requirements-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.learning-outcomes-list li,
.admission-requirements-list li {
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e8ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 3rem;
}

.learning-outcomes-list li::before {
    content: "✓";
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    color: #28a745;
    font-weight: bold;
    font-size: 1.3rem;
    background: rgba(40, 167, 69, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.admission-requirements-list li::before {
    content: "•";
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    color: #2d5a27;
    font-weight: bold;
    font-size: 1.8rem;
    line-height: 1;
    background: rgba(45, 90, 39, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.learning-outcomes-list li:hover,
.admission-requirements-list li:hover {
    background: linear-gradient(135deg, #f0f9f4 0%, #ffffff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.12);
    border-color: #cbd5e1;
}

.learning-outcomes-list li {
    color: #334155;
    line-height: 1.7;
}

.admission-requirements-list li {
    color: #334155;
    line-height: 1.7;
}

/* Note text styling */
.admission-requirements-list + p.text-muted {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
    border: 1px solid #ffe082;
    border-radius: 12px;
    font-style: italic;
    color: #856404;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.requirement-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
    border: 1px solid #e8ecef;
    transition: all 0.3s ease;
}

.requirement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.12);
    border-color: #cbd5e1;
}

.requirement-item i {
    color: #2d5a27;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.requirement-item h5 {
    color: #2d5a27;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.requirement-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Sidebar */
.program-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #2d5a27 0%, #3d7a3d 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

.info-list {
    margin: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px dashed #e2e8f0;
    transition: all 0.2s ease;
}

.info-row:hover {
    background: rgba(45, 90, 39, 0.02);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 8px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
}

.info-row .value {
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: right;
}

/* Contact Info */
.contact-info {
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2d5a27 0%, #3d7a3d 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.contact-item:hover::before {
    transform: scaleY(1);
}

.contact-item i {
    color: #2d5a27;
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    background: rgba(45, 90, 39, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background: #2d5a27;
    color: #ffffff;
    transform: scale(1.1);
}

.contact-item a,
.contact-item span {
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-item:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 24px rgba(45, 90, 39, 0.12);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.contact-item a:hover {
    color: #2d5a27;
    text-decoration: none;
}

/* Related Programs */
.related-program-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.related-program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.related-program-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.related-program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.related-program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 56, 20, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-program-card:hover .related-program-overlay {
    opacity: 1;
}

.related-program-body {
    padding: 1.5rem;
}

.related-program-title {
    color: #2d5a27;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.related-program-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.related-program-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    background: #e8f5e8;
    color: #2d5a27;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Call to Action */
.bg-primary {
    background: linear-gradient(135deg, #2d5a27, #4a7c59) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .program-hero {
        min-height: 60vh;
        padding: 100px 0 60px 0;
        background-attachment: scroll;
    }
    
    .program-quick-info {
        gap: 1rem;
    }
    
    .info-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .program-hero-image {
        height: 250px;
        margin-top: 2rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .outcomes-grid {
        grid-template-columns: 1fr;
    }
    
    .program-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .program-hero h1 {
        font-size: 2rem;
    }
    
    .program-hero .lead {
        font-size: 1rem;
    }
    
    .info-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .program-description {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .module-card {
        padding: 1.25rem;
    }
    
    .outcome-item,
    .requirement-item {
        padding: 1.25rem;
    }
    
    .sidebar-card {
        padding: 1.25rem;
    }
}

/* Animation for content sections */
.content-section {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
