/* Course Navigation Section */
.course-navigation-section { background: var(--light-gray); }
.course-nav-content h3 { font-weight: 700; color: var(--dark); }
.course-nav-actions .btn { margin-left: .25rem; margin-right: .25rem; }

/* Course Cards */
.course-card { 
    background: #fff; 
    border-radius: 16px; 
    box-shadow: var(--shadow); 
    overflow: hidden; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    height: 100%; 
    border: 1px solid var(--medium-gray, #E9ECEF);
}

.course-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover, 0 6px 25px rgba(10, 132, 199, 0.12)); 
    border-color: var(--primary, #0A84C7);
}

.course-image { 
    position: relative; 
    padding-top: 56%; 
    background: linear-gradient(135deg, var(--light, #F8F9FA) 0%, var(--medium-gray, #E9ECEF) 100%);
}

.course-image img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.course-image-placeholder { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--primary, #0A84C7); 
    font-size: 3rem;
    background: linear-gradient(135deg, var(--light, #F8F9FA) 0%, var(--medium-gray, #E9ECEF) 100%);
}

.course-image-placeholder.large { 
    height: 320px; 
}

.course-content { 
    padding: 24px; 
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.course-title { 
    font-size: 1.25rem; 
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: var(--dark, #1E3A5F);
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta { 
    display: flex; 
    flex-direction: column;
    gap: 12px; 
}

.course-price { 
    font-size: 1.5rem;
    font-weight: 700; 
    color: var(--primary, #0A84C7); 
    margin-bottom: 8px;
}

.course-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.course-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--dark-gray, #6C757D);
    font-weight: 500;
}

.course-details i {
    color: var(--primary, #0A84C7);
    font-size: 0.85rem;
}

.course-btn {
    width: 100%;
    margin-top: auto;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 132, 199, 0.25);
}

/* No Courses Found */
.no-courses-found {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow, 0 4px 20px rgba(10, 132, 199, 0.08));
    border: 1px solid var(--medium-gray, #E9ECEF);
    max-width: 500px;
    margin: 0 auto;
}

.no-courses-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary, #0A84C7) 0%, var(--primary-light, #4A90A4) 100%);
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(10, 132, 199, 0.25);
}

.no-courses-icon i {
    font-size: 2.5rem;
    color: white;
}

.no-courses-found h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark, #1E3A5F);
    margin-bottom: 16px;
}

.no-courses-found p {
    font-size: 1.1rem;
    color: var(--dark-gray, #6C757D);
    line-height: 1.6;
    margin-bottom: 32px;
}

.no-courses-found .btn {
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .course-content {
        padding: 20px;
        gap: 12px;
    }
    
    .course-title {
        font-size: 1.125rem;
        min-height: 2.4rem;
    }
    
    .course-price {
        font-size: 1.25rem;
    }
    
    .course-details {
        gap: 12px;
    }
    
    .no-courses-found {
        padding: 60px 24px;
        margin: 0 16px;
    }
    
    .no-courses-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .no-courses-icon i {
        font-size: 2rem;
    }
    
    .no-courses-found h3 {
        font-size: 1.5rem;
    }
    
    .no-courses-found p {
        font-size: 1rem;
    }
}

/* Enrollment Modal - Modern Design */
.enrollment-modal .modal-content { 
    border-radius: 16px; 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
}

.enrollment-modal .modal-header {
    background: linear-gradient(135deg, var(--primary, #0A84C7) 0%, var(--primary-dark, #1E3A5F) 100%);
    color: white;
    border-bottom: none;
    padding: 24px 32px;
    position: relative;
}

.enrollment-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary, #0A84C7) 0%, var(--secondary, #4A90A4) 50%, var(--primary-dark, #1E3A5F) 100%);
    opacity: 0.9;
    z-index: -1;
}

.enrollment-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.enrollment-modal .modal-title::before {
    content: '\f19d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.enrollment-modal .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.enrollment-modal .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.enrollment-modal .modal-body {
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.enrollment-modal .form-label {
    font-weight: 600;
    color: var(--dark, #1E3A5F);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.enrollment-modal .form-control { 
    border: 2px solid var(--medium-gray, #E9ECEF); 
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.enrollment-modal .form-control:focus {
    border-color: var(--primary, #0A84C7);
    box-shadow: 0 0 0 0.2rem rgba(10, 132, 199, 0.15);
    transform: translateY(-1px);
}

.enrollment-modal .payment-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary, #0A84C7) 0%, var(--secondary, #4A90A4) 100%);
    border: none;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(10, 132, 199, 0.25);
}

.enrollment-modal .payment-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 132, 199, 0.35);
    background: linear-gradient(135deg, var(--secondary, #4A90A4) 0%, var(--primary, #0A84C7) 100%);
}

.enrollment-modal .payment-btn:disabled { 
    opacity: 0.6; 
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(10, 132, 199, 0.15);
}

.enrollment-modal .payment-btn.loading .btn-text { 
    display: none; 
}

.enrollment-modal .payment-btn.loading .btn-loading { 
    display: inline-flex !important; 
}

/* Payment Processing Indicator */
#paymentProcessing {
    background: linear-gradient(135deg, var(--light, #F8F9FA) 0%, rgba(10, 132, 199, 0.05) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(10, 132, 199, 0.1);
    animation: fadeInUp 0.3s ease-out;
}

#paymentProcessing .spinner-border {
    color: var(--primary, #0A84C7);
}

#paymentProcessing p {
    margin-bottom: 0;
    color: var(--dark-gray, #6C757D);
    font-weight: 500;
}

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

.enrollment-modal .modal-footer {
    background: var(--light, #F8F9FA);
    border-top: 1px solid var(--medium-gray, #E9ECEF);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enrollment-modal .modal-footer small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-gray, #6C757D);
    font-weight: 500;
}

.enrollment-modal .modal-footer i {
    color: var(--success, #28A745);
}

/* Form Group Spacing */
.enrollment-modal .mb-3 {
    margin-bottom: 24px;
}

/* Success Modal - Modern Design */
.payment-success-modal .modal-content { 
    border-radius: 16px; 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
}

.payment-success-modal .modal-header {
    background: linear-gradient(135deg, var(--success, #28A745) 0%, #20c997 100%);
    color: white;
    border-bottom: none;
    padding: 24px 32px;
    text-align: center;
}

.payment-success-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.payment-success-modal .modal-title::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
}

.payment-success-modal .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.payment-success-modal .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.payment-success-modal .modal-body {
    padding: 3rem 2rem;
    text-align: center;
}

/* Failed Payment Modal - Modern Design */
#paymentFailedModal .modal-content { 
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(220, 53, 69, 0.15);
    overflow: hidden;
}

#paymentFailedModal .modal-header {
    background: linear-gradient(135deg, var(--danger, #DC3545) 0%, #c82333 100%);
    border: none;
    padding: 1.5rem;
    position: relative;
}

#paymentFailedModal .modal-title {
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
}

#paymentFailedModal .modal-title i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

#paymentFailedModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    font-size: 1.2rem;
    border: none;
    background: none;
    box-shadow: none;
}

#paymentFailedModal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

#paymentFailedModal .modal-body {
    padding: 3rem 2rem;
    text-align: center;
}

.payment-failed-icon {
    margin-bottom: 1.5rem;
}

.payment-failed-icon i {
    font-size: 4rem;
    color: var(--danger, #DC3545);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design for Failed Payment Modal */
@media (max-width: 991.98px) {
    #paymentFailedModal .modal-body {
        padding: 2rem 1.5rem;
    }
    
    #paymentFailedModal .modal-header {
        padding: 1.25rem;
    }
    
    #paymentFailedModal .modal-title {
        font-size: 1.25rem;
    }
    
    .payment-failed-icon i {
        font-size: 3rem;
    }
}

/* Responsive Modal Design */
@media (max-width: 768px) {
    .enrollment-modal .modal-body,
    .payment-success-modal .modal-body {
        padding: 24px;
    }
    
    .enrollment-modal .modal-header,
    .payment-success-modal .modal-header {
        padding: 20px 24px;
    }
    
    .enrollment-modal .modal-footer {
        padding: 16px 24px;
    }
    
    .enrollment-modal .modal-title,
    .payment-success-modal .modal-title {
        font-size: 1.25rem;
    }
    
    .enrollment-modal .payment-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* ========================
   COURSE DETAIL PAGE STYLES
   ======================== */

/* Course Detail Image Container */
.course-image-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow, 0 4px 20px rgba(10, 132, 199, 0.08));
    transition: all 0.3s ease;
}

.course-image-container:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover, 0 6px 25px rgba(10, 132, 199, 0.12));
}

.course-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
}

.course-image-placeholder-detail {
    height: 400px;
    background: linear-gradient(135deg, var(--primary, #0A84C7) 0%, var(--primary-dark, #1E3A5F) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 16px;
}

.course-image-placeholder-detail i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.course-image-placeholder-detail h3 {
    font-weight: 600;
    text-align: center;
    margin: 0;
    opacity: 0.9;
}

/* Course Description Card */
.course-description-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow, 0 4px 20px rgba(10, 132, 199, 0.08));
    border: 1px solid var(--medium-gray, #E9ECEF);
}

.course-section-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary, #0A84C7) 0%, var(--primary-light, #4A90A4) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(10, 132, 199, 0.25);
}

.course-description-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-gray, #6C757D);
    margin: 0;
}

/* Course Details Card */
.course-details-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow, 0 4px 20px rgba(10, 132, 199, 0.08));
    overflow: hidden;
    border: 1px solid var(--medium-gray, #E9ECEF);
    top: 2rem;
}

.course-details-header {
    background: linear-gradient(135deg, var(--primary, #0A84C7) 0%, var(--primary-dark, #1E3A5F) 100%);
    padding: 1.5rem;
    text-align: center;
}

.course-details-content {
    padding: 2rem;
}

.course-detail-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--medium-gray, #E9ECEF);
}

.course-detail-item:last-child {
    border-bottom: none;
}

.course-detail-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-light, #4A90A4) 0%, var(--secondary, #4A90A4) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.course-detail-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-detail-label {
    font-size: 0.9rem;
    color: var(--dark-gray, #6C757D);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.course-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark, #1E3A5F);
}

/* Course CTA Section */
.course-cta-section {
    padding: 2rem;
    background: var(--light, #F8F9FA);
    border-top: 1px solid var(--medium-gray, #E9ECEF);
}

.btn-course-register {
    background: linear-gradient(135deg, var(--primary, #0A84C7) 0%, var(--secondary-dark, #357A8A) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(10, 132, 199, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-course-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 132, 199, 0.35);
    background: linear-gradient(135deg, var(--secondary-dark, #357A8A) 0%, var(--primary, #0A84C7) 100%);
    color: white;
}

.btn-course-register:focus {
    box-shadow: 0 0 0 0.2rem rgba(10, 132, 199, 0.25);
}

.course-cta-benefits {
    margin-top: 1.5rem;
}

.course-benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--dark-gray, #6C757D);
}

.course-benefit-item:last-child {
    margin-bottom: 0;
}

/* Course Hero Enhancements */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Responsive Design for Course Detail */
@media (max-width: 991.98px) {
    .course-detail-image,
    .course-image-placeholder-detail {
        height: 300px;
    }
    
    .course-description-card {
        padding: 2rem;
    }
    
    .course-section-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .course-details-card {
        position: static !important;
        top: auto !important;
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .course-hero {
        padding: 2rem 0;
    }
    
    .course-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .course-price-highlight {
        font-size: 1.1rem;
        padding: 10px 20px;
    }
    
    .course-detail-image,
    .course-image-placeholder-detail {
        height: 250px;
    }
    
    .course-description-card {
        padding: 1.5rem;
    }
    
    .course-details-content {
        padding: 1.5rem;
    }
    
    .course-cta-section {
        padding: 1.5rem;
    }
    
    .btn-course-register {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .course-detail-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }
}