:root {
    --sidebar-width: 240px;
    --primary-color: #18181B;
    --active-green: #E7F6E9;
    --active-green-text: #1D8E3E;
    --progress-orange: #FFF6ED;
    --progress-orange-text: #F5A55C;
    --pending-red: #FEECEB;
    --pending-red-text: #F0483E;
}

.table-container {
    overflow-x: auto;
    max-height: 300px;
    /* Adjust the height as needed */
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
}

.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-track {
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .table-container {
        max-height: 200px;
        /* Adjust the height for tablets */
    }
}

@media (max-width: 576px) {
    .table-container {
        max-height: 150px;
        /* Adjust the height for mobiles */
    }
}

.table-container {
    overflow-x: auto;
    /* Enables horizontal scrolling */
    max-height: 300px;
    /* Default max height */
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
}

/* Custom scrollbar styling */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-track {
    background: #f5f5f5;
}

/* Responsive height adjustments */
@media (max-width: 768px) {
    .table-container {
        max-height: 200px;
        /* Smaller height for tablets */
    }
}

@media (max-width: 576px) {
    .table-container {
        max-height: 150px;
        /* Smaller height for mobiles */
    }
}


.nav-links {
    padding: 0;
    margin-bottom: 0;
}


.faq-item {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.faq-item:hover {
    background: #f0f0f0;
}

.faq-question {
    margin: 0;
    padding-right: 30px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.faq-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #666;
    font-weight: 500;
}

.faq-answer {
    display: none;
    margin-top: 15px;
    color: #666;
    font-size: 15px;
}

/* Default Styles */
.custom-nav {
    padding: 1rem 2rem;
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    top: 72px;
    z-index: 999;
    /* display: none; */
    /* Hide the menu by default */
}

.custom-nav.active {
    display: flex;
    /* Show the menu when active class is added */
}

.custom-nav-link {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    white-space: nowrap;
    border: 1px solid #E4E4E7;
    font-weight: 500;
    color: rgba(21, 21, 21, 0.65);
    background-color: white;
}

.custom-nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Media Query for mobile and tablet responsiveness */
@media (max-width: 1024px) {
    .custom-nav {
        flex-direction: column;
        align-items: flex-start;
        display: none;
        /* Keep the menu hidden initially */
    }

    .custom-nav.active {
        display: flex;
        /* Show the menu when active class is added */
    }

    .custom-nav-link {
        width: 100%;
        padding: 12px 20px;
        text-align: left;
    }

    .custom-dropdown {
        width: 100%;
        text-align: left;
    }

    /* Position the hamburger menu outside the custom-nav */
    .custom-hamburger {
        display: block;
        cursor: pointer;
        /* position: absolute; */
        /* Position it independently */
        left: 10px;
        top: 15px;
    }

    .custom-hamburger i {
        font-size: 30px;
        color: rgba(21, 21, 21, 0.65);
    }

    .custom-nav {
        padding: 1rem 2rem;
        display: flex;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
        top: 72px;
        z-index: 999;
        display: none;
        /* Hide the menu by default */
    }
}

/* Hide hamburger menu on larger screens (desktops/laptops) */
@media (min-width: 1025px) {
    .custom-hamburger {
        display: none;
        /* Hide hamburger on larger screens */
    }

    .custom-header {
        max-width: 100%;
    }
}

.content-sections {
    display: none;
}

.content-sections.active {
    display: block;
}

.main-contents {
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
    background: #F8F8F8;
    min-height: 100vh;
    margin-top: 5rem;
}


.footer {
    background-color: #111111;
    color: #ffffff;
    padding: 2rem 0;
}

.logo-footer {
    width: 65px;
    height: auto;
}

.nav-link {
    color: #111111;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s;
    font-size: 24px;
}

.nav-link:hover {
    color: #111111;
}

.contact-info {
    color: #ffffff;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 0.8;
}

.facebook-bg {
    /* background-color: #3b5998; */
}

.instagram-bg {
    /* background-color: #405DE6; */
}

.youtube-bg {
    /* background-color: #FF0000; */
}

.linkedin-bg {
    /* background-color: #0077B5; */
}

.copyright {
    color: #666666;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.nav-link-sub {
    font-size: 16px;
    color: #FFFFFFA6;
    text-decoration: none;
}

.font-footer {
    font-size: 16px;
}

/* Mobile (small screens) */
@media (max-width: 480px) {
    .footer {
        padding: 1rem;
    }

    .logo-footer {
        width: 50px;
    }

    .nav-link {
        font-size: 18px;
    }

    .nav-link-sub {
        font-size: 14px;
    }

    .contact-info {
        font-size: 14px;
    }

    .social-icons {
        justify-content: center;
        margin-top: 1rem;
    }

    .social-icons a {
        width: 30px;
        height: 30px;
    }

    .copyright {
        font-size: 0.8rem;
        text-align: center;
    }

    .row {
        flex-direction: column;
        text-align: center;
    }

    .col-md-4 {
        margin-bottom: 1rem;
    }

    .col-md-6 {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Mobile (medium screens) */
@media (min-width: 481px) and (max-width: 767px) {
    .footer {
        padding: 1.5rem;
    }

    .logo-footer {
        width: 60px;
    }

    .nav-link {
        font-size: 16px;
    }

    .nav-link-sub {
        font-size: 14px;
    }

    .social-icons {
        justify-content: center;
        gap: 1rem;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
    }

    .copyright {
        font-size: 0.9rem;
        text-align: center;
    }

    .row {
        flex-direction: column;
    }

    .col-md-4 {
        margin-bottom: 1rem;
    }

    .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .footer {
        padding: 2rem;
    }

    .logo-footer {
        width: 65px;
    }

    .nav-link {
        font-size: 22px;
    }

    .nav-link-sub {
        font-size: 16px;
    }

    .social-icons {
        justify-content: center;
        gap: 1.5rem;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
    }

    .copyright {
        font-size: 1rem;
        text-align: center;
    }

    .col-md-4 {
        text-align: center;
        margin-bottom: 1rem;
    }

    .col-md-6 {
        text-align: center;
    }
}

/* Desktop and Laptops */
@media (min-width: 1025px) {
    .footer {
        padding: 2rem 0;
    }

    .logo-footer {
        width: 65px;
    }

    .nav-link {
        font-size: 16px;
    }

    .nav-link-sub {
        font-size: 16px;
    }

    .social-icons {
        justify-content: flex-start;
        gap: 1rem;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
    }

    .copyright {
        font-size: 0.9rem;
        text-align: left;
    }

    .row {
        flex-direction: row;
    }

    .col-md-4 {
        text-align: left;
    }
}


.video-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.video-card {
    /* background: #fff; */
    /* border-radius: 12px; */
    overflow: hidden;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.thumbnail-container {
    position: relative;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-info {
    /* padding: 1rem; */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px;
    gap: 17px;
}

.video-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.channel-info {
    /* display: flex;
    align-items: center; */
    gap: 0.5rem;
    margin-left: 40px;
}

.channel-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}


.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .search-container {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }

    .custom-nav {
        padding: 1rem;
    }

    .video-grid {
        padding: 1rem;
        gap: 1rem;
    }

    .chart-containers {
        width: 350px;
        height: 250px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.buttons-center {
    display: flex;
    width: 100%;
    gap: 10px;
    /* Adjust space between buttons */
    justify-content: center;
}


.category-title {
    color: #f90;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.faq-item {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.faq-item:hover {
    background: #f0f0f0;
}

.faq-question {
    margin: 0;
    padding-right: 30px;
    color: #333;
    font-size: 15px;
}

.faq-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #666;
    font-weight: 300;
}

.faq-answer {
    display: none;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}


.file-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}


.custom-nav-link {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    white-space: nowrap;
    border: 1px solid #E4E4E7;
    font-weight: 500;
    color: rgba(21, 21, 21, 0.65);
    background-color: white;
}

.custom-nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Hide hamburger menu on larger screens (desktops/laptops) */
@media (min-width: 1025px) {
    .hamburger-menu {
        display: none;
        /* Hide hamburger on larger screens */
    }

    .header-container {
        max-width: 100%;
    }
}

/* Media Query for mobile and tablet responsiveness */
@media (max-width: 1024px) {
    .custom-nav {
        flex-direction: column;
        align-items: flex-start;
        display: none;
        /* Keep the menu hidden initially */
    }

    .custom-nav.active {
        display: flex;
        /* Show the menu when active class is added */
    }

    .custom-nav-link {
        width: 100%;
        padding: 12px 20px;
        text-align: left;
    }

    /* Position the hamburger menu outside the custom-nav */
    .hamburger-menu {
        display: block;
        cursor: pointer;
        /* position: absolute; */
        /* Position it independently */
        left: 10px;
        top: 15px;
    }

    .hamburger-menu i {
        font-size: 30px;
        color: rgba(21, 21, 21, 0.65);
    }

}