/* Course Details Professional Styling */

.course-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.course-hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.course-info h1 {
    font-size: 2.5rem;
    color: #1E88E5;
    margin-bottom: 1rem;
    font-weight: 700;
}

.course-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.course-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.highlight {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #1E88E5;
}

.highlight-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.highlight-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E88E5;
}

.course-image {
    position: relative;
    text-align: center;
}

.course-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cpd-badge-small {
    position: absolute;
    bottom: -10px;
    right: 10px;
    background: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cpd-badge-small img {
    width: 30px;
    height: 30px;
}

.cpd-badge-small span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1E88E5;
}

.course-details-section {
    padding: 3rem 0;
    background: #fff;
}

.course-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.section-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #f0f0f0;
}

.section-card h2 {
    color: #1E88E5;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 0.5rem;
}

.section-card h3 {
    color: #1E88E5;
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.objectives-list {
    list-style: none;
    padding: 0;
}

.objectives-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
    line-height: 1.6;
}

.objectives-list li:before {
    content: "🎯";
    position: absolute;
    left: 0;
    top: 0.8rem;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.audience-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1E88E5;
}

.audience-item h4 {
    color: #1E88E5;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.audience-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.modules-container {
    margin-top: 1rem;
}

.module-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.module-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.module-header {
    background: #f8f9fa;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.module-header:hover {
    background: #e3f2fd;
}

.module-header.active {
    background: #1E88E5;
    color: #fff;
}

.module-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: inherit;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1E88E5;
    transition: transform 0.3s ease;
}

.module-header.active .toggle-icon {
    color: #fff;
    transform: rotate(45deg);
}

.module-content {
    display: none;
    padding: 1.5rem;
    background: #fff;
}

.module-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-content li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
    line-height: 1.6;
}

.module-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.8rem;
    color: #2e7d32;
    font-weight: bold;
}

.module-content li:last-child {
    border-bottom: none;
}

/* Sidebar Styling */
.course-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.enrollment-card,
.terms-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #f0f0f0;
}

.enrollment-card h3 {
    color: #1E88E5;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 0.5rem;
}

.course-schedule,
.course-pricing,
.course-benefits,
.enrollment-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.course-schedule h4,
.course-pricing h4,
.course-benefits h4,
.enrollment-section h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.course-schedule p {
    margin: 0.5rem 0;
    color: #666;
}

.price-display {
    text-align: center;
    margin: 1rem 0;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #1E88E5;
    display: block;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.discount {
    background: #ff5722;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.price-note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

.course-benefits ul {
    list-style: none;
    padding: 0;
}

.course-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #333;
}

.course-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: bold;
}

.terms-card h4 {
    color: #1E88E5;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.terms-list {
    list-style: none;
    padding: 0;
}

.terms-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
}

.terms-list li:last-child {
    border-bottom: none;
}

#smart-button-container {
    margin: 1rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .course-highlights {
        grid-template-columns: 1fr;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .course-info h1 {
        font-size: 2rem;
    }
    
    .course-sidebar {
        position: static;
    }
}
