/* Course Intro Page - New Layout */

:root {
    --darkorange: #FE5201;
    --lightorange: #FE8400;
    --darkgrey: #333;
    --main-width: 90%;
    --main-max-width: 1200px;
}

/* Grid Background - same as company_packs.html */
body.course-intro-page {
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Grid Background - spans full header width */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(#D6D6D6 1px, transparent 1px),
        linear-gradient(90deg, #D6D6D6 1px, transparent 1px);
    background-size: 18px 18px;
    background-position: 0 0;
    z-index: 1;
    pointer-events: none;
}

/* Add orange highlight and fade effect */
.grid-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 85% 15%, rgba(255, 107, 53, 0.15) 4px, transparent 4px),
        linear-gradient(to top, #F2F1EB 0%, transparent 200px);
    background-size: 100% 100%, 100% 200px;
    background-position: 0 0, 0 100%;
    background-repeat: no-repeat;
}

/* #F3F3EE */
/* Main Container */
.course-intro-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 2;
}

/* Store the main container width for reference */
.course-intro-container::before {
    content: '';
    display: block;
    width: 100%;
}

/* Top Row: Course Icon and Header - full screen width */
.course-intro-top {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 40px 0px 0px 0px;
    position: relative;
    z-index: 15;
    overflow: hidden;
}

/* Top row content container - centered */
.course-intro-top-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 130px;
    border-radius: 8px;
    padding: 40px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.back-button-container {
    margin: 10px auto -20px auto;
    width: 80%;
    max-width: 1200px;
    position: relative;
    z-index: 20;
}

.back-button {
    color: black;
    padding: 6px 14px !important;
    border-radius: 5px;
    border: 1px solid black;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
    backdrop-filter: blur(50px);
    background: rgba(246, 245, 243, 0.4);
    margin-left: 30px;

}

.course-icon {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.course-icon-img {
    width: 260px;
    height: auto;
    filter: drop-shadow(0px 0px 30px rgba(215,95,0,0.4));
}

.course-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.course-badge {
    color: var(--darkgrey);
    font-size: var(--font-l);
    margin: 0;
}

.course-title {
    font-size: var(--font-xxl);
    font-weight: 700;
    color: var(--darkgrey);
    margin: 0;
    line-height: 1.2;
}

/* Bottom Row: Two Columns */
.course-intro-bottom {
    display: flex;
    gap: 40px;
}

/* Left Column: Progress Sidebar */
.progress-sidebar {
    width: 300px;
    flex-shrink: 0;
    border-radius: 8px;
    padding: 30px;
    height: fit-content;
}

.progress-sidebar h3 {
    color: var(--darkgrey);
    margin-bottom: 30px;
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.progress-list {
    display: flex;
    flex-direction: column;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: -1px;
    padding: 0;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.progress-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.progress-text {
    color: var(--darkgrey);
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Completed items - solid orange background */
.progress-item.completed .progress-number {
    background-color: var(--darkorange);
    color: white;
    border: 1.5px solid var(--darkorange);
    border-top: 1.5px solid #F4F3EF;

}

/* First completed item - no top border */
.progress-item.completed.first .progress-number {
    border-top: 1.5px solid var(--darkorange);
}

/* Pending items - light gray */
.progress-item:not(.completed):not(.current) .progress-number {
    color: #666;
    border: 1.5px solid #c0c0c0;
}

.progress-item:hover .progress-text {
    color: var(--darkorange);
}

.progress-item:hover {
    position: relative;
    z-index: 10;
}

.progress-item:hover .progress-number {
    background-color: transparent; /*#F3E0D3; */
    color: var(--darkorange) !important;
    border: 1.5px solid var(--darkorange) !important;
}


/* Locked items - grayed out and not clickable */
.progress-item.locked {
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.progress-item.locked .progress-number {
    background-color: #f5f5f5;
    color: #999 !important;
    border: 1.5px solid #ddd !important;
}

.progress-item.locked .progress-text {
    color: #999;
}

.progress-item.locked .lock-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
}

/* Disable hover effects for locked items */
.progress-item.locked:hover .progress-number {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    border: 1.5px solid #ddd !important;
}

.progress-item.locked:hover .progress-text {
    color: #999 !important;
}

/* Right Column: Course Description */
.intro-content {
    flex: 1;
    border-radius: 8px;
    padding: 30px;
}

.intro-text {
    line-height: 1.6;
    color: var(--darkgrey);
}

.intro-text h1{
    margin-top: 0px;
    line-height: 1;
}

.intro-text h2 {
    color: var(--darkgrey);
    margin-bottom: 20px;
    margin-top: 0px;
    font-size: 1.5rem;
    font-weight: 600;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Company Packs Link Button - same as existing */
.company-packs-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--darkorange);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0px 0px 0px 14px !important;
    border-radius: 25px;
    margin-left: -14px;
    overflow: visible;
    z-index: 2 !important;
}

.company-packs-left {
    flex: 1;
    max-width: 400px;
}

.company-packs-link .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--darkorange);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.company-packs-link span {
    position: relative;
    z-index: 3;
}

.company-packs-link:hover {
    color: white;
}

.company-packs-link:hover .arrow {
    background-color: var(--darkorange);
}

.company-packs-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 15px;
    bottom: 0;
    background-color: var(--darkorange);
    border-radius: 25px 0 0 25px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: 1;
    overflow: visible;
}

.company-packs-link:hover::before {
    transform: scaleX(1);
    transform-origin: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-intro-container {
        width: 95%;
        padding: 20px 0;
    }
    
    .course-intro-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .course-intro-top-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .course-title {
        font-size: 2.5rem;
    }
    
    .course-intro-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .progress-sidebar {
        width: 100%;
        order: 1;
    }
    
    .intro-content {
        order: 2;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .course-title {
        font-size: 2rem;
    }
    
    .course-intro-top-content {
        gap: 0px;
    }

    .back-button-container {
        margin: 10px -80px;
    }

    .course-icon-img {
        width: 200px;
    }

    .progress-sidebar {
        padding: 0px 15px;
    }
    
    .course-intro-top {
        padding: 20px 15px;
    }
    
    .progress-sidebar,
    .intro-content {
        padding: 20px 15px;
    }
}