/* =========================================================
   COURSE CATEGORY PAGE
   ========================================================= */

/* ---------- BANNER ---------- */
.page-banner {
    position: relative;
    background: #0b2545 url('/assets/images/banner-background.jpg') center/cover no-repeat;
    padding: clamp(2rem, 6vw, 4rem) 0;
}

.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    color: #fff;
    font-size: clamp(1.6rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0;
}

/* ---------- SHARED TAG ---------- */
.badge-tag {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    background: #ffd400;
    color: #000;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: .22rem .55rem;
}

/* ---------- HERO CARD ---------- */
.hero-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111;
    text-decoration: none;
}

.hero-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.hero-card__body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .9) 55%);
}

.hero-card__body h2 {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- LIST ROWS ---------- */
.course-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ececec;
}

.course-row:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
}

.course-row__media {
    position: relative;
    display: block;
    overflow: hidden;
}

.course-row__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.course-row__title {
    margin: 0 0 .5rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.35;
}

.course-row__title a {
    color: #12224a;
    font-weight: 700;
    text-decoration: none;
}

.course-row__title a:hover {
    color: #c2185b;
}

.course-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-bottom: .75rem;
    color: #8a8a8a;
    font-size: .74rem;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.course-row__meta a {
    color: #0b6ba8;
    font-weight: 600;
    text-decoration: none;
}

.course-row__excerpt {
    margin-bottom: 1rem;
    color: #555;
    font-size: .92rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    padding: .5rem 1.1rem;
    border: 1px solid #d8d8d8;
    color: #444;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: .2s;
}

.read-more:hover {
    background: #12224a;
    border-color: #12224a;
    color: #fff;
}

/* ---------- SIDEBAR ---------- */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:991.98px) {
    .sidebar-sticky {
        position: static;
    }
}

@media (max-width:767.98px) {
    .course-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .course-row__meta {
        gap: .6rem;
        font-size: .7rem;
    }
}