:root {
    --mist-green: #08765a;
    --mist-green-dark: #04513e;
    --mist-blue: #075a9c;
    --mist-blue-dark: #043d6d;
    --mist-gold: #d4a017;
    --mist-gold-light: #f4c84a;

    --mist: var(--mist-blue);
    --mist-dark: var(--mist-blue-dark);
}

body {
    background: #f6f8fb;
    color: #243447;
}

.bg-primary {
    background: linear-gradient(
        120deg,
        var(--mist-green-dark),
        var(--mist-blue)
    ) !important;
}

.navbar-brand span {
    font-weight: 400;
}

.badge-soft {
    background: #e2f3ed;
    color: var(--mist-green-dark);
}

.progress {
    height: 10px;
}

.lesson-content {
    white-space: pre-line;
    line-height: 1.8;
}

.table th {
    color: #536273;
    font-weight: 600;
}

.sidebar .list-group-item.active {
    background: var(--mist-blue);
    border-color: var(--mist-blue);
}

/* Hero background */

.premium-hero {
    position: relative;
    overflow: hidden;
    min-height: 580px;
    color: #ffffff;
    background-color: var(--mist-green-dark);
    background-image:
        linear-gradient(
            90deg,
            rgba(4, 81, 62, 0.94) 0%,
            rgba(4, 81, 62, 0.78) 45%,
            rgba(7, 90, 156, 0.32) 100%
        ),
        url("../images/mist-hero.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0 0 4rem 4rem;
}

.premium-hero .container {
    position: relative;
    z-index: 1;
}

.min-vh-75 {
    min-height: 60vh;
}

.hero-content {
    max-width: 700px;
    padding: 2.5rem;
    background: rgba(2, 47, 55, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.28);
}

.hero-label,
.section-kicker {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.hero-label {
    color: var(--mist-gold-light);
}

.section-kicker {
    color: var(--mist-green);
}

.hero-content h1 {
    color: #ffffff;
    letter-spacing: -0.04em;
}

.hero-content h1 span {
    color: var(--mist-gold-light);
}

.hero-content .lead {
    max-width: 630px;
    color: #f1fbf7;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-benefits span {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 0.45rem;
}

/* Statistics */

.stats-wrap {
    position: relative;
    z-index: 2;
    margin-top: -3.2rem;
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(4, 81, 62, 0.14);
}

.stat-item {
    padding: 1.5rem 1rem;
    text-align: center;
    border-right: 1px solid #e6eee9;
}

.stat-item:last-child {
    border-right: 0;
}

.stat-item strong {
    display: block;
    color: var(--mist-green);
    font-size: 1.65rem;
    line-height: 1.1;
}

.stat-item span {
    display: block;
    margin-top: 0.4rem;
    color: #657384;
    font-size: 0.84rem;
}

.stat-highlight {
    background: #f2faf6;
}

.stat-highlight strong {
    color: var(--mist-blue);
}

/* Course cards */

.course-section {
    padding-top: 4.5rem !important;
}

.course-card {
    border: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 15px rgba(7, 90, 156, 0.08);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(4, 81, 62, 0.18);
}

.premium-course {
    overflow: hidden;
    border: 1px solid #e2ebe6;
    border-radius: 1rem;
}

.course-image {
    display: block;
    width: 100%;
    height: 205px;
    object-fit: cover;
}

.course-icon,
.course-image-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #d9f1e8, #e7f3fc);
    font-size: 3rem;
}

.course-icon {
    height: 150px;
}

.course-image-placeholder {
    height: 205px;
}

.course-description {
    min-height: 3.2rem;
}

.course-price {
    color: var(--mist-green-dark);
    font-weight: 700;
}

.premium-course .btn-primary {
    background: var(--mist-blue);
    border-color: var(--mist-blue);
}

.premium-course .btn-primary:hover {
    background: var(--mist-blue-dark);
    border-color: var(--mist-blue-dark);
}

/* Buttons */

.btn-warning {
    color: #173526;
    background-color: var(--mist-gold-light);
    border-color: var(--mist-gold-light);
}

.btn-warning:hover {
    color: #173526;
    background-color: var(--mist-gold);
    border-color: var(--mist-gold);
}

/* Registration call-to-action */

.register-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--mist-green-dark) 0%,
        var(--mist-green) 45%,
        var(--mist-blue) 100%
    );
    color: #ffffff;
}

.register-cta::before,
.register-cta::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.register-cta::before {
    width: 300px;
    height: 300px;
    top: -180px;
    left: -100px;
}

.register-cta::after {
    width: 360px;
    height: 360px;
    right: -140px;
    bottom: -240px;
}

.register-cta-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

.register-cta .section-kicker {
    color: var(--mist-gold-light);
}

.register-cta h2 {
    margin: 0.6rem 0 1rem;
}

.register-cta .lead {
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;
    color: #e5f6f0;
}

.register-cta-reasons {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
    color: #ffffff;
    font-weight: 600;
}

/* Tablet */

@media (max-width: 991.98px) {
    .premium-hero {
        min-height: 520px;
        border-radius: 0 0 2.25rem 2.25rem;
    }

    .hero-content {
        max-width: 620px;
    }
}

/* Mobile */

@media (max-width: 767.98px) {
    .premium-hero {
        min-height: auto;
        background-position: 62% center;
    }

    .min-vh-75 {
        min-height: 0;
    }

    .hero-content {
        padding: 1.5rem;
        background: rgba(2, 47, 55, 0.86);
        border-radius: 1rem;
    }

    .hero-content h1 {
        font-size: 2.35rem;
    }

    .hero-benefits {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-wrap {
        margin-top: -1.5rem;
    }

    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        padding: 1.2rem 0.65rem;
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .stat-item:nth-child(-n + 2) {
        border-bottom: 1px solid #e6eee9;
    }

    .course-section {
        padding-top: 3.25rem !important;
    }
}