/* Landing viewcourse */
.course-view {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.container-top {
    background: #0f1115;
    width: 100%;
    min-height: 390px;
}

.sidebar-container {
    margin: -380px auto 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 360px);
    gap: 1.5rem;
    align-items: start;
    color: #fff;
    position: relative;
    z-index: 3;
}

.sidebar-container__left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-left__wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: none;
    width: 100%;
}

.course-hero__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 350px;
}

.course-hero__kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: #a5b4fc;
    margin: 0;
    font-size: 0.85rem;
}

.course-hero__title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .course-hero__title {
        font-size: 1.465rem;
    }
}

.course-hero__summary {
    color: #e5e7eb;
    line-height: 1.6;
    max-width: 720px;
    display: -webkit-box;
    -webkit-line-clamp: var(--summary-clamp, 7);
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.course-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #cbd5f5;
    font-weight: 700;
}

.course-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #fff;
}

.course-hero__content {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.course-hero__section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.75rem;
}

.course-hero__section-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.course-hero__module {
    display: flex;
    justify-content: space-between;
    color: #e5e7eb;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.course-hero__module:first-of-type {
    border-top: none;
    padding-top: 0;
}

.course-hero__module-name {
    font-weight: 700;
}

.course-hero__module-type {
    color: #cbd5f5;
}

.course-learn-panel {
    border: 1px solid gray;
    padding: 24px 18px;
    border-radius: 5px;
    margin-top: 30px;
}

.course-learn-panel__header {
    display: flex;
    margin-bottom: 16px;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: space-between;
    text-transform: uppercase;
}

.course-learn-type {
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
}

.course-hero__content {
    margin-top: 1rem;
}

.sidebar-container__right {
    width: 100%;
}

@media (min-width: 960px) {
    .sidebar-container__right {
        position: sticky;
        top: 1.5rem;
        align-self: start;
        z-index: 2;
    }
}

.course-cta-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.course-cta-card__media {
    width: 100%;
    padding-top: 62%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.course-cta-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 70px;
}

.course-cta-card__price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
}

.course-cta-card__primary,
.course-cta-card__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.1rem;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 700;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.course-cta-card__primary {
    background: linear-gradient(120deg, #ff4d4d 0%, #ff1a1a 60%, #d00000 100%);
    background-size: 200% 200%;
    color: #fff !important;
    border-color: rgba(208, 0, 0, 0.35);
    text-transform: uppercase;
}

.course-cta-card__primary:hover,
.course-cta-card__primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(208, 0, 0, 0.25);
    background-position: 100% 0;
}

.course-cta-card__secondary {
    background: #fff;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.course-cta-card__secondary:hover,
.course-cta-card__secondary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.course-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #0f172a;
}

.course-body__main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.course-body__card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.course-panel {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    margin: 0 auto;
    max-width: 1200px;
}

.course-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.course-panel__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

.course-panel__meta {
    font-weight: 700;
    color: #475569;
}

.course-panel__content {
    color: #1f2937;
    line-height: 1.8;
    font-size: 16px;
}

.course-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-section {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 1rem;
    background: #f8fafc;
}

.course-section__title {
    font-weight: 800;
    margin: 0 0 0.35rem 0;
    color: #0f172a;
}

.course-section__summary {
    color: #1f2937;
    margin-bottom: 0.6rem;
}

.course-section__modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.6rem;
}

.course-section__module {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-decoration: none !important;
    color: #0f172a;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.course-section__module:hover,
.course-section__module:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.14);
}

.course-section__module--static {
    cursor: default;
}

.course-section__module--static:hover,
.course-section__module--static:focus-visible {
    transform: none;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

.course-section__module-name {
    font-weight: 700;
    margin: 0 0 0.2rem 0;
}

.course-section__module-type {
    font-size: 0.92rem;
    color: #475569;
    margin: 0;
}

.course-section__module-content {
    margin-top: 0.4rem;
    color: #1f2937;
    line-height: 1.5;
}

@media (max-width: 960px) {
    .sidebar-container {
        grid-template-columns: 1fr;
    }
}

/* Imported tweaks from enrol/viewcourse */
body.pagelayout-popup.path-local-landing #page.drawers .main-inner,
body.pagelayout-popup.path-local-landing-viewcourse #page.drawers .main-inner {
    width: 100%;
}

@media (min-width: 768px) {
    body.pagelayout-popup.path-local-landing #page.drawers .main-inner,
    body.pagelayout-popup.path-local-landing-viewcourse #page.drawers .main-inner {
        padding: 0 !important;
    }
    body.pagelayout-popup.path-local-landing #page.drawers div[role="main"],
    body.pagelayout-popup.path-local-landing-viewcourse #page.drawers div[role="main"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.course-view-image {
    overflow: hidden;
    background-position: center;
    background-size: cover;
    padding-top: calc(100% * 9 / 14);
}

.course-view-buy {
    font-size: 18px !important;
    font-weight: bold !important;
}

/* Layout styles mirrored from enrol/viewcourse */
.course-landing-page {
    margin-top: -16px !important;
    padding-top: 50px;
    position: relative;
    min-height: 320px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.sidebar-container-content {
    z-index: 1;
    border-bottom: 1px solid #d1d7dc;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-container-purchase-section {
    padding: 0.8rem 1.4rem 1rem 1.4rem;
}

.price-text-container {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.course-price-text {
    font-size: 24px;
    font-weight: bold;
    color: #0f172a;
}

.course-landing-page .course-name {
    color: #0f172a;
}

.course-landing-page .course-description {
    font-size: 18px;
    color: #0f172a;
}

.course-outcomes-section {
    font-size: 16px;
    margin-top: 30px;
    border: 1px solid #ccc;
    padding: 16px 30px;
    border-radius: 5px;
    background: #fff;
}

.course-outcomes-section h4 {
    color: #0f6cbf;
}

.btn-purchase-course {
    font-size: 20px;
    color: #0f172a !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: .76rem !important;
    font-weight: 700 !important;
    border-radius: 5px !important;
    text-transform: uppercase !important;
}

.section-header {
    min-height: 270px;
}
