/* Enhanced Course Details Page Styles */

/* ========================================
   Sticky Enroll Bar
   ======================================== */
.sticky-enroll-bar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(191, 216, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(255, 254, 254, 0.3);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-enroll-bar.visible {
    transform: translateY(0);
}

.sticky-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.sticky-course-info h3 {
    font-size: 1.2rem;
    color: #001b3a;
    margin: 0 0 0.5rem 0;
}

.sticky-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.sticky-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sticky-meta i {
    color: #ff5722;
}

.sticky-price {
    color: #ff5722 !important;
    font-weight: bold;
}

.sticky-enroll-btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .sticky-course-info h3 {
        font-size: 1rem;
    }

    .sticky-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* ========================================
   Enhanced Course Hero
   ======================================== */
.course-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.course-hero::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.course-hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .course-hero-content {
        grid-template-columns: 1.5fr 1fr;
    }
}

.course-hero-left {
    color: #001b3a;
}

.course-meta-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.course-meta-tags span {
    background: rgba(255, 87, 34, 0.2);
    color: #ff5722;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.course-hero h1 {
    font-size: 2.5rem;
    color: #001b3a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .course-hero h1 {
        font-size: 3.5rem;
    }
}

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

.course-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item i {
    color: #ff5722;
    font-size: 1.2rem;
}

.stat-item span {
    color: #475569;
}

.stat-item strong {
    color: #001b3a;
}

.instructor-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.instructor-mini-label {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.instructor-mini-name {
    font-size: 1rem;
    font-weight: 600;
    color: #001b3a;
    margin: 0;
}

.course-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-lg i {
    margin-right: 0.5rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid #001b3a;
    color: #001b3a;
}

.btn-outline:hover {
    background: rgba(0, 27, 58, 0.05);
    color: #001b3a;
}

/* Course Preview Card */
.course-preview-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.course-preview-card img {
    width: 100%;
    height: auto;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-overlay i {
    font-size: 4rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.play-overlay:hover i {
    transform: scale(1.1);
    color: #ff5722;
}

/* ========================================
   Section Blocks
   ======================================== */
.section-block {
    margin-bottom: 4rem;
}

.section-block h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #001b3a;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 87, 34, 0.3);
}

.section-block h2 i {
    color: #ff5722;
}

/* Learning List */
.learning-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .learning-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.learning-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.learning-list li:hover {
    background: #f1f5f9;
    transform: translateX(5px);
    border-color: rgba(255, 87, 34, 0.3);
}

.learning-list li i {
    color: #ff5722;
    font-size: 1.2rem;
    margin-top: 2px;
}

.learning-list li span {
    color: #475569;
    line-height: 1.6;
}

/* ========================================
   Accordion Curriculum
   ======================================== */
.curriculum-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(255, 87, 34, 0.3);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #f8fafc;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.module-number {
    background: rgba(255, 87, 34, 0.2);
    color: #ff5722;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.accordion-icon {
    color: #ff5722;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    color: #475569;
}

.lesson-item i {
    color: #ff5722;
}

.lesson-item.locked i {
    color: #666666;
}

.lesson-duration {
    margin-left: auto;
    font-size: 0.85rem;
    color: #666666;
}

/* ========================================
   Requirements & Target Audience
   ======================================== */
.requirements-list,
.target-audience-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.requirements-list li,
.target-audience-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #475569;
    line-height: 1.6;
}

.requirements-list li i,
.target-audience-list li i {
    color: #ff5722;
    font-size: 1.2rem;
    margin-top: 2px;
}

/* ========================================
   Instructor Panel
   ======================================== */
.instructor-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
}

.instructor-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.instructor-header {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.instructor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff5722;
}

.instructor-info h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.instructor-info p {
    color: #64748b;
    margin-bottom: 1rem;
}

.instructor-social {
    display: flex;
    gap: 0.75rem;
}

.instructor-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 87, 34, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff5722;
    transition: all 0.3s ease;
}

.instructor-social a:hover {
    background: #ff5722;
    color: #ffffff;
    transform: translateY(-2px);
}

.instructor-bio {
    color: #475569;
    line-height: 1.8;
}

.instructor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.instructor-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.instructor-stat i {
    font-size: 1.5rem;
    color: #ff5722;
}

.instructor-stat strong {
    display: block;
    color: #1e293b;
    font-size: 1.2rem;
}

.instructor-stat span {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
}

/* ========================================
   Reviews Section
   ======================================== */
.reviews-summary {
    margin-bottom: 2rem;
}

.reviews-overview {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.average-rating h3 {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.stars i {
    color: #ffc107;
    font-size: 1.2rem;
}

.average-rating p {
    color: #64748b;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: rgba(255, 87, 34, 0.3);
    background: #f8fafc;
}

.review-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info h4 {
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-stars {
    display: flex;
    gap: 0.25rem;
}

.review-stars i {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-date {
    color: #666666;
    font-size: 0.85rem;
}

.review-comment {
    color: #475569;
    line-height: 1.8;
}

/* ========================================
   Enhanced Sidebar
   ======================================== */
.course-includes {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.course-includes h4 {
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.includes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.includes-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
    font-size: 0.9rem;
}

.includes-list li i {
    color: #ff5722;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .course-hero {
        padding: 6rem 0 3rem;
    }

    .course-hero h1 {
        font-size: 2rem;
    }

    .course-subtitle {
        font-size: 1rem;
    }

    .course-stats {
        gap: 1rem;
    }

    .course-actions {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .instructor-header {
        flex-direction: column;
        text-align: center;
    }

    .instructor-social {
        justify-content: center;
    }

}

/* ========================================
   Who This Course Is For (Audience Section)
   ======================================== */
.audience-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.audience-section .section-header {
    margin-bottom: 4rem;
}

.audience-section .section-title {
    font-size: 2.5rem;
    color: #001b3a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.audience-section .section-subtitle {
    font-size: 1.1rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
}

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

@media (min-width: 768px) {
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .audience-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.audience-card {
    position: relative;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.card-glass-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.audience-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    border-color: rgba(255, 87, 34, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.audience-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 87, 34, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.audience-icon i {
    font-size: 2rem;
    color: #ff5722;
}

.audience-card:hover .audience-icon {
    background: #ff5722;
    transform: scale(1.1) rotate(5deg);
}

.audience-card:hover .audience-icon i {
    color: #ffffff;
}

.audience-title {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.audience-description {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

@supports (backdrop-filter: blur(10px)) {
    .audience-card {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}