/**
 * Programs Custom Post Type Styles
 *
 * @package Online_Degree_Academy
 */

/* Program Cards */
.program-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

/* University Image */
.university-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.university-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 15px 15px;
    color: white;
}

.university-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Program Details */
.program-details {
    padding: 20px;
}

.program-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.program-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.program-title a:hover {
    color: #007bff;
}

.specialization {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Program Info */
.program-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

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

.info-item img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Pricing */
.program-pricing {
    margin-bottom: 20px;
    text-align: center;
}

.discounted-price {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 5px;
}

.original-price {
    font-size: 1.1rem;
    color: #666;
    text-decoration: line-through;
}

.regular-price {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

/* Program Actions */
.program-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.program-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: white;
}

.vector-icon {
    vertical-align: middle;
    margin-right: 5px;
}

/* Single Program Page */
.program-single {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.program-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.program-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.university-name {
    font-size: 1.5rem;
    color: #666;
    font-weight: 500;
}

.program-featured-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.program-details-card,
.program-description,
.pricing-card,
.university-image-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.program-details-card h3,
.program-description h3,
.pricing-card h3,
.university-image-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

.detail-item {
    margin-bottom: 10px;
}

.detail-item strong {
    color: #333;
    margin-right: 10px;
}

.program-content .content {
    line-height: 1.6;
    color: #555;
}

/* Archive Page */
.archive-header {
    margin-bottom: 40px;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.programs-pagination {
    margin-top: 40px;
    text-align: center;
}

.programs-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.programs-pagination .page-numbers:hover,
.programs-pagination .page-numbers.current {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.no-programs-found {
    padding: 60px 20px;
}

.no-programs-found h3 {
    color: #666;
    margin-bottom: 15px;
}

/* View All Programs Button */
.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .program-title {
        font-size: 2rem;
    }
    
    .university-name {
        font-size: 1.2rem;
    }
    
    .info-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .program-actions {
        flex-direction: column;
    }
    
    .program-actions .btn {
        min-width: auto;
    }
    
    .archive-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .program-single {
        padding: 20px;
    }
    
    .program-title {
        font-size: 1.8rem;
    }
    
    .archive-title {
        font-size: 1.8rem;
    }
}
