@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Fenix&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Lora:ital,wght@0,400..700;1,400..700&family=Mirza:wght@400;500;600;700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nata+Sans:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* GLOBAL                        */
/* ============================= */

body {
    margin: 0px;
    padding: 0px;
    font-family: "Josefin Sans", sans-serif;
}

/* Landing Page--------------------------------------- */
/* Navbar */
.landing-search-box {
    max-width: 480px;
    width: 100%;
}

.search-input {
    background: #f0f0f0;
    border-radius: 8px;
}

.search-input .input-group-text,
.search-input .form-control {
    background: #f0f0f0;
    border: none;
}

.search-input .form-control:focus {
    box-shadow: none;
}

/* ACTIONS */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-actions i {
    font-size: 23px;
}

/* REGISTER BUTTON */
.btn-register {
    background-color: #041f57 !important;
    color: #fff !important;
    border-radius: 8px;
}

.btn-register:hover {
    background-color: #010a1b !important;
    color: #fff !important;
}

/* Navbar */
@media (max-width: 991px) {

    /* Hide hamburger */
    .navbar-toggler {
        display: none;
    }

    /* Two-row grid */
    .navbar-collapse {
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        row-gap: 10px;
        width: 100%;
        align-items: center;
    }

    /* LOGO */
    .navbar-brand {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    /* SEARCH */
    .landing-search-box {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        margin: 0;
    }

    /* ACTIONS wrapper */
    .nav-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        grid-column: 1 / -1;
        grid-row: 2 / 3;
    }

    /* Bell stays top-right */
    .nav-actions i {
        position: absolute;
        top: 25px;
        right: 20px;
        font-size: 20px;
    }

    /* Buttons */
    .nav-actions a {
        padding: 6px 18px;
        font-size: 14px;
        white-space: nowrap;
    }

    /* Logo size */
    .navbar-brand img {
        height: 46px;
    }
}

/* --Landing page-------------------------------------------------------------------------------- */
/* HERO BANNER */
.hero-banner {
    max-width: 1200px;
}

.hero-carousel {
    border-radius: 24px;
    overflow: hidden;
}

/* Image height */
.hero-carousel img {
    height: 420px;
    object-fit: cover;
}

/* Overlay */
.hero-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.2));
    z-index: 1;
}

/* Caption */
.hero-carousel .carousel-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    padding: 20px;
}

/* Text */
.hero-carousel h1 {
    font-size: 2.4rem;
    font-weight: 700;
}

.hero-carousel p {
    font-size: 1.1rem;
    margin: 12px 0 20px;
}

/* Button */
.hero-btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
}

/* Indicators */
.carousel-indicators button {
    width: 18px;
    height: 4px;
    border-radius: 4px;
    background-color: #fff;
}

/* Allow indicators to be clickable */
.hero-carousel .carousel-indicators {
    z-index: 5;
}

/* Prevent caption from blocking clicks */
.hero-carousel .carousel-caption {
    pointer-events: none;
}

/* Allow button clicks inside caption */
.hero-carousel .carousel-caption .hero-btn {
    pointer-events: auto;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-carousel img {
        height: 300px;
    }

    .hero-carousel .carousel-caption {
        left: 20px;
        right: 20px;
        bottom: 20px;
        transform: none;
    }

    .hero-carousel h1 {
        font-size: 1.5rem;
    }

    .hero-carousel p {
        font-size: 0.95rem;
    }
}

/* ---Filter section------------------------------------------------------------------------------- */
.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}

.filter-btn.active {
    background-color: #041f57;
    color: #fff;
    border-color: #041f57;
}

.course-card {
    transition: all 0.3s ease;
}

/* CARD BOX */
.course-card-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
}

.course-card-box:hover {
    transform: translateY(-4px);
}

/* IMAGE */
.course-img-wrapper {
    position: relative;
}

.course-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

/* PREMIUM BADGE */
.premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #7f00ff, #b300ff);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

/* CONTENT */
.course-content {
    padding: 14px 16px;
}

/* TITLE */
.course-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* DESCRIPTION */
.course-desc {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* RATING */
.course-rating {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* META INFO */
.course-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-meta i {
    font-size: 13px;
    color: #6c757d;
}

.course-rating i {
    font-size: 13px;
}

/* FOOTER */
.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author {
    font-size: 12px;
    color: #6c757d;
}

.price {
    font-size: 14px;
    font-weight: 600;
    color: #041f57;
}

/* ---Browse by category------------------------------------------------------------------ */
.category-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
}

/* Hide scrollbar (optional) */
.category-row::-webkit-scrollbar {
    display: none;
}

.category-row {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Card sizing */
.category-card {
    flex: 0 0 125px;
    /* controls width */
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 16px 10px;
    text-align: center;
    transition: 0.3s;
}

.category-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.category-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
}

.category-card h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
}

/* -----Footer------------------------------------------------ */
/* FOOTER */
.footer-section {
    background: linear-gradient(135deg, #0b1324, #0f1c33);
    color: #ffffff;
}

.footer-brand {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 14px;
    color: #cfd6e1;
    line-height: 1.6;
}

.footer-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 14px;
    color: #cfd6e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Bottom text */
.footer-bottom {
    font-size: 13px;
    color: #aeb7c6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
}


/*----------------------------------------User Profile----------------------------------------------- */
/* CONTAINER WIDTH */
.userprofile-header-card,
.userprofile-menu {
    width: 100%;
}

/* BACK LINK */
.userprofile-back {
    text-decoration: none;
    color: #041F57;
    font-weight: 500;
}

/* HEADER CARD */
.userprofile-header-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.userprofile-header-bg {
    padding: 28px;
    background: linear-gradient(180deg, #041F57 50%, #ffffff 50%);
    display: flex;
    gap: 20px;
    align-items: stretch;
    flex-wrap: wrap;
}

/* PROFILE PIC */
.userprofile-profile-pic {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
}


/* USER INFO */
.userprofile-info {
    display: flex;
    flex-direction: column;
}

/* NAME — STAYS TOP */
.userprofile-name {
    color: #ffffff;
}

/* CONTACT GROUP — MOVE TO 50% */
.userprofile-contact-group {
    margin-top: auto;
}

.userprofile-contact {
    display: block;
    font-size: 12px;
    color: #000;
}

/* EDIT BUTTON — CENTER RESPONSIVE */
/* EDIT BUTTON */
.userprofile-edit-btn {
    margin-left: auto;
    align-self: center;
    border: 1px solid #cfd7ff;
    color: #041F57;
    background: #ffffff;
    white-space: nowrap;
}

/* 🔥 MOBILE RESPONSIVE FIX */
@media (max-width: 576px) {
    .userprofile-edit-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

}

.userprofile-edit-btn:hover {
    background: #e6ebff;
}


/* MENU */
.userprofile-menu-box {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    gap: 14px;
    align-items: center;
    background: white;
    transition: 0.3s ease;
    cursor: pointer;
    color: #000;
}

.userprofile-menu-box:hover {
    background: #f0f3ff;
    border-color: #2b4eff;
}

.userprofile-menu-icon {
    font-size: 22px;
    color: #2b4eff;
}

/* Subscription SVG Icon */
.userprofile-subscription-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}



/* BUTTON */
.userprofile-save-btn {
    background: #041F57;
    color: white;
    border-radius: 30px;
}

/* RESPONSIVE */
@media(max-width:576px) {
    .userprofile-edit-btn {
        width: 100%;
    }

    .userprofile-contact-group {
        color: #ffffff;
        padding-top: 5px;
        margin-top: 0px;
    }

    .userprofile-contact-group .userprofile-contact {
        color: #ffffff;
        padding-top: 3px;
    }
}

/* MODAL -------------------------------------------------------------*/
.userprofile-modal {
    border-radius: 20px;
}

/* TOP USER PLUS ICON */
.userprofile-modal-icon {
    width: 60px;
    height: 60px;
    background: #DBEAFE;
    color: #041F57;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: auto;
}

/* INPUT WITH ICON */
.userprofile-input {
    position: relative;
}

.userprofile-input i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6b7280;
}

.userprofile-input input,
.userprofile-input textarea {
    padding-left: 42px;
    border-radius: 10px;
    border: 1px solid #ced4da;
    font-size: 14px;
}

/* TEXTAREA ICON ALIGN */
.userprofile-input.textarea i {
    top: 18px;
    transform: none;
}

/* BUTTON */
.userprofile-save-btn {
    background-color: #041F57;
    color: #ffffff;
    font-weight: 500;
}

.userprofile-save-btn:hover {
    background-color: #031947;
}

/*------------------------------------User Profile css end-------------------------------------------------- */
/*------------------------------------My learing-------------------------------------------------- */
.my-learning-title {
    font-weight: 600;
    font-size: 28px;
    color: #004085;
}

/* Tabs */
.my-learning-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
}

.my-learning-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background: none;
}

/* Course Card */
.my-learning-course-card {
    border-radius: 12px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s;
}

.my-learning-course-card img {
    height: 170px;
    object-fit: cover;
}

.my-learning-course-card:hover {
    border-color: #0d6efd;
}

.my-course-progress {
    height: 6px;
    border-radius: 10px;
}

.my-course-progress .progress-bar {
    border-radius: 10px;
}

/* Certificate */
/* Certificate Card */
.certificate-card {

    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
}

/* Certificate Icon */
.certificate-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background-color: #DBEAFE;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-icon i {
    color: #155DFC;
    font-size: 22px;
}

/* Certificate Text */
.certificate-text {
    font-size: 14px;
    color: #6b7280;
}

/* Download Button */
.certificate-download-btn {
    background-color: #041F57;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.certificate-download-btn:hover {
    background-color: #031947;
    color: #ffffff;
}

/* Review */
.my-learning-review-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 15px;
}

.my-learning-review-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.review-date {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

/*------------------------------------My learing end-------------------------------------------------- */
/*------------------------------------Payment History-------------------------------------------------- */
body {
    font-family: 'Josefin Sans", sans-serif;
}

.payment-history-wrapper {
    max-width: 1200px;
}

/* Back */
.payment-history-back {
    text-decoration: none;
    color: #0a2a66;
    font-weight: 500;
}

/* Title */
.payment-history-title {
    font-weight: 700;
    color: #0a2a66;
}

/* Total Card */
.payment-history-total-card {
    background: linear-gradient(90deg, #5b4df5, #b34cff);
    color: #ffffff;
    padding: 30px;
    border-radius: 14px;
}

.payment-history-total-card h6 {
    opacity: 0.9;
}

.payment-history-total-card p {
    opacity: 0.85;
    margin-bottom: 0;
}

/* Filters */
.payment-history-filters {
    border: 1px solid #d0d0d0;
    padding: 18px;
    border-radius: 12px;
}

.payment-history-select {
    border-radius: 8px;
    padding: 12px;
}

/* Table */
.payment-history-table-wrapper {
    border: 1px solid #a0a0a0;
    border-radius: 14px;
    overflow: hidden;
}

.payment-history-table thead {
    background-color: #e6f4ff;
}

.payment-history-table th {
    font-weight: 600;
}

/* Status */
.payment-history-status {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.payment-history-status.success {
    background-color: #d6f5dc;
    color: #17803d;
}

/* Invoice Button */
.payment-history-invoice-btn {
    background-color: #e7f1ff;
    color: #0863ea;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
}

.payment-history-invoice-btn i {
    margin-right: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-history-total-card {
        text-align: center;
    }
}

/* TABLE DEFAULT */
.payment-history-table th {
    background: #f8f9fb;
    font-weight: 600;
}

/* STATUS */
.payment-history-status.success {
    color: #198754;
    background: #e6f4ea;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
}

/* SELECT WITH ICON */
.payment-history-select-wrapper {
    position: relative;
}

.payment-history-select-wrapper i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #6b7280;
    pointer-events: none;
}

.payment-history-select {
    padding-left: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

/* FOCUS STATE */
.payment-history-select:focus {
    border-color: #041F57;
    box-shadow: none;
}


/* INVOICE BUTTON */
.payment-history-invoice-btn {
    border: 1px solid #041F57;
    background: #041F57;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.payment-history-invoice-btn i {
    margin-right: 4px;
}

@media (max-width: 768px) {

    .payment-history-table thead {
        display: none;
    }

    .payment-history-table,
    .payment-history-table tbody,
    .payment-history-table tr,
    .payment-history-table td {
        display: block;
        width: 100%;
    }

    .payment-history-table tr {
        background: #ffffff;
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 16px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }

    .payment-history-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none;
    }

    .payment-history-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: 13px;
    }

    .payment-history-invoice-btn {
        margin-top: 10px;
    }
}

/*------------------------------------Payment History end-------------------------------------------------- */
/*------------------------------------Subscription------------------------------------------------- */
.subscription-wrapper {
    max-width: 1200px;
    margin: auto;
}

/* Back link */
.back-link {
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
}

.back-link:hover {
    color: #000;
}

/* Header */
.subscription-title {
    font-size: 36px;
    font-weight: 700;
}

/* Header */
.choose-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Premium Badge */
.premium-badge {
    background: #fff3cd;
    color: #856404;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 30px;
}

/* Pricing Cards */
.pricing-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    transition: 0.3s;
}

.pricing-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Popular Card */
.popular-card {
    border-color: #041F57;
}

.popular-header {
    background-color: #041F57;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    border-radius: 14px 14px 0 0;
    margin: -28px -28px 15px -28px;
    font-weight: 600;
}

/* Price */
.price {
    font-size: 32px;
    font-weight: 700;
    margin: 15px 0;
}

.price span {
    font-size: 16px;
    color: #6c757d;
}

/* Offer */
.offer-pill {
    background-color: #28a745;
    color: #ffffff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.offer-pill.gray {
    background-color: #6c757d;
}

/* Buttons */
.plan-btn-primary {
    background-color: #041F57;
    color: #ffffff;
    font-weight: 600;
    border-radius: 10px;
}

.plan-btn-primary:hover {
    background-color: #03163e;
    color: #ffffff;
}

.plan-btn-outline {
    background: #f1f3f5;
    color: #000;
    border-radius: 10px;
    font-weight: 500;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    color: #495057;
}

.feature-list i {
    color: #28a745;
}

/* Benefits */
.benefits-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Current Plan Box */
.current-plan-box {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 30px;
    margin: 30px 0;
    background-color: #ffffff;
}

/* Yellow Crown Icon */
.current-plan-icon {
    color: #f4c430;
    font-size: 32px;
}

/* Help Section */
.help-section {
    border-radius: 15px;
    padding: 15px;
    margin: 40px auto 0;
    max-width: 700px;
    text-align: center;
    background-color: #ffffff;
}

.help-title {
    font-weight: 700;
    color: #0a2a66;
}

/*------------------------------------Subscription end------------------------------------------------- */
/*------------------------------------Payment Methods------------------------------------------------- */
.payment-container {
    max-width: 1000px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
}

.payment-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.payment-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.method-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: #eaf2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #2563eb;
    font-size: 18px;
}

.payment-title {
    font-weight: 600;
    font-size: 16px;
}

.password {
    font-size: 13px;
    color: gray;
}

.delete-icon {
    color: red;
    cursor: pointer;
}

.default-btn {
    font-size: 12px;
    padding: 3px 8px;
}

.payment-Secure {
    margin-top: 20px;
    border: 1px solid #dbeafe;
    background: #f0f7ff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 12px;
}

.modal-content {
    border-radius: 14px;
    border: none;
}

.nav-pills .nav-link.active {
    background-color: #0a2a66;
    color: #fff;
}

/*------------------------------------Payment Methods end------------------------------------------------- */
/*------------------------------------Messages------------------------------------------------- */
/* WRAPPER */
.messages-wrapper {
    max-width: 1100px;
    margin: 20px auto;
    border: 1px solid #757575;
    border-radius: 20px;
}

/* MAIN BOX */
.messages-box {
    height: 80vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;

}

/* CONTACT LIST */
.contacts-panel {
    width: 320px;
    border-right: 1px solid #757575;
    display: flex;
    flex-direction: column;
}

.search-box {
    padding: 12px;
    position: relative;
    border-bottom: 1px solid #757575;
}

.search-box i {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-box input {
    padding-left: 36px;

}

.contact-item {
    padding: 14px;
    display: flex;
    gap: 12px;
    cursor: pointer;
}

.contact-item:hover,
.contact-item.active {
    background: #eff6ff;
}

.contact-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.unread {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CHAT PANEL */
.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* CHAT HEADER */
.chat-header {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

/* CHAT BODY */
.chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f9fafb;
}

/* MESSAGE BUBBLES */
.msg {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 10px;
}

.msg.user {
    background: #2563eb;
    color: #fff;
    margin-left: auto;
}

.msg.other {
    background: #e5e7eb;
    color: #111827;
}

/* INPUT BAR */
.chat-input {
    padding: 10px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    background: #fff;
}

.chat-input textarea {
    resize: none;
}

/* EMPTY STATE */
.empty-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* MOBILE VIEW */
@media(max-width:768px) {
    .messages-box {
        position: relative;
    }

    .contacts-panel {
        width: 100%;
    }

    .chat-panel {
        position: absolute;
        inset: 0;
        background: #fff;
        display: none;
    }

    .chat-panel.show {
        display: flex;
    }
}

/*------------------------------------Messages end------------------------------------------------- */
.completepayment-title {
    font-weight: 700;
    color: #041F57;
}

.completepayment-main-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.completepayment-action-area {
    margin-top: auto;
}

.completepayment-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.completepayment-method {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.completepayment-method.active,
.completepayment-method:hover {
    border-color: #041F57;
    background: rgba(4, 31, 87, 0.05);
}

.completepayment-upi-input {
    padding-left: 40px;
    border-radius: 10px;
}

.completepayment-upi-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.completepayment-coupon-wrap {
    position: relative;
}

.completepayment-coupon-wrap input {
    padding-left: 40px;
    border-radius: 10px 0 0 10px;
}

.completepayment-coupon-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.completepayment-apply-btn {
    background: #041F57;
    color: #ffffff;
    border-radius: 0 10px 10px 0;
    font-weight: 600;
}

.completepayment-pay-btn {
    background: #041F57;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px;
}

.completepayment-secure-text {
    font-size: 13px;
    color: #6b7280;
}

.completepayment-success-modal {
    border-radius: 16px;
}

.completepayment-back-btn {
    background: #041F57;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 28px;
}

.completepayment-success-wrap {
    display: flex;
    justify-content: center;
}

.completepayment-flip-card {
    width: 120px;
    height: 120px;
    background: #041F57;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.completepayment-success-tick {
    font-size: 56px;
    color: white;
}

/* ---user-overview page---------------------------------------------------------------------------- */
/* --course Banner -- */
.course-hero {
    background: linear-gradient(135deg, #041c4a, #072d6f);
    padding: 80px 0;
}

.course-descrip {
    color: #d6e0ff;
    max-width: 600px;
}

.user-meta span {
    font-size: 14px;
    color: #dbe4ff;
}

.course-user {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.course-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.course-user-body {
    padding: 20px;
}

.price {
    font-weight: 700;
    margin-bottom: 15px;
    color: #041c4a;
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-features li {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.user-meta {
    display: block;
    /* kills Bootstrap flex interference */
    color: #dbe4ff;
    font-size: 14px;
}

.meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.meta-line i {
    color: #ffc107;
    font-size: 14px;
}

/* Line 3: lessons + hours */
.meta-line-flex {
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Mobile: stack lessons & hours */
@media (max-width: 576px) {
    .meta-line-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.meta-item i {
    color: #ffc107;
    font-size: 14px;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.course-features i {
    color: #141414;
    font-size: 15px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .course-hero {
        padding: 50px 0;
        text-align: center;
    }

    .course-meta {
        justify-content: center;
    }

    .course-user {
        margin-top: 20px;
    }
}

/* ---Content section--------------------------------------------------- */
.section-title {
    font-weight: 600;
    margin-bottom: 16px;
    color: #0b1f52;
}

.learn-list {
    list-style: none;
    padding: 0;
}

.learn-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
}

.learn-list i {
    color: #28a745;
    font-size: 15px;
    margin-top: 2px;
}

.related-card {
    max-width: 320px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.requirements {
    padding-left: 18px;
}

.requirements li {
    font-size: 14px;
    margin-bottom: 8px;
}

.description-text {
    font-size: 14px;
    max-width: 800px;
    color: #444;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .related-card {
        max-width: 100%;
    }
}

/* ---Content section--------------------------------------------------- */
.section-title {
    font-weight: 600;
    margin-bottom: 16px;
    color: #0b1f52;
}

.learn-list {
    list-style: none;
    padding: 0;
}

.learn-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
}

.learn-list i {
    color: #28a745;
    font-size: 15px;
    margin-top: 2px;
}

.related-card {
    max-width: 320px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.requirements {
    padding-left: 18px;
}

.requirements li {
    font-size: 14px;
    margin-bottom: 8px;
}

.description-text {
    font-size: 14px;
    max-width: 800px;
    color: #444;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .related-card {
        max-width: 100%;
    }
}

/* --User-Video page--------------------------------------------------------------------------------- */
.course-header {
    background: #0b2a5a;
    padding: 14px 20px;
}

.course-header .progress-bar {
    background-color: #acaaaa;
}

.video-box {
    border-radius: 6px;
    overflow: hidden;
    background: #011a3f;
}

.right-panel {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 15px;
    background: #fff;
}

.nav-tabs .nav-link {
    font-size: 14px;
    color: #242323;
}

.nav-tabs .nav-link.active {
    font-weight: 600;
    color: #011a3f;
}

/* MODULE CARD */
.module-card {
    border: 2px solid #e6dcff;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

/* MODULE HEADER */
.module-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #b8b8b8;
    margin-bottom: 8px;
}

/* LESSON ROW */
.lesson-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 6px;
    cursor: pointer;
}

.lesson-row:hover {
    background: #f8f6ff;
    border-radius: 6px;
}

.lesson-row.active {
    background: #e8e7eb;
    border-radius: 6px;
}

/* CHECK ICON */
.check-icon {
    width: 18px;
    height: 18px;
    background: #2ecc71;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

/* LESSON TEXT */
.lesson-text p {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.lesson-text small {
    font-size: 12px;
    color: #888;
}

/* materials */
.materials-box {
    border: 2px solid #e6dcff;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

/* FILE ROW */
.material-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* LEFT SIDE */
.material-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    font-size: 18px;
    color: #0d6efd;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

/* DOWNLOAD ICON */
.download-btn {
    color: #777;
    font-size: 18px;
    text-decoration: none;
}

.download-btn:hover {
    color: #0d6efd;
}

/* Notes */
.btn-save-notes {
    background-color: #0b2a5a !important;
    /* dark blue */
    color: #fff !important;
    font-weight: 500;
    padding: 10px 0;
    border-radius: 6px;
    border: none;
}

.btn-save-notes:hover {
    background-color: #09224a !important;
    color: #fff !important;
}

/* --Ccompleted Pop-up page-------------------------------------------------------------------------- */
/* OVERLAY */
.completion-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 15px;
}

/* CARD */
.completion-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
}

/* ICON CIRCLE */
.completion-icon {
  width: 56px;
  height: 56px;
  background: #c9f7d4;
  color: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 26px;
}
.bi-trophy-fill {
  font-size: 20px;
}

/* RATING */
.rating-stars i {
  font-size: 20px;
  color: #ccc;
  cursor: pointer;
  margin: 0 3px;
}

.rating-stars i:hover {
  color: #f5c518;
}

/* BUTTON FIX */
.btn-outline-primary {
  border-radius: 8px;
}

.btn-secondary {
  border-radius: 8px;
}
/* -POP-UP(Login,register,forgot,verify Email,Reset password, Success Login)------------------------ */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15); 
  z-index: 1050;
  padding: 15px;
   display: flex;
  align-items: center;
  justify-content: center;
}

.login-popup, .forgot-popup {
  background: #fff;
  width: 100%;
  max-width: 420px;
  padding: 30px 25px;
  border-radius: 30px;
}

.login-popup .btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
}
.login-popup .form-control {
  border-radius: 10px;
}

.login-popup .input-group-text {
  background: transparent;
}

.btn-login{
  background-color: #0b2857 !important;
  color: white !important;
}

.btn-login:hover {
  background-color: #011a3f !important;
  color: #fff !important;
}

.btn-reset {
  background: #0b2a5b  !important;
  color: #fff  !important;
  border-radius: 10px;
}

.btn-reset:hover {
  background: #091f44  !important;
}

@media (max-width: 576px) {
  .login-popup, .forgot-popup {
    padding: 25px 20px;
  }
}

.register-popup,
.verify-popup {
  width: 100%;
  max-width: 420px;
  padding: 1rem;
  border-radius: 25px;
}
.otp-box {
  width: 45px;
  height: 50px;
  font-size: 1.25rem;
  border-radius: 8px;
}

@media (max-width: 576px) {
  .otp-box {
    width: 40px;
    height: 45px;
  }
}

.reset-popup {
  width: 100%;
  max-width: 420px;
  padding: 1rem;
  border-radius: 14px;
}

.success-popup {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  border-radius: 14px;
  max-height: 85vh;
}

.cursor-pointer {
  cursor: pointer;
}
/* -- watchlisht page-Continue Learning-------------------------------------------- */
.continue-course {
  border-radius: 14px;
  overflow: hidden;
}

.continue-course img {
  height: 180px;
  object-fit: cover;
}

.continue-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    transparent
  );
}

.continue-progress .progress {
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
}

.continue-progress .progress-bar {
  background-color: #3b82f6;
}

