#header .header-nav.header-nav-line nav > ul li:hover > a:before {
    background: #ec1d24;
}

#header .header-nav.header-nav-line nav > ul li:hover > a {
    color: #ec1d24;
}

.header-nav.header-nav-line nav > ul li:hover > a:before {
    background: #ec1d24;
}
#header
    .header-nav.header-nav-line.header-nav-bottom-line.header-nav-bottom-line-active-text-dark
    nav
    > ul
    > li:hover
    > a {
    color: #ec1d24 !important;
}

#header .header-nav.header-nav-line nav > ul:not(:hover) li > a.active {
    color: #ec1d24 !important;
}

#header .header-nav.header-nav-line nav > ul:not(:hover) li > a.active:before {
    background: #ec1d24 !important;
}

.nav-item-left-border a {
    font-size: 14px;
    font-weight: 600;
}

.nav-item-left-border a:hover {
    color: #ec1d24 !important;
}

.header-extra-info-text a:hover {
    color: #ec1d24 !important;
    text-decoration: none;
}

.featured-boxes-style-4 .featured-box.featured-box-primary .icon-featured {
    border-color: #ec1d24;
    border-color: #ec1d24;
    color: #ec1d24 !important;
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu {
    border-top-color: #ec1d24;
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a:hover,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a:focus,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a.active,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a:active {
    color: #ec1d24;
}

html .btn-dark:hover:not(.bg-transparent),
html .btn-dark.hover:not(.bg-transparent) {
    background-color: #ec1d24;
    border-color: #ec1d24;
}

html .bg-color-primary,
html .bg-primary {
    background-color: #ec1d24 !important;
}

.overlay:before {
    background: none;
}

#footer {
    background: #ec1d24 !important;
}

.social-icons li:hover.social-icons-instagram a {
    background: linear-gradient(
        45deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    ) !important;
}
html
    .accordion-modern-status-primary.accordion-modern-status
    > .card
    .card-header
    a:not(.collapsed) {
    background-color: #ec1d24 !important;
    color: #fff !important;
}
html
    .accordion-modern-status-primary.accordion-modern-status
    > .card:hover
    .card-header
    a.collapsed {
    color: #ec1d24 !important;
}
html .text-primary {
    color: #ec1d24 !important;
}

.carousel-indicators [data-bs-target] {
    background-color: #ec1d24 !important;
}

.breadcrumb a {
    color: #ec1d24 !important;
}

.breadcrumb a:hover {
    color: #275b83 !important;
}

.p-static h1 {
    color: #ec1d24 !important;
}
html .text-color-hover-primary:hover,
html .text-hover-primary:hover {
    color: #ec1d24 !important;
}
.recent-posts .date .month,
article.post .post-date .month {
    background-color: #ec1d24;
}

.recent-posts .date .day,
article.post .post-date .day {
    color: #ec1d24;
}
article.post .post-date {
    float: left;
    margin-right: 0px;
    text-align: center;
}

#header .header-btn-collapse-nav {
    background: #ec1d24;
}

@media (max-width: 991px) {
    #header .header-nav.header-nav-line nav > ul:not(:hover) li > a.active {
        color: #fff !important;
    }
    #header .header-nav-main:not(.header-nav-main-mobile-dark) nav>ul>li>a.active {
         background: #ec1d24;
    }

    #header .header-nav-main:not(.header-nav-main-mobile-dark) nav>ul>li>a {
        color: #ec1d24;
    }
}

@media (max-width: 576px) {
  #header .header-nav-features .header-nav-features-dropdown.header-nav-features-dropdown-mobile-fixed {
    position: fixed;
    right: auto;
    left: 50%;
    transform: translate3d(-50%,0,0);
    top: 5%;
  }
}


/* =========================================
   Premium Slider Design
========================================= */

#carouselExampleAutoplaying {
    border-radius: 14px;
    overflow: hidden;
}

/* Slider Images */
#carouselExampleAutoplaying .carousel-item img {
    width: 100%;
    display: block;

    border-radius: 14px;
}


/* Indicators */
#carouselExampleAutoplaying .carousel-indicators {
    margin-bottom: 18px;
}

#carouselExampleAutoplaying .carousel-indicators button {
    width: 8px;
    height: 8px;

    border: 0;
    border-radius: 50%;

    margin: 0 4px;

    opacity: 0.6;

    transition: all 0.3s ease;
}

#carouselExampleAutoplaying .carousel-indicators button.active {
    width: 24px;
    border-radius: 10px;
    opacity: 1;
}



/* =========================================
   Pre-recorded Course Banner
========================================= */

.prerecorded-banner-section {
    padding: 18px 0 5px;
}

.prerecorded-banner {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 115px;

    padding: 18px 18px 18px 22px;

    overflow: hidden;

    border-radius: 12px;

    background:
        radial-gradient(
            circle at 100% 50%,
            rgba(236, 29, 36, 0.20),
            transparent 30%
        ),
        linear-gradient(
            90deg,
            #171d2b 0%,
            #101827 65%,
            #151927 100%
        );
}


/* =========================================
   Content
========================================= */

.prerecorded-content {
    display: flex;
    align-items: center;

    gap: 18px;

    min-width: 0;
}


/* =========================================
   Icon
========================================= */

.prerecorded-icon {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 78px;
    min-width: 78px;
    height: 78px;

    font-size: 55px;

    line-height: 1;

    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.20));
}

.prerecorded-icon .play-icon {
    position: absolute;

    top: 0;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 30px;

    background: #ff5a5f;

    color: #fff;

    border-radius: 4px;

    font-size: 17px;

    padding-left: 2px;
}


/* =========================================
   Text
========================================= */

.prerecorded-text {
    color: #fff;
}

.prerecorded-text h3 {
    margin: 0 0 4px;

    color: #fff;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.25;
}

.prerecorded-text p {
    margin: 0;

    color: rgba(255, 255, 255, 0.90);

    font-size: 15px;
    font-weight: 400;

    line-height: 1.4;
}


/* =========================================
   Button
========================================= */

.prerecorded-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-width: 190px;
    height: 52px;

    padding: 0 24px;

    flex-shrink: 0;

    background: #ec1d24;

    color: #fff;

    border-radius: 7px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.prerecorded-btn i {
    font-size: 16px;

    transition: transform 0.25s ease;
}


/* =========================================
   Button Hover
========================================= */

.prerecorded-btn:hover {
    background: #d71920;

    color: #fff;

    text-decoration: none;

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20);
}

.prerecorded-btn:hover i {
    transform: translateX(4px);
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 767px) {

    .prerecorded-banner-section {
        padding: 15px 0 5px;
    }

    .prerecorded-banner {
        min-height: auto;

        padding: 18px;

        flex-direction: column;
        align-items: stretch;

        gap: 18px;
    }

    .prerecorded-content {
        gap: 12px;
    }

    .prerecorded-icon {
        width: 60px;
        min-width: 60px;
        height: 60px;

        font-size: 42px;
    }

    .prerecorded-icon .play-icon {
        width: 29px;
        height: 23px;

        font-size: 12px;
    }

    .prerecorded-text h3 {
        font-size: 17px;
    }

    .prerecorded-text p {
        font-size: 13px;
    }

    .prerecorded-btn {
        width: 100%;
        min-width: 0;

        height: 48px;

        font-size: 14px;
    }
}


/* =========================================
   Small Mobile
========================================= */

@media (max-width: 420px) {

    .prerecorded-content {
        align-items: flex-start;
    }

    .prerecorded-text h3 {
        font-size: 16px;
    }

    .prerecorded-text p {
        font-size: 13px;
    }
}



/* =========================================
   Upcoming Live Course Section
========================================= */

.upcoming-live-section {
    padding: 18px 0 10px;
}

.upcoming-live-wrapper {
    background: #fff;
    border-radius: 18px;
    padding: 18px 18px 18px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
}


/* =========================================
   Section Header
========================================= */

.upcoming-live-header {
    text-align: center;
    margin-bottom: 18px;
}

.upcoming-live-header h2 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #17233a;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.25;
}

.live-title-icon {
    color: #ec1d24;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
}


/* =========================================
   Category Wrapper
========================================= */

.live-category-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 26px;
}

.live-category-list {
    display: flex;
    align-items: stretch;
    gap: 13px;

    overflow-x: auto;
    scrollbar-width: none;

    padding: 0;
}

.live-category-list::-webkit-scrollbar {
    display: none;
}


/* =========================================
   Category Item
========================================= */

.live-category-item {
    flex: 1 0 0;
    height: 62px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 8px 12px;

    border: 1px solid #dfe3e8;
    border-radius: 6px;

    background: #fafbfc;

    color: #182033;
    text-decoration: none;

    transition: all 0.25s ease;
}

.live-category-item:hover {
    color: #182033;
    text-decoration: none;
    border-color: #cfd5dc;
    background: #f6f7f9;
}


/* =========================================
   Category Icon
========================================= */

.category-icon {
    width: 34px;
    min-width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;

    border-radius: 50%;

    color: #171717;

    font-size: 14px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.category-content strong {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-content small {
    margin-top: 3px;
    font-size: 12px;
    color: #394255;
}


/* =========================================
   Category Arrow
========================================= */

/*.live-category-arrow {*/
/*    position: absolute;*/

/*    left: 4px;*/
/*    top: 50%;*/

/*    transform: translateY(-50%);*/

/*    z-index: 5;*/

/*    width: 47px;*/
/*    height: 47px;*/

/*    border: 0;*/
/*    border-radius: 50%;*/

/*    background: #fff;*/
/*    color: #111;*/

/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/

/*    font-size: 17px;*/

/*    box-shadow:*/
/*        0 4px 12px rgba(0, 0, 0, 0.12);*/

/*    cursor: pointer;*/
/*}*/

.live-category-arrow:hover {
    background: #f8f8f8;
}

.live-category-list {
    padding-left: 0;
}


/* =========================================
   Course Grid
========================================= */

.upcoming-course-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}


/* =========================================
   Course Card
========================================= */

.upcoming-course-card {
    min-width: 0;

    background: #fff;

    border: 1px solid #e2e5e9;
    border-radius: 9px;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.upcoming-course-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08);
}


/* =========================================
   Course Image
========================================= */

.course-image {
    width: 100%;
    aspect-ratio: 1.82 / 1;

    overflow: hidden;

    background: #f1f2f4;
}

.course-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.upcoming-course-card:hover .course-image img {
    transform: scale(1.025);
}


/* =========================================
   Top Meta
========================================= */

.course-meta-top {
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 7px;

    padding: 0 9px;

    border-bottom: 1px solid #e6e7e9;
}


/* Students */

.course-students {
    display: flex;
    align-items: center;

    gap: 4px;

    color: #222d3d;

    font-size: 12px;
    white-space: nowrap;
}

.student-avatars {
    display: inline-flex;
    align-items: center;
}

.student-avatars span {
    width: 23px;
    height: 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: -5px;

    background: #dce9ed;

    border: 1px solid #fff;

    border-radius: 50%;

    font-size: 12px;
}

.student-avatars span:first-child {
    margin-left: 0;
}


/* Class start */

.class-start {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 4px 7px;

    border: 1px solid #ffb900;
    border-radius: 15px;

    color: #202633;

    font-size: 11px;
    white-space: nowrap;
}

.class-start i {
    color: #ffb900;
    font-size: 9px;
}


/* =========================================
   Course Title
========================================= */

.course-title {
    min-height: 76px;

    padding: 10px 9px 5px;

    color: #0d1c35;

    font-size: 20px;
    font-weight: 600;

    line-height: 1.4;
}


/* =========================================
   Course Info
========================================= */

.course-info {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 0 9px 9px;
}

.course-info span {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 4px 7px;

    background: #f8f9fa;
    border: 1px solid #e6e8eb;

    color: #344054;

    font-size: 11px;

    white-space: nowrap;
}

.course-info i {
    font-size: 10px;
}


/* =========================================
   Price Row
========================================= */

.course-price-row {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    padding: 7px 9px;

    background: #f8f8f8;
}

.course-price {
    color: #111827;

    font-size: 22px;
    font-weight: 700;

    white-space: nowrap;
}

.course-price del {
    margin-left: 4px;

    color: #8a8f98;

    font-size: 13px;
    font-weight: 400;
}


/* =========================================
   Discount Badge
========================================= */

.discount-badge {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 4px;

    padding: 5px 7px;

    background: #ffb900;

    color: #111;

    border-radius: 4px;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}

.discount-badge i {
    font-size: 10px;
}


/* =========================================
   Last Date
========================================= */

.course-last-date {
    margin: 5px 9px 9px;

    padding: 4px 7px;

    background: #fff7df;

    border: 1px solid #f4d57b;

    color: #bd8610;

    font-size: 11px;

    line-height: 1.3;
}

.course-last-date i {
    margin-right: 4px;
}


/* =========================================
   Details Button
========================================= */

.course-details-btn {
    height: 41px;

    margin: 0 9px 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    background: #101827;
    color: #fff;

    border-radius: 6px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.course-details-btn:hover {
    background: #ec1d24;
    color: #fff;
    text-decoration: none;
}

.course-details-btn i {
    font-size: 17px;

    transition: transform 0.25s ease;
}

.course-details-btn:hover i {
    transform: translateX(4px);
}


/* =========================================
   View All
========================================= */

.upcoming-view-all {
    display: flex;
    justify-content: center;

    margin-top: 26px;
}

.upcoming-view-all a {
    width: 422px;
    max-width: 100%;

    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    background: #e9ebef;

    color: #151922;

    border-radius: 9px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition: all 0.25s ease;
}

.upcoming-view-all a:hover {
    background: #dfe2e7;
    color: #111827;
    text-decoration: none;
}

.upcoming-view-all i {
    font-size: 18px;

    transition: transform 0.25s ease;
}

.upcoming-view-all a:hover i {
    transform: translateX(5px);
}


/* =========================================
   Tablet
========================================= */

@media (max-width: 1100px) {

    .upcoming-course-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .live-category-item {
        flex: 0 0 220px;
    }

}


/* =========================================
   Mobile
========================================= */

@media (max-width: 767px) {

    .upcoming-live-section {
        padding: 15px 0 8px;
    }

    .upcoming-live-wrapper {
        padding: 15px 12px;
        border-radius: 13px;
    }

    .upcoming-live-header {
        margin-bottom: 15px;
    }

    .upcoming-live-header h2 {
        font-size: 22px;
        gap: 7px;
    }

    .live-title-icon {
        font-size: 21px;
    }


    /* Categories */

    .live-category-wrapper {
        margin-bottom: 18px;
    }

    .live-category-list {
        gap: 9px;
        overflow-x: auto;
    }

    .live-category-item {
        flex: 0 0 215px;

        height: 58px;

        padding: 7px 10px;
    }

    .category-icon {
        width: 31px;
        min-width: 31px;
        height: 31px;

        font-size: 13px;
    }

    .category-content strong {
        font-size: 13px;
    }

    .category-content small {
        font-size: 11px;
    }


    /* Hide arrow on mobile */

    /*.live-category-arrow {*/
    /*    display: none;*/
    /*}*/


    /* Course Grid */

    .upcoming-course-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .course-title {
        min-height: auto;

        font-size: 18px;
        line-height: 1.4;
    }

    .course-price {
        font-size: 20px;
    }

}


/* =========================================
   Small Mobile
========================================= */

@media (max-width: 420px) {

    .upcoming-live-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    .upcoming-live-header h2 {
        font-size: 20px;
    }

    .course-meta-top {
        padding-left: 7px;
        padding-right: 7px;
    }

    .course-students {
        font-size: 11px;
    }

    .class-start {
        font-size: 10px;
        padding: 4px 6px;
    }

    .course-info {
        gap: 5px;
    }

    .course-info span {
        font-size: 10px;
        padding: 4px 5px;
    }

    .course-price-row {
        padding-left: 8px;
        padding-right: 8px;
    }

    .course-price {
        font-size: 19px;
    }

    .course-price del {
        font-size: 12px;
    }

    .discount-badge {
        font-size: 11px;
    }

}
