.ae-course-classic {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
}

.ae-course-classic__nav {
    flex: 0 0 280px;
    max-width: 320px;
}

.ae-course-classic__content {
    flex: 1 1 520px;
    min-width: 0;
}

.ae-course-classic--no-nav .ae-course-classic__content {
    flex: 1 1 100%;
}

.ae-course-shell {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
}

.ae-course-shell--no-nav {
    grid-template-columns: 1fr;
}

.ae-course-shell--no-nav .ae-course-shell__main {
    max-width: 100%;
}

.ae-course-shell__nav {
    position: sticky;
    top: 16px;
    align-self: flex-start;
}

.ae-course-shell__nav-card {
    background: #ffffff;
    border: 1px solid #d8e2f0;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ae-course-shell__nav-header {
    margin: 0;
    padding: 24px 24px 12px;
    border-bottom: 1px solid #edf2ff;
}

.ae-course-shell__nav-eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    color: #8b97b4;
}

.ae-course-shell__nav-title {
    margin: 4px 0 6px;
    font-size: 20px;
    color: #182239;
}

.ae-course-shell__nav-subhead {
    margin: 0;
    color: #475569;
    font-size: 14px;
}

.ae-course-shell__nav-body {
    margin: 0;
    padding: 20px 24px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.ae-course-shell__main {
    min-width: 0;
}

.ae-main-nav-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin: 0;
}

.ae-main-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ae-main-nav > li {
    margin-bottom: 12px;
}

.ae-main-nav > li:last-child {
    margin-bottom: 0;
}

.ae-main-nav .chapters-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #274c77;
    margin-bottom: 8px;
}

.ae-sub-nav {
    list-style: none;
    margin: 0;
    padding: 0 0 0 14px;
    border-left: 2px solid #e2e9f4;
}

.ae-sub-nav-item {
    margin-bottom: 6px;
}

.ae-sub-nav-item:last-child {
    margin-bottom: 0;
}

.ae-main-nav a {
    display: block;
    text-decoration: none;
    color: #183153;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 8px 14px rgba(65, 105, 225, 0.2);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ae-nav-item > a {
    background: #fff;
    border: 1px solid #d8e2f0;
}

.ae-main-nav a:hover,
.ae-main-nav a:focus {
    background: #4169e1;
    color: #fff;
    border-color: #4169e1;
}

.ae-sub-nav a {
    background: transparent;
    border: none;
    padding-left: 0;
    color: #26456b;
}

.ae-sub-nav a:hover,
.ae-sub-nav a:focus {
    background: none;
    color: #1f4ed8;
}

.ae-main-nav .blue-btn > a {
    background: linear-gradient(135deg, #4f7eff, #1b57d0);
    color: #fff;
    border: none;
    box-shadow: 0 12px 22px rgba(31, 73, 172, 0.3);
}

.ae-main-nav .blue-btn > a:hover,
.ae-main-nav .blue-btn > a:focus {
    background: linear-gradient(135deg, #6c9bf5, #3d73df);
    box-shadow: 0 14px 24px rgba(31, 73, 172, 0.35);
}

.ae-course-post-test-form {
    background: #fff;
    border: 1px solid #d8e2f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(31, 63, 104, 0.05);
    margin-top: 24px;
}

.ae-course-post-test-form input[type="submit"],
.ae-course-post-test-form input[type="button"] {
    background: linear-gradient(135deg, #5a8dee, #3269d5);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.ae-course-post-test-form input[type="submit"]:hover,
.ae-course-post-test-form input[type="button"]:hover {
    opacity: 0.9;
}

@media (max-width: 960px) {
    .ae-course-classic__nav,
    .ae-course-classic__content {
        flex: 1 1 100%;
        max-width: none;
    }

    .ae-course-shell {
        grid-template-columns: 1fr;
    }

    .ae-course-shell__nav {
        position: static;
    }
}
.ae-video-progress {
    margin: 8px 0 0 0;
    padding: 0 0 0 16px;
    list-style: none;
    font-size: 0.9rem;
}

.ae-video-progress-label {
    font-weight: 600;
}

.ae-video-progress-value {
    float: right;
    color: #26456b;
}

.ae-course-modern {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ae-course-hero-card {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #d8e2f0;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08);
}

.ae-course-hero__media {
    flex: 0 0 260px;
    max-width: 320px;
    border-radius: 18px;
    background: #edf1f9;
    border: 1px solid #dce4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ae-course-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ae-course-hero__placeholder {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    color: #94a3b8;
}

.ae-course-hero__body {
    flex: 1;
    min-width: 240px;
}

.ae-course-hero__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 12px;
    color: #64748b;
}

.ae-course-hero__title {
    margin: 8px 0 12px;
    font-size: 28px;
    color: #0f172a;
}

.ae-course-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ae-course-pill {
    background: rgba(52, 95, 246, 0.12);
    color: #1d4ed8;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 13px;
}

.ae-course-pill--muted {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.ae-course-pill--outline {
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.ae-course-hero__summary {
    margin: 0 0 16px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.ae-course-hero__price {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #eff4ff;
    border: 1px solid #d5def6;
    font-size: 14px;
}

.ae-course-hero__price span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-size: 11px;
}

.ae-course-hero__price strong {
    font-size: 18px;
    color: #0f172a;
}

.ae-course-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.ae-course-info-card {
    background: #fff;
    border: 1px solid #d8e2f0;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ae-course-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ae-course-info-item-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2ff;
    font-size: 14px;
    color: #334155;
}

.ae-course-info-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ae-course-info-label {
    font-weight: 600;
    color: #1e293b;
    text-transform: none;
}

.ae-course-info-value {
    text-align: left;
    font-weight: 400;
}

.ae-course-richtext-card {
    background: #f9fbfe;
    border: 1px solid #dfe8f6;
    border-radius: 18px;
    padding: 18px 20px;
}

.ae-course-richtext-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
    color: #0f172a;
}

.ae-course-richtext__body {
    color: #475569;
    line-height: 1.6;
}

.ae-course-richtext__body p {
    margin: 0 0 0.8em;
}

.ae-course-richtext__body p:last-child {
    margin-bottom: 0;
}

.ae-course-enroll-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.ae-course-enroll-card > * {
    width: 100%;
}

.ae-course-alert {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
}

@media (max-width: 960px) {
    .ae-course-layout-grid {
        grid-template-columns: 1fr;
    }

    .ae-course-hero-card {
        padding: 20px;
    }
}

.ae-course-home {
    gap: 20px;
}

.ae-course-home__intro {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(240px, 1fr);
    gap: 24px;
    border: 1px solid #d3dae7;
    border-radius: 24px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(26, 35, 58, 0.08);
    align-items: flex-start;
}

.ae-course-home__overview {
    min-width: 0;
}

.ae-course-home__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 12px;
    color: #6b7280;
}

.ae-course-home__title {
    margin: 8px 0 10px;
    font-size: 30px;
    color: #111827;
}

.ae-course-home__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ae-course-home__summary {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
}

.ae-course-overview-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ae-course-overview-item {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #1f2937;
    align-items: baseline;
}

.ae-course-overview-item::before {
    content: "-";
    color: #1e3a8a;
    font-weight: 700;
    flex: 0 0 auto;
    margin-right: 4px;
}

.ae-course-overview-item--highlight .ae-course-overview-label {
    font-weight: 700;
    color: #0f172a;
}

.ae-course-overview-label {
    font-weight: 600;
}

.ae-course-overview-value {
    flex: 1;
}

.ae-course-home__media {
    border: 1px solid #d9e1ef;
    border-radius: 20px;
    background: linear-gradient(135deg, #1f4ed8, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 13px;
    aspect-ratio: 3 / 4;
    width: 100%;
}

.ae-course-home__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ae-course-home__placeholder {
    padding: 0 16px;
    text-align: center;
}

.ae-course-home__enroll-card {
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    border: none;
    background: transparent;
}

.ae-course-enrollment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid #d8e2f0;
    border-radius: 24px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.ae-enroll-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ae-enroll-points {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}

.ae-enroll-note {
    margin: 0;
    color: #475569;
    font-size: 14px;
}

.ae-enroll-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ae-enroll-row__label {
    font-weight: 600;
    color: #111827;
}

.ae-enroll-row select {
    flex: 1 1 200px;
    min-width: 170px;
    border-radius: 12px;
    border: 1px solid #d2dae8;
    padding: 10px 14px;
    font-size: 15px;
    background: #f8fafc;
}

.ae-enroll-policies {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    background: #fefce8;
}

.ae-course-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ae-course-section {
    background: #fff;
    border: 1px solid #d3dae7;
    border-radius: 20px;
    padding: 20px;
}

.ae-course-section h3 {
    margin: 0 0 12px;
    font-size: 17px;
    color: #111827;
}

.ae-course-section__body {
    color: #475569;
    line-height: 1.65;
}

.ae-course-section__body p {
    margin: 0 0 0.9em;
}

.ae-course-section__body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .ae-course-home__intro {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

.ae-enroll-code {
    margin-top: 8px;
}

.ae-enroll-code__row {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    align-items: center;
}

.ae-enroll-code__row input[type="text"] {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    border: 1px solid #d2dae8;
    padding: 10px 14px;
    font-size: 15px;
}

.ae-course-enrollment-form label[for="coupon_code"],
.ae-course-enrollment-form label[for="apply_user_rewards"] {
    font-weight: 600;
    color: #111827;
}

.ae-enroll-code__row .ae-enroll-btn {
    margin-top: 0;
}
