/* Course Detail Modern Styles */
:root {
    --detail-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-muted: #6c757d;
    --success-color: #28a745;
    --whatsapp-color: #25D366;
    --call-color: #007bff;
    --form-color: #ff9800;
}

body {
    background-color: var(--detail-bg);
    padding-top: 100px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Breadcrumb & Header Area */
.course-detail-hero {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 80px;
    margin-bottom: -40px; /* Overlap effect */
    position: relative;
}

.course-meta-top {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.course-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-title-large {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.course-stats {
    display: flex;
    gap: 30px;
    font-size: 0.95rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    color: var(--primary-color); /* Use primary color from main style */
}

/* Main Layout Grid */
.course-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

/* Left Column */
.course-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.course-preview-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1/1;
}

.course-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.tab-nav {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.tab-btn {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: #eef3ff;
    color: var(--secondary-color);
    border-radius: 10px 10px 0 0;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn.active {
    background: #ffffff;
    color: var(--primary-color);
    border-bottom-color: #ffffff;
}
.tab-panels {
    width: 100%;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--secondary-color);
}

.course-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.course-curriculum-list {
    list-style: none;
}

.curriculum-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

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

.curriculum-item:hover {
    background-color: var(--light-bg);
}

.curriculum-icon {
    margin-right: 10px;
    color: var(--text-muted);
}

/* Right Column (Sidebar) */
.course-sidebar {
    position: relative;
}

.course-price-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px; /* Sticky top offset */
    border-top: 5px solid var(--primary-color);
}

.price-header {
    margin-bottom: 25px;
    text-align: center;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-left: 10px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* New Buttons Styles */
.btn-action-base {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.btn-form {
    background: var(--form-color);
}
.btn-form:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.btn-call {
    background: #0d6efd; /* Bootstrap primary blue or similar */
}
.btn-call:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.btn-whatsapp {
    background: var(--whatsapp-color);
}
.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}

.course-features-list {
    list-style: none;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
}

.feature-item i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .course-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .course-price-card {
        position: static;
        margin-top: -100px; /* Pull up on mobile if under hero, but we are in grid */
        margin-top: 0;
        order: -1; /* Show price first on mobile? Or maybe keeping standard flow is better. Let's keep standard flow but remove sticky */
    }
    
    .course-detail-hero {
        padding: 40px 0 60px;
    }
    
    .course-title-large {
        font-size: 1.8rem;
    }
}
