/* Training Details Page Styles */
:root {
    --primary-color: #3EBFAF;
    --secondary-color: #006E90;
    --accent-color: #007BFF;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --star-color: #FFC107;
}

.course-container {
    margin: 0 auto;
    /* padding: 0 15px; */
}

/* Page Title Styles */
.page-title {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    text-align: center;
}

.page-title h1 {
    margin: 0;
    font-size: 1.8rem;
}

/* Header Styles */
.course-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 30px 80px 30px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-header-content {
    flex: 1;
}

.course-header h1 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    line-height: 1.2;
}

.course-creator {
    margin: 0 0 5px 0;
    font-size: 1rem;
    opacity: 0.9;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.star {
    color: #ccc;
    margin-right: 2px;
    font-size: 1.1rem;
}

.star.filled {
    color: var(--star-color);
}

.star.half-filled {
    position: relative;
    color: #ccc;
}

.star.half-filled:before {
    content: "★";
    position: absolute;
    color: var(--star-color);
    width: 50%;
    overflow: hidden;
}

.course-price {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}



.buy-now-btn {
    display: inline-block;
    background-color: #111;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.buy-now-btn:hover {
    background-color: #333;
}

.course-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 30px;
    border: 5px solid rgba(255, 255, 255, 0.2);
        position: relative;
    top: 131px;
}

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

/* Course Details Styles */
.course-details {
    background-color: white;
    padding: 30px 100px 30px 100px;
}

.details-row {
    display: flex;
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
}

.details-row:last-child {
    border-bottom: none;
}

.detail-item {
    display: flex;
    flex: 1;
    align-items: center;
    padding: 15px;
}

.detail-item.full-width {
    flex: 2;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 22px;
}



.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Course Sections Styles */
.course-section {
    background-color: white;
    padding: 30px 100px 30px 100px;
}

.course-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #333;
    font-weight: bold;
}

.course-section p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword {
    background-color: #e8f9f7;
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .course-header,
    .course-details,
    .course-section {
        padding-left: 30px;
        padding-right: 30px;
    }
    .course-image {
        width: 140px;
        height: 140px;
        top: 80px;
    }
}

@media (max-width: 768px) {
    .course-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 10px 20px 10px;
    }
    .course-header-content {
        width: 100%;
    }
    .course-image {
        margin: 20px 0 0 0;
        width: 120px;
        height: 120px;
        top: 0;
    }
    .course-details,
    .course-section {
        padding: 20px 10px 20px 10px;
    }
    .details-row {
        flex-direction: column;
    }
    .detail-item {
        margin-bottom: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .detail-item:last-child {
        border-bottom: none;
    }
    .detail-item.full-width {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 1.2rem;
    }
    .course-header h1 {
        font-size: 1.1rem;
    }
    .course-price {
        font-size: 1.1rem;
    }
    .buy-now-btn {
        width: 100%;
        text-align: center;
        font-size: 0.95rem;
        padding: 8px 0;
    }
    .course-image {
        width: 80px;
        height: 80px;
    }
    .course-details,
    .course-section {
        padding: 10px 2px 10px 2px;
    }
    .course-section h2 {
        font-size: 1.1rem;
    }
    .keyword {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}
