/* =========================================
   RIGHT SIDE: PROFESSIONAL COURSE STYLES
========================================= */

/* 1. Card Layout & Structure */
.border-right-pro {
    border-left: none !important; 
    border-right: 10px solid var(--astro-primary); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.border-right-pro:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(128, 0, 0, 0.12);
    border-right-color: var(--astro-accent);
}

/* 2. Course Info Grid (Bold Badges) */
.course-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
    background: transparent;
}

.course-info-grid p {
    margin-bottom: 0;
    font-size: 1.1rem; 
    color: #000000; 
    font-weight: 800; 
    background: #f8f9fa; 
    padding: 12px 15px;
    border-left: 5px solid var(--astro-accent); 
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.course-info-grid strong {
    color: var(--astro-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* 3. Action Buttons & Contact */
.course-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pro-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: var(--astro-primary) !important;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid var(--astro-primary);
    border-radius: 50px;
    transition: 0.3s;
    letter-spacing: 0.1rem;
}

.pro-contact-link:hover {
    background: #fff5f5;
    transform: scale(1.02);
}

.btn-astro-enroll {
    background: linear-gradient(135deg, var(--astro-primary) 0%, #a50000 100%);
    color: white !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 18px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-astro-enroll:hover {
    background: var(--astro-accent);
    color: var(--astro-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* 4. Loading Spinner Animation */
.loading-spinner-wrapper {
    animation: fadeInSpinner 0.5s ease-in-out;
}

@keyframes fadeInSpinner {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.spinner-border.text-danger {
    color: var(--astro-primary) !important; /* Matches your brand red */
}

/* 5. Modal Custom Styling */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 4px solid var(--astro-accent) !important;
}

.form-control {
    padding: 12px;
    border: 2px solid #eee;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--astro-primary);
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.1);
}

/* 6. Responsive Adjustments */
@media (max-width: 768px) {
    .course-info-grid {
        grid-template-columns: 1fr;
    }
    .border-right-pro {
        border-right-width: 6px;
    }
}