/* Demo page styles (copied from educator version) */

.demo-page-redesign {
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 4rem;
    position: relative;
    margin-top: 40px;
}

.demo-hero {
    background: linear-gradient(135deg, #155e75 0%, #0e7490 100%);
    color: white;
    padding: 4rem 0 5rem;
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 94, 117, 0.45) 0%, rgba(14, 116, 144, 0.75) 100%);
    z-index: 0;
}

.demo-hero::after {
    content: '';
    position: absolute;
    inset: -20%;
    background-image: var(--demo-hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    filter: saturate(1.05) brightness(1.05);
    z-index: 0;
}

.demo-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: center;
}

.demo-hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(12px);
}

.demo-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.04rem;
    text-shadow: 0 18px 35px rgba(10, 80, 110, 0.45);
}

.demo-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2.2rem;
}

.demo-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.demo-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: white;
    color: #0f3d53;
    text-decoration: none;
    font-weight: 700;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    box-shadow: 0 18px 35px rgba(9, 72, 94, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.demo-hero-action svg {
    flex-shrink: 0;
}

.demo-hero-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(9, 72, 94, 0.28);
}

.demo-hero-action-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: white;
    box-shadow: none;
}

.demo-hero-action-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.75);
}

.demo-content {
    position: relative;
    z-index: 1;
}

.demo-roadmap-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(21, 94, 117, 0.12);
    border: 1px solid rgba(16, 57, 76, 0.08);
    margin-bottom: 3rem;
}

.demo-roadmap-card img {
    width: 100%;
    display: block;
}

.demo-roadmap-empty {
    background: white;
    border-radius: 12px;
    border: 1px dashed rgba(20, 83, 116, 0.35);
    padding: 3rem 1.5rem;
    text-align: center;
    color: #0f3d53;
    box-shadow: inset 0 0 0 1px rgba(15, 61, 83, 0.05);
}

.demo-roadmap-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(21, 94, 117, 0.08);
    color: #155e75;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.demo-roadmap-empty-text {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.demo-section {
    margin-bottom: 4rem;
}

/* Hide Program Tracks heading when there are no items */
.demo-section-programs:not(:has(.demo-card-grid > div)) .demo-section-heading {
    display: none;
}

/* Hide Featured Courses heading when there are no items */
.demo-section-courses:not(:has(.demo-card-grid > div)) .demo-section-heading {
    display: none;
}

.demo-section-heading {
    text-align: center;
    margin: 0 auto 2.5rem;
}

.demo-section-kicker {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    color: #155e75;
    margin-bottom: 0.75rem;
}

.demo-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 0.75rem;
}

.demo-section-description {
    font-size: 1rem;
    color: #4f6b7b;
    margin: 0;
}

.demo-card-grid {
    --bs-gutter-x: 1.75rem;
    --bs-gutter-y: 1.5rem;
    row-gap: 1.5rem;
}

.demo-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 2px solid rgba(16, 57, 76, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(12, 88, 126, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.demo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(9, 72, 94, 0.22);
    border-color: rgba(9, 72, 94, 0.2);
    text-decoration: none;
}

.demo-card-media {
    position: relative;
    padding-top: 62%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.demo-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0) 0%, rgba(21, 94, 117, 0.45) 100%);
    transition: opacity 0.35s ease;
}

.demo-card:hover .demo-card-media::after {
    opacity: 0.65;
}

.demo-card-body {
    position: relative;
    padding: 1.8rem 1.85rem 1.85rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.demo-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    margin-bottom: 1.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.25s ease;
}

.demo-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: auto;
}

.demo-card:hover .demo-card-title,
.demo-card:hover .demo-card-cta {
    color: #155e75;
    text-decoration: none;
}

.demo-card:hover .demo-card-arrow {
    transform: translateX(2px);
    background: rgba(21, 94, 117, 0.18);
    color: #155e75;
}

.demo-card:focus-visible {
    outline: 3px solid rgba(21, 94, 117, 0.45);
    outline-offset: 3px;
}

.demo-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: auto;
}

.demo-card-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: rgba(21, 94, 117, 0.12);
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
}

.demo-card-total-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #155e75;
    line-height: 1;
}

.demo-card-total-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    color: #155e75;
}

.demo-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(21, 94, 117, 0.12);
    color: #155e75;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.demo-card-cta {
    font-weight: 600;
    color: #155e75;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.demo-card-lock {
    position: absolute;
    top: 18px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    box-shadow: 0 16px 28px rgba(220, 38, 38, 0.28);
}

.demo-card-badge {
    position: absolute;
    top: -20px;
    right: 1.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.25);
}

.demo-card-course .demo-card-media::after {
    background: linear-gradient(180deg, rgba(14, 116, 144, 0) 0%, rgba(14, 116, 144, 0.55) 100%);
}

.demo-floating-sidebar {
    position: fixed;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(12, 88, 126, 0.18);
    border: 1px solid rgba(16, 57, 76, 0.12);
    padding: 1.2rem 1.1rem;
    z-index: 1040;
}

.demo-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.demo-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    color: #0f3d53;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.demo-sidebar-link:hover {
    background: rgba(21, 94, 117, 0.08);
    color: #155e75;
    transform: translateX(-2px);
}

.demo-sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(21, 94, 117, 0.1);
    color: #155e75;
}

.demo-sidebar-text {
    font-size: 0.85rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .demo-hero {
        padding: 3.5rem 0 4.25rem;
        margin-bottom: 2.5rem;
    }

    .demo-hero-title {
        font-size: 2.2rem;
    }

    .demo-floating-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .demo-hero {
        padding: 3.25rem 0 3.75rem;
    }

    .demo-hero-kicker {
        letter-spacing: 0.16rem;
    }

    .demo-hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

    .demo-hero-actions {
        flex-direction: column;
    }

    .demo-card-body {
        padding: 1.6rem 1.5rem 1.65rem;
    }

    .demo-card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .demo-hero {
        padding: 2.75rem 0 3.25rem;
        margin-bottom: 2rem;
    }

    .demo-hero-title {
        font-size: 1.95rem;
    }

    .demo-hero-kicker {
        font-size: 0.78rem;
        padding: 0.3rem 0.85rem;
    }

    .demo-section-title {
        font-size: 1.15rem;
    }
    .demo-page-redesign {
        margin-top: 25px;
    }
    .demo-section-heading {
        margin: 0 auto 1.15rem;
    }
    .demo-card-title {
        font-size: 1.15rem;
        margin-bottom: 0;
    }
    .demo-card-body {
        padding: 1rem;
    }

    .demo-card-total {
        padding: 0.45rem 0.75rem;
    }

    .demo-card-total-number {
        font-size: 1.4rem;
    }
}
