/* Course Details Custom Design for Taim Academy */

.taim-course-details-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
    margin-top: -20px;
    /* Adjust based on theme header */
}

/* Course Hero Header */
.course-hero {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    position: relative;
    overflow: hidden;
}

.course-hero-content {
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 3rem;
    padding: 4rem 5%;
    /* Use percentage for fluid padding */
    align-items: center;
}

.course-hero-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.course-hero-text p.course-short-desc {
    font-size: 20px;
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.course-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.meta-badge {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.course-hero-icon {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    background: #ffffff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    justify-self: center;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Main Content Layout */
.course-main {
    max-width: 100%;
    margin: 0;
    padding: 3rem 5%;
    /* Use percentage for fluid padding */
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 4rem;
}

/* Content Sections */
.course-content section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
    border: none;
    padding: 0;
}

/* Target Audience */
.audience-list {
    display: grid;
    gap: 0.75rem;
}

.audience-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.audience-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.audience-item span {
    font-size: 15px;
    color: #475569;
}

/* Learning Outcomes */
.outcomes-list {
    list-style: none;
    padding: 0;
}

.outcomes-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.outcome-number {
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.outcome-text {
    font-size: 15px;
    color: #1e293b;
    line-height: 1.6;
}

/* Curriculum Accordion (Tutor LMS override) */
.taim-curriculum .tutor-accordion-item {
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 0.75rem !important;
    background: white !important;
}

.taim-curriculum .tutor-accordion-item-header {
    background: #f8fafc !important;
    padding: 1.25rem 1.5rem !important;
}

.taim-curriculum .tutor-accordion-item.is-active {
    border-color: #3b82f6 !important;
}

.taim-curriculum .tutor-accordion-item.is-active .tutor-accordion-item-header {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
}

/* Instructor Profile */
.instructor-profile-box {
    display: flex;
    gap: 1.5fr;
}

.instructor-avatar-box {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
    overflow: hidden;
}

.instructor-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.instructor-title-text {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 1rem;
}

.instructor-bio-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-instructor-profile-link {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-instructor-profile-link:hover {
    background: #e2e8f0;
}

/* Sidebar */
.course-sidebar-sticky {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.sidebar-card-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Mode Switcher */
.mode-switcher-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 10px;
}

.mode-tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-tab-btn:hover {
    color: #1e293b;
}

.mode-tab-btn.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mode-content-panel {
    display: none;
}

.mode-content-panel.active {
    display: block;
}

/* Session Cards */
.session-list-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.session-card-item {
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.session-card-item:hover {
    border-color: #3b82f6;
}

.session-card-item.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.session-date-text {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.session-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.session-seats-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
}

.session-seats-badge.filling {
    background: #fef3c7;
    color: #92400e;
}

.session-price-text {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0.75rem;
}

/* CTA Buttons */
.taim-btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white !important;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.75rem;
    display: block;
    text-align: center;
    text-decoration: none;
}

.taim-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
    color: white !important;
}

.taim-btn-secondary {
    width: 100%;
    padding: 1rem;
    background: #f1f5f9;
    color: #475569 !important;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    text-align: center;
    text-decoration: none;
}

.taim-btn-secondary:hover {
    background: #e2e8f0;
}

/* Expectations Link */
.expectations-banner-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.expectations-banner-box p {
    font-size: 14px;
    color: #78350f;
    margin-bottom: 1rem;
}

.btn-expectations-link {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #78350f;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-expectations-link:hover {
    background: #fffbeb;
}

/* Related Courses */
.related-courses-list {
    display: grid;
    gap: 1rem;
}

.related-course-card-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.related-course-card-item:hover {
    background: #f1f5f9;
}

.related-course-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.related-course-info-box h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.related-course-price-text {
    font-size: 12px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 968px) {
    .course-hero-content {
        grid-template-columns: 1fr;
    }

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

    .mode-switcher-box {
        flex-direction: row;
    }
}

/* Enrollment Status Card */
.enrollment-status-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border: 2px solid #22c55e !important;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.status-icon {
    font-size: 24px;
}

.status-header h3 {
    margin: 0;
    color: #166534;
    font-size: 20px;
}

.booked-details {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.booked-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #166534;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.booked-name {
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.booked-date {
    font-size: 13px;
    color: #166534;
    font-weight: 600;
}

.enrollment-actions .taim-btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.enrollment-actions .taim-btn-primary:hover {
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

.status-note {
    font-size: 12px;
    color: #166534;
    text-align: center;
    margin-top: 0.75rem;
    font-weight: 500;
}