/* =========================================================
   TRAINING - SHARED HERO
========================================================= */

.course-page-hero {
    padding: 90px 0;

    background: linear-gradient(
        110deg,
        #082b55 0%,
        #0d416f 65%,
        #145783 100%
    );

    color: #fff;
}

.course-page-hero .container {
    max-width: 1320px;
}

.course-eyebrow {
    display: block;

    color: var(--secondary);

    font-size: 15px;
    font-weight: 600;

    letter-spacing: 4px;

    text-transform: uppercase;

    margin-bottom: 12px;
}

.course-page-hero h1 {
    color: #fff;

    font-size: 48px;
    line-height: 1.1;

    font-weight: 600;

    max-width: 900px;

    margin-bottom: 18px;
}

.course-page-hero p {
    color: rgba(255, 255, 255, .86);

    font-size: 17px;
    line-height: 1.7;

    max-width: 850px;

    margin: 0;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.course-breadcrumb {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 16px;

    font-size: 14px;
}

.course-breadcrumb a {
    color: var(--secondary);

    text-decoration: none;
}

.course-breadcrumb a:hover {
    color: #fff;
}

.course-breadcrumb span {
    color: rgba(255,255,255,.78);
}


/* =========================================================
   SHARED CONTENT SECTIONS
========================================================= */

.course-list-section,
.category-section,
.subcourse-section {
    padding: 90px 0 110px;

    background: #f5f6f7;
}

.course-list-section .container,
.category-section .container,
.subcourse-section .container {
    max-width: 1320px;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.section-header {
    max-width: 850px;

    margin-bottom: 45px;
}

.section-header > span {
    display: block;

    color: var(--secondary);

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 3px;

    margin-bottom: 8px;
}

.section-header h2 {
    color: #18212b;

    font-size: 38px;
    line-height: 1.2;

    font-weight: 600;

    margin: 0;
}


/* =========================================================
   MAIN COURSE CARD
========================================================= */

.course-card {
    display: block;

    height: 100%;

    background: #fff;

    border: 1px solid #e2e5e8;

    color: #222;

    text-decoration: none;

    overflow: hidden;

    transition: .3s ease;
}

.course-card:hover {
    color: #222;

    transform: translateY(-8px);

    border-color: transparent;

    box-shadow: 0 20px 45px rgba(0,0,0,.10);
}


/* Image */

.course-card-image {
    height: 250px;

    overflow: hidden;

    background: #e9edf0;
}

.course-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.06);
}

.course-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #082b55,
        #155984
    );

    color: var(--secondary);

    font-size: 60px;
}


/* Body */

.course-card-body {
    padding: 32px;
}

.course-count {
    display: inline-block;

    color: var(--secondary);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

    margin-bottom: 13px;
}

.course-card h2 {
    color: #18212b;

    font-size: 25px;
    line-height: 1.3;

    font-weight: 600;

    margin-bottom: 15px;
}

.course-card p {
    color: #666;

    font-size: 15px;
    line-height: 1.7;

    margin-bottom: 25px;
}

.course-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--primary);

    font-size: 14px;
    font-weight: 600;
}

.course-link i {
    transition: transform .25s ease;
}

.course-card:hover .course-link {
    color: var(--secondary);
}

.course-card:hover .course-link i {
    transform: translateX(5px);
}


/* =========================================================
   CATEGORY CARD
========================================================= */

.category-card {
    display: flex;

    width: 100%;

    min-height: 225px;
    height: 100%;

    background: #fff;

    border: 1px solid #e1e4e8;

    color: #222;

    text-decoration: none;

    overflow: hidden;

    position: relative;

    transition: .3s ease;
}

.category-card:hover {
    color: #222;

    transform: translateY(-7px);

    border-color: transparent;

    box-shadow: 0 18px 40px rgba(0,0,0,.09);
}


/* Bottom accent */

.category-card::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 4px;

    background: var(--secondary);

    transition: width .3s ease;
}

.category-card:hover::after {
    width: 100%;
}


/* Number */

.category-number {
    width: 88px;
    min-width: 88px;

    padding-top: 36px;

    display: flex;

    align-items: flex-start;
    justify-content: center;

    background: var(--primary);

    color: var(--secondary);

    font-size: 23px;
    font-weight: 600;
}


/* Category body */

.category-card-content {
    flex: 1;

    padding: 35px 28px;
}

.category-card-content h3 {
    color: #18212b;

    font-size: 23px;
    line-height: 1.3;

    font-weight: 600;

    margin-bottom: 14px;
}

.category-card-content p {
    color: #777;

    font-size: 14px;

    margin-bottom: 24px;
}

.category-card-content span {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--primary);

    font-size: 14px;
    font-weight: 600;
}

.category-card-content span i {
    transition: transform .25s ease;
}

.category-card:hover .category-card-content span {
    color: var(--secondary);
}

.category-card:hover .category-card-content span i {
    transform: translateX(5px);
}


/* =========================================================
   SUB COURSE CARD
========================================================= */

.subcourse-card {
    display: block;

    height: 100%;

    background: #fff;

    border: 1px solid #e2e5e8;

    color: #222;

    text-decoration: none;

    overflow: hidden;

    transition: .3s ease;
}

.subcourse-card:hover {
    color: #222;

    transform: translateY(-8px);

    box-shadow: 0 20px 45px rgba(0,0,0,.10);
}


/* Sub course image */

.subcourse-image {
    height: 240px;

    overflow: hidden;

    background: #e8ebee;
}

.subcourse-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.subcourse-card:hover .subcourse-image img {
    transform: scale(1.06);
}

.subcourse-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #092c52,
        #11608b
    );

    color: var(--secondary);

    font-size: 55px;
}


/* Body */

.subcourse-body {
    padding: 30px;
}

.subcourse-category {
    display: inline-block;

    color: var(--secondary);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

    margin-bottom: 12px;
}

.subcourse-card h2 {
    color: #18212b;

    font-size: 24px;
    line-height: 1.3;

    font-weight: 600;

    margin-bottom: 15px;
}

.subcourse-card p {
    color: #666;

    font-size: 15px;
    line-height: 1.7;

    margin-bottom: 25px;
}

.subcourse-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--primary);

    font-size: 14px;
    font-weight: 600;
}

.subcourse-link i {
    transition: transform .25s ease;
}

.subcourse-card:hover .subcourse-link {
    color: var(--secondary);
}

.subcourse-card:hover .subcourse-link i {
    transform: translateX(5px);
}


/* =========================================================
   EMPTY
========================================================= */

.empty-courses {
    padding: 40px;

    background: #fff;

    border: 1px solid #e1e4e8;

    color: #555;

    font-size: 16px;

    text-align: center;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .course-page-hero {
        padding: 70px 0;
    }

    .course-page-hero h1 {
        font-size: 40px;
    }

    .course-page-hero p {
        font-size: 16px;
    }

    .course-list-section,
    .category-section,
    .subcourse-section {
        padding: 70px 0 90px;
    }

    .section-header h2 {
        font-size: 33px;
    }

    .course-card-image,
    .subcourse-image {
        height: 220px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .course-page-hero {
        padding: 55px 0;
    }

    .course-page-hero h1 {
        font-size: 31px;
    }

    .course-page-hero p {
        font-size: 14px;
    }

    .course-eyebrow {
        font-size: 12px;

        letter-spacing: 3px;
    }

    .course-breadcrumb {
        font-size: 12px;
    }

    .course-list-section,
    .category-section,
    .subcourse-section {
        padding: 55px 0 70px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .course-card-image,
    .subcourse-image {
        height: 200px;
    }

    .course-card-body,
    .subcourse-body {
        padding: 24px;
    }

    .category-number {
        width: 65px;
        min-width: 65px;

        font-size: 19px;

        padding-top: 28px;
    }

    .category-card-content {
        padding: 27px 20px;
    }

    .category-card-content h3 {
        font-size: 21px;
    }

    .course-card h2,
    .subcourse-card h2 {
        font-size: 21px;
    }
}

/* =========================================================
   CATEGORY SECTION - SPLIT CARD WITH LARGE NUMBER
========================================================= */

.category-section {
    padding: 95px 0 120px;
    background: linear-gradient(180deg, #f7f8fa 0%, #f2f4f7 100%);
}

.category-section .container {
    max-width: 1320px;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.section-header {
    max-width: 850px;
    margin-bottom: 50px;
}

.section-header > span {
    display: block;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    color: #10243f;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0;
}


/* =========================================================
   CATEGORY CARD
========================================================= */

.category-card {
    display: flex;
    align-items: stretch;

    width: 100%;
    min-height: 175px;
    height: 100%;

    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;

    border: 1px solid #e4e8ee;

    text-decoration: none;
    color: #17202a;

    box-shadow: 0 8px 20px rgba(10, 35, 66, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(10, 35, 66, 0.12);
    border-color: rgba(255, 184, 0, 0.35);
    color: #17202a;
}


/* =========================================================
   SPLIT NUMBER PANEL
========================================================= */

.category-number {
    width: 120px;
    min-width: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;

    color: rgba(255, 255, 255, 0.35);

    position: relative;

    clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}


/* Large visible number */
.category-number::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.category-number {
    z-index: 1;
}


/* Different card colors */
/* .category-section .col-lg-4:nth-child(3n + 1) .category-number {
    background: linear-gradient(180deg, #1e73d8 0%, #0d4ea5 100%);
}

.category-section .col-lg-4:nth-child(3n + 2) .category-number {
    background: linear-gradient(180deg, #ffc531 0%, #f0ab00 100%);
}

.category-section .col-lg-4:nth-child(3n + 3) .category-number {
    background: linear-gradient(180deg, #22c7be 0%, #119e97 100%);
} */


/* =========================================================
   DIFFERENT MUTED COLORS FOR EACH CARD
========================================================= */

.category-section .col-lg-4:nth-child(6n + 1) .category-number {
    background: linear-gradient(180deg, #79a7e3 0%, #5d8fce 100%);
    color: rgba(255, 255, 255, 0.42);
}

.category-section .col-lg-4:nth-child(6n + 2) .category-number {
    background: linear-gradient(180deg, #e8c978 0%, #dcb760 100%);
    color: rgba(255, 255, 255, 0.42);
}

.category-section .col-lg-4:nth-child(6n + 3) .category-number {
    background: linear-gradient(180deg, #73c9c4 0%, #59b5af 100%);
    color: rgba(255, 255, 255, 0.42);
}

.category-section .col-lg-4:nth-child(6n + 4) .category-number {
    background: linear-gradient(180deg, #a990d8 0%, #8c75c2 100%);
    color: rgba(255, 255, 255, 0.42);
}

.category-section .col-lg-4:nth-child(6n + 5) .category-number {
    background: linear-gradient(180deg, #d79aa9 0%, #c47f90 100%);
    color: rgba(255, 255, 255, 0.42);
}

.category-section .col-lg-4:nth-child(6n + 6) .category-number {
    background: linear-gradient(180deg, #8eb99d 0%, #72a282 100%);
    color: rgba(255, 255, 255, 0.42);
}

/* Number text color tuning */
.category-section .col-lg-4:nth-child(3n + 1) .category-number {
    color: rgba(255, 255, 255, 0.28);
}

.category-section .col-lg-4:nth-child(3n + 2) .category-number {
    color: rgba(255, 255, 255, 0.32);
}

.category-section .col-lg-4:nth-child(3n + 3) .category-number {
    color: rgba(255, 255, 255, 0.30);
}



/* =========================================================
   CATEGORY CONTENT
========================================================= */

.category-card-content {
    flex: 1;
    padding: 28px 26px 24px 18px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
}

/* soft decorative glow */
.category-card-content::after {
    content: "";
    position: absolute;
    right: -22px;
    top: -22px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 195, 49, 0.10);
    pointer-events: none;
}

.category-card-content h3 {
    color: #10243f;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 10px;

    max-width: 90%;
    position: relative;
    z-index: 1;
}

.category-card-content p {
    color: #7d8793;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;

    position: relative;
    z-index: 1;
}


/* =========================================================
   EXPLORE LINK
========================================================= */

.category-card-content span {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;

    color: #0b3263;
    font-size: 14px;
    font-weight: 700;

    position: relative;
    z-index: 1;

    transition: color 0.25s ease, gap 0.25s ease;
}

.category-card-content span i {
    font-size: 14px;
    transition: transform 0.25s ease;
}

.category-card:hover .category-card-content span {
    color: #e1a100;
    gap: 11px;
}

.category-card:hover .category-card-content span i {
    transform: translateX(4px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
    .section-header h2 {
        font-size: 34px;
    }

    .category-card {
        min-height: 165px;
    }

    .category-number {
        width: 105px;
        min-width: 105px;
        font-size: 24px;
    }

    .category-card-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .category-section {
        padding: 60px 0 75px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 29px;
    }

    .category-card {
        min-height: 155px;
        border-radius: 12px;
    }

    .category-number {
        width: 82px;
        min-width: 82px;
        font-size: 20px;
    }

    .category-card-content {
        padding: 22px 18px 20px 14px;
    }

    .category-card-content h3 {
        font-size: 18px;
        max-width: 100%;
    }

    .category-card-content p {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .category-card-content span {
        font-size: 13px;
    }
}
.category-number {
    color: #ffffff !important;
}

/* =========================================================
   CATEGORY SECTION - SPLIT CARD WITH LARGE NUMBER
========================================================= */

.category-section {
    padding: 95px 0 120px;
    background: linear-gradient(180deg, #f7f8fa 0%, #f2f4f7 100%);
}

.category-section .container {
    max-width: 1320px;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.section-header {
    max-width: 850px;
    margin-bottom: 50px;
}

.section-header > span {
    display: block;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    color: #10243f;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0;
}


/* =========================================================
   CATEGORY CARD
========================================================= */

.category-card {
    display: flex;
    align-items: stretch;

    width: 100%;
    min-height: 175px;
    height: 100%;

    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;

    border: 1px solid #e4e8ee;

    text-decoration: none;
    color: #17202a;

    box-shadow: 0 8px 20px rgba(10, 35, 66, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(10, 35, 66, 0.12);
    border-color: rgba(255, 184, 0, 0.35);
    color: #17202a;
}


/* =========================================================
   SPLIT NUMBER PANEL
========================================================= */

.category-number {
    width: 120px;
    min-width: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;

    color: rgba(255, 255, 255, 0.35);

    position: relative;

    clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}


/* Large visible number */
.category-number::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.category-number {
    z-index: 1;
}


/* Different card colors */
.category-section .col-lg-4:nth-child(3n + 1) .category-number {
    background: linear-gradient(180deg, #1e73d8 0%, #0d4ea5 100%);
}

.category-section .col-lg-4:nth-child(3n + 2) .category-number {
    background: linear-gradient(180deg, #ffc531 0%, #f0ab00 100%);
}

.category-section .col-lg-4:nth-child(3n + 3) .category-number {
    background: linear-gradient(180deg, #22c7be 0%, #119e97 100%);
}


/* Number text color tuning */
.category-section .col-lg-4:nth-child(3n + 1) .category-number {
    color: rgba(255, 255, 255, 0.28);
}

.category-section .col-lg-4:nth-child(3n + 2) .category-number {
    color: rgba(255, 255, 255, 0.32);
}

.category-section .col-lg-4:nth-child(3n + 3) .category-number {
    color: rgba(255, 255, 255, 0.30);
}


/* =========================================================
   CATEGORY CONTENT
========================================================= */

.category-card-content {
    flex: 1;
    padding: 28px 26px 24px 18px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
}

/* soft decorative glow */
.category-card-content::after {
    content: "";
    position: absolute;
    right: -22px;
    top: -22px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 195, 49, 0.10);
    pointer-events: none;
}

.category-card-content h3 {
    color: #10243f;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 10px;

    max-width: 90%;
    position: relative;
    z-index: 1;
}

.category-card-content p {
    color: #7d8793;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;

    position: relative;
    z-index: 1;
}


/* =========================================================
   EXPLORE LINK
========================================================= */

.category-card-content span {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;

    color: #0b3263;
    font-size: 14px;
    font-weight: 700;

    position: relative;
    z-index: 1;

    transition: color 0.25s ease, gap 0.25s ease;
}

.category-card-content span i {
    font-size: 14px;
    transition: transform 0.25s ease;
}

.category-card:hover .category-card-content span {
    color: #e1a100;
    gap: 11px;
}

.category-card:hover .category-card-content span i {
    transform: translateX(4px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
    .section-header h2 {
        font-size: 34px;
    }

    .category-card {
        min-height: 165px;
    }

    .category-number {
        width: 105px;
        min-width: 105px;
        font-size: 24px;
    }

    .category-card-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .category-section {
        padding: 60px 0 75px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 29px;
    }

    .category-card {
        min-height: 155px;
        border-radius: 12px;
    }

    .category-number {
        width: 82px;
        min-width: 82px;
        font-size: 20px;
    }

    .category-card-content {
        padding: 22px 18px 20px 14px;
    }

    .category-card-content h3 {
        font-size: 18px;
        max-width: 100%;
    }

    .category-card-content p {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .category-card-content span {
        font-size: 13px;
    }
}

/* =========================================================
   CATEGORY SECTION - TIMELINE STYLE
========================================================= */

.category-section {
    padding: 95px 0 120px;
    background: #f5f7fa;
}

.category-section .container {
    max-width: 1320px;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.section-header {
    max-width: 850px;
    margin-bottom: 55px;
}

.section-header > span {
    display: block;
    color: var(--secondary);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 4px;
    text-transform: uppercase;

    margin-bottom: 10px;
}

.section-header h2 {
    color: #10243f;

    font-size: 40px;
    line-height: 1.15;

    font-weight: 700;

    margin: 0;
}


/* =========================================================
   TIMELINE GRID
========================================================= */

.timeline-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 28px 70px;

    position: relative;
}


/* center vertical line */

.timeline-grid::before {
    content: "";

    position: absolute;

    top: 10px;
    bottom: 10px;

    left: 50%;

    width: 2px;

    transform: translateX(-50%);

    background: #d9e1e9;
}


/* =========================================================
   TIMELINE ITEM
========================================================= */

.timeline-item {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 150px;
}


/* Left column */

.timeline-item:nth-child(odd) {
    justify-content: flex-end;

    padding-right: 45px;
}


/* Right column */

.timeline-item:nth-child(even) {
    justify-content: flex-start;

    padding-left: 45px;
}


/* =========================================================
   TIMELINE DOT
========================================================= */

.timeline-dot {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 3;

    color: #fff;

    font-size: 14px;
    font-weight: 700;

    box-shadow:
        0 6px 18px rgba(8, 43, 85, 0.16);

    border: 4px solid #f5f7fa;
}


/* place dots on center line */

.timeline-item:nth-child(odd) .timeline-dot {
    right: -24px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -24px;
}


/* =========================================================
   DIFFERENT MUTED DOT COLORS
========================================================= */

.timeline-item:nth-child(6n + 1) .timeline-dot {
    background: #6f9ed8;
}

.timeline-item:nth-child(6n + 2) .timeline-dot {
    background: #dfbd62;
}

.timeline-item:nth-child(6n + 3) .timeline-dot {
    background: #63bbb5;
}

.timeline-item:nth-child(6n + 4) .timeline-dot {
    background: #9b83cf;
}

.timeline-item:nth-child(6n + 5) .timeline-dot {
    background: #cc8998;
}

.timeline-item:nth-child(6n + 6) .timeline-dot {
    background: #80aa8d;
}


/* =========================================================
   TIMELINE CARD
========================================================= */

.timeline-card {
    width: 100%;
    max-width: 520px;

    min-height: 140px;

    display: block;

    background: #fff;

    border: 1px solid #e1e6ec;

    border-radius: 16px;

    text-decoration: none;

    color: #17202a;

    box-shadow:
        0 7px 22px rgba(8, 43, 85, 0.06);

    position: relative;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.timeline-card:hover {
    color: #17202a;

    transform: translateY(-5px);

    border-color: rgba(255, 184, 0, .4);

    box-shadow:
        0 18px 40px rgba(8, 43, 85, 0.12);
}


/* =========================================================
   CONNECTOR LINE
========================================================= */

.timeline-item::after {
    content: "";

    position: absolute;

    top: 50%;

    width: 45px;
    height: 2px;

    background: #d9e1e9;

    transform: translateY(-50%);
}


.timeline-item:nth-child(odd)::after {
    right: 0;
}

.timeline-item:nth-child(even)::after {
    left: 0;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.timeline-card-content {
    padding: 28px 30px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    min-height: 140px;
}

.timeline-card-content h3 {
    color: #10243f;

    font-size: 22px;

    line-height: 1.25;

    font-weight: 700;

    margin-bottom: 10px;
}

.timeline-card-content p {
    color: #7c8793;

    font-size: 13px;

    margin-bottom: 18px;
}


/* =========================================================
   EXPLORE LINK
========================================================= */

.timeline-card-content span {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #0b3f71;

    font-size: 13px;

    font-weight: 700;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.timeline-card-content span i {
    transition: transform 0.25s ease;
}

.timeline-card:hover .timeline-card-content span {
    color: #e2a000;

    gap: 11px;
}

.timeline-card:hover .timeline-card-content span i {
    transform: translateX(5px);
}


/* =========================================================
   SUBTLE ACCENT BAR
========================================================= */

.timeline-card::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    width: 4px;

    background: var(--secondary);

    opacity: 0;

    transition: opacity 0.25s ease;
}


/* left cards */
.timeline-item:nth-child(odd) .timeline-card::before {
    right: 0;
}


/* right cards */
.timeline-item:nth-child(even) .timeline-card::before {
    left: 0;
}


.timeline-card:hover::before {
    opacity: 1;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .section-header h2 {
        font-size: 34px;
    }

    .timeline-grid {
        gap: 24px 50px;
    }

    .timeline-card-content h3 {
        font-size: 20px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .category-section {
        padding: 60px 0 75px;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: 29px;
    }


    .timeline-grid {
        display: block;
    }


    .timeline-grid::before {
        left: 24px;
    }


    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        justify-content: flex-start;

        padding-left: 65px;
        padding-right: 0;

        margin-bottom: 24px;
    }


    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 0;
        right: auto;
    }


    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 24px;
        right: auto;

        width: 40px;
    }


    .timeline-card {
        max-width: 100%;

        min-height: 130px;
    }


    .timeline-card-content {
        min-height: 130px;

        padding: 24px;
    }


    .timeline-card-content h3 {
        font-size: 19px;
    }
}

/* =========================================================
   SUB COURSE SECTION
========================================================= */

.subcourse-section {
    padding: 95px 0 120px;

    background:
        linear-gradient(
            180deg,
            #f7f9fb 0%,
            #f2f5f8 100%
        );
}

.subcourse-section .container {
    max-width: 1320px;
}


/* =========================================================
   HEADER
========================================================= */

.subcourse-section-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 50px;
}

.subcourse-eyebrow {
    display: block;

    color: var(--secondary);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 4px;

    margin-bottom: 10px;
}

.subcourse-section-header h2 {
    color: #10243f;

    font-size: 40px;
    line-height: 1.15;

    font-weight: 700;

    margin: 0;
}


/* course total */

.subcourse-total {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 18px;

    background: #fff;

    border: 1px solid #e0e6eb;

    border-radius: 40px;
}

.subcourse-total strong {
    color: var(--secondary);

    font-size: 18px;

    font-weight: 700;
}

.subcourse-total span {
    color: #6d7883;

    font-size: 13px;
}


/* =========================================================
   NO IMAGE COURSE CARD
========================================================= */

.no-image-card {
    display: flex;
    flex-direction: column;

    height: 100%;

    min-height: 320px;

    background: #fff;

    border: 1px solid #e2e7ec;

    border-radius: 16px;

    overflow: hidden;

    position: relative;

    color: #17202a;

    text-decoration: none;

    box-shadow:
        0 8px 22px rgba(8, 43, 85, .06);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.no-image-card:hover {
    color: #17202a;

    transform: translateY(-8px);

    border-color: rgba(255, 184, 0, .35);

    box-shadow:
        0 20px 45px rgba(8, 43, 85, .13);
}


/* =========================================================
   TOP AREA
========================================================= */

.subcourse-card-top {
    height: 115px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 24px 26px;

    position: relative;

    overflow: hidden;
}


/* large background circle */

.subcourse-card-top::before {
    content: "";

    position: absolute;

    width: 140px;
    height: 140px;

    border-radius: 50%;

    right: -50px;
    top: -65px;

    background: rgba(255,255,255,.12);
}


/* another shape */

.subcourse-card-top::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    border-radius: 50%;

    left: -35px;
    bottom: -65px;

    background: rgba(255,255,255,.08);
}


/* =========================================================
   DIFFERENT SOFT COLORS
========================================================= */

.subcourse-section .col-xl-4:nth-child(6n + 1)
.subcourse-card-top {
    background:
        linear-gradient(
            135deg,
            #6f9ed8,
            #4e79b5
        );
}


.subcourse-section .col-xl-4:nth-child(6n + 2)
.subcourse-card-top {
    background:
        linear-gradient(
            135deg,
            #dfbd62,
            #c9a243
        );
}


.subcourse-section .col-xl-4:nth-child(6n + 3)
.subcourse-card-top {
    background:
        linear-gradient(
            135deg,
            #63bbb5,
            #489e99
        );
}


.subcourse-section .col-xl-4:nth-child(6n + 4)
.subcourse-card-top {
    background:
        linear-gradient(
            135deg,
            #9b83cf,
            #7e68b2
        );
}


.subcourse-section .col-xl-4:nth-child(6n + 5)
.subcourse-card-top {
    background:
        linear-gradient(
            135deg,
            #cc8998,
            #b56f7f
        );
}


.subcourse-section .col-xl-4:nth-child(6n + 6)
.subcourse-card-top {
    background:
        linear-gradient(
            135deg,
            #80aa8d,
            #638c70
        );
}


/* =========================================================
   NUMBER
========================================================= */

.subcourse-number {
    color: #fff;

    font-size: 34px;
    font-weight: 700;

    position: relative;

    z-index: 2;
}


/* =========================================================
   ICON
========================================================= */

.subcourse-icon {
    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(255,255,255,.18);

    color: #fff;

    font-size: 25px;

    position: relative;

    z-index: 2;

    backdrop-filter: blur(3px);
}


/* =========================================================
   CARD BODY
========================================================= */

.subcourse-body {
    flex: 1;

    padding: 28px;

    display: flex;

    flex-direction: column;
}


.subcourse-category {
    display: inline-block;

    width: fit-content;

    color: #d89b00;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    margin-bottom: 12px;
}


.subcourse-body h3 {
    color: #10243f;

    font-size: 21px;
    line-height: 1.3;

    font-weight: 700;

    margin-bottom: 13px;

    transition: color .25s ease;
}

.no-image-card:hover .subcourse-body h3 {
    color: #0b4c81;
}


.subcourse-body p {
    color: #737e8a;

    font-size: 14px;
    line-height: 1.7;

    margin-bottom: 24px;
}


/* =========================================================
   FOOTER
========================================================= */

.subcourse-footer {
    margin-top: auto;

    padding-top: 18px;

    border-top: 1px solid #edf0f3;
}


.subcourse-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #0b3f71;

    font-size: 13px;
    font-weight: 700;

    transition:
        color .25s ease,
        gap .25s ease;
}


.subcourse-link i {
    transition: transform .25s ease;
}


.no-image-card:hover .subcourse-link {
    color: #e1a000;

    gap: 11px;
}


.no-image-card:hover .subcourse-link i {
    transform: translateX(5px);
}


/* =========================================================
   ACCENT BOTTOM LINE
========================================================= */

.no-image-card::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 4px;

    background: var(--secondary);

    transition: width .3s ease;
}


.no-image-card:hover::after {
    width: 100%;
}


/* =========================================================
   EMPTY
========================================================= */

.empty-courses {
    padding: 65px 30px;

    background: #fff;

    border: 1px solid #e1e6eb;

    border-radius: 15px;

    text-align: center;
}


.empty-course-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255,184,0,.12);

    color: var(--secondary);

    font-size: 30px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .subcourse-section-header h2 {
        font-size: 34px;
    }
}


@media (max-width: 767px) {

    .subcourse-section {
        padding: 60px 0 75px;
    }

    .subcourse-section-header {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 35px;
    }

    .subcourse-section-header h2 {
        font-size: 29px;
    }

    .subcourse-card-top {
        height: 100px;
    }

    .subcourse-number {
        font-size: 29px;
    }

    .subcourse-icon {
        width: 48px;
        height: 48px;

        font-size: 22px;
    }

    .subcourse-body {
        padding: 23px;
    }

    .subcourse-body h3 {
        font-size: 19px;
    }

    .subcourse-body p {
        font-size: 13px;
    }
}

