:root {
    --primary-color: #0a486ff7;
    --primary-dark: #073454;
    --primary-light: #0d5a94;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-light: #f8f9fa;
    --border-color: #e5e7eb;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: 0.2s ease;
}
.external-course-detail-container {
    /* max-width: 1400px; */
    margin: 0 auto;
    padding: 2rem 3rem;
    min-height: calc(100vh - 200px);
    background: linear-gradient(-135deg, #bae6fd 0%, #e0f2fe 30%, #ffffff 60%, #f0f9ff 100%);
}

.course-detail-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}

/* Left Panel - Course Details */
.course-details-panel {
    flex: 2;
    min-width: 0; /* Prevents flex item from overflowing */
    border-radius: 12px;
    padding: 2rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: #9ca3af;
}

.course-provider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.provider-logo-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.provider-name-small {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

.course-title-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.instructor-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.instructor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.instructor-details {
    display: flex;
    flex-direction: column;
}

.instructor-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.instructor-name {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 500;
}

.enroll-section {
    margin-top: 2rem;
    width: 20%;
}

.btn-enroll-large {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-enroll-large:hover {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.enrollment-date {
    text-align: center;
    margin-top: 0.75rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.enrollment-count {
    text-align: center;
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Right Panel - Course Image */
.course-image-panel {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.course-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.course-image-bg {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.course-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, #bae6fd 0%, #e0f2fe 30%, #ffffff 60%, #f0f9ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.course-image-placeholder .placeholder-icon {
    font-size: 6rem;
    color: rgba(59, 130, 246, 0.2);
}

/* Bottom Summary Bar */
.course-summary-bar {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.summary-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.summary-description {
    font-size: 0.85rem;
    color: #9ca3af;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

@media (max-width: 1200px) {
    .course-detail-layout {
        flex-direction: column;
    }

    .course-details-panel,
    .course-image-panel {
        flex: 1;
    }

    .course-summary-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .external-course-detail-container {
        padding: 1rem;
    }

    .course-title-large {
        font-size: 1.75rem;
    }

    .course-summary-bar {
        grid-template-columns: 1fr;
    }
}