﻿@font-face {
    font-family: "HindSiliguriWeb";
    src: url("/fonts/Hind_Siliguri_Regular.woff2") format("woff2"), url("/fonts/Hind_Siliguri_Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #4e73df;
    --primary-light: #7a9ef8;
    --secondary: #2e59a9;
    --accent: #f6c23e;
    --light: #f8f9fc;
    --dark: #5a5c69;
}

body {
    color: var(--dark);
    background-color: #f4fdff;
    font-family: "HindSiliguriWeb", sans-serif;
    scroll-behavior: smooth;
}

.bangla-text, .bangla-text * {
    font-family: "HindSiliguriWeb" !important;
}

.text-justify {
    text-align: justify;
}

.pointer {
    cursor: pointer;
}

.course-hero {
    background: linear-gradient(135deg, #000 0%, #2d80dd 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 6rem 0 5rem;
    min-height: 60vh;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--light) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.05;
}

.hero-content {
    position: relative;
    transform: translateY(8%);
    max-width: 900px;
    margin: auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}

.course-badge {
    background-color: rgba(255,255,255,.15);
    color: white;
    padding: 0.45rem 1.15rem;
    border-radius: 40px;
    font-weight: 600;
    letter-spacing: .4px;
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
}

.enrollment-status {
    background-color: rgba(40, 180, 255, .27);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 1rem 0 1.25rem;
    line-height: 1.2;
}

.hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 1rem;
    margin-top: .5rem;
}

.section-nav {
    background: #fff;
    border-bottom: 1px solid #e3e6f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.section-nav .nav-link {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--dark);
    position: relative;
}

.section-nav .nav-link.active {
    color: var(--primary);
}

.section-nav .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.sticky-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 90;
}

.video-thumbnail-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 450px;
    border: 4px solid #4f70ff;
    margin-bottom: 2rem;
    transition: .3s ease;
}

.video-thumbnail-container:hover {
    transform: translateY(-4px);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s;
}

.play-button-overlay:hover {
    background: rgba(0,0,0,.45);
}

.play-button {
    width: 75px;
    height: 75px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2rem;
    border: none;
    transition: .3s;
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--secondary);
}

.content-section {
    padding: 3rem 0;
    border-bottom: 1px solid #e3e6f0;
}

.course-description {
    background: white;
    border-radius: 10px;
    padding: 30px 15px;
}

.section-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: .75rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.instructor-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
    transition: .3s;
}

.instructor-card:hover {
    transform: translateY(-4px);
}

.instructor-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.list-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: nowrap; 
}

.list-group-item .lesson-left {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1; 
    justify-content: flex-start;
    text-align: left;
    min-width: 0; 
}

.list-group-item .lesson-duration {
    white-space: nowrap;
    margin-left: auto;
    text-align: right;
}


@media (min-width:1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width:1199px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .video-thumbnail-container {
        height: 380px;
    }
}

@media (max-width:991px) {
    .course-hero {
        padding: 4.5rem 1.5rem 3.5rem;
        min-height: auto;
    }

    .hero-content {
        transform: none;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-meta {
        gap: 1rem;
        font-size: .95rem;
    }

    .video-thumbnail-container {
        height: 320px;
    }
}

@media (max-width:767px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-meta {
        flex-wrap: wrap;
        gap: .75rem;
    }

    .course-badge {
        font-size: .85rem;
        padding: .35rem .9rem;
    }

    .video-thumbnail-container {
        height: 260px;
    }
}

@media (max-width:576px) {
    .course-hero {
        padding: 3rem 1rem 2.2rem;
        text-align: center;
    }

    .hero-badges {
        gap: .5rem;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    .hero-meta {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: .65rem;
        font-size: .9rem;
    }

    .video-thumbnail-container {
        height: 220px;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    .list-group-item {
        flex-wrap: wrap;
    }

    .list-group-item .lesson-left {
        width: 100%;
        margin-bottom: .25rem;
    }

    .list-group-item .lesson-duration {
        width: 100%;
        text-align: right;
    }
}
