/* Course Styles */

/* Single Course Page */
.single-course-page {
    padding: 4rem 0;
    background: #f8f9fa;
}

.course-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .course-layout {
        grid-template-columns: 1fr;
    }
}

.course-main {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.course-hero {
    position: relative;
}

.course-featured-image {
    height: 250px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.course-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.course-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.course-category-badge {
    display: inline-block;
    background: #ffc107;
    color: #ffffff;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.course-page-title {
    font-size: 2.5rem;
    color: #0a1628;
    margin: 0;
    line-height: 1.2;
}

.course-body {
    padding: 2rem;
}

.course-description h2 {
    font-size: 1.5rem;
    color: #0a1628;
    margin-bottom: 1rem;
}

.course-description p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.course-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .course-info-grid {
        grid-template-columns: 1fr;
    }
}

.course-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.course-info-card i {
    font-size: 1.5rem;
    color: #ffc107;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.info-value {
    display: block;
    font-weight: 600;
    color: #0a1628;
}

.course-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Sidebar */
.course-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    color: #0a1628;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.related-courses {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-course-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s;
    padding: 0.5rem;
    border-radius: 8px;
}

.related-course-item:hover {
    transform: translateX(5px);
    background: #f8f9fa;
}

.related-course-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107 0%, #f7b733 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.related-course-item:hover .related-course-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.related-course-icon i {
    font-size: 1.25rem;
    color: #ffffff;
}

.related-course-info h4 {
    font-size: 0.95rem;
    color: #0a1628;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.related-course-info .view-link {
    font-size: 0.8rem;
    color: #ffc107;
    font-weight: 600;
}

/* Course Search Styles */
.course-search-section {
    margin-bottom: 3rem;
}

.course-search-wrapper {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.course-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: #f8f9fa;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0a1628;
    color: #ffffff;
}