/* ========================================
    SCROLL PROGRESS
======================================== */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #170006, #c0392b);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========================================
    COURSE HERO — course image as bg
======================================== */
.course-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.course-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/energy.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
    transform: scale(1.04);
    transition: transform 6s ease;
}
.course-hero:hover .course-hero-bg {
    transform: scale(1.08);
}
/* gradient overlay */
.course-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(23,0,6,0.75) 0%, rgba(23,0,6,0.4) 100%);
}
.course-hero-inner {
    position: relative;
    z-index: 2;
    padding: 80px 0 70px;
    width: 100%;
}
/* breadcrumb trail */
.ch-trail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ch-trail a {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.ch-trail a:hover { color: #fff; }
.ch-trail span.sep { color: rgba(255,255,255,0.25); font-size: 12px; }
.ch-trail span.cur {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
}
/* tags row */
.ch-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.ch-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 13px;
    border-radius: 20px;
    letter-spacing: 0.4px;
}
.ch-tag.body-tag {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
}
.ch-tag.cat-tag {
    background: #c0392b;
    color: #fff;
}
/* main title */
.ch-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 18px;
    max-width: 720px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
/* meta strip */
.ch-meta {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.ch-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.7);
    font-size: 13.5px;
    font-weight: 500;
}
.ch-meta-item svg { opacity: 0.8; }

/* ========================================
    DESCRIPTION SECTION
======================================== */
.course-desc {
    background: #fff;
    padding: 55px 0 50px;
    border-bottom: 1px solid #efefef;
}
.course-desc .sec-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c0392b;
    margin-bottom: 13px;
}
.course-desc h2 {
    font-size: 26px;
    font-weight: 800;
    color: #170006;
    margin-bottom: 18px;
}
.course-desc p {
    font-size: 15px;
    color: #555;
    line-height: 1.85;
    margin: 0;
    max-width: 860px;
}

/* ========================================
    TRAINING GRID
======================================== */
.training-section {
    background: #f4f5f7;
    padding: 60px 0 80px;
}
.training-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 12px;
}
.training-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #170006;
    margin: 0;
}
.training-count {
    background: #170006;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
}

/* ========================================
    TRAINING CARD
======================================== */
.tc-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.055);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tc-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 42px rgba(0,0,0,0.11);
}
.tc-img {
    position: relative;
    height: 185px;
    overflow: hidden;
}
.tc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.tc-card:hover .tc-img img { transform: scale(1.07); }
.tc-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(23,0,6,0.6) 0%, rgba(23,0,6,0.05) 60%, transparent 100%);
}
.tc-level {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(23,0,6,0.72);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
.tc-body {
    padding: 16px 18px 18px;
}
.tc-cat {
    font-size: 10.5px;
    font-weight: 700;
    color: #c0392b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 7px;
}
.tc-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #170006;
    line-height: 1.42;
    margin-bottom: 12px;
}
.tc-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid #f2f2f2;
}
.tc-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #999;
    font-weight: 500;
}

/* ========================================
    HIDDEN / LOAD MORE
======================================== */
.extra-cards { display: none; }

.load-more-wrap {
    text-align: center;
    margin-top: 50px;
}
.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #170006;
    border: 2px solid #170006;
    padding: 14px 38px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.load-more-btn:hover {
    background: #170006;
    color: #fff;
}
.load-more-btn svg { transition: transform 0.3s; }
.load-more-btn:hover svg { transform: translateY(3px); }

/* Footer */
.footer { position: relative; z-index: 1; margin-top: 0; }
.footer-cta { padding: 40px 0 35px; }

@media (max-width: 767px) {
    .ch-title { font-size: 30px; }
    .course-hero { min-height: 320px; }
}

.course-desc {
    padding: 80px 0;
}

.custom-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.course-text {
    flex: 1;
}

.course-image {
    flex: 1;
    text-align: right;
}

.course-image img {
    max-width: 100%;
    border-radius: 10px;
    height: auto;
}

@media (max-width: 992px) {
    .custom-flex {
        flex-direction: column;
        text-align: center;
    }

    .course-image {
        text-align: center;
        margin-top: 30px;
    }
}
