
/* ===============================
   ORIGINAL CSS (PRESERVED AS IS)
================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table td,
.table th {
    white-space: nowrap;
}
@media (max-width: 991px) {

    .header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .header-row h3 {
        text-align: center;
    }

    .header-row .search-container {
        justify-content: stretch;
    }

    .header-row a {
        justify-content: center;
    }
}
.table-responsive::after {
    content: "← Scroll →";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #888;
    padding: 4px;
}
/* DASHBOARD LAYOUT */
.dashboard_main_wrapper {
    display: flex;
    gap: 24px;
    padding-right: 24px;
    padding-bottom: 24px;
    background: #f6f8fb;
    min-height: calc(100vh - 72px);
    position: relative;
    margin-top: 72px;
}

.certificate_image_wrapper {
    position: relative;
    display: inline-block;
}

.certificate_img {
    display: block;
    width: 100%;
    height: auto;
}

.certificate_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #001F801F;
    backdrop-filter: blur(1px);
    border-radius: 8px;
}

.lock_circle {
    width: 49px;
    height: 49px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.lock_icon {
    width: 30px;
    height: 30px;
}

.lesson_content_wrapper {
    margin-left: 328px;
    margin-top: 24px;
    margin-right: 24px;
}

.lesson_breadcrumb {
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 24px;
}

.lesson_breadcrumb span {
    margin: 0 10px;
    color: #9ca3af;
}

.lesson_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.lesson_card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.lesson_card:hover {
    transform: translateY(-3px);
}

.lesson_card_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson_card_header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #0f2e7a;
}

.lesson_card_header img {
    width: 70px;
}

.lesson_card hr {
    margin: 16px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.lesson_input {
    display: none;
}

.lesson_part {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .25s ease;
}

.radio_dot {
    transition: fill .25s ease;
}

.lesson_input:checked ~ .radio_svg .radio_dot {
    fill: #001F80;
}

.lesson_card:has(.lesson_input:checked) {
    background: #001F80;
    color: white;
    transition: 0.25s ease;
}

.lesson_card:has(.lesson_input:checked) h3,
.lesson_card:has(.lesson_input:checked) span,
.lesson_card:has(.lesson_input:checked) strong {
    color: white;
}

.lesson_grid:has(.lesson_input:checked) {
    background: #001F80;
    padding: 20px;
    border-radius: 16px;
    transition: 0.25s ease;
}

.lesson_part span {
    font-size: 16px;
    color: #374151;
}

.lesson_part img {
    width: 22px;
    opacity: 0.4;
}

.lessons-container {
    width: 100%;
    background: #F7FAFF;
    border-radius: 12px;
    padding: 12px 32px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.lesson-item {
    width: 100%;
    min-height: 52px;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);
}

.level-wrapper .lessons-container {
    display: none;
}

.level-wrapper.active .lessons-container {
    display: flex;
}

/* HEADER */
.header_iner {
    background: #ffffff;
    min-height: 72px;
    border-bottom: 1px solid #eef1f6;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.fw-510 {
    font-weight: 510;
    font-size: 24px;
}

.header_iner img {
    max-height: 86px;
}

.theme_search_field {
    width: 100%;
}

.theme_search_field .input-group {
    background: #f9fafb;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
}

.theme_search_field .form-control {
    border: none;
    background: transparent;
    font-size: 14px;
}

.theme_search_field .form-control:focus {
    box-shadow: none;
}

.theme_search_field i {
    font-size: 16px;
    color: #9ca3af;
}

.notification_wrapper ul li {
    position: relative;
}

.notify_icon img {
    width: 20px;
    height: 20px;
}

.notify_count {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.notification_area {
    position: absolute;
    right: 0;
    top: 100%;
    width: 340px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    display: none;
    z-index: 1000;
}

.notification_open:hover .notification_area {
    display: block;
}

.single_nofy {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.single_nofy h4 {
    font-size: 14px;
    font-weight: 500;
}

.single_nofy p {
    font-size: 12px;
    color: #6b7280;
}

.profile_info {
    position: relative;
    cursor: pointer;
}

.profile_info span {
    font-size: 24px;
    font-weight: 500;
    color: #4F4F4F;
}

.profile_info i {
    font-size: 20px;
    color: #4F4F4F;
}

.profile_info_iner {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 9999;
}

.profile_info:hover .profile_info_iner {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile_info_iner a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
}

.profile_info_iner a:hover {
    background: #f5f5f5;
}

.sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
}

.sidebar h6 {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.sidebar .btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
}

.sidebar .btn:hover {
    background: #f9fafb;
}

.main_content {
    flex: 1;
    padding: 0;
    margin-top: 24px;
    width: calc(100% - 376px);
}

.card {
    border-radius: 18px;
    border: none;
    background: #ffffff;
}

.card.shadow-sm {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.hero-title {
    font-size: 26px;
    font-weight: 700;
    color: #1d4ed8;
}

.hero-text {
    font-size: 15px;
    color: #6b7280;
}

.btn-outline-primary {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.stat-box {
    text-align: center;
}

.stat-box h6 {
    font-size: 14px;
    color: #6b7280;
}

.stat-box h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d4ed8;
}

.learning_objectives {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    text-align: center;
}

.learning_objectives .item {
    flex: 1;
}

.learning_objectives .item img {
    width: 48px;
    margin-bottom: 10px;
}

.learning_objectives .item p {
    font-size: 14px;
    font-weight: 500;
}

.cursor-pointer {
    cursor: pointer;
}

.text-muted {
    color: #6b7280 !important;
}

.rounded-12 {
    border-radius: 12px;
}

.rounded-16 {
    border-radius: 16px;
}

/* ACADEMY SIDEBAR */
.academy_sidebar {
    position: absolute;
    top: 0;
    width: 300px;
    height: 100%;
    background: #ffffff;
    padding: 24px;
    box-shadow: 4px 4px 12px -4px #00000040;
    z-index: 900;
    display: flex;
    flex-direction: column;
}

.sidebar_title {
    text-align: center;
    color: #353535;
    margin-bottom: 40px;
    line-height: 1.5;
}

.levels_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.level_item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.level_item i {
    font-size: 16px;
    color: #9ca3af;
}

.submit_diploma_btn {
    width: 100%;
    margin-top: auto;
    margin-bottom: 40px;
    padding: 12px;
    line-height: 22px;
    border-radius: 14px;
    border: none;
    background: #F7FAFF;
    color: #21201D66;
    font-size: 13px;
    font-weight: 510;
    cursor: not-allowed;
}

.sidebar_footer {
    margin-top: 12px;
    padding: 0px 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
}

.sidebar_footer a {
    font-size: 14px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sidebar_footer a:hover {
    color: #1f2937;
}

/* MAIN CONTENT */
.academy_main {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-left: 328px;
    margin-top: 24px;
    margin-right: 24px;
    width: calc(100% - 376px);
}

.hero_card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.hero_text {
    max-width: 300px;
}

.hero_text h2 {
    font-size: 32px;
    font-weight: 512;
    color: var(--color-primary-900);
    margin-bottom: 20px;
}

.hero_text p {
    font-size: 18px;
    color: #353535;
    margin-bottom: 25px;
}

.hero_btn {
    padding: 10px 26px;
    border-radius: 10px;
    border: 1px solid #1d4ed8;
    background: transparent;
    color: #1d4ed8;
    font-weight: 500;
    cursor: pointer;
}

.hero_btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.hero_image img {
    max-width: 500px;
}

.content_grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.certificate_card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.certificate_card img {
    width: 120px;
}

.certificate_card h4 {
    font-size: 24px;
    font-weight: 590;
    margin-bottom: 8px;
    color: #4F4F4F;
}

.certificate_card p {
    font-size: 18px;
    color: #353535;
}

.stats_column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat_card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.stat_card p {
    font-size: 14px;
    color: #6b7280;
}

.stat_card h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1d4ed8;
}

.learning_card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.learning_card h4 {
    font-size: 24px;
    font-weight: 510;
    margin-bottom: 0;
    color: #4F4F4F;
}

.learning_items {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.learning_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.learning_item img {
    width: 100px;
    margin-bottom: 8px;
}

.learning_item span {
    font-size: 16px;
    font-weight: 510;
    color: #4F4F4F;
}

.pb-4 {
    padding-bottom: 1rem;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.4);
    z-index: 9998;

    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}
@media (max-width: 1260px) {

    .learning_card {
        flex-direction: column;   /* STACK */
        align-items: flex-start;
        gap: 20px;
    }

    .learning_items {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
        gap: 20px;
        width: 100%;
    }

    .learning_item {
        width: 100%; /* IMPORTANT for grid */
    }

    .learning_item img {
        width: 80px;
    }
}
/* ===============================
   RESPONSIVE CSS (ONLY ADDED, NOT CHANGING DESKTOP LAYOUT)
================================ */
@media (max-width: 991px) {
    .academy_sidebar {
        position: fixed;
        top: 0;
        left: -280px; /* better than -100% */
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transition: 0.3s ease;
    }

    .academy_sidebar.active {
        left: 0;
    }

  
    .academy_main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .lesson_content_wrapper {
        margin-left: 0 !important;
    }

    .dashboard_main_wrapper {
        padding: 0;
    }
    
  
    
    .hero_card {
        flex-direction: column;
        text-align: center;
    }
    
    .hero_text {
        max-width: 100%;
    }
    
    .hero_image img {
        max-width: 100%;
        height: auto;
    }
    
    .content_grid {
        grid-template-columns: 1fr;
    }
    
    .certificate_card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .certificate_card img {
        width: 100px;
    }
    
    .learning_card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .learning_items {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
    }
    
    .learning_item img {
        width: 70px;
    }
}

@media (max-width: 576px) {
    .hero_text h2 {
        font-size: 22px;
    }
    
    .hero_text p {
        font-size: 14px;
    }
    
    .hero_btn {
        width: 100%;
    }
    
    .certificate_card h4 {
        font-size: 18px;
    }
    
    .certificate_card p {
        font-size: 14px;
    }
    
    .stat_card h2 {
        font-size: 28px;
    }
    
    .learning_items {
        justify-content: center;
    }
    
    .learning_item {
        width: 45%;
    }
    
    .learning_item img {
        width: 60px;
    }
    
    .learning_item span {
        font-size: 14px;
    }
}



