/* header */
header {
    background: #fff;
    color: white;
    /* padding: 20px 0; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* flex-wrap: wrap; */
    padding: 13px 0;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    max-height: 65px;
    /* keep logo nicely sized */
    width: auto;
}

.logo-icon {
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.head_menu {
    margin-left: auto;
    /* pushes nav to far right */
}

.head_menu ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.head_menu a {
    /* color: #1a365d; */
    color: #0b3459 !important;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 18px;
    transition: background 0.3s;
}

.serve {
    cursor: pointer;
}

.head_menu a:hover {
    color: #0b3459 !important;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none !important;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white !important;
    min-width: 250px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* border-radius: 5px; */
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:hover {
    /* background: #f8f9fa; */
    background: #1a365d;
    color: #fff !important;
    border-radius: 0;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        gap: 15px;
        padding: 15px 0;
        flex-wrap: wrap;
    }

    .head_menu ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .menu-toggle {
        display: block !important;
        /* z-index: 1; */
        font-family: initial;
    }

    .head_menu a {
        line-height: 41px;
    }

    .head_menu {
        display: none;
        /* hidden by default */
        position: absolute;
        top: 0px;
        /* adjust to your header height */
        right: 0;
        background: #fff;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 1rem;
        background: #fff;
        padding: 1rem;
        border-top: 1px solid #eee;
    }

    .head_menu ul {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .nav.show {
        display: flex;
    }

    .head_menu.active {
        display: block;
        /* show when active */
    }
}

.advBanner {
    width: 100%;
    max-height: 75px;
    z-index: 1000;
    display: block;
}

.advBanner img {
    width: 100%;
    height: auto;
    max-height: 100%;
    display: block;
}

.advBanner .desktop {
    display: block;
}

.advBanner .mobile {
    display: none;
}

@media screen and (max-width: 500px) {
    .advBanner .desktop {
        display: none !important;
    }

    .advBanner .mobile {
        display: block !important;
    }
}

/* Hide toggle on desktop */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a365d;
}

/* Close button inside menu */
.close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #000;
    cursor: pointer;
    font-family: initial;
}

@media (min-width: 769px) {
    .head_menu {
        position: static;
        height: auto;
        width: auto;
        background: none;
        display: block;
        transition: none;
    }

    .close-menu {
        display: none;
    }
}

/* header end*/




body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji" !important;
    margin: 0;
    padding: 0;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: #f6f8fb !important;
    color:  #000 !important;
    min-height: 100vh;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #0b3459;
}

.logo img {
    /* height: 50px; */
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu a {
    color: #0b3459;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: rgba(11, 52, 89, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    color: #0b3459;
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-maintitle span {
    text-align: center;
    /* color: #5b6871; */
    color: #0b3459;
    /* font-size: 1.2rem; */
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 500;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.page-maintitle {
    text-align: center;
    color: #5b6871;
    font-size: 1.2rem;
    margin-top: 20px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-button:hover {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0b3459;
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.video-duration {
    display: inline-block;
    background: #0b3459;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.video-views {
    color: #666;
    font-size: 0.9rem;
}

.video-date {
    color: #999;
    font-size: 0.8rem;
}

.category-section {
    margin-bottom: 60px;
}

.category-title {
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
    }
}

@media (min-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}




.videos-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.table-of-contents {
    flex: 0 0 300px;
    background: #f8f9fa;
    padding: 20px;
    /* border-radius: 10px; */
    height: fit-content;
    position: sticky;
    top: 100px;
    /* border-right: 1px solid #5b687185; */
}

.toc-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #0b3459;
    border-bottom: 2px solid #ed8936;
    padding-bottom: 10px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 10px;
}

.toc-link {
    display: block;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.toc-link:hover {
    background: #ed8936;
    color: white;
    transform: translateX(5px);
}

.toc-link.active {
    background: #0b3459;
    color: white;
    border-color: #0b3459;
}

.videos-section {
    flex: 1;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-tile {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.video-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    border-color: #ed8936;
}

.video-tile.active {
    border-color: #0b3459;
    background: #f8f9fa;
}

.video-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0b3459;
    text-align: center;
    line-height: 1.3;
}

.video-iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    border: none;
}

.video-thumbnail {
    display: none;
}

.video-thumbnail.active {
    display: block;
}

.video-preview {
    position: relative;
    margin-bottom: 10px;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-tile:hover .play-overlay {
    opacity: 1;
}

@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .videos-container {
        flex-direction: column;
    }
    
    .table-of-contents {
        flex: none;
        position: static;
        margin-bottom: 20px;
        border: none;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-iframe {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}