/* ========================================
   PROGRAM INFO CARDS
   CSS for the bottom detailed program info cards
   with colored headers and detailed information
   ======================================== */

/* Program Info Cards Grid */
.programs-grid-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Bottom Program Cards - Info cards with colored headers */
.program-card-info {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;

    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    text-decoration: none !important;
    color: inherit !important;
}

.program-card-info:hover {
    transform: translateY(-5px);

    border-color: #ccc;
}

/* Info Card Level Meta Line - Top Right Corner */
.info-level-meta-line {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Info Card Navigation Controls */
.info-nav-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
    z-index: 20;
}

.info-level-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.info-level-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.info-level-nav.prev {
    margin-left: -5px;
}

.info-level-nav.next {
    margin-right: -5px;
}

/* Colored Headers for Bottom Program Cards */
.program-card-info.rh .card-header { background: #8A2BE2; }
.program-card-info.bb .card-header { background: #FFD700; color: #333; }
.program-card-info.bck .card-header { background: #FF69B4; }
.program-card-info.tc .card-header { background: #E74C3C; }
.program-card-info.gt .card-header { background: #34495E; }

.program-card-info.test .card-header { background: #667eea; }
.program-card-info.w .card-header { background: #1ABC9C; }

.card-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.card-header .program-code {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.card-header .program-name {
    font-size: 16px;
    font-weight: 500;
}

.card-body {
    padding: 20px;
    color: #333;
}

.program-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    white-space: pre-line;
}

.program-info-container {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.program-info-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.program-info-item .info-label {
    width: auto;
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.program-info-item .info-value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.card-footer {
    padding: 0 20px 20px;
    text-align: right;
}

.route-link {
    display: inline-block;
    padding: 4px 7.5px;
    background: #0066cc;
    color: white !important;
    border-radius: 5px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.route-link:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .programs-grid-info-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-header {
        padding: 12px 15px;
    }
    
    .card-header .program-code {
        font-size: 20px;
    }
    
    .card-header .program-name {
        font-size: 14px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .program-info-container {
        flex-direction: column;
        gap: 10px;
    }
}

