/* ========================================
   UNIVERSITY PROGRAMS PAGE STYLES
   ======================================== */

/* Page Hero Section */
.page-hero-section {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.pexels.com/photos/3184287/pexels-photo-3184287.jpeg?auto=compress&cs=tinysrgb&w=1200&search_term=university,education,campus,students');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 58, 112, 0.8) 0%, rgba(0, 42, 88, 0.9) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: var(--font-size-sm);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
    color: var(--accent-300);
    font-weight: 600;
}

.page-hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .page-hero-title {
        font-size: var(--font-size-5xl);
    }
}

.page-hero-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Diplomas Section */
.diplomas-section {
    padding: var(--space-20) 0;
    background: var(--silver-50);
}

/* Diploma Filters */
.diploma-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-12);
}

/* Diplomas Grid */
.diplomas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .diplomas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .diplomas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Diploma Card */
.diploma-card {
    position: relative;
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--silver-100);
}

.diploma-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.diploma-card.closed {
    opacity: 0.85;
}

.diploma-card.closed .diploma-image img {
    filter: grayscale(30%);
}

/* Status Badge */
.diploma-status-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    z-index: 2;
}

.diploma-status-badge.available {
    background: var(--success);
    color: white;
}

.diploma-status-badge.closed {
    background: var(--error);
    color: white;
}

/* Diploma Image */
.diploma-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.diploma-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.diploma-card:hover .diploma-image img {
    transform: scale(1.1);
}

.diploma-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-4);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.diploma-university {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

/* Diploma Content */
.diploma-content {
    padding: var(--space-6);
}

.diploma-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--silver-900);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.diploma-content p {
    font-size: var(--font-size-sm);
    color: var(--silver-600);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.diploma-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--silver-100);
}

.diploma-meta .meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--silver-500);
}

.diploma-meta .meta-item svg {
    color: var(--primary-400);
}

/* Diploma Price */
.diploma-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.price-label {
    font-size: var(--font-size-sm);
    color: var(--silver-500);
}

.price-value {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary-500);
}

/* Diploma Actions */
.diploma-actions {
    display: flex;
    gap: var(--space-3);
}

.btn-view-courses {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--primary-50);
    color: var(--primary-600);
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-100);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-view-courses:hover {
    background: var(--primary-100);
    border-color: var(--primary-200);
}

.btn-register {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--primary-500);
    color: white;
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-register:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
}

.btn-register.disabled {
    background: var(--silver-300);
    color: var(--silver-500);
    cursor: not-allowed;
    transform: none;
}

.btn-register.disabled:hover {
    transform: none;
}

/* Back Link */
.back-link-section {
    text-align: center;
    margin-top: var(--space-12);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: white;
    color: var(--primary-500);
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-200);
    transition: all var(--transition-fast);
}

.back-link:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
}

/* ========================================
   COURSES MODAL STYLES
   ======================================== */

.courses-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11050;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    padding: var(--space-4);
}

.courses-modal.active {
    opacity: 1;
    visibility: visible;
}

.courses-modal-content {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
}

.courses-modal.active .courses-modal-content {
    transform: scale(1) translateY(0);
}

.courses-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
}

.modal-title-section h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.modal-title-section p {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.close-modal-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.courses-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-6);
}

/* Course Item in Modal */
.course-item {
    background: var(--silver-50);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    border: 1px solid var(--silver-100);
    transition: all var(--transition-fast);
}

.course-item:last-child {
    margin-bottom: 0;
}

.course-item:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
}

.course-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    color: var(--silver-600);
    font-size: var(--font-size-sm);
}

.empty-state {
    text-align: center;
    color: var(--silver-600);
    padding: var(--space-8);
}

.course-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.course-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-500);
    color: white;
    font-weight: 700;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.course-hours {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: var(--accent-100);
    color: var(--accent-700);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.course-item-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--silver-900);
    margin-bottom: var(--space-2);
}

.course-item-desc {
    font-size: var(--font-size-sm);
    color: var(--silver-600);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

/* Trainer Info */
.trainer-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--silver-100);
    margin-bottom: var(--space-3);
}

.trainer-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary-100);
}

.trainer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-details {
    flex: 1;
}

.trainer-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--silver-900);
}

.trainer-title {
    font-size: var(--font-size-xs);
    color: var(--silver-500);
}

/* Schedule Info */
.schedule-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

@media (max-width: 640px) {
    .schedule-info {
        grid-template-columns: 1fr;
    }
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--silver-100);
}

.schedule-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-400);
    flex-shrink: 0;
}

.schedule-item-content {
    flex: 1;
}

.schedule-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--silver-500);
}

.schedule-value {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--silver-800);
}

@media (max-width: 767px) {
    .diploma-actions {
        flex-direction: column;
    }

    .courses-modal {
        padding: var(--space-3);
    }

    .courses-modal-content {
        max-height: 95vh;
    }
}

/* Copyright Bar */
.copyright-bar {
    padding: var(--space-3) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-4);
    text-align: center;
}

.copyright-bar p {
    font-size: var(--font-size-xs);
    color: var(--silver-500);
}

.copyright-bar a {
    color: var(--accent-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.copyright-bar a:hover {
    color: var(--accent-300);
}
