/**
 * Courses Styles - Archive and Single Course Pages
 * @package Hypnotherapy_Academy
 */

/* ==========================================================================
   Course Archive Page
   ========================================================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header .page-title {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #fff;
}

.page-header .page-description {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Course Filters */
.courses-filters {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #6B46C1;
    color: #fff;
    border-color: #6B46C1;
    transform: translateY(-2px);
}

/* Courses Container */
.courses-container {
    padding: 60px 0;
}

/* Archive Grid */
.courses-archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Course Card Detailed */
.course-card-detailed {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
}

.course-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.course-header {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.course-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card-detailed:hover .course-header img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #6B46C1;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

.course-badge.popular {
    background: #FF6B6B;
}

.course-badge.new {
    background: #4ECDC4;
}

.course-badge.advanced {
    background: #764ba2;
}

.course-badge.featured {
    background: #F39C12;
}

.course-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.course-category {
    display: inline-block;
    color: #6B46C1;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.course-body h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.course-body h3 a {
    color: #1a1a1a;
    transition: color 0.3s;
}

.course-body h3 a:hover {
    color: #6B46C1;
}

.course-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Course Stats */
.course-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 1.5rem;
    color: #6B46C1;
    margin-bottom: 5px;
}

.stat-value {
    font-weight: 600;
    color: #333;
    display: block;
    font-size: 1.1rem;
}

.stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

/* Course Features */
.course-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.course-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

.course-features li i {
    color: #6B46C1;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Instructor Info */
.instructor-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.instructor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6B46C1;
}

.instructor-details h5 {
    margin: 0;
    color: #333;
    font-size: 1rem;
}

.instructor-details p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

/* Course Footer */
.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.course-price {
    font-size: 2rem;
    font-weight: 700;
    color: #6B46C1;
}

.price-period {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.cta-banner h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-banner .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* No Courses Found */
.no-courses-found {
    text-align: center;
    padding: 60px 20px;
}

.no-courses-found h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.no-courses-found p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* ==========================================================================
   Single Course Page
   ========================================================================== */

.course-single-page {
    background: #fff;
}

/* Course Header Image */
.course-header-image {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

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

.course-header-image .course-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 14px;
    padding: 10px 20px;
}

/* Course Content Wrapper */
.course-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Course Main Content */
.course-main-content {
    min-width: 0;
}

.course-main-content .entry-header {
    margin-bottom: 30px;
}

.course-main-content .entry-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.course-main-content .course-stats {
    margin-bottom: 40px;
}

.course-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.course-description p {
    margin-bottom: 1.5rem;
}

.course-description h2,
.course-description h3,
.course-description h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.course-description ul,
.course-description ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.course-description ul li,
.course-description ol li {
    margin-bottom: 0.5rem;
}

/* Course Features Section */
.course-features-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.course-features-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* Course Sidebar */
.course-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

/* Enrollment Card */
.enrollment-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.enrollment-card .course-price {
    text-align: center;
    margin-bottom: 20px;
    display: block;
}

.enrollment-card .btn-block {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
}

.course-includes {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.course-includes h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

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

.course-includes ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.course-includes ul li:last-child {
    border-bottom: none;
}

.course-includes ul li i {
    color: #6B46C1;
    font-size: 1rem;
}

/* Share Course */
.share-course {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.share-course h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.facebook:hover {
    background: #2d4373;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #0c85d0;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.linkedin:hover {
    background: #005582;
}

.share-btn.email {
    background: #888;
}

.share-btn.email:hover {
    background: #666;
}

/* Related Courses */
.related-courses {
    background: #f8f9fa;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .course-card-detailed {
        grid-template-columns: 1fr;
    }

    .course-header {
        height: 300px;
    }

    .course-content-wrapper {
        grid-template-columns: 1fr;
    }

    .course-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-header .page-title {
        font-size: 2rem;
    }

    .page-header .page-description {
        font-size: 1rem;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .course-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .course-footer {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .course-footer .btn {
        width: 100%;
    }

    .course-header-image {
        height: 300px;
    }

    .course-main-content .entry-title {
        font-size: 2rem;
    }

    .cta-banner h2 {
        font-size: 1.8rem;
    }

    .cta-banner p {
        font-size: 1rem;
    }

    .cta-banner .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .courses-container {
        padding: 40px 0;
    }

    .course-body {
        padding: 20px;
    }

    .course-body h3 {
        font-size: 1.5rem;
    }

    .course-price {
        font-size: 1.5rem;
    }

    .enrollment-card {
        padding: 20px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }
}
