/* Company Packs Page Styles */

body.company-packs-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, #F3F3EE 0%, transparent 200px);
    background-size: 100% 100%, 100% 200px;
    background-position: 0 0, 0 100%;
    background-repeat: no-repeat;
}

nav {
    background-color: transparent;
    border-bottom: none !important;
}

nav li a.signup-btn[onclick*="signupModal"] {
    background: transparent !important;
}

.company-packs-container {
    position: relative;
    z-index: 10;
}

/* Header Section - full screen width */
.company-packs-header {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 60px 0;
    position: relative;
    z-index: 15;
    overflow: hidden;
}

/* Header content container - centered */
.header-content-container {
    max-width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: center;
}

.company-logo {
    background-color: #FE5201;
    color: white;
    padding: 30px 40px;
    border-radius: 0;
    /* min-width: 250px; */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 20;
}

.company-logo h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.company-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

.header-content {
    flex: 0 0 auto;
    padding-top: 10px;
    position: relative;
    z-index: 20;
}

.header-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.1;
}

.playlist-subtitle {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.go-to-course-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    gap: 8px;
    color: #FE5201;
    text-decoration: none;
    font-size: 1.1rem !important; 
    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;
}

.go-to-course-btn .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #FE5201;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.go-to-course-btn span {
    position: relative;
    z-index: 3;
}

.go-to-course-btn:hover {
    color: white;
}

.go-to-course-btn:hover .arrow {
    background-color: #FE5201;
}

.go-to-course-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 15px;
    bottom: 0;
    background-color: #FE5201;
    border-radius: 25px 0 0 25px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: 1;
    overflow: visible;
}

.go-to-course-btn:hover::before {
    transform: scaleX(1);
    transform-origin: right;
}

/* Main Content Section - full screen width */
.company-packs-main {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

/* Main content container - 80% width */
.main-content-container {
    max-width: 80%;
    margin: 0 auto;
    display: flex;
    gap: 70px;
    margin-top: 10px;
    align-items: start;
    justify-content: center;
}

/* Questions Section - styled like brainteasers-preview */
.questions-section {
    flex: 0 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(215,95,0,0.25);
    padding: 25px;
    margin-top: 20px;
    width: 610px;
    overflow: visible;
    z-index: 1;
}

.day-header {
    margin: -25px -25px 0px -25px;
    padding: 15px 25px;
    background-color: #f8f9fa;
    border-radius: 10px 10px 0 0;
    text-align: left;
}

.day-header h2 {
    /* font-size: 1.5rem; */
    font-weight: 500;
    font-size: 1.5rem;
    color: black;
    margin: 0;
}

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

.question-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0 -25px;
    padding-left: 25px;
    padding-right: 25px;
}

.question-item:last-child {
    border-bottom: none;
    margin-bottom: -25px;
    padding-bottom: 25px;
}

.question-item:hover {
    background-color: #f8f9fa;
}

.question-item:last-child:hover {
    border-radius: 0 0 10px 10px;
}

.question-checkbox {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.question-checkbox i {
    color: #FE5201;
    font-size: 18px;
}

.empty-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #FE5201;
    border-radius: 50%;
    background: white;
}

.question-title {
    flex: 1;
    font-size: 18px;
    /* font-weight: 500; */
    color: #333;
}

.question-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FE5201;
    font-weight: 400;
    font-size: 18px;
}

.question-action i {
    font-size: 14px;
}

/* Day Navigation - styled like progress-list from course intro */
.day-navigation {
    flex: 0 0 auto;
    margin-top: -30px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.day-navigation h3 {
    color: #333;
    margin-bottom: 20px;
    margin-top: 0px;
    font-size: 1.5rem;
    font-weight: 500;
}

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

.day-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;
}

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

.day-item.completed .day-number {
    background-color: #FE5201;
    color: white;
    border: 1.5px solid #FE5201;
    border-top: 1.5px solid #F4F3EF;
}

/* First completed item - no top border */
.day-item.completed.first .day-number {
    border-top: 1.5px solid #FE5201 !important;
}

/* Active item - same as completed */
.day-item.active .day-number {
    background-color: #FE5201;
    color: white;
    border: 1.5px solid #FE5201;
    border-top: 1.5px solid #F4F3EF;
}


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

.day-item:hover {
    position: relative;
    z-index: 100000 !important;
}

.day-item:hover .day-number {
    background-color: transparent; /*#F3E0D3;*/
    color: #FE5201 !important;
    border: 1.5px solid #FE5201 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-packs-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .questions-section {
        width: 100%;
    }
    
    .company-packs-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .company-logo {
        min-width: auto;
        width: 80%;
    }
    
    .header-content h2 {
        font-size: 28px;
    }
    
    .day-navigation {
        width: 100%;
        position: static;
        height: auto;
    }
    
    .header-content-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .problems-container {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding: 20px;
    }
    .day-list {
        flex-direction: row;
    }
    
    .main-content-container {
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }
    .day-item.completed .day-number {
        border: 1.5px solid #FE5201;
        border-right: 1.5px solid #F4F3EF;
    }
    
    
    /* Active item - same as completed */
    .day-item.active .day-number {
        border-right: 1.5px solid var(--darkorange);
        border-top: 1.5px solid var(--darkorange);
    }
}
