/* Courses Hub - Training & Courses Styling */

:root {
    --agency-coral: #eb5342;
    --agency-charcoal: #282828;
    --agency-dark-grey: #6d6f71;
    --agency-light-grey: #f4f4f4;
    --tile-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --tile-width: 100%;
}

.courses-hub-container {
    background-color: #efefef;
    padding-bottom: 120px;
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Sticky Navigation Fix (Mobile & Desktop) */
.mobile-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.desktop-top-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hub-categories-section {
    padding: 40px 0;
    width: 100%;
    background: #efefef;
    border-bottom: 1px solid #e0e0e0;
}

/* Header Categories Grid - Centered Content within Full Width Header */
.header-categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-category-tile {
    background: #fff !important;
    width: 100%;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--agency-charcoal);
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
}

.header-category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.cat-icon-wrap {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.cat-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #333;
}

/* Hub Section - Centered Content */
.hub-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.hub-section-title {
    text-align: left;
    font-size: 22px;
    text-transform: none;
    letter-spacing: -0.5px;
    color: #282828;
    margin-bottom: 25px;
    position: relative;
    font-weight: 700;
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
}

/* Course Card - Exact Tile Sample Design */
.course-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 200px;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.course-card-image {
    width: 100%;
    height: 30%;
    min-height: 30%;
    max-height: 30%;
    overflow: hidden;
    background: #282828;
    flex-shrink: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}


.course-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 60%;
    box-sizing: border-box;
}

.course-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    flex-shrink: 0;
}

.course-card-intro {
    font-size: 12px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
    flex-grow: 1;
    min-height: 0;
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f2f2f2;
    padding-top: 12px;
    margin-top: auto;
    flex-shrink: 0;
}

.course-meta-info {
    font-size: 16px;
    color: #adb5bd;
    font-weight: 400;
}

.view-course-btn {
    font-size: 16px;
    font-weight: 600;
    color: var(--agency-primary-color);
    text-decoration: none;
    letter-spacing: 0;
    transition: opacity 0.2s ease;
}

.course-card:hover .view-course-btn {
    opacity: 0.8;
}

.course-card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

/* Empty State */
.empty-section-msg {
    text-align: center;
    color: #bbb;
    grid-column: 1 / -1;
    padding: 40px;
    font-size: 14px;
    font-style: italic;
}

/* Responsive States */
@media (max-width: 1100px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hub-section {
        max-width: 300px;
    }

    .course-card {
        height: 200px;
    }

    .desktop-top-bar {
        display: none !important;
    }

    .courses-hub-header {
        height: auto;
        padding: 60px 20px;
    }

    .header-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        max-width: 400px;
        gap: 15px;
        padding: 0 20px;
    }

    .header-category-tile {
        width: 100%;
        height: 120px;
        padding: 10px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .hub-section {
        margin-top: 30px;
        padding: 0 20px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .hub-section-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-left: 0;
    }


    .course-card-intro {
        margin-bottom: 10px;
    }
}

.lp-modal-dialog .lp-modal-body .main-content {
    min-height: 5vh;
    margin-left: 0;
}