/* ==========================================================
   GRAVITYWRX — SINGLE MICROCOURSE TEMPLATE
   Hero + two-row pill meta + progress + lesson list
   ========================================================== */

/* Wrapper */
.gwmc-wrapper {
    font-family: "Barlow", sans-serif;
}

.gwmc-microcourse-container {
    max-width: 980px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

/* --------------------------------------
   HERO
-------------------------------------- */
.gwmc-microcourse-hero img {
    width: 100%;
    height: 623px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* --------------------------------------
   TITLE
-------------------------------------- */
.gwmc-microcourse-title {
    font-family: "Montserrat", sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 24px 0 12px;
}

/* --------------------------------------
   META ROWS (PILLS)
-------------------------------------- */
.gwmc-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.gwmc-meta-row-1 .gwmc-pill {
    flex: 1 1 0;
}

.gwmc-meta-row-2 {
    margin-bottom: 20px;
}

/* Base pill */
.gwmc-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    background: rgba(0,0,0,0.03);
    line-height: 1.3;
}

.gwmc-pill strong {
    font-weight: 600;
}

/* Variants */
.gwmc-pill-stage {
    background: rgba(210, 180, 140, 0.22); /* tan gold tint */
    color: #333;
}

.gwmc-pill-difficulty {
    background: rgba(139, 0, 0, 0.15);     /* deep crimson tint */
    color: #8B0000;
}

.gwmc-pill-duration {
    background: rgba(0, 0, 139, 0.12);     /* midnight blue tint */
    color: #00008B;
}

.gwmc-pill-lessons {
    background: rgba(0,0,0,0.05);
}

.gwmc-pill-author {
    background: rgba(75, 0, 130, 0.14);    /* imperial purple tint */
    color: #4B0082;
}

/* Learning category line (optional) */
.gwmc-microcourse-meta-top {
    font-size: 0.95rem;
    margin-bottom: 14px;
    opacity: 0.9;
}

/* --------------------------------------
   PROGRESS BAR
-------------------------------------- */
.gwmc-progress {
    margin: 18px 0 28px;
}

.gwmc-progress-text {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.gwmc-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #ededed;
    overflow: hidden;
}

.gwmc-progress-bar-fill {
    width: 0;
    height: 100%;
    background: #D2B48C; /* Tan gold */
    transition: width 0.35s ease;
}

/* --------------------------------------
   CONTENT
-------------------------------------- */
.gwmc-microcourse-content {
    margin-bottom: 32px;
    line-height: 1.7;
}

/* --------------------------------------
   LESSON LIST
-------------------------------------- */
.gwmc-lessons-section h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.gwmc-lesson-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gwmc-lesson-list-item {
    border-radius: 16px;
    border: 1px solid #ebebeb;
    background: #ffffff;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.gwmc-lesson-list-item a.gwmc-lesson-link {
    display: block;
    padding: 14px 18px;
    text-decoration: none;
    color: #333;
}

.gwmc-lesson-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gwmc-lesson-title {
    font-size: 1rem;
}

/* Completed lesson */
.gwmc-lesson-list-item.gwmc-lesson-completed {
    background: #F3FFF6;
    border-color: #BCE3C6;
}

.gwmc-lesson-status {
    margin-left: auto;
    font-size: 1.1rem;
    color: #2e7d32;
    font-weight: 600;
}

/* Next up lesson */
.gwmc-lesson-list-item.gwmc-next-up {
    background: #FBF5EC;
    border-color: #D2B48C;
}

.gwmc-lesson-nextup-label {
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #D2B48C;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Hover */
.gwmc-lesson-list-item:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.07);
    transform: translateY(-1px);
}

/* --------------------------------------
   RESPONSIVE
-------------------------------------- */
@media (max-width: 768px) {
    .gwmc-microcourse-title {
        font-size: 2rem;
    }

    .gwmc-meta-row {
        flex-direction: row;
    }

    .gwmc-meta-row-1 .gwmc-pill {
        flex: 1 1 100%;
    }
}
