/* Shared visual polish for public LMS pages */
:root {
    --ink: #122033;
    --muted: #64748b;
    --brand: #7c3aed;
    --brand-2: #a855f7;
    --brand-3: #c084fc;
    --success: #8b5cf6;
    --warm: #f5f3ff;
    --surface: #ffffff;
    --line: rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.13);
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(124, 58, 237, 0.16), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(192, 132, 252, 0.18), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7f2ff 52%, #ffffff 100%);
}

.app-navbar {
    background:
        linear-gradient(90deg, rgba(48, 16, 92, 0.98), rgba(109, 40, 217, 0.96), rgba(168, 85, 247, 0.94)) !important;
    box-shadow: 0 14px 34px rgba(88, 28, 135, 0.24);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.navbar .nav-link {
    font-weight: 650;
}

.navbar .btn {
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(88, 28, 135, 0.98), rgba(124, 58, 237, 0.96) 52%, rgba(192, 132, 252, 0.92)) !important;
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.28), transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.22), transparent 25%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
    background-size: auto, auto, 56px 56px, 56px 56px;
    opacity: 0.7;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 850;
    text-shadow: 0 12px 34px rgba(15, 23, 42, 0.25);
}

.hero-section .lead {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.88);
}

.hero-section .btn-light {
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    color: #1d2b53;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
}

.section-title {
    position: relative;
    font-weight: 850;
}

.section-title::after {
    content: "";
    display: block;
    width: 92px;
    height: 5px;
    margin: 0.8rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
}

.card {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    transform: translateY(-7px);
    border-color: rgba(124, 58, 237, 0.24);
    box-shadow: var(--shadow-soft) !important;
}

.course-card .card-img-top,
.course-card .bg-secondary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.course-card > .bg-secondary {
    height: 190px !important;
    flex: 0 0 190px;
}

.course-card {
    height: 450px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.course-card .card-img-top {
    width: 100%;
    height: 190px !important;
    object-fit: contain !important;
    object-position: center center;
    background: #fff;
    padding: 0.45rem;
    flex: 0 0 190px;
}

.course-card .card-body {
    padding: 1.35rem;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.course-card .card-title {
    font-weight: 850;
    color: #3b0764;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card .card-text {
    line-height: 1.6;
    min-height: 3.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card .card-footer {
    padding: 0 1.35rem 1.35rem;
    margin-top: auto;
    flex: 0 0 auto;
}

.course-card .course-card-actions,
.course-card .btn:last-child,
.course-card .btn-group:last-child {
    margin-top: auto;
}

.course-card .course-price-stack {
    margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
    .course-card {
        height: auto;
        min-height: 420px;
    }
}

.course-price-stack {
    display: inline-flex;
    flex-direction: column;
    gap: 0.18rem;
    line-height: 1.35;
}

.course-price-original {
    color: #8a7b9b;
    text-decoration: line-through;
    font-weight: 650;
}

.course-price-discount {
    color: #6d28d9;
    font-weight: 850;
}

.btn {
    border-radius: 999px;
    font-weight: 750;
}

.btn-primary,
.btn-success {
    border: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.26);
}

.btn-success {
    background: linear-gradient(135deg, #7c3aed, #c084fc) !important;
}

.btn-outline-primary {
    border-color: rgba(124, 58, 237, 0.42);
    color: #6d28d9;
}

.btn-outline-primary:hover {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.alert {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.app-footer {
    background: linear-gradient(90deg, #2e1065, #581c87, #7e22ce) !important;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .hero-section h1 {
        font-size: 2.35rem;
    }
}
