/* MUFEPREC - Programs Page CSS */
/* File Location: css/programs.css */

/* ===== PROGRAMS HERO SECTION ===== */
.programs-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004494 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.programs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.05"><polygon points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.programs-hero .hero-content {
    position: relative;
    z-index: 2;
}

.programs-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.programs-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.highlight-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.highlight-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* ===== PROGRAM NAVIGATION SECTION ===== */
.program-navigation {
    padding: 4rem 0;
    background: white;
    border-bottom: 3px solid var(--accent-color);
}

.nav-title {
    text-align: center;
    margin-bottom: 3rem;
}

.nav-title h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.nav-title p {
    color: #666;
    font-size: 1.1rem;
}

.program-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.program-nav-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.program-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: transform 0.3s ease;
    transform: scaleX(0);
}

.program-nav-card.medical::before {
    background: #dc3545;
}

.program-nav-card.engineering::before {
    background: #17a2b8;
}

.program-nav-card.agricultural::before {
    background: #28a745;
}

.program-nav-card.teaching::before {
    background: #ffc107;
}

.program-nav-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.program-nav-card:hover::before {
    transform: scaleX(1);
}

.nav-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}

.program-nav-card.medical .nav-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.program-nav-card.engineering .nav-icon {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.program-nav-card.agricultural .nav-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.program-nav-card.teaching .nav-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.program-nav-card:hover .nav-icon {
    transform: scale(1.1);
}

.program-nav-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.program-nav-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.nav-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.nav-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-stats i {
    color: var(--accent-color);
}

/* ===== PROGRAM SECTIONS ===== */
.program-section {
    padding: 5rem 0;
    position: relative;
}

.program-section:nth-child(even) {
    background: var(--secondary-color);
}

.program-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--accent-color);
}

.program-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    flex-shrink: 0;
}

.medical-program .program-icon-large {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.engineering-program .program-icon-large {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.agricultural-program .program-icon-large {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.teaching-program .program-icon-large {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.program-title h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.program-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.program-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-badge {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.duration-badge {
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 86, 179, 0.3);
}

.students-badge {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* ===== PROGRAM CONTENT ===== */
.program-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.overview-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
}

.overview-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-box {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== CURRICULUM SECTION ===== */
.curriculum-section {
    margin-bottom: 4rem;
}

.curriculum-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.curriculum-module {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.curriculum-module:hover {
    transform: translateY(-5px);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
}

.module-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.module-header h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0;
}

.module-topics {
    list-style: none;
    padding: 0;
}

.module-topics li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: #555;
}

.module-topics li:last-child {
    border-bottom: none;
}

.module-topics li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* ===== PROGRAM FEATURES ===== */
.program-features {
    margin-bottom: 4rem;
}

.program-features h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== PROGRAM DETAILS ===== */
.program-details {
    margin-bottom: 4rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.detail-card h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.detail-card h4 i {
    color: var(--accent-color);
}

.detail-card ul {
    list-style: none;
    padding: 0;
}

.detail-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.detail-card ul li:last-child {
    border-bottom: none;
}

.detail-card ul li strong {
    color: var(--primary-color);
}

/* ===== PROGRAM CTA ===== */
.program-cta {
    background: linear-gradient(135deg, var(--primary-color), #004494);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
}

.program-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.program-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== PROGRAM COMPARISON ===== */
.program-comparison {
    padding: 4rem 0;
    background: white;
    border-top: 3px solid var(--accent-color);
}

.comparison-table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-table th {
    background: var(--secondary-color);
    font-weight: 600;
    color: var(--primary-color);
}

.comparison-table th:first-child {
    text-align: left;
    background: var(--primary-color);
    color: white;
}

.medical-col {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.engineering-col {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.agricultural-col {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.teaching-col {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: var(--secondary-color);
}

.text-success {
    color: #28a745;
}

.text-muted {
    color: #6c757d;
}

.comparison-cta {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== GENERAL INFO SECTION ===== */
.general-info {
    padding: 5rem 0;
    background: var(--secondary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card ul li strong {
    color: var(--primary-color);
}

/* ===== FINAL CTA SECTION ===== */
.final-cta {
    padding: 5rem 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.final-cta p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.urgency-elements {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.urgency-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
}

.urgency-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.final-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .programs-hero h1 {
        font-size: 2.5rem;
    }
    
    .programs-hero p {
        font-size: 1.1rem;
    }
    
    .hero-highlights {
        gap: 2rem;
    }
    
    .highlight-item i {
        font-size: 2rem;
    }
    
    .program-nav-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .program-nav-card {
        margin: 0 1rem;
    }
    
    .program-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .program-icon-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .program-title h2 {
        font-size: 2rem;
    }
    
    .program-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .overview-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .stat-box {
        flex: 1;
        margin: 0 0.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .program-cta {
        padding: 2rem;
    }
    
    .program-cta h3 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .comparison-table-container {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
    
    .comparison-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .urgency-elements {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .final-cta h2 {
        font-size: 2.2rem;
    }
    
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .programs-hero {
        padding: 3rem 0;
    }
    
    .programs-hero h1 {
        font-size: 2rem;
    }
    
    .program-navigation,
    .program-section,
    .general-info {
        padding: 3rem 0;
    }
    
    .program-nav-card,
    .curriculum-module,
    .feature-card,
    .detail-card,
    .info-card {
        margin: 0 0.5rem;
    }
    
    .program-cta {
        margin: 2rem 0.5rem 0;
        padding: 1.5rem;
    }
    
    .overview-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-box {
        margin: 0;
    }
    
    .program-badges {
        justify-content: center;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .final-cta {
        padding: 3rem 0;
    }
    
    .final-cta h2 {
        font-size: 1.8rem;
    }
    
    .urgency-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===== ACCESSIBILITY ===== */
.program-nav-card:focus,
.curriculum-module:focus,
.feature-card:focus,
.info-card:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .program-navigation,
    .program-cta,
    .final-cta,
    .chatbot-container {
        display: none !important;
    }
    
    .program-section {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .program-nav-card,
    .curriculum-module,
    .feature-card,
    .detail-card,
    .info-card {
        border: 2px solid var(--text-color);
    }
    
    .comparison-table {
        border: 2px solid var(--text-color);
    }
    
    .badge {
        border: 1px solid currentColor;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .program-nav-card,
    .curriculum-module,
    .feature-card,
    .info-card {
        transition: none;
    }
    
    .programs-hero h1,
    .programs-hero p,
    .highlight-item {
        animation: none;
    }
    
    .pulse-animation {
        animation: none;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SECTION TRANSITIONS ===== */
.program-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.program-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LOADING STATES ===== */
.loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #666;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}