:root {
    --teal: #23a98e;
    --teal2: #00a8a8;
    --dark: #102a2a;
    --ink: #163536;
    --muted: #6f8585;
    --bg: #f4fbfa;
    --card: #fff;
    --line: #dcebea;
    --danger: #b42318;
    --shadow: 0 20px 60px rgba(16, 42, 42, .12)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: linear-gradient(135deg, #f7fffe 0%, #edf9f7 48%, #fff 100%);
    color: var(--ink)
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%
}

.app {
    min-height: 100vh;
    display: flex
}

.skeleton-bg {
    background-color: #e3e3e3;
}

.course-img.skeleton-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.55) 50%,
            transparent 100%);

    transform: translateX(-100%);
    animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

.course-img.image-loaded::before {
    opacity: 0;
    animation: none;
    transition: opacity 0.25s ease;
}

@keyframes skeleton-shimmer {
    to {
        transform: translateX(100%);
    }
}

.sidebar {
    width: 280px;
    background: #2EBA9A;
    color: #fff;
    padding: 22px;
    position: fixed;
    inset: 0 auto 0 0;
    overflow: auto
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px
}


.brand-title {
    font-weight: 800;
    font-size: 22px
}

.hamburger {
    display: none
}

.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    margin: 6px 0;
    border-radius: 16px;
    color: #d7fffa;
    font-weight: bold;
}

.nav .menusub {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    border-radius: 16px;
    color: #d7fffa;
    padding: 13px 14px 13px 30px;
    font-weight: normal;
    margin: 0px;
}

.nav a:hover,
.nav a.active {
    background: rgba(255, 255, 255, .12);
    color: #fff
}

.nav .emoji {
    font-size: 19px
}

.sidebar-card {
    margin-top: 24px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14)
}

.sidebar-card p {
    color: #d7fffa;
    font-size: 14px;
    line-height: 1.45
}

.main {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 26px
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px
}

.mobileheader {
    display: none
}

.userchip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 10px 10px;
    box-shadow: 0 6px 18px rgba(16, 42, 42, .06);
    color: #2EBA9A;
    font-weight: bold;

}

.userchipwrap {
    display: flex;
    align-items: flex-start;
    position: absolute;
    bottom: 20px;
    flex-direction: column;

}

.userchipwrap a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    margin: 6px 0;
    border-radius: 16px;
    color: #d7fffa;
    font-weight: bold;

}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 30%;
    object-fit: cover;
    background: #d6eeea
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 22px
}

.hero-card {
    background: linear-gradient(135deg, #123a3a, #21aa91);
    border-radius: 15px;
    padding: 34px;
    color: #fff;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden
}

.hero-card:after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13)
}

.byauthor {

    padding: 7px 0px 10px 0px;
    font-size: 16px;
    display: block;
    color: #2EBA9A;
    font-weight: 700;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.02;
    margin: 0 0 12px
}

.hero p {
    font-size: 18px;
    color: #e1fffb;
    max-width: 700px
}

.hero-side {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 24px;
    box-shadow: var(--shadow)
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px
}

.stat,
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 22px;
    box-shadow: 0 8px 28px rgba(16, 42, 42, .07)
}

.stat b {
    font-size: 30px;
    display: block;
    margin-bottom: 4px;
}

.stat span {
    color: var(--muted);
    font-size: 14px
}

.coursewrap {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.courseimage {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    background-position: center;
    background-size: cover;
    background-color: #D3D3D3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abouthead {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.authoravatar {
    width: 72px;
    height: 72px;
    border-radius: 20%;

    background-size: cover;
    min-width: 72px;
}

.authoravatar-profile {
    border-radius: 20px;
    background-size: cover;
    min-width: 72px;
    aspect-ratio: 1 / 1;
    width: 100%;
    margin: 0px 0px 20px 0px;
}

.authoravatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 20%;

    background-size: cover;
    min-width: 34px;
}

.authorname {
    font-weight: 700;
    font-size: 1.2rem;
    color: #3BBB9A;
}

.profilewrap {
    display: flex;
    flex-direction: row;
    gap: 20px;

}

.profileleft {
    flex: 1;
}

.authorname-profile {
    font-weight: 700;
    font-size: 2.5rem;
    color: #3BBB9A;
}

.author-sub {
    font-size: 1rem;
    opacity: 0.88;
    color: #000;
}

.aboutwrap {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
}

.aboutwrap2 {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 0px;
    align-items: center;
    margin-bottom: 20px;
}

.coursetitle {
    font-size: 2rem;
    font-weight: bold;
    padding: 30px 0px 20px 0px;
}

.coursecreator {
    font-size: 1.3rem;
    padding-bottom: 20px;
}

.coursedescription {
    font-size: 1.2rem;
    padding-bottom: 30px;
    line-height: 1.2em
}

.profilebio {
    font-size: 1.2rem;
    padding-bottom: 30px;
    line-height: 1.2em;
    padding-top: 20px;
}

.profiletextwrap {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coursepreviewwrap {

    padding: 15px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(16, 42, 42, .08);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(16, 42, 42, .1);


}

.profilegrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topwrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0px 0px 14px 14px
}

.section-head h2,
.card h2 {
    margin: 0 0 6px
}

.section-head p,
.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55
}

.grid {
    display: grid;
    gap: 18px
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.course-card {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.course-img {
    height: 170px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 14px;

    position: relative;
    overflow: hidden;
    isolation: isolate;

    width: 100%;
    aspect-ratio: 16 / 9;

    background-color: #e3e3e3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 15px;
    padding: 7px 11px;
    font-size: 12px;
    background: #e7f7f4;
    color: #11685d;
    font-weight: 700
}

.pill-price {
    background: #112f2f;
    color: #fff;
    font-size: 14px;
    border-radius: 10px;
    background-color: #225353;
}

.course-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}


.librarybuttonwrap {
    padding: 0px 20px 20px 20px;
}

.course-body h3 {
    margin: 0 0 8px;
    font-size: 21px
}

.course-body p {
    color: var(--muted);
    line-height: 1.48;
    padding-bottom: 15px;
}

.meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0;
    margin-top: auto;
}

.btn {
    border: 0;
    border-radius: 15px;
    padding: 11px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px
}

.skeletonlist {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 20px;

    box-sizing: border-box;
}

.skeleton-list-header {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    border-bottom: 1px solid #eee;
}

.skeletonitem {
    display: flex;
    align-items: flex-start;

}

.skeletonthumbnail {
    width: 130px;
    height: 130px;
    margin-right: 18px;
    border-radius: 10px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skeletonlabel {
    width: 100%;
}

.skeleton {
    display: block;
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg,
            #e5e5e5 25%,
            #f2f2f2 37%,
            #e5e5e5 63%);
    background-size: 400% 100%;

}

.skeletonthumbnail .skeleton {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.skeletonskeleton-row {
    margin-bottom: 10px;
}



.btn-primary {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 10px 20px rgba(35, 169, 142, .22)
}

.btn-secondary {
    background: #fff;
    color: var(--teal);
    border: 1px solid var(--teal);
    box-shadow: 0 10px 20px rgba(35, 169, 142, .22)
}

.btn-dark {
    background: var(--dark);
    color: #fff
}

.btn-ghost {
    background: #d3f1ea;
    color: var(--teal)
}

.btn-danger {
    background: #fee4e2;
    color: var(--danger)
}

.btn-small {
    padding: 8px 12px;
    font-size: 13px
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.form-card {
    max-width: 900px
}

.field {
    margin-bottom: 16px
}

.field label {
    display: block;
    font-weight: 800;
    margin-bottom: 7px
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 13px 14px;
    font: inherit;
    outline: 0
}

.field textarea {
    min-height: 140px;
    resize: vertical
}

.field small {
    display: block;
    margin-top: 7px;
    color: var(--muted)
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.alert {
    border-radius: 18px;
    padding: 14px 16px;
    margin: 0 0 16px
}

.alert-success {
    background: #e7f7f4;
    color: #0b6659
}

.alert-error {
    background: #fee4e2;
    color: #912018
}

.module-row {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
    justify-content: space-between;
    box-shadow: 0 16px 36px rgba(16, 42, 42, .1);
}

.module-num {
    /* width: 44px; */
    /* height: 44px; */
    /* border-radius: 14px; */
    /* background: #e7f7f4; */
    color: #147568;
    /* display: grid; */
    /* place-items: center; */
    /* font-weight: 900; */
    /* text-align: left; */
    font-size: 1.2rem;
}

.module-content p {
    font-size: 18px;
    line-height: 1.72;
    color: var(--ink);
}

.module-content ol {
    font-size: 18px;
    line-height: 1.72;
    color: var(--ink);
    margin: 0px;
}

.module-content ul {
    font-size: 18px;
    line-height: 1.72;
    color: var(--ink);
    margin: 0px;
}

.module-content li {
    padding-bottom: 10px;
}

.module-content img {
    border-radius: 18px;
    display: block;
    margin: 18px 0;
    width: 100%;
}

.module-content video {
    max-width: 100%;
    border-radius: 18px;
    background: #000
}

.toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px
}

.toolbar button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 800
}

.editor {
    min-height: 240px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    line-height: 1.65;
    overflow: auto
}

.empty {
    text-align: center;
    color: var(--muted)
}

.searchbar {
    display: flex;
    gap: 10px
}

.searchbar input {
    flex: 1;
    border: 1px solid #2EBA9A;
    border-radius: 15px;
    padding: 12px 16px;
    font: inherit
}

.quill-field .ql-editor img {
    max-width: 600px !important;
    height: auto;
    border-radius: 14px;
    display: block;
    margin: 14px 0;
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px
}

.auth-card {
    width: min(460px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 32px;
    box-shadow: var(--shadow);
    text-align: center
}

.auth-card img {
    height: 64px;
    margin-bottom: 18px
}

.mobile-overlay {
    display: none
}

.search-icon {
    color: #fff;
    display: inline-flex;
    align-items: center;
}

.course-top-menu {
    position: relative;
    z-index: 50;
    display: flex;
    justify-content: flex-end;

}

.createbuttonwrap {
    display: flex;
    gap: 5px;
    flex-direction: row;
}

.questionbutton {
    background-color: transparent;
    border: 4px solid var(--teal);
    font-size: 28px;
    font-weight: bold;
    border-radius: 15px;
    width: 41px;
    height: 41px;
    color: var(--teal);
    cursor: pointer;
}

.hamburger-toggle {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 17px;
    border-radius: 15px;
    background: #3BBB9A;
    color: #ffffff;
    font-weight: 900;
    font-size: .96rem;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.hamburger-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(0, 168, 168, .34);
}

.hamburger-lines {
    width: 25px;
    height: 19px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-lines span {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform .18s ease, opacity .18s ease;
}

.course-top-menu.open .hamburger-lines span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.course-top-menu.open .hamburger-lines span:nth-child(2) {
    opacity: 0;
}

.course-top-menu.open .hamburger-lines span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.course-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(390px, calc(100vw - 32px));
    display: grid;
    gap: 9px;
    padding: 12px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(16, 42, 42, .09);
    border-radius: 24px;
    box-shadow: 0 24px 58px rgba(16, 42, 42, .18);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.course-top-menu.open .course-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.course-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 17px;
    background: #ffffff;
    color: #102a2a;
    text-decoration: none;
    border: 1px solid rgba(16, 42, 42, .07);
    box-shadow: 0 8px 20px rgba(16, 42, 42, .045);
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.course-menu-item:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 187, 154, .35);
    background: #faffff;
    box-shadow: 0 12px 26px rgba(16, 42, 42, .1);
}

.course-menu-item.primary {
    background: #3BBB9A;
    color: #ffffff;
    border-color: #3BBB9A;
}

.course-menu-item.primary small {
    color: rgba(255, 255, 255, .82);
}

.course-menu-item.primary .course-menu-icon {
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
}

.course-menu-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 168, 168, .1);
    color: #3BBB9A;
    font-weight: 900;
    font-size: 1.1rem;
}

.course-menu-item strong {
    display: block;
    font-size: .94rem;
    line-height: 1.15;
}

.course-menu-item small {
    display: block;
    margin-top: 4px;
    color: rgba(16, 42, 42, .62);
    font-size: .78rem;
    line-height: 1.25;
    font-weight: 700;
}

@media(max-width:1250px) {

    .hero,
    .grid-2,
    .grid-3,
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:999px) {

    .hero,
    .grid-2,
    .grid-3,
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar {
        width: 220px;
    }

    .main {
        margin-left: 220px;
        width: calc(100% - 220px);
        padding: 26px;
    }

    .userchip {
        width: 180px;
    }
}

@media(max-width:850px) {
    .courseimage {
        height: 250px;
    }
}

@media(max-width:800px) {
    .brand {
        display: none;
    }

    .mobileheader {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        background-color: #2EBA9A;
        padding: 10px;
        align-items: center;
    }

    .sidebar {
        transform: translateX(-105%);
        transition: .2s;
        z-index: 20
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .mobile-overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .25);
        z-index: 15
    }

    .main {
        margin-left: 0;
        width: 100%;
        padding: 18px
    }

    .hamburger {
        display: inline-flex
    }

    .hero,
    .grid-2,
    .grid-3,
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero h1 {
        font-size: 34px
    }

    .topbar {
        align-items: flex-start
    }

    .module-row {
        grid-template-columns: 1fr 0.5fr;
    }

    .module-row .actions {
        grid-column: 2
    }

    .form-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:767px) {
    .createbuttonwrap {
        display: flex;
        gap: 5px;
        flex-direction: column-reverse;
        align-items: flex-end;
    }
}

@media(max-width:560px) {
    .createbuttonwrap{
        flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    }
    .profilewrap {
        flex-direction: column;

    }

    .profilegrid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 26px
    }

    .hero h1 {
        font-size: 30px
    }

    .section-head {
        display: block;
        margin-left: 0px;
    }

    .section-head .btn {
        margin-top: 12px
    }

    .hero,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;

    }

    .stats {
        grid-template-columns: 1fr 1fr;

    }


    .course-top-menu {
        justify-content: stretch;
    }

    .hamburger-toggle {
        width: 100%;
        justify-content: center;
    }

    .course-menu-dropdown {
        position: fixed;
        top: 165px;
        /* left: 12px; */
        right: 15px;
        width: 80%;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
    }




}