* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --blue: #0d6efd;
    --gray: #333333;
}
body, html {
  height: 100%;
  margin: 0;
}
h1,h2,h3,h4,h5,h6,p,section,ul,ol,li,article {
    margin: 0;
    padding: 0;
}
.card-body {
  justify-content: center;
  align-items: center;
  height: 90vh; /* full viewport height */
  width: 100%;
  text-align: center;
}
.video-category .nav {
    margin: 0;
}
.video-category .nav > .nav {
    margin-left: 16px;
}
/*.card{*/
/*    margin-top: 110px;*/
/*    margin-bottom: 110px;*/
/*}*/

h1,h2,h3,h4,h5,h6 {
    color: var(--gray);
}
.subcategory-link {
    font-size: 90%;
    padding-left: 15px;
}
.video-col-wrapper video {
    width: 100%;
    height: 200px;
}
.category-video-section .card {
    transition: transform 0.3s ease-in-out;
    border-radius: 12px;
}

.category-video-section .card:hover {
    transform: scale(1.05);
}

.category-video-section .card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    object-fit: cover;
    height: 400px;
    width: 100%;
}

.category-video-section .card-body {
    padding: 0.75rem 1rem;
}

.category-video-section .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}
/* Stylish Category Title */
.category-content h4 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--blue);
    background: linear-gradient(90deg, #e3f2fd 82%, #fff 100%);
    border-radius: 12px 12px 0 0;
    padding: 18px 28px 14px 20px;
    margin-bottom: 18px !important;
    box-shadow: 0 2px 16px rgba(50,100,200,0.05);
    letter-spacing: 0.01em;
    position: relative;
    z-index: 2;
    border-left: 6px solid var(--blue);
    transition: background 0.22s, color 0.18s;
    margin: 0;
}
.category-content h4::after {
    content: "";
    display: block;
    height: 3px;
    width: 38px;
    background: linear-gradient(90deg, var(--blue) 60%, #42a5f5 100%);
    border-radius: 2px;
    margin-top: 10px;
}
/*.category-video-section .nav-link.active { background: linear-gradient(90deg, var(--blue), #42a5f5); color: #fff; font-weight: bold; }*/
.category-video-section .nav-link { border-radius: 8px; margin-bottom: 6px; transition: background 0.2s, color 0.2s, transform 0.18s;}
.category-video-section .nav-link:hover { background: #f0f8ff; color: var(--blue); transform: scale(1.05);}
.category-content .card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 8px rgba(30,60,170,0.07);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}
.category-content .card:hover {
    box-shadow: 0 12px 32px rgba(30, 60, 170, 0.17);
    transform: scale(1.035) translateY(-2px);
}
.category-content .card-img-top {
    aspect-ratio: 16/9;
    object-fit: cover;
    filter: brightness(0.95);
    transition: filter 0.18s;
    width: 100%;
    display: block;
}
.category-content .card:hover .card-img-top {
    filter: brightness(1.08) drop-shadow(0 4px 16px rgba(30,60,170,0.15));
}
.category-content .card-title-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(20,30,60,0.82) 60%, transparent 100%);
    color: #fff;
    font-size: 1.10rem;
    font-weight: 600;
    opacity: 0;
    padding: 18px 10px 6px 10px;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 3;
    text-shadow: 0 2px 10px #000a;
}
.category-content .card:hover .card-title-overlay {
    opacity: 1;
}
.category-content .video-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 58px; height: 58px;
    background: rgba(25, 118, 210, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
    box-shadow: 0 2px 20px #1235;
    cursor: pointer;
}
.category-content .card:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
}
.category-content .video-play-btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    /* margin-left: 3px; */
}
div.search-bar input#video-search.form-control {
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
div.search-bar {
    margin: 30px 0;
}
.toggle-submenu i.bi-chevron-down {
    color: #0d6efd !important;
}
.nav-item i.bi-chevron-down {
    color: #0d6efd !important; 
}
#video-loader .spinner-border {
    width: 3rem;
    height: 3rem;
}
.video-description p {
    font-size: 1.6rem; 
    line-height: 1.8; 
}

.category-content .card-body { background: #fafdff; border-radius: 0 0 20px 20px;}
.category-video-section { --aos-delay-step: 70; }
.sidebar-menu ul li, li.nav-item { list-style: none; margin: 16px 0 16px 11px; }
.nav.sub-menu{ flex-wrap: nowrap; }
.max-w-600 {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}
#custom-login-form input[type="submit"] {
    background: var(--blue);
}
/*main {*/
/*    height: 90vh;*/
/*}*/
.single-video-section {
    padding: 60px 20px;
}

.video-box {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.video-box h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 20px 0;
    color: #333;
}

.video-box video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-description {
    margin-top: 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.subcategory-link {
    font-size: 0.95rem;
    padding-left: 32px;
}
.col-md-3.category-name {
    border-radius: 16px;
    background-color: #fff;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    height: 100vh;
}
.tab-content {
    margin-left :20px;
}
.nav-link{
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--blue);
    background: linear-gradient(90deg, #e3f2fd 82%, #fff 100%);
    border-radius: 12px 12px 0 0;
    padding: 18px 28px 14px 20px;
    margin-bottom: 0 !important;
    box-shadow: 0 2px 16px rgba(50, 100, 200, 0.05);
    letter-spacing: 0.01em;
    position: relative;
    z-index: 2;
    border-left: 6px solid var(--blue);
    transition: background 0.22s, color 0.18s;
}
.category-video-section .sidebar-menu {
    margin: 0;
}
.nested-nav-menu {
    margin: 0;
}
li.nav-item {
    margin-bottom: 0 !important;
}
body.page-template {
    background-color: #ffffff;
}
@media only screen and (max-width: 991px) {
    .col-md-3.category-name {
        height: unset;
    } 
    .row.category-video-section {
        flex-direction: column;
        gap: 30px;
    }
    .col-md-3.category-name, .col-md-9.category-content {
        width: 100%;
    }
    .video-library-container, .single-video-section {
        padding: 40px 0;
    }
    .col-md-3.category-name, .video-box {
        padding: 15px;
    }
}
@media only screen and (max-width: 480px) {
    .video-box h2 {
        margin: 10px 0;
    }
    .video-box {
        padding: 10px;
    }
}