/*--------------------------------------------------------------
# Course Page — Main Styles
--------------------------------------------------------------*/

/* ── Hero Card ── */
.course .hero {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
    margin-bottom: 1rem;
}

/* Hero Top: Logo + Info side by side */
.course .hero-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
}

/* Original: 80x80, circle, primary border, fill primary */
.course .logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    fill: var(--color-primary);
    flex-shrink: 0;
    margin: 0;
    padding: 10px;
    background: #fff;
    box-sizing: border-box;
     justify-content: center;
}

.course .logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}



/* SVG inline — fill the padded area, never clip */
.course .logo-img svg {
    width: 100%;
    height: 100%;
    display: block;
}

.course .hero-info {
    flex: 1;
    min-width: 0;
}

/* Original: font-size 1.5rem, font-weight 700, color #333333 */
.course .hero-info h1 {
    color: #333333;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.course .hero-info h1 .short-name {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

/* Meta row */
.course .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
    align-items: center;
    margin-bottom: 0;
}

/* Original: .course .title span { padding: 0rem 1rem } */
.course .meta-item {
    font-size: 0.85rem;
    color: #666666;
    font-weight: 600;
    padding: 0rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Hero Footer */
.course .hero .card-footer {
    background: #f8f9fb;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1.25rem;
}

.course .hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.course .author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

/* Original: width 40px */
.course .author-img {
    width: 40px;
    height: 40px;
    border-radius: 1rem;
    object-fit: cover;
    flex-shrink: 0;
}

.course .author-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    min-width: 0;
}

/* Original: font-weight 600, color primary, font-size 1rem */
.course .author-name {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
    white-space: nowrap;
}

.course .author-name i {
    color: var(--color-blue);
}

/* Original: color #666666, font-size 0.85rem */
.course .date {
    color: #666666;
    font-size: 0.85rem;
}

/* Action buttons — original: margin 0rem 1rem */
.course .hero-buttons {
    display: flex;
    gap: 0;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.course .hero-buttons .btn {
    margin: 0rem 1rem;
}

/* ── Mobile Hero Adjustments ── */
@media (max-width: 576px) {
    .course .hero-top {
        padding: 1rem 1rem 0.5rem;
    }

    .course .logo-img {
        width: 60px;
        height: 60px;
    }

    .course .hero-info h1 {
        font-size: 1.15rem;
    }

    .course .hero .card-footer {
        padding: 0.65rem 1rem;
    }

    .course .hero-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .course .author-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .course .hero-buttons {
        width: 100%;
        gap: 0.5rem;
    }

    .course .hero-buttons .btn {
        flex: 1;
        margin: 0;
        text-align: center;
        /* btn-sm sizing on mobile */
        padding: 0.25rem 0.5rem;
        font-size: 0.775rem;
        border-radius: 0.2rem;
    }

    .course .meta-item {
        padding: 0rem 0.5rem;
        font-size: 0.8rem;
    }
}


/*--------------------------------------------------------------
# Tabs Navigation — Evenly spaced desktop, scroll on mobile
--------------------------------------------------------------*/
.course .nav-college {
    border: 1px solid #ddd;
     border-radius: 0.3rem;
    overflow: hidden;
}

.course .nav-college .nav-tabs-bordered {
    display: flex;
    flex-wrap: nowrap;
    border-bottom: 2px solid #ebeef4;
    margin-bottom: 0;
    padding-bottom: 0;
    gap: 0;
    width: 100%;
    
}

/* Desktop: each tab fills equal share */
.course .nav-tabs-bordered .nav-item {
    flex: 1 1 0;
    min-width: 0;
}

/* Mobile: horizontal scroll */
@media (max-width: 768px) {
    .course .nav-college .nav-tabs-bordered {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .course .nav-college .nav-tabs-bordered::-webkit-scrollbar {
        display: none;
    }

    .course .nav-tabs-bordered .nav-item {
        flex: 0 0 auto;
    }
}

.course .nav-tabs-bordered .nav-link {
    white-space: nowrap;
    margin-bottom: -2px;
    border: none;
    border-bottom: 2px solid transparent;
    color: #2c384e;
    padding: 0.65rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    border-radius: 0;
    width: 100%;
    text-align: center;
    display: block;
}

.course .nav-tabs-bordered .nav-link:hover,
.course .nav-tabs-bordered .nav-link:focus {
    color: var(--color-primary);
    background: transparent;
}

.course .nav-tabs-bordered .nav-link.active {
    background-color: #f0f0f0;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    border-radius: 0;
}

@media (max-width: 768px) {
    .course .nav-tabs-bordered .nav-link {
        padding: 0.6rem 0.85rem;
        font-size: 0.82rem;
    }
}


/*--------------------------------------------------------------
# Course Card (tab content area)
--------------------------------------------------------------*/
.course .college-card {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius:  0.5rem;
}


/*--------------------------------------------------------------
# Apply Card (sidebar)
--------------------------------------------------------------*/
.course .applycard {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background: #fff;
}

.course .applycard-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

/* Original: 70x70, circle, primary border */
.course .applycard .icon-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    fill: var(--color-primary);
    flex-shrink: 0;
    padding: 7px;
    background: #fff;
    box-sizing: border-box;
}

.course .applycard .icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* SVG inline — fill the padded area, never clip */
.course .applycard .icon-img svg {
    width: 100%;
    height: 100%;
    display: block;
}

.course .applycard-top h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.course .applycard-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Desktop: full Bootstrap button size */
.course .applycard-buttons .btn {
    font-size: 1rem;
    font-weight: 500;
}

/* Mobile: btn-sm sizing */
@media (max-width: 768px) {
    .course .applycard-buttons .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.775rem;
        border-radius: 0.2rem;
    }
}

@media (max-width: 576px) {
    .course .applycard-buttons {
        flex-direction: column;
    }

    .course .applycard-buttons .btn {
        width: 100%;
        padding: 0.25rem 0.5rem;
        font-size: 0.775rem;
        border-radius: 0.2rem;
    }
}


/*--------------------------------------------------------------
# Course Listing Section (original values preserved)
--------------------------------------------------------------*/
.course-listing .course-listing-item {
    margin-bottom: 30px;
}

.course-listing #course-listing-flters {
    list-style: none;
    text-align: center;
    display: flex;
}

.course-listing #course-listing-flters li {
    cursor: pointer;
    display: inline-block;
    padding: 1rem 2rem 1rem 2rem;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #444444;
    margin-bottom: 5px;
    margin-left: 5px;
    transition: all 0.3s ease-in-out;
    border-radius: 2rem;
}

.course-listing #course-listing-flters li:hover,
.course-listing #course-listing-flters li.filter-active {
    color: #fff;
    background: var(--color-primary);
}

.course-listing #course-listing-flters li:last-child {
    margin-right: 0;
}

.course-listing .service-box {
    box-shadow: 0px 0 15px rgba(1, 41, 112, 0.08);
    height: 100%;
    padding: 10px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid #eef0ef;
}

.course-listing .service-box i {
    font-size: 18px;
    margin: 5px;
    color: var(--color-primary);
}

.course-listing .service-box .title {
    color: #444444;
    font-weight: 700;
    font-size: 18px;
}

.course-listing .service-box p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.course-listing .service-box:hover {
    background-color: #f1f1f1;
}

.course-listing .service-box a:hover {
    color: var(--color-primary);
}

/* Original: 54x54 */
.course-listing .service-box .logo {
    margin: 0;
    width: 54px;
    height: 54px;
    background: var(--color-white);
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 28px;
    transition: ease-in-out 0.3s;
    border: 2px solid var(--color-primary-light);
}

.course-listing .service-box .logo .logo-svg {
    fill: var(--color-primary);
}

.course-listing .service-box .logo .logo-svg svg {
    padding: 0.5rem;
    width: 100%;
    height: 100%;
}


/*--------------------------------------------------------------
# Responsive: sidebar stacks below on mobile
--------------------------------------------------------------*/


@media (max-width: 991px) {
      .course .applycard {
        margin-top: 1.5rem;
    }
    .course-listing #course-listing-flters {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 6px;
    }
    .course-listing #course-listing-flters li {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}