/* Company Packs Overview Page - Grid Layout Only */
body.company-packs-overview-page {
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Course Overview Card - moved from course_overview.css */
.course-overview-card {
    background: white;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 300px;
    display: flex;
    flex-direction: column;
    width: 100%;
    cursor: pointer;
}

/* Course Image */
.course-image {
    height: 380px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Course Info Section */
.course-info {
    padding: 20px 30px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: white;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    overflow: visible;
    border-radius: 8px;
}

/* Course Title */
.course-title {
    font-size: var(--font-l);
    font-weight: 400;
    color: #333;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    margin-right: 10px;
}

/* Course Details Row */
.course-details-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

/* Course Description */
.course-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    margin-top: 5px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding-bottom: 20px;
}

/* Hover Effects */
.course-overview-card:hover .course-description {
    opacity: 1;
    max-height: 150px;
}


/* Dark overlay for course cards - controlled via HTML */
.course-overview-card .dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%; /* Cover the entire card area */
    z-index: 1; /* Below the white area (z-index: 2) but above the background image */
    pointer-events: none;
    border-radius: 8px !important; /* Match the card's full border radius */
}

/* Ensure white text area is always above the dark overlay */
.course-overview-card .course-info {
    z-index: 3 !important;
}

/* Course logo and subtitle styling */
.course-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

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

.course-subtitle {
    position: absolute;
    top: 140px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: 400;
    z-index: 2;
    text-shadow: 0 0 5px rgba(122, 129, 255, 0.6);
}

/* Course badge styling */
.course-badge {
    /* background: linear-gradient(to right, #FDE0AC, #F5B351); */
    background: linear-gradient(to right, #FF2600,#FE5C00);
    box-shadow: 0 0 6px rgba(254, 92, 0.8);
    /* box-shadow: 0 0 5px rgba(215, 95, 0, 0.6); */
    /* color: #674329; */
    color: white;
    font-weight: 500;
    padding: 6px 18px;
    border: none;
    border-radius: 20px;
    font-size: var(--font-xxs);
}

/* Override course details row alignment for company packs */
.course-details-row {
    align-items: flex-start !important;
}

.company-packs-overview-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.company-packs-overview-header {
    text-align: center;
    margin-bottom: 60px;
}

.company-packs-overview-header h1 {
    font-size: var(--font-xl);
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.company-packs-overview-header p {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

.company-packs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .company-packs-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .company-packs-overview-container {
        padding: 40px 0;
    }
    .course-title {
        font-size: var(--font-m);
    }
    
    .company-packs-overview-header h1 {
        font-size: 2.5rem;
    }
    
    .company-packs-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 25px;
    }
}
