/* ==================== 

   Course Detail

   ==================== */

.course-card {
    border-radius: 25px;

    border: 1px solid #f0b98a;

    background: #f9f9f9;

    padding: 20px 35px 20px 20px;

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);

    overflow: hidden;

    display: flex;

    justify-content: space-between;

    position: relative;
}

.course-image {
    border-radius: 25px;

    max-width: 320px;
}

.course-image img {
    border-radius: 25px;
}

.course-title {
    font-weight: bold;

    color: #2f2f2f;

    font-size: 36px;
}

.course-subtitle {
    color: var(--secondary-color);

    font-size: 20px;
}

.coursetextdetail {
    line-height: 30px;
}

.icons {
    display: flex;

    flex-wrap: wrap;

    flex-direction: row;

    gap: 20px;

    width: 60%;
}

.icons .icon {
    display: flex;

    align-items: center;

    gap: 15px;

    font-size: 20px;

    flex: 1 1 calc(50% - 20px);

    box-sizing: border-box;

    justify-content: flex-start;
}

.icons .icon:last-child {
    justify-content: space-around;
}

.info-icon {
    width: 45px;

    height: 45px;

    line-height: 30px;

    border-radius: 50%;

    border: 2px solid #71d8b5;

    color: #2cb78a;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

    background: #fff;
}

.info-box {
    background-color: #ededed;

    border: 1px solid #54d5a1;

    border-radius: 50px;

    padding: 18px 25px;

    font-size: 1.1rem;

    color: #2f2f2f;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    width: 70%;

    display: flex;

    justify-content: space-between;
}

.btn-orange-detail {
    height: auto;

    font-size: 15px;

    display: flex;

    align-items: center;

    margin: 0;

    width: 30%;
}

.expiry {
    display: flex !important;

    justify-content: space-between;

    width: 100%;

    gap: 10px;
}

.ratings i {
    color: var(--secondary-color);

    font-size: 1.3rem;
}

.rating-count {
    font-size: 1rem;

    color: #555;
}

.general-title {
    font-size: 24px;

    font-weight: bold;

    margin-right: 20px;
}

.instructor img {
    border: none;

    border-radius: 50%;

    width: 42px;

    height: 42px;

    margin: -1px -1px 0 0;
}

.btn-green {
    gap: 10px;

    font-weight: bold;
}

.oc {
    width: 85%;
}

.oc a {
    /* width: 30%; */

    justify-content: center;
}

/* accordion */

.course-chapters {
}

.accordion-body {
    padding: 0 0px;
}

.accordion-button {
    background: #f3f3f3;

    font-weight: bold;
}

.accordion-button:not(.collapsed) {
    border-bottom: solid 1px #54d5a1;

    background: #f3f3f3;

    padding: 25px 15px;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    content: '\f107';

    font-family: 'Font Awesome 5 Free';

    font-weight: 900;

    position: absolute;

    left: 10px;

    top: 50%;

    transform: translateY(-50%) !important;

    font-size: 1.25rem;

    background: none;

    color: #54d5a1;
}

.accordion-button:not(.collapsed)::after {
    content: '\f106';

    background: none;
}

.accordion-item {
    color: var(--bs-accordion-color);

    background-color: var(--bs-accordion-bg);

    border: var(--bs-accordion-border-width) solid var(--primary-color);
}

.lesson .lesson-head {
    background: #faf8f8;

    font-size: 18px;

    padding: 14px 28px;

    display: flex;

    justify-content: space-between;

    border-bottom: solid 1px #a8d7c4;

    border-top: solid 1px #a8d7c4;
}

.lesson-buttons {
    display: flex;

    gap: 10px;
}

.cards-lesson-button {
    background-color: var(--primary-color);

    color: white;

    padding: 6px 13px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: bold;

    border: 1px solid #6e6e6e;

    cursor: pointer;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;

    font-weight: 600;

    position: relative;

    z-index: 0;

    transform: rotate(4.9deg);
    height: 33px;
}

.cards-lesson-button::before {
    content: '';

    display: block;

    width: 78px;

    height: 33px;

    background-color: var(--primary-color);

    border: 1px solid #6e6e6e;

    border-radius: 10px;

    position: absolute;

    z-index: -1;

    left: -2px;

    top: 0px;

    transform: rotate(-4.9deg);
}

.artical-lesson-button {
    background-color: var(--secondary-color);

    color: white;

    padding: 6px 13px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: bold;

    border: 1px solid #6e6e6e;

    cursor: pointer;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;

    font-weight: 600;

    position: relative;

    z-index: 0;

    transform: rotate(4.9deg);
    height: 33px;
}

.artical-lesson-button::before {
    content: '';

    display: block;

    width: 107px;

    height: 33px;

    background-color: var(--secondary-color);

    border: 1px solid #6e6e6e;

    border-radius: 10px;

    position: absolute;

    z-index: -1;

    left: -2px;

    top: 0px;

    transform: rotate(-4.9deg);
}

.exam-lesson-button {
    /* background-color: var(--secondary-color); */

    color: white;

    padding: 6px 13px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: bold;

    /* border: 1px solid #6e6e6e; */

    cursor: pointer;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;

    font-weight: 600;

    position: relative;

    z-index: 0;

    /* transform: rotate(4.9deg); */
    height: 33px;
}

.exam-lesson-button::before {
    content: '';

    display: block;

    width: 93px;

    height: 33px;

    background-color: var(--secondary-color);

    border: 1px solid #6e6e6e;

    border-radius: 10px;

    position: absolute;

    z-index: -1;

    left: -2px;

    top: 0px;

    /* transform: rotate(-4.9deg); */
}

.pexam-lesson-button {
    background-color: var(--bs-form-valid-color);

    color: white;

    padding: 6px 13px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: bold;

    border: 1px solid #aaaaaa;

    cursor: pointer;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;

    font-weight: 600;

    position: relative;

    z-index: 0;

    transform: rotate(1deg);
    height: 33px;
}

.pexam-lesson-button::before {
    content: '';

    display: block;

    width: 110px;

    height: 33px;

    background-color: var(--bs-form-valid-color);

    border: 1px solid #aaaaaa;

    border-radius: 10px;

    position: absolute;

    z-index: -1;

    left: -2px;

    top: 0px;

    transform: rotate(-4.9deg);
}

/* 

.exam-lesson-button {

  background-color: var(--secondary-color);

  color: white;

  padding: 6px 13px;

  border-radius: 10px;

  font-size: 13px;

  font-weight: bold;

  border: 1px solid #6e6e6e;

  cursor: pointer;

  text-decoration: none;

  transition: background-color 0.3s ease, transform 0.3s ease;

  font-weight: 600;

  position: relative;

  z-index: 0;

} */

.videolist {
}

.video {
    display: flex;

    border-bottom: solid 1px #a8d7c4;

    flex-direction: column;
}

.video .videodata {
    display: flex;

    justify-content: space-between;

    padding: 20px 40px;

    border-bottom: solid 1px #a8d7c4;

    width: 100%;
}

.video-timing {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    align-items: center;
}

.playicon {
    width: 28px;

    height: 28px;

    border-radius: 50%;

    border: 2px solid #54d5a1;

    color: #54d5a1;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    background: #fff;

    text-decoration: none;
}
.playicondisbale {
    width: 28px;

    height: 28px;

    border-radius: 50%;

    border: 2px solid #dcdada;

    color: #dcdada;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    background: #fff;

    text-decoration: none;
}

.exam-time {
    font-size: 20px;

    color: var(--black);

    text-decoration: none;

    font-weight: 600;
}

.videolist .video:last-child {
    border-bottom: 0; /* Example border */
}

.accordion-body .lesson:first-child .lesson-head {
    border-top: 0;
}

.video-container {
    display: none;

    background: #000;

    border-radius: 10px;

    margin: 10px;

    position: relative;

    z-index: 10;

    padding: 10px;
}

.video-wrapper {
    position: relative;
}

/* Normal mode */

.video-container.theater-mode {
    position: relative;

    z-index: 0;

    background: #000;

    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

/* Overlay background */

.theater-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.9);

    display: none;

    z-index: 998;

    justify-content: center;

    align-items: center;
}

/* Overlay active = center content */

.theater-overlay.active {
    display: flex;

    justify-content: center;

    align-items: center !important;
}

/* Controls inside normal mode */

.video-controls {
    display: flex;

    justify-content: space-between;

    margin-bottom: 8px;
}

.close-btn,
.theater-btn {
    font-size: 14px;
}

/* 🎬 THEATER MODE VIDEO WRAPPER */

.theater-video-wrapper {
    width: 90vw;

    max-width: 900px;

    height: auto;

    max-height: 80vh;

    margin: auto;

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;
}

/* Video inside theater mode */

.theater-video-wrapper video {
    width: 100% !important;

    height: auto !important;

    max-height: 80vh;

    object-fit: contain;
}

/* Theater top bar */

.theater-controls {
    position: absolute;

    top: -50px;

    left: 50%;

    transform: translateX(-50%);

    z-index: 9999 !important;

    display: flex;

    gap: 10px;

    padding: 10px 15px;

    background: #000;

    border-radius: 6px;
}

/* Hide original controls when theater active */

.video-container.theater-mode .video-controls {
    display: none !important;
}

/* course progress  */

.section-box {
    background: #f7f7f7;

    border: 2px solid #f1c59a;

    border-radius: 20px;

    padding: 30px;
}

.circle-progress {
    width: 150px;

    height: 150px;

    position: relative;

    margin: auto;
}

.circle-progress svg {
    transform: rotate(-90deg);
}

.circle-progress .percent-text {
    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    font-weight: 800;

    font-size: 22px;
}

.circle-heading {
    font-weight: bold;

    margin-top: 10px;

    position: relative;

    display: inline-block;

    padding-right: 10px; /* space for the right bar */
}

.circle-heading::after {
    content: '';

    position: absolute;

    right: 0;

    top: 50%;

    transform: translateY(-50%);

    width: 5px;

    height: 20px;

    border-radius: 15px;

    background: currentColor;
}

.circle-progress {
    width: 120px;

    height: 120px;

    position: relative;

    margin: auto;
}

.circle-progress svg {
    transform: rotate(-90deg);
}

.circle-progress .percent-text {
    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    font-weight: 800;

    font-size: 22px;
}

.circle-heading {
    font-weight: normal;

    position: relative;

    display: inline-block;

    padding-right: 10px;

    font-size: 14px;
}

.circle-heading::after {
    content: '';

    position: absolute;

    right: 0;

    top: 50%;

    transform: translateY(-50%);

    width: 5px;

    height: 20px;

    border-radius: 15px;

    background: currentColor;
}

.circle-heading .total {
    color: var(--color-normal);
}

.circle-heading .completed {
    color: var(--color-normal);
    font-weight: 800;
    margin-left: 10px;
}

.circle-heading .slash {
    color: var(--color-normal);
    margin: 0px;
    font-weight: 400;
}

.circle {
    min-height: 120px;

    position: relative;
}

.skeleton {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}

.skeleton::before {
    content: '';

    width: 120px;

    height: 120px;

    border-radius: 50%;

    background: linear-gradient(
        90deg,
        #eee 25%,

        #f5f5f5 37%,

        #eee 63%
    );

    background-size: 400% 100%;

    animation: shimmer 1.2s infinite;
}

.skeleton::after {
    content: '';

    width: 140px;

    height: 12px;

    margin-top: 16px;

    border-radius: 6px;

    background: #eee;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.lesson-row {
    display: grid;

    grid-template-columns: 30% 1fr 1fr;

    align-items: center;

    gap: 15px;

    padding: 10px 0;

    border-bottom: 1px solid #eaeaea;
}

a.cards-lesson-button span {
    transform: rotate(-4deg);

    display: flex;
}

.lesson-row:last-child {
    border-bottom: none;
}

.lesson-title {
    font-weight: 600;

    font-size: 14px;

    position: relative;

    padding-left: 10px;
}

.lesson-grid-header {
    display: grid;

    grid-template-columns: 30% 1fr 1fr;

    font-weight: bold;

    font-size: 14px;

    margin-bottom: 8px;
}

/* Linear progress bars */

.progress {
    height: 25px;

    border-radius: 10px;

    background: #eaeaea;

    position: relative;

    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;

    color: #fff;

    transition: width 1s ease-in-out;
}

/* exam button */

.card-custom {
    border: 1px solid #ddd;

    border-radius: 15px;

    padding: 15px;

    display: flex;

    align-items: center;

    gap: 15px;

    background: linear-gradient(180deg, #f6fef8 0%, #e5f4ed 100%);
}

.card-custom img {
    width: 120px;

    border-radius: 10px;
}

.card-content {
    flex: 1;
}

.card-content h5 {
    height: 50px;

    margin: 0;

    font-weight: 700;

    font-size: 18px;

    line-height: 45px;

    max-width: fit-content;
}

.card-content p {
    margin: 10px 0 0 0;

    font-size: 20px;

    color: #555;
}

.card-content p span {
    color: #f7941d;

    font-weight: 500;
}

.btn-custom {
    min-width: 150px;

    border-radius: 10;

    font-weight: 600;

    line-height: 35px;

    text-align: center;
}

.btn-delete {
    background-color: #f76c6c;

    color: #fff;

    border: none;
}

.btn-delete:hover {
    background-color: #f54b4b;
}

.btn-evaluate {
    background-color: #8ac7a7;

    color: #fff;

    border: none;
}

.btn-evaluate:hover {
    background-color: #6fb394;
}

.button-group {
    margin-top: 15px;

    display: flex;

    gap: 10px;

    align-items: center;

    justify-content: space-between;
}

.social-detail {
    display: flex;

    gap: 5px;

    padding: 0;
}

.social-detail li {
    list-style: none;
}

.social-detail li a {
    height: 40px;

    width: 40px;

    padding: 5px;

    text-align: center;

    font-size: 20px;

    background: #cecece;

    display: block;

    border-radius: 10px;

    text-decoration: none;

    border: 2px solid var(--lgray-color);

    color: #fff;

    transition: 0.3s ease;
}

.social-detail li a.sicon:hover {
    transform: translateY(-10px);
}

.social-detail li a.heading {
    width: auto;

    padding: 10px 20px;

    background: #444;

    display: flex;

    color: #fff;

    font-size: 18px;

    align-items: center;

    justify-content: center;
}

.social-detail li a.twitter {
    background: #000;
}

.social-detail li a.whatsapp {
    background: #088b38;
}

.social-detail li a.SnapChat {
    background: #efff02;

    color: #000;
}

.social-detail li a.link {
    background: #ffff;

    color: #000;

    cursor: pointer;
}

.cardsexamlinkmain {
    text-decoration: none;

    transition: 0.3s ease;

    display: inline-block; /* important for transform */

    width: 100%;
}

.cardsexamlinkmain:hover {
    transform: translateY(-2px);
}

.swal2-title {
    text-align: right;
}

.review-popup-content {
    text-align: right;
}

.review-popup-content label {
    margin-bottom: 3px;
}

.review-popup-content input {
    margin-bottom: 10px;
}

.ratingstartwraper {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.rating-stars {
    display: flex;

    flex-direction: row-reverse;

    justify-content: flex-start;

    font-size: 1.5rem;

    cursor: pointer;

    gap: 5px;
}

.rating-stars .bi {
    color: gold;

    transition: color 0.2s;
}

.rating-stars .bi.filled,
.rating-stars .bi:hover {
    color: gold;
}

.kwidth2 {
    width: 100%;
}

.kwidth1 {
    width: 90%;
}

.coursebuy {
    width: 100%;
}

.coursebuywrap {
    display: flex;

    width: 100%;

    align-items: stretch;
}

.coursebuywrap input {
    flex: 1;

    border: 0;

    padding: 10px 20px;

    border-radius: 0 25px 25px 0;

    outline: none;
}

.coursebuywrap button {
    border: 0;

    background: #ff7701;

    color: #fff;

    padding: 0 22px;

    border-radius: 25px 0 0 25px;

    white-space: nowrap;

    cursor: pointer;
}

.coursebuywrap button i {
    margin-right: 6px;
}

.return-card {
    border: 1px solid #ff413e;

    border-right: 10px solid #ff413e;

    border-left: 10px solid #ff413e;

    border-radius: 26px;

    padding: 20px;

    background-color: #f7f7f7;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    display: flex;

    justify-content: space-between;

    margin-top: 20px;
}

/* zoom card */

.zoom-card {
    border: 1px solid #659cfd;

    border-right: 10px solid #659cfd;

    border-left: 10px solid #659cfd;

    border-radius: 26px;

    padding: 20px;

    background-color: #f7f7f7;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    display: flex;

    justify-content: space-between;

    margin-top: 20px;
}

.zoom-card img {
    /* width: 90px; */

    /* height: 90px; */

    /* margin-left: 10px; */

    /* border-radius: 25px; */

    background: #659cfd;

    border-radius: 19px;
}

.zoomicon {
    display: flex;

    align-items: center;
}

.counterarea span {
    background: #e6e5e5;

    border: solid 1px #cbcaca;

    font-size: 16px;

    color: #363636;

    padding: 5px 15px;

    min-width: 182px;

    display: block;

    text-align: center;

    border-radius: 5px;

    margin: 5px;
}

.heading-meeting {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.heading-meeting p {
    margin: 0;

    padding: 6px 0;

    gap: 10px;

    display: flex;
}

.countdown {
    font-size: 1.5rem;

    font-weight: bold;

    color: #ffffff;

    margin-bottom: 0;
}

.kzoom {
    background: #008dff;

    border-color: #008dff;
}

.zoom-disabled {
    pointer-events: none;

    opacity: 0.6;

    cursor: not-allowed;
}

.quantity-box {
    max-width: 160px;
}

.quantity-box div.students {
    height: 40px;
}

.quantity-box div.students input {
    border-radius: 44px;
}

.quantity-box div.students span {
    border-radius: 44px;
}

.kwidth2 div.price {
    min-width: 130px;

    justify-content: center;
}

.refund {
    background: #ff413e;

    border: solid 1px #ff413e;
}

.refund:hover {
    background: #ff413e;
}

.refund svg {
    width: 16px;

    height: 16px;

    vertical-align: middle;
}

.buttons {
    display: flex;

    align-items: center;
}

button.chapter {
    justify-content: space-between;

    padding: 20px 15px;

    font-size: 18px;
}

button.chapter span {
    padding-left: 30px;

    font-weight: bold;
}

.btn-smk {
    display: inline;
}

.view-list {
    text-decoration: none;

    color: var(--color-normal);

    font-weight: 600;
}

.view-list span {
    color: var(--secondary-color);
}

/* Responsive adjustments */

/* Papers List - Inline */

.papers-list {
    border: 1px solid #e5e7eb;

    border-radius: 12px;

    overflow: hidden;
}

.papers-list-row {
    display: flex;

    align-items: center;

    gap: 16px;

    padding: 14px 20px;

    border-bottom: 1px solid #f3f4f6;

    direction: rtl;

    transition: background 0.15s;
}

.papers-list-row:last-child {
    border-bottom: none;
}

.papers-list-row:hover {
    background: #f0fdf8;
}

.papers-list-num {
    min-width: 32px;

    height: 32px;

    background: #e6faf4;

    color: #1a7a58;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 0.85rem;

    flex-shrink: 0;
}

.papers-list-title {
    flex: 1;

    color: #374151;

    font-size: 0.95rem;
}

.papers-list-btn {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    background: #54d5a1;

    color: #fff;

    padding: 6px 16px;

    border-radius: 8px;

    font-size: 0.85rem;

    font-weight: 600;

    text-decoration: none;

    flex-shrink: 0;

    transition:
        background 0.2s,
        transform 0.15s;

    white-space: nowrap;
}

.papers-list-btn:hover {
    background: #3ab882;

    color: #fff;

    transform: scale(1.04);
}

.papers-list-empty {
    text-align: center;

    color: #9ca3af;

    padding: 40px 0;

    font-size: 1rem;

    direction: rtl;
}

.btn-report {
    font-size: 15px;

    background: #faf8f8;

    color: var(--bs-black);

    text-decoration: none;

    padding: 5px 20px;

    border-radius: 15px;

    border: solid 1px #ababab;

    font-weight: 600;

    transition: 0.3s ease;

    position: absolute;

    top: 10px;

    left: 10px;
}

.btn-report:hover {
    background: var(--bs-black);

    color: #faf8f8;
}
