﻿/* Courses Hero Section */
.courses-hero {
    padding: 80px 0;
    position: relative;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-divider {
    height: 4px;
    width: 100px;
    margin: 0 auto 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Navigation Cards */
.nav-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 6px 8px;
}

    .nav-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .nav-card.active {
        background: linear-gradient(135deg, #424F9B 0%, #308099 100%);
        color: white;
    }

        .nav-card.active .nav-icon {
            color: white;
        }

        .nav-card.active h3 {
            color: #ffffff;
        }

.nav-icon {
    color: #424F9B;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.nav-card h3 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.nav-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.2; /* smaller than default 1.5 or so */
    margin-bottom: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nav-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centers vertically */
    align-items: center; /* centers horizontally */
    height: 100%; /* take full height of card-body */
    text-align: center; /* center text inside */
    padding: 1rem; /* keep some padding */
}

.nav-card.active p {
    color: rgba(255, 255, 255, 0.8);
}

/* Section Headers */
.section-header {
    margin-bottom: 30px;
}

.section-title {
    color: #424F9B;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.section-divider {
    height: 3px;
    width: 80px;
    background: #308099;
    margin-top: 10px;
}

/* Course Cards */
.course-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

    .course-card:hover {
        transform: translateY(-5px);
    }

.course-header {
    padding: 20px;
}

.course-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.course-dates {
    font-weight: 500;
}

.course-body {
    padding: 20px;
    background: white;
}

.info-item {
    margin-bottom: 20px;
}

    .info-item h5 {
        font-weight: 600;
    }

    .info-item ul {
        padding-left: 20px;
    }

    .info-item li {
        margin-bottom: 8px;
    }

.course-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid #e2e6ea;
}

.course-body {
    padding: 30px;
    background-color: #fff;
}

.custom-bullet {
    color: #308099;
    list-style: none;
    padding-left: 1.2rem;
    position: relative;
}

    .custom-bullet li::before {
        content: "•";
        color: #308099;
        display: inline-block;
        width: 1em;
        margin-left: -1em;
        font-weight: bold;
    }



/* Enhanced Scrollable Navigation - Modified for your needs */
.course-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding: 20px 0;
    margin: 0 60px; /* More space for always-visible indicators */
    position: relative;
}

    .course-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .course-scroll-container.active {
        cursor: grabbing;
    }

.course-scroll-row {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    justify-content: center; /* Center items when not scrolling */
}

.course-scroll-item {
    flex: 0 0 auto;
    width: 240px; /* Larger width to match your original card size */
    margin-right: 20px;
    padding-bottom: 5px;
}

/* Scroll Indicators - Always visible */
.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
/*    z-index: 10;*/
    transition: all 0.3s ease;
    opacity: 0.7; /* Slightly transparent when not hovered */
}

    .scroll-indicator:hover {
        background: #f0f0f0;
        transform: translateY(-50%) scale(1.1);
        opacity: 1;
    }

    .scroll-indicator i {
        font-size: 1.5rem;
        color: #424F9B;
    }

.left-indicator {
    left: 10px;
}

.right-indicator {
    right: 10px;
}

/* Remove the gradient mask since we have always-visible indicators */








/* Mobile Accordion */
.accordion-button {
    font-weight: 600;
    color: #424F9B;
}

    .accordion-button:not(.collapsed) {
        background-color: #424F9B;
        color: white;
    }

        .accordion-button:not(.collapsed)::after {
            filter: brightness(0) invert(1);
        }

/* Responsive Adjustments */
@@media (max-width: 991.98px) {
    .course-categories {
        position: static;
        margin-bottom: 30px;
        padding-right: 0;
    }
}

@* @@media (min-width: 992px) {
    .col-lg-1-7 {
        flex: 0 0 auto;
        width: 14.2857%; /* 100 / 7 */
    }
}

*@

@@media (max-width: 767.98px) {
    .hero-title

{
    font-size: 2rem;
}

.hero-subtitle {
    font-size: 1rem;
}

.nav-card {
    margin-bottom: 10px;
}
/* Mobile course cards */
.course-card {
    margin-bottom: 15px;
}

.course-body {
    padding: 15px;
}

.info-item {
    margin-bottom: 15px;
}
}
