/**
 * LearnPress Modular Shortcodes CSS
 * Version: 1.0.0
 * Use with page builder for flexible layouts
 */

/* Base font */
.lp-course-header,
.lp-course-description,
.lp-course-objectives,
.lp-course-curriculum,
.lp-course-reviews,
.lp-course-sidebar {
    font-family: 'Poppins', sans-serif !important;
}

/* ==========================================
   1. COURSE HEADER
   ========================================== */
.lp-course-header {
    margin-bottom: 30px;
    margin-top: 30px;
}

.lp-course-header .course-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.lp-course-header .course-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.lp-course-header .course-badge {
    background-color: #FBC732;
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.lp-course-header .course-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.lp-course-header .author-icon {
    font-size: 18px;
}

.lp-course-header .course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.lp-course-header .stars {
    color: #FBC732;
    font-size: 18px;
}

.lp-course-header .rating-count {
    color: #666;
}

/* ==========================================
   2. COURSE DESCRIPTION
   ========================================== */
.lp-course-description {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ==========================================
   3. COURSE OBJECTIVES
   ========================================== */
.lp-course-objectives {
    margin-bottom: 40px;
}

.lp-course-objectives .section-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.lp-course-objectives .objectives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lp-course-objectives .objectives-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    color: #555;
}

.lp-course-objectives .checkmark {
    width: 24px;
    height: 24px;
    background-color: #FBC732;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-weight: 700;
    font-size: 14px;
    margin-top: 2px;
}

/* ==========================================
   4. CURRICULUM
   ========================================== */
.lp-course-curriculum {
    margin-bottom: 40px;
}

.lp-course-curriculum .curriculum-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.lp-course-curriculum .curriculum-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.lp-course-curriculum .curriculum-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.lp-course-curriculum .section-header {
    background-color: #f5f5f5;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lp-course-curriculum .section-header:hover {
    background-color: #eeeeee;
}

.lp-course-curriculum .section-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.lp-course-curriculum .toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.lp-course-curriculum .curriculum-section.active .toggle-icon {
    transform: rotate(90deg);
}

.lp-course-curriculum .section-meta {
    color: #666;
    font-size: 13px;
}

.lp-course-curriculum .section-content {
    padding: 15px 20px;
    display: none;
}

.lp-course-curriculum .curriculum-section.active .section-content {
    display: block;
}

.lp-course-curriculum .curriculum-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lp-course-curriculum .curriculum-item:last-child {
    border-bottom: none;
}

.lp-course-curriculum .item-name {
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-course-curriculum .lesson-icon {
    color: #055F6A;
    font-size: 14px;
}

.lp-course-curriculum .item-access-btn {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lp-course-curriculum .item-access-btn:hover {
    background-color: #f8f9fa;
    border-color: #055F6A;
    color: #055F6A;
}

.lp-course-curriculum .item-access-btn.locked {
    cursor: default;
}

/* ==========================================
   5. REVIEWS
   ========================================== */
.lp-course-reviews {
    margin-bottom: 40px;
}

.lp-course-reviews .reviews-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.lp-course-reviews .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.lp-course-reviews .review-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: white;
    transition: box-shadow 0.3s ease;
}

.lp-course-reviews .review-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lp-course-reviews .review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.lp-course-reviews .reviewer-avatar {
    width: 45px;
    height: 45px;
    background: #e0f2f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #055F6A;
    font-weight: 600;
}

.lp-course-reviews .reviewer-info {
    flex: 1;
}

.lp-course-reviews .reviewer-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.lp-course-reviews .review-date {
    color: #999;
    font-size: 13px;
}

.lp-course-reviews .review-stars {
    color: #FBC732;
    font-size: 16px;
    margin-bottom: 10px;
}

.lp-course-reviews .review-text {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.lp-course-reviews .view-more-link {
    color: #055F6A;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.lp-course-reviews .view-more-link:hover {
    text-decoration: underline;
}

/* ==========================================
   6. SIDEBAR
   ========================================== */
.lp-course-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lp-course-sidebar .sidebar-thumbnail {
    width: 100%;
    margin-bottom: 20px;
}

.lp-course-sidebar .sidebar-thumbnail img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.lp-course-sidebar .sidebar-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lp-course-sidebar .sidebar-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.lp-course-sidebar .price-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.lp-course-sidebar .enroll-button {
    background-color: #055F6A;
    color: white;
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    width: 100%;
    margin-bottom: 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.lp-course-sidebar .enroll-button:hover {
    background-color: #044a53;
    color: white;
}

.lp-course-sidebar .course-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lp-course-sidebar .course-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.lp-course-sidebar .course-info-list i {
    color: #000;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.lp-course-sidebar .content-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.lp-course-sidebar .content-list li {
    padding-left: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    position: relative;
}

.lp-course-sidebar .content-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #055F6A;
    font-weight: bold;
}

.lp-course-sidebar .tags-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lp-course-sidebar .tag-item {
    border: 1px solid #055F6A;
    color: #055F6A;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lp-course-sidebar .tag-item:hover {
    background-color: #055F6A;
    color: white;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .lp-course-header .course-title {
        font-size: 24px;
    }
    
    .lp-course-header .course-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lp-course-reviews .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .lp-course-curriculum .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .lp-course-sidebar .sidebar-box {
        padding: 20px;
    }
}