/* ===================================
   MODERN COURSE PAGE DESIGN
   Inspired by ILERNA - Clean & Visual
   =================================== */

/* Hero Section - Full Width with Image */
.course-hero-modern {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
    margin-top: -1px;
}

.course-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.hero-content-modern {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.course-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.course-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.course-breadcrumb a:hover {
    opacity: 0.7;
}

.course-breadcrumb span {
    opacity: 0.6;
}

.course-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title-big {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle-big {
    font-size: 20px;
    line-height: 1.6;
    color: #f3f4f6;
    margin-bottom: 30px;
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-stats-inline {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.hero-stats-inline .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-stats-inline .stat i {
    font-size: 18px;
    opacity: 0.9;
}

.hero-ctas-large {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 16px 35px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-cta-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: #667eea;
}

/* Sidebar Sticky */
.course-layout-modern {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    margin-top: 60px;
    align-items: start;
}

.course-main-content {
    min-width: 0;
}

.course-sidebar-sticky {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.sidebar-price {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.sidebar-price-amount {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
}

.sidebar-cta-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
}

.sidebar-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.sidebar-info-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
    border-top: 1px solid #e5e7eb;
    padding-top: 25px;
}

.sidebar-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #374151;
}

.sidebar-info-list li i {
    color: #667eea;
    font-size: 18px;
    width: 20px;
}

.sidebar-info-list li strong {
    color: #111827;
    font-weight: 600;
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
}

.content-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    margin-top: 30px;
}

.content-section p {
    font-size: 17px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 16px;
}

.content-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.content-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
}

.content-section ul li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

/* Accordion for Modules */
.accordion-container {
    margin-top: 30px;
}

.accordion-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    background: #f9fafb;
    transition: background 0.3s;
}

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

.accordion-header.active {
    background: #ede9fe;
}

.accordion-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.accordion-icon {
    font-size: 20px;
    color: #667eea;
    transition: transform 0.3s;
}

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

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

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

.accordion-body {
    padding: 20px 25px 25px 25px;
}

.accordion-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-body ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
    color: #4b5563;
}

.accordion-body ul li:last-child {
    border-bottom: none;
}

/* Image Gallery */
.course-gallery {
    margin: 50px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Stats Grid */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-card-modern {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stat-card-modern:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.stat-number-big {
    font-size: 42px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-label-modern {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Career Cards */
.career-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.career-card-modern {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.career-card-modern:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.career-card-modern h4 {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.career-card-modern p {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.6;
}

.career-salary {
    display: inline-block;
    background: #ede9fe;
    color: #667eea;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .course-layout-modern {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar-sticky {
        position: static;
        margin-top: 40px;
    }
    
    .stats-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .career-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title-big {
        font-size: 36px;
    }
    
    .hero-subtitle-big {
        font-size: 17px;
    }
    
    .hero-stats-inline {
        gap: 15px;
    }
    
    .hero-ctas-large {
        flex-direction: column;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
