/* General Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    line-height: 1.6;
}

/* Prevent horizontal overflow on all main containers */
section, .container, .hero-container, .mentor-container, .howto-grid, 
.services-grid, .gallery-grid, .videos-layout, .bangla-social-grid,
.quiz-selection, .mentor-photo-wrap {
    max-width: 100%;
    overflow-x: hidden;
}

/* Header & Nav */
/* Professional header entrance animation */
@keyframes slideDownHeader {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 32px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.94) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDownHeader 0.7s ease forwards;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(56, 189, 248, 0.16);
    width: 100%;
}

/* Header layout: logo left, menu right */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 1.45rem;
    font-weight: 700;
    z-index: 2;
    min-width: 0;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f8fafc;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.logo a:hover,
.logo:hover {
    transform: scale(1.04);
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.logo img,
.logo a img,
header .logo img,
header img.brand-logo,
.brand-logo {
    height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: contain;
    border-radius: 6px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover img,
.logo a:hover img,
.logo:hover .brand-logo {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.logo span,
.logo a span {
    color: #38bdf8;
}

/* Glassy pill menu bar, centered */
nav#navMenu {
    display: flex;
    align-items: center;
    margin-left: auto;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 5px 8px;
    max-width: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: navPulse 4s ease-in-out infinite;
}

@keyframes navPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 0 6px 26px rgba(56, 189, 248, 0.18), 0 0 0 1px rgba(56, 189, 248, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
    margin: 0;
    padding: 0;
}

/* Individual link entrance stagger */
@keyframes fadeInUpLink {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

nav ul li {
    opacity: 0;
    animation: fadeInUpLink 0.6s ease forwards;
}

nav ul li:nth-child(1) { animation-delay: 0.10s; }
nav ul li:nth-child(2) { animation-delay: 0.16s; }
nav ul li:nth-child(3) { animation-delay: 0.22s; }
nav ul li:nth-child(4) { animation-delay: 0.28s; }
nav ul li:nth-child(5) { animation-delay: 0.34s; }
nav ul li:nth-child(6) { animation-delay: 0.40s; }
nav ul li:nth-child(7) { animation-delay: 0.46s; }
nav ul li:nth-child(8) { animation-delay: 0.52s; }

/* Animated pill-style links */
nav a {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 30px;
    color: #cbd5e1;
    text-decoration: none;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.81rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: #38bdf8;
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
    transition: width 0.35s ease;
}

nav a:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.16);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
}

nav a:hover::after {
    width: 60%;
}

nav a.active-link {
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

nav a.active-link::after {
    width: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

/* ==========================================
   NAV DROPDOWN MENU
   ========================================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link i {
    font-size: 0.65rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover > .nav-link i,
.nav-dropdown.dropdown-open > .nav-link i {
    transform: rotate(180deg);
}

/* Invisible bridge between link and dropdown so mouse doesn't lose hover */
.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 200px;
    background: #1e293b;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    z-index: 1001;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #1e293b;
    border-left: 1px solid rgba(56, 189, 248, 0.2);
    border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown.dropdown-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: #cbd5e1;
    text-decoration: none;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu li a i {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.dropdown-menu li a:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.12);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 80px 8%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('image/periodictable.png') center/cover no-repeat;
    background-size: auto 120%;
    opacity: 0.45;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 18px;
}

.highlight {
    color: #38bdf8;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
}

.hero p {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 560px;
    margin: 0 0 30px 0;
}

.hero-stats {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stat {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 14px 22px;
    text-align: center;
    min-width: 110px;
    transition: transform 0.3s, border-color 0.3s;
}

.hero-stat:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
}

.hero-stat .stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #38bdf8;
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #38bdf8;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    background: #0284c7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

/* Hero demo quiz card */
.hero-demo {
    position: relative;
    z-index: 2;
}

.demo-card {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 22px;
    backdrop-filter: blur(6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.demo-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.demo-tag {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.demo-timer {
    color: #f87171;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.95rem;
}

.demo-qtext {
    font-size: 1.05rem;
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 16px;
    min-height: 48px;
}

.demo-options {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.demo-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.92rem;
    text-align: left;
    cursor: default;
    transition: border-color 0.3s, background 0.3s, transform 0.2s;
}

.demo-option .demo-idx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #334155;
    color: #f8fafc;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.demo-option .opt-text {
    flex: 1;
}

.demo-option.demo-wrong {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    animation: shakeX 0.4s ease;
}

.demo-option.demo-right {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
    transform: scale(1.02);
}

@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.demo-feedback {
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    min-height: 20px;
    transition: color 0.3s;
}

.demo-feedback.demo-feedback-right {
    color: #22c55e;
    font-weight: 600;
}

.demo-progress {
    height: 6px;
    background: #0f172a;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}

.demo-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8, #22c55e);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.secondary-btn {
    background: transparent;
    border: 2px solid #38bdf8;
    color: #38bdf8;
}

.secondary-btn:hover {
    background: #38bdf8;
    color: #0f172a;
}

/* ==========================================
   HOW TO USE THIS WEBSITE SECTION
   ========================================== */
.howto-section {
    padding: 70px 8%;
    text-align: center;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(56, 189, 248, 0.07), transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(250, 204, 21, 0.06), transparent 55%),
        #0f172a;
}

.howto-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

.howto-section h2 {
    font-size: 2rem;
    color: #f8fafc;
    margin-bottom: 12px;
    font-family: 'Outfit', 'Poppins', 'Noto Sans Bengali', sans-serif;
}

.howto-section h2 .highlight {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.howto-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 40px;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

.howto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.howto-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: left;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(30px);
}

.howto-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.howto-card:nth-child(2).visible { transition-delay: 0.12s; }
.howto-card:nth-child(3).visible { transition-delay: 0.24s; }
.howto-card:nth-child(4).visible { transition-delay: 0.36s; }

.howto-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.howto-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.howto-icon-wrap.cyan {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.howto-icon-wrap.green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.howto-icon-wrap.amber {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.howto-icon-wrap.pink {
    background: rgba(244, 114, 182, 0.15);
    color: #f472b6;
}

.howto-card h3 {
    color: #f8fafc;
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

.howto-card p {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

.howto-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.howto-list li {
    color: #cbd5e1;
    font-size: 0.88rem;
    padding: 5px 0;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

.howto-list li i {
    color: #22c55e;
    margin-right: 8px;
    font-size: 0.75rem;
}

.howto-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
    transition: gap 0.3s ease, color 0.3s ease;
}

.howto-link:hover {
    gap: 10px;
    color: #7dd3fc;
}

/* How-to section responsive */
@media (max-width: 1024px) {
    .howto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .howto-section {
        padding: 50px 5%;
    }

    .howto-section h2 {
        font-size: 1.5rem;
    }

    .howto-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .howto-card {
        padding: 24px 20px;
    }
}

/* Meet Your Mentor Section */
.mentor-section {
    padding: 70px 8%;
    text-align: center;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(56, 189, 248, 0.08), transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(34, 197, 94, 0.07), transparent 55%),
        #0f172a;
}

.mentor-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 55px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.mentor-photo-wrap {
    position: relative;
}

.mentor-photo {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid #38bdf8;
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.28);
    animation: mentorFloat 5s ease-in-out infinite;
    aspect-ratio: 1 / 1;
}

.mentor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.mentor-photo:hover img {
    transform: scale(1.04);
}

@keyframes mentorFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mentor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    justify-content: center;
}

.mentor-chip {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 7px 13px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: border-color 0.3s, transform 0.3s;
}

.mentor-chip i {
    color: #38bdf8;
}

.mentor-chip.verified {
    border-color: #22c55e;
}

.mentor-chip.verified i {
    color: #22c55e;
}

.mentor-chip:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
}

.mentor-info .mentor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.mentor-info .remian-badge {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 2px solid #38bdf8;
    color: #ffffff;
    margin-top: 10px;
    margin-bottom: 18px;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 20px;
}

.mentor-info .remian-badge i {
    color: #38bdf8;
    font-size: 1.1rem;
}

.mentor-info .remian-highlight {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.mentor-info .drmc-highlight {
    color: #facc15;
    font-weight: 700;
}

.mentor-info h2 {
    font-size: 2.3rem;
    color: #f8fafc;
    margin-bottom: 6px;
}

.mentor-info h3 {
    color: #38bdf8;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.mentor-info p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 18px;
}

.mentor-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.mentor-features li {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mentor-features i {
    color: #22c55e;
    font-size: 1.05rem;
}

.mentor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 8%;
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #94a3b8;
    margin-bottom: 30px;
}

/* About role badges */
.about-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 34px;
}

.about-role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.about-role:hover {
    transform: translateY(-3px);
}

.about-role.student {
    border-color: #22c55e;
}

.about-role.student i {
    color: #22c55e;
}

.about-role.mentor {
    border-color: #38bdf8;
}

.about-role.mentor i {
    color: #38bdf8;
}

.about-role.ceo {
    border-color: #f59e0b;
}

.about-role.ceo i {
    color: #f59e0b;
}

.about-role.academy {
    border-color: #a78bfa;
}

.about-role.academy i {
    color: #a78bfa;
}

/* Upload Box */
.upload-box {
    background: #1e293b;
    padding: 25px;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto 40px auto;
    border: 1px dashed #38bdf8;
}

.upload-box h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group input {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #fff;
}

.btn-add {
    padding: 12px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add:hover {
    background: #16a34a;
}

/* ===================================================================
   ROYAL NEO-GALLERY PHOTO FRAMES (ডিজাইনফুল প্রিমিয়াম ফটো ফ্রেম)
   =================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1240px;
    margin: 30px auto 0;
    position: relative;
    z-index: 2;
}

/* Gallery Card Container */
.gallery-card {
    position: relative;
    cursor: pointer;
    border-radius: 22px;
    perspective: 1200px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card.featured {
    grid-column: auto;
}

/* ---------------------------------------------------------
   LUXURY MULTI-LAYER PHOTO FRAME
   --------------------------------------------------------- */
.photo-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 22px;
    padding: 3px; /* Multi-gradient frame border rim */
    background: linear-gradient(135deg, 
        rgba(56, 189, 248, 0.75) 0%, 
        rgba(129, 140, 248, 0.5) 30%, 
        rgba(236, 72, 153, 0.65) 70%, 
        rgba(245, 158, 11, 0.8) 100%
    );
    box-shadow: 
        0 14px 34px -8px rgba(0, 0, 0, 0.8), 
        0 0 24px -4px rgba(56, 189, 248, 0.18),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

/* Obsidian Frame Body Behind Gradient Rim */
.photo-frame::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(165deg, #131c2e 0%, #0b111e 45%, #070a12 100%);
    border-radius: 19px;
    z-index: 0;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.photo-frame > * {
    position: relative;
    z-index: 1;
}

/* Frame Hover Lift & Luminescent Aura */
.gallery-card:hover .photo-frame {
    transform: translateY(-8px) scale(1.015);
    background: linear-gradient(135deg, 
        #38bdf8 0%, 
        #818cf8 35%, 
        #ec4899 70%, 
        #fbbf24 100%
    );
    box-shadow: 
        0 24px 50px -10px rgba(0, 0, 0, 0.9), 
        0 0 35px 4px rgba(56, 189, 248, 0.4), 
        0 0 20px rgba(236, 72, 153, 0.35), 
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* ---------------------------------------------------------
   ARTISAN 4-CORNER BRACKETS (চার কোণায় ডিজাইন কর্নার ব্র্যাকেট)
   --------------------------------------------------------- */
.frame-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 4;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.frame-corner::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px currentColor;
}

/* Top-Left Corner */
.frame-corner.corner-tl {
    top: 8px;
    left: 8px;
    border-top: 3px solid #38bdf8;
    border-left: 3px solid #38bdf8;
    border-top-left-radius: 9px;
    color: #38bdf8;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.8));
}
.frame-corner.corner-tl::after {
    top: 2px;
    left: 2px;
}

/* Top-Right Corner */
.frame-corner.corner-tr {
    top: 8px;
    right: 8px;
    border-top: 3px solid #818cf8;
    border-right: 3px solid #818cf8;
    border-top-right-radius: 9px;
    color: #818cf8;
    filter: drop-shadow(0 0 4px rgba(129, 140, 248, 0.8));
}
.frame-corner.corner-tr::after {
    top: 2px;
    right: 2px;
}

/* Bottom-Left Corner */
.frame-corner.corner-bl {
    bottom: 8px;
    left: 8px;
    border-bottom: 3px solid #ec4899;
    border-left: 3px solid #ec4899;
    border-bottom-left-radius: 9px;
    color: #ec4899;
    filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.8));
}
.frame-corner.corner-bl::after {
    bottom: 2px;
    left: 2px;
}

/* Bottom-Right Corner */
.frame-corner.corner-br {
    bottom: 8px;
    right: 8px;
    border-bottom: 3px solid #fbbf24;
    border-right: 3px solid #fbbf24;
    border-bottom-right-radius: 9px;
    color: #fbbf24;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.8));
}
.frame-corner.corner-br::after {
    bottom: 2px;
    right: 2px;
}

.gallery-card:hover .frame-corner {
    transform: scale(1.15);
}
.gallery-card:hover .frame-corner.corner-tl { filter: drop-shadow(0 0 8px #38bdf8); }
.gallery-card:hover .frame-corner.corner-tr { filter: drop-shadow(0 0 8px #818cf8); }
.gallery-card:hover .frame-corner.corner-bl { filter: drop-shadow(0 0 8px #ec4899); }
.gallery-card:hover .frame-corner.corner-br { filter: drop-shadow(0 0 8px #fbbf24); }

/* ---------------------------------------------------------
   FRAME TOP HEADER BAR
   --------------------------------------------------------- */
.frame-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 6px 18px;
    z-index: 2;
}

.gallery-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.frame-watermark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.frame-watermark i {
    color: #fbbf24;
}

/* ---------------------------------------------------------
   PASSE-PARTOUT MAT CANVAS (ভিতরের আর্ট ম্যাট মার্জিন)
   --------------------------------------------------------- */
.frame-mat {
    margin: 4px 14px 10px 14px;
    padding: 10px;
    background: radial-gradient(circle at 50% 30%, #151d2f 0%, #0a0f1c 100%);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        inset 0 3px 8px rgba(0, 0, 0, 0.85),
        inset 0 0 0 1px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

/* Inner Photo Container - Museum Presentation with ZERO Image Cropping */
.frame-photo-container {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 
        0 8px 22px rgba(0, 0, 0, 0.65),
        inset 0 0 15px rgba(0, 0, 0, 0.5);
    background: radial-gradient(circle at center, #111a2d 0%, #050811 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.gallery-card.featured .frame-photo-container {
    height: 280px;
}

.frame-photo-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Full image is 100% visible - never cropped from top, bottom, or sides */
    display: block;
    margin: auto;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.gallery-card:hover .frame-photo-container img {
    transform: scale(1.03);
    filter: brightness(1.05) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}

/* Glass Glare Sweep */
.frame-glass-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 80%
    );
    transform: translateX(-150%) skewX(-25deg);
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .frame-glass-shine {
    transform: translateX(150%) skewX(-25deg);
}

/* Card Zoom Overlay */
.card-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid #38bdf8;
    color: #38bdf8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 4;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.3);
}

.gallery-card:hover .card-zoom {
    opacity: 1;
    transform: scale(1);
}

.card-zoom:hover {
    background: #38bdf8;
    color: #0f172a;
    box-shadow: 0 0 20px #38bdf8;
}

/* ---------------------------------------------------------
   MUSEUM TITANIUM PLAQUE (নিচের মেটালিক নেমপ্লেট)
   --------------------------------------------------------- */
.frame-plaque {
    margin: 0 14px 14px 14px;
    padding: 13px 16px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.gallery-card:hover .frame-plaque {
    border-top-color: #38bdf8;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.98) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 6px 16px rgba(0, 0, 0, 0.5);
}

.plaque-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.plaque-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Outfit', 'Poppins', sans-serif;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plaque-header h4 i {
    color: #38bdf8;
    font-size: 0.9rem;
}

.plaque-expand-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.gallery-card:hover .plaque-expand-badge {
    background: #38bdf8;
    color: #0f172a;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.frame-plaque p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.45;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

/* ---------------------------------------------------------
   FULLSCREEN LIGHTBOX WITH MATCHING MUSEUM FRAME
   --------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-dialog {
    position: relative;
    max-width: 94vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-frame-wrap {
    position: relative;
    padding: 4px;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(56, 189, 248, 0.8) 0%, 
        rgba(129, 140, 248, 0.6) 35%, 
        rgba(236, 72, 153, 0.7) 70%, 
        rgba(245, 158, 11, 0.8) 100%
    );
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.9), 
        0 0 40px rgba(56, 189, 248, 0.35);
}

.lightbox-mat {
    background: #090e1a;
    padding: 16px 20px;
    border-radius: 17px 17px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 74vh;
}

.lightbox-img {
    max-width: 86vw;
    max-height: 68vh;
    width: auto;
    height: auto;
    object-fit: contain; /* Full image visible in Lightbox */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: block;
}

.lightbox-caption-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 22px;
    background: #090e1a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 17px 17px;
}

.lightbox-caption {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
    line-height: 1.5;
}

.lightbox-caption strong {
    color: #38bdf8;
    font-size: 1.05rem;
}

.lightbox-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    font-size: 0.72rem;
    color: #fbbf24;
    white-space: nowrap;
}

/* Lightbox Close Button: inside top right of frame, fully visible and never clipped */
.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.95);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.lightbox-close:hover {
    transform: scale(1.12) rotate(90deg);
    background: #dc2626;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.9);
}

/* Services Section */
.services-section {
    padding: 60px 8%;
    text-align: center;
    background: #1e293b;
}

.services-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    text-align: left;
}

.service-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.15);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #38bdf8;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #f8fafc;
}

.service-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    margin-bottom: 20px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
    padding: 5px 0;
}

.service-list li i {
    color: #22c55e;
    font-size: 0.85rem;
}

.service-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
    margin-top: auto;
}

.service-link:hover {
    color: #0284c7;
}

/* ===================================================================
   INTERACTIVE VIDEO LESSONS & THEATER POPUP SYSTEM (ভিডিও লেকচার ও থিয়েটার পপআপ)
   =================================================================== */

.videos-section {
    position: relative;
    padding: 70px 8% 90px;
    background: radial-gradient(circle at 50% 20%, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.95) 70%, #090d16 100%);
    text-align: center;
    overflow: hidden;
}

.videos-section .video-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.videos-section h2 {
    font-size: 2.3rem;
    color: #f8fafc;
    font-family: 'Outfit', 'Poppins', 'Noto Sans Bengali', sans-serif;
    margin-bottom: 12px;
}

.videos-section h2 .highlight {
    background: linear-gradient(135deg, #ef4444 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.videos-section .subtitle {
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto 28px;
    font-size: 1.02rem;
    line-height: 1.6;
}

/* Video Subject Filter Bar */
.video-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 32px;
    flex-wrap: wrap;
    max-width: 700px;
}

.video-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Poppins', 'Outfit', sans-serif;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.22);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.video-filter-btn:hover {
    color: #ffffff;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.video-filter-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Videos Layout: 2.15fr (Grand Main Theater) + 1fr (Sidebar Playlist) */
.videos-layout {
    display: grid;
    grid-template-columns: 2.15fr 1fr;
    gap: 32px;
    margin-top: 15px;
    text-align: left;
    align-items: start;
    max-width: 1540px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------
   MAIN VIDEO THEATER CARD
   --------------------------------------------------------- */
.main-video-card {
    background: #0f172a;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.main-video-card:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 35px rgba(239, 68, 68, 0.25), 0 0 20px rgba(56, 189, 248, 0.2);
}

.main-video-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.theater-featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.theater-quality-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.main-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    overflow: hidden;
}

.main-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    outline: none;
}

.main-video-bottom {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, #0f172a 0%, #090e1a 100%);
}

.main-sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-video-bottom h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Outfit', 'Poppins', sans-serif;
    color: #f8fafc;
    line-height: 1.4;
}

.main-video-desc {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.55;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

.main-video-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn-theater-expand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #0b1120;
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
    transition: all 0.3s ease;
}

.btn-theater-expand:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
}

.btn-yt-visit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-yt-visit:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   VIDEOS SIDEBAR & PLAYLIST CARDS
   --------------------------------------------------------- */
.videos-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Outfit', 'Poppins', sans-serif;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header h4 i {
    color: #ef4444;
}

.sidebar-count {
    padding: 3px 10px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #38bdf8;
}

.video-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Video Card */
.video-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.video-card:hover {
    transform: translateY(-3px) scale(1.01);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.25);
}

/* Thumbnail Box with Play Overlay */
.video-thumb-box {
    position: relative;
    width: 128px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumb-box img {
    transform: scale(1.08);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-play-icon {
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.82rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.video-card:hover .video-play-icon {
    transform: scale(1.18);
    box-shadow: 0 0 16px #ef4444;
}

.video-tag-pill {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.85);
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Video Card Info */
.video-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.video-subject-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.video-subject-tag.tag-math { color: #38bdf8; }
.video-subject-tag.tag-biology { color: #4ade80; }
.video-subject-tag.tag-physics { color: #f472b6; }

.video-card-info p {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.35;
    color: #f1f5f9;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Outfit', 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.video-card:hover .video-card-info p {
    color: #ffffff;
}

.video-action-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.73rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 2px;
    transition: color 0.3s ease;
}

.video-card:hover .video-action-hint {
    color: #f87171;
}

/* ---------------------------------------------------------
   THE GRAND VIDEO POPUP THEATER MODAL (বড় ভিডিও পপআপ)
   --------------------------------------------------------- */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 18, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.video-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-dialog {
    position: relative;
    width: 98vw;
    max-width: 1440px;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    animation: modalPopUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-dialog.fullscreen-theater {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.video-modal-dialog.fullscreen-theater .video-modal-card {
    border-radius: 0 !important;
    height: 100vh !important;
    border: none !important;
    display: flex;
    flex-direction: column;
}

.video-modal-dialog.fullscreen-theater .video-modal-screen {
    flex: 1;
    max-height: calc(100vh - 110px) !important;
}

@keyframes modalPopUp {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.video-modal-card {
    position: relative;
    background: linear-gradient(165deg, #131c2e 0%, #0a0f1d 70%, #050811 100%);
    border-radius: 20px;
    border: 2px solid rgba(239, 68, 68, 0.6);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.95), 
        0 0 50px rgba(239, 68, 68, 0.35),
        0 0 30px rgba(56, 189, 248, 0.25);
    overflow: hidden;
}

/* Modal 4 Corner Brackets */
.modal-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 10;
}

.modal-corner.corner-tl {
    top: 6px;
    left: 6px;
    border-top: 3px solid #ef4444;
    border-left: 3px solid #ef4444;
    border-top-left-radius: 8px;
    filter: drop-shadow(0 0 6px #ef4444);
}

.modal-corner.corner-tr {
    top: 6px;
    right: 6px;
    border-top: 3px solid #38bdf8;
    border-right: 3px solid #38bdf8;
    border-top-right-radius: 8px;
    filter: drop-shadow(0 0 6px #38bdf8);
}

.modal-corner.corner-bl {
    bottom: 6px;
    left: 6px;
    border-bottom: 3px solid #818cf8;
    border-left: 3px solid #818cf8;
    border-bottom-left-radius: 8px;
    filter: drop-shadow(0 0 6px #818cf8);
}

.modal-corner.corner-br {
    bottom: 6px;
    right: 6px;
    border-bottom: 3px solid #fbbf24;
    border-right: 3px solid #fbbf24;
    border-bottom-right-radius: 8px;
    filter: drop-shadow(0 0 6px #fbbf24);
}

/* Modal Header Bar */
.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.modal-yt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.video-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Outfit', 'Poppins', sans-serif;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.modal-yt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-yt-btn:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.video-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: 1.5px solid #ffffff;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.video-modal-close:hover {
    transform: scale(1.15) rotate(90deg);
    background: #dc2626;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.9);
}

/* Modal Video Screen 16:9 (Cinematic Grand Canvas) */
.video-modal-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: calc(95vh - 90px);
    background: #000;
    overflow: hidden;
    flex: 1;
    display: flex;
}

.video-modal-screen iframe,
.video-modal-screen video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Fullscreen Toggle Button in Modal Header */
.video-modal-fullscreen {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.16);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.video-modal-fullscreen:hover {
    background: #38bdf8;
    color: #0b1120;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
    transform: scale(1.12);
}

/* ---------------------------------------------------------
   INTERACTIVE VIP THEATER FALLBACK (Prevents YouTube Error 153)
   --------------------------------------------------------- */
.video-local-fallback {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    background: #030712;
    overflow: hidden;
}

.fallback-poster-wrap {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
}

.fallback-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fallback-poster-wrap:hover .fallback-poster {
    transform: scale(1.05);
}

.fallback-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15) 0%, rgba(3, 7, 18, 0.88) 85%);
    pointer-events: none;
}

.fallback-center-cta {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 5;
    text-align: center;
}

.fallback-pulsing-play {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 60%, #991b1b 100%);
    border: 3.5px solid rgba(255, 255, 255, 0.95);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 0 45px rgba(239, 68, 68, 0.85), 0 10px 30px rgba(0, 0, 0, 0.7);
    animation: pulsePlayGlow 2.2s infinite;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    padding-left: 6px;
}

.fallback-pulsing-play:hover {
    transform: scale(1.18);
    background: #ff0000;
    box-shadow: 0 0 65px rgba(255, 0, 0, 1), 0 16px 45px rgba(0, 0, 0, 0.85);
}

@keyframes pulsePlayGlow {
    0%, 100% {
        box-shadow: 0 0 35px rgba(239, 68, 68, 0.75), 0 10px 25px rgba(0,0,0,0.5);
    }
    50% {
        box-shadow: 0 0 70px rgba(239, 68, 68, 1), 0 0 25px rgba(255, 255, 255, 0.5);
    }
}

.fallback-click-hint {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
    letter-spacing: 0.4px;
    font-family: 'Outfit', 'Poppins', sans-serif;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 7px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fallback-banner {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, #090e1a 100%);
    border-top: 1px solid rgba(239, 68, 68, 0.35);
    padding: 16px 24px;
    z-index: 6;
}

.fallback-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.fallback-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.fallback-banner-content p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.5;
}

.fallback-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.fallback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fallback-btn.primary-yt {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.fallback-btn.primary-yt:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.7);
}

.fallback-btn.localhost-btn {
    background: rgba(56, 189, 248, 0.14);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.fallback-btn.localhost-btn:hover {
    background: #38bdf8;
    color: #0b1120;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

/* ---------------------------------------------------------
   LOCAL ENVIRONMENT TOP BAR (file:/// protocol banner)
   --------------------------------------------------------- */
.tbs-local-env-banner {
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 2px solid #38bdf8;
    color: #e2e8f0;
    padding: 10px 16px;
    font-size: 0.86rem;
    position: relative;
    z-index: 10000;
}

.tbs-local-env-banner .banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    text-align: center;
}

.tbs-local-env-banner .banner-icon {
    color: #38bdf8;
    font-size: 1.1rem;
}

.tbs-local-env-banner .banner-text {
    font-weight: 500;
}

.tbs-local-env-banner .banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #38bdf8;
    color: #0b1120;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.tbs-local-env-banner .banner-btn:hover {
    background: #7dd3fc;
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.tbs-local-env-banner .banner-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    margin-left: 8px;
}

.tbs-local-env-banner .banner-close:hover {
    color: #ffffff;
}

/* Modal Footer */
.video-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: #94a3b8;
    gap: 12px;
}

.modal-instructor-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
}

.modal-instructor-info i {
    color: #38bdf8;
}

.modal-shortcut-tip kbd {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.76rem;
}

/* YouTube Channel Preview Card */
.yt-channel-preview {
    display: block;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.yt-channel-preview:hover {
    transform: translateY(-3px);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.25);
}

.yt-banner {
    height: 82px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.yt-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.04) 10px,
        rgba(255, 255, 255, 0.04) 20px
    );
}

.yt-banner-channel {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.yt-banner-channel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.yt-banner-fallback {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.yt-banner-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Outfit', 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.yt-banner-text i {
    font-size: 1.5rem;
}

.yt-channel-body {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.yt-channel-meta {
    flex: 1;
    min-width: 0;
}

.yt-channel-meta h4 {
    color: #f8fafc;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    margin: 0 0 2px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yt-handle {
    color: #94a3b8;
    font-size: 0.78rem;
    margin: 0 0 4px 0;
    font-family: 'Poppins', sans-serif;
}

.yt-desc {
    color: #64748b;
    font-size: 0.75rem;
    margin: 0;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yt-subscribe-btn {
    background: #ef4444;
    color: #fff;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.yt-channel-preview:hover .yt-subscribe-btn {
    background: #dc2626;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
}

.yt-subscribe-btn i {
    font-size: 0.75rem;
}

/* ---------------------------------------------------------
   RESPONSIVE DESIGN FOR VIDEOS SECTION
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .videos-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .videos-section {
        padding: 50px 5% 70px;
    }

    .videos-section h2 {
        font-size: 1.8rem;
    }

    .main-video-bottom {
        padding: 16px;
    }

    .main-video-bottom h3 {
        font-size: 1.1rem;
    }

    .video-thumb-box {
        width: 110px;
    }

    .video-modal-header {
        padding: 10px 14px;
    }

    .video-modal-footer {
        padding: 10px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* Quiz / MCQ Exam Section */
.quiz-section {
    padding: 60px 8%;
    text-align: center;
}

.quiz-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 16px 24px;
    margin: 30px auto 20px;
    max-width: 700px;
    flex-wrap: wrap;
    gap: 12px;
}

.quiz-progress {
    flex: 1;
    min-width: 200px;
}

#progressText {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

.progress-bar {
    height: 8px;
    background: #0f172a;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #22c55e);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.quiz-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #38bdf8;
    font-family: 'Courier New', monospace;
    min-width: 80px;
    text-align: right;
}

.quiz-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.question-area h3 {
    font-size: 1.15rem;
    color: #f8fafc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.options-grid {
    display: grid;
    gap: 12px;
}

.option-btn {
    width: 100%;
    padding: 14px 16px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 8px;
    color: #f8fafc;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-btn:hover {
    border-color: #38bdf8;
    background: #111827;
}

.option-btn.selected {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #38bdf8;
    color: #0f172a;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #334155;
}

.quiz-result {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 40px 24px;
    max-width: 500px;
    margin: 30px auto 0;
    text-align: center;
}

.quiz-result h3 {
    font-size: 1.8rem;
    color: #22c55e;
    margin-bottom: 20px;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(#22c55e calc(var(--score, 0) * 3.6deg), #334155 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.score-circle::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: #0f172a;
    border-radius: 50%;
}

#scorePercent {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 700;
    color: #22c55e;
}

.quiz-result p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Quiz Coming Soon */
.quiz-coming-soon {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 40px auto;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
}

.quiz-coming-soon i {
    font-size: 3rem;
    color: #facc15;
    margin-bottom: 16px;
    display: block;
}

.quiz-coming-soon h3 {
    font-size: 1.5rem;
    color: #f8fafc;
    margin-bottom: 10px;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

.quiz-coming-soon p {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 24px;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

/* Quiz Selection Cards */
.quiz-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 30px auto 0;
}

.quiz-card-select {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s;
}

.quiz-card-select:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
}

.quiz-select-header i {
    font-size: 1.8rem;
    color: #38bdf8;
    margin-bottom: 10px;
}

.quiz-select-header h3 {
    font-size: 1.35rem;
    color: #f8fafc;
    margin-bottom: 8px;
}

.quiz-select-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.quiz-select-meta {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.quiz-select-meta i {
    color: #38bdf8;
    margin-right: 4px;
}

/* Quiz results review */
.quiz-result {
    max-width: 700px;
}

.result-header .score-circle, .result-header #scorePercent {
    transition: background 0.4s, color 0.4s;
}

.review-list {
    display: grid;
    gap: 16px;
    margin-top: 30px;
    text-align: left;
}

.review-item {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 16px;
}

.review-item.correct {
    border-left: 4px solid #22c55e;
}

.review-item.wrong {
    border-left: 4px solid #f87171;
}

.review-item.skipped {
    border-left: 4px solid #facc15;
}

.review-question {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 12px;
    line-height: 1.5;
}

.review-num {
    background: #38bdf8;
    color: #0f172a;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.8rem;
}

.review-state {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.review-state.right {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.review-state.wrong {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.review-state.skipped {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.review-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid #334155;
    font-size: 0.9rem;
    color: #cbd5e1;
    flex-wrap: wrap;
}

.review-option .opt-text {
    flex: 1;
    min-width: 150px;
}

.review-option.right-opt {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.review-option.wrong-opt {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.review-option.selected-opt {
    box-shadow: inset 3px 0 0 #38bdf8;
}

.review-tag {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Student Registration Section */
.register-section {
    padding: 60px 8%;
    text-align: center;
}

.register-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.register-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 30px;
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.register-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.register-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.register-card label {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.9rem;
}

.register-card input[type="text"],
.register-card input[type="tel"],
.register-card input[type="email"],
.register-card select,
.register-card textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

.register-card input:focus,
.register-card select:focus,
.register-card textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.register-card select option {
    background: #1e293b;
    color: #fff;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 14px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #f8fafc;
    cursor: pointer;
}

.check-item input[type="checkbox"] {
    accent-color: #38bdf8;
    width: 16px;
    height: 16px;
}

.register-btn {
    width: 100%;
    margin-top: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.form-status {
    text-align: center;
    margin-top: 14px;
    font-weight: 600;
    min-height: 1.2em;
}

.form-status.success {
    color: #22c55e;
}

.form-status.error {
    color: #f87171;
}

@media (max-width: 600px) {
    .register-card {
        padding: 20px;
    }
    .register-card .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .quiz-header {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
    }
    .quiz-timer {
        text-align: center;
        font-size: 1.25rem;
    }
    .quiz-card {
        padding: 16px;
    }
    .question-area h3 {
        font-size: 1.05rem;
    }
    .option-btn {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    .quiz-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .quiz-nav button {
        width: 100%;
    }
    .score-circle {
        width: 120px;
        height: 120px;
    }
    #scorePercent {
        font-size: 2rem;
    }
    .result-actions {
        flex-direction: column;
    }
    .result-actions button {
        width: 100%;
    }
    .quiz-selection {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .review-option .opt-text {
        width: 100%;
        min-width: 0;
    }
    .review-tag {
        width: 100%;
    }
}

/* Contact & Footer */
.contact-section {
    padding: 70px 8%;
    background: #0f172a;
    text-align: center;
}

.contact-section p {
    color: #94a3b8;
    margin: 15px 0 25px 0;
}

/* Bangla Join Section */
.bangla-join-sub {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 8px;
}

.bangla-join-heading {
    font-size: 2.3rem;
    color: #f8fafc;
    margin-bottom: 36px;
}

.bangla-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.bangla-social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bangla-social-card:hover {
    transform: translateY(-4px);
}

.bangla-social-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    color: #ffffff;
}

.bangla-social-card.yt .bangla-social-icon {
    background: #ff0000;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.3);
}

.bangla-social-card.yt:hover {
    border-color: #ff0000;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.2);
}

.bangla-social-card.fb .bangla-social-icon {
    background: #1877f2;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.3);
}

.bangla-social-card.fb:hover {
    border-color: #1877f2;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.2);
}

.bangla-social-card.wa .bangla-social-icon {
    background: #25d366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.bangla-social-card.wa:hover {
    border-color: #25d366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.bangla-social-card.em .bangla-social-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.bangla-social-card.em:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.bangla-social-card.tt .bangla-social-icon {
    background: #010101;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.bangla-social-card.tt:hover {
    border-color: #010101;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.bangla-social-card.tt:hover .bangla-social-icon {
    background: #1a1a1a;
}

.bangla-social-name {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f8fafc;
}

.bangla-social-action {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bangla-social-card.yt .bangla-social-action { color: #ff4d4d; }
.bangla-social-card.fb .bangla-social-action { color: #60a5fa; }
.bangla-social-card.wa .bangla-social-action { color: #4ade80; }
.bangla-social-card.em .bangla-social-action { color: #fbbf24; }
.bangla-social-card.tt .bangla-social-action { color: #ffffff; }

.bangla-social-action i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.bangla-social-card:hover .bangla-social-action i {
    transform: translateX(4px);
}

.contact-phone {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-phone a {
    color: #38bdf8;
    text-decoration: none;
}

.contact-phone a:hover {
    text-decoration: underline;
}

/* ==========================================
   PREMIUM 4-COLUMN FOOTER (EDTECH STYLE)
   ========================================== */
.site-footer, footer.site-footer {
    background: linear-gradient(180deg, #0b1120 0%, #070b14 100%);
    border-top: 1px solid rgba(56, 189, 248, 0.16);
    color: #94a3b8;
    font-size: 0.92rem;
    padding: 60px 0 0 0;
    position: relative;
    z-index: 10;
    text-align: left;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 50px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr 1.3fr;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Col 1: Brand & App */
.footer-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer-logo-img {
    height: 44px !important;
    max-height: 44px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain;
    border-radius: 8px;
}

.footer-brand-text {
    font-size: 1.45rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.footer-brand-text span {
    color: #38bdf8;
}

.footer-tagline {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
    font-family: 'Outfit', 'Noto Sans Bengali', sans-serif;
}

.footer-subtagline {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 18px;
}

.footer-app-box {
    margin-bottom: 18px;
}

.footer-app-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 10px;
}

.google-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    max-width: fit-content;
}

.google-play-btn:hover {
    background: #111827;
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.play-icon {
    flex-shrink: 0;
}

.play-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.play-sub {
    font-size: 0.65rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 500;
}

.play-main {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    color: #ffffff;
    background: #38bdf8;
    border-color: #38bdf8;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

/* Titles */
.footer-col-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Outfit', 'Noto Sans Bengali', sans-serif;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: #10b981;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Col 2: Links */
.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-list li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-link-list li a:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

/* Col 3: Company Info */
.company-info-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.company-license {
    color: #94a3b8;
    font-size: 0.88rem;
}

.company-license strong {
    color: #e2e8f0;
}

.company-address {
    color: #94a3b8;
}

.office-label {
    display: block;
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 2px;
}

.company-team {
    color: #94a3b8;
    padding-top: 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Col 4: Contact */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.contact-lbl {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.contact-detail a,
.contact-detail span {
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.contact-detail a:hover {
    color: #38bdf8;
}

/* Bottom Bar */
.footer-bottom {
    background: #050811;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 24px;
    text-align: center;
}

.footer-bottom-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-credits {
    font-size: 0.82rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 40px 0 0 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 36px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Policy Modals */
.footer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.footer-modal-overlay.active {
    display: flex;
}

.footer-modal-card {
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 18px;
    max-width: 620px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
    color: #cbd5e1;
    position: relative;
    text-align: left;
}

.footer-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cbd5e1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.footer-modal-close:hover {
    background: #ef4444;
    color: #ffffff;
}

.footer-modal-card h3 {
    color: #f8fafc;
    font-size: 1.4rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.footer-modal-card p,
.footer-modal-card li {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 12px;
    color: #94a3b8;
}

.footer-modal-card ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
/* Mobile Responsive Improvements */
@media (max-width: 600px) {
    header {
        padding: 12px 5%;
    }
    
    .logo {
        font-size: 1.3rem;
    }

    nav ul {
        gap: 10px;
    }

    nav a {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

.gallery-grid, .services-grid, .videos-layout {
        grid-template-columns: 1fr;
    }
}
/* Logo Styling Improvements */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.logo:hover {
    transform: scale(1.04);
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.logo img,
.logo a img,
.brand-logo {
    height: 40px; /* à¦²à§‹à¦—à§‹à¦° à¦¹à¦¾à¦‡à¦Ÿ à¦ªà§à¦°à§Ÿà§‹à¦œà¦¨ à¦…à¦¨à§à¦¯à¦¾à§Ÿà§€ à¦¬à¦¾à§œà¦¾à¦¤à§‡/à¦•à¦®à¦¾à¦¤à§‡ à¦ªà¦¾à¦°à§‡à¦¨ */
    width: auto;
    object-fit: contain;
    border-radius: 6px; /* à¦¹à¦¾à¦²à¦•à¦¾ à¦°à¦¾à¦‰à¦¨à§à¦¡à§‡à¦¡ à¦¶à§‡à¦ª */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover img,
.logo:hover .brand-logo {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.logo span {
    color: #38bdf8;
}
/* ==========================================
   MOBILE & SMALL DEVICE RESPONSIVE STYLES
   ========================================== */

/* à¦®à§‹à¦¬à¦¾à¦‡à¦² à¦®à§‡à¦¨à§ à¦¬à¦¾à¦Ÿà¦¨ (à¦ªà¦¿à¦¸à¦¿à¦¤à§‡ à¦¹à¦¾à¦‡à¦¡ à¦¥à¦¾à¦•à¦¬à§‡) */
.mobile-menu-btn {
    display: none;
    margin-left: auto;
    flex-shrink: 0;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    color: #f8fafc;
    font-size: 1.6rem;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s, background 0.3s, border-color 0.3s, transform 0.3s;
}

.mobile-menu-btn:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.mobile-menu-btn.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}

/* মাঝারি স্ক্রিন (1081px থেকে 1320px) — মেনু স্পেস নিখুঁত রাখার জন্য */
@media (max-width: 1320px) and (min-width: 1161px) {
    header {
        padding: 10px 20px;
        gap: 12px;
    }

    .logo a {
        font-size: 1.25rem;
        gap: 8px;
    }

    .logo img, .brand-logo {
        height: 36px !important;
        max-height: 36px !important;
    }

    nav#navMenu {
        padding: 4px 6px;
    }

    nav ul {
        gap: 2px;
    }

    nav a {
        padding: 6px 9px;
        font-size: 0.75rem;
        letter-spacing: 0.2px;
    }
}

/* ট্যাবলেট এবং ছোট স্ক্রিনের জন্য (1080px বা তার নিচে) — কোনো ধরনের ওভারল্যাপ ছাড়াই রেসপন্সিভ মেনু */
@media (max-width: 1160px) {
    header {
        padding: 12px 20px;
        position: relative;
    }

    /* মোবাইলে মেনু বাটন শো করবে */
    .mobile-menu-btn {
        display: flex;
    }

    nav#navMenu {
        position: absolute;
        top: calc(100% + 6px);
        left: 3%;
        right: 3%;
        width: auto;
        background: #0f172a !important;
        border: 1px solid rgba(56, 189, 248, 0.3);
        border-radius: 16px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
        z-index: 1001;
        animation: none;
    }

    nav#navMenu.active {
        max-height: 80vh;
        opacity: 1;
        padding: 10px;
        overflow-y: auto;
        background: #0f172a !important;
        border-color: rgba(56, 189, 248, 0.4);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.12);
    }

    nav ul {
        flex-direction: column;
        gap: 4px;
        padding: 0;
        width: 100%;
    }

    nav a {
        display: block;
        width: 100%;
        padding: 10px 16px;
        font-size: 0.88rem;
    }
}

@media (max-width: 768px) {
    nav ul li {
        opacity: 1;
        animation: none;
    }

    nav ul li {
        width: 100%;
        text-align: left;
    }

    nav a {
        display: block;
        padding: 12px 16px;
        font-size: 0.92rem;
        letter-spacing: 0.3px;
        border-radius: 10px;
        transform: none;
        color: #e2e8f0;
    }

    /* à¦ˆà§ƒà¦¨à¦¾à¦‡à¦Ÿ à¦†à¦¨à§à¦¡à¦¾à¦°à¦²à¦¾à¦‡à¦¨ à¦®à§‹à¦¬à¦¾à¦‡à¦²à§‡ à¦¦à§‡à¦–à¦¾à¦¨à§‡ à¦ªà§‡à¦°à¦¾ à¦¬à¦¾à¦¦ */
    nav a::after {
        display: none;
    }

    nav a:hover,
    nav a:active {
        background: rgba(56, 189, 248, 0.12);
    }

    nav a.active-link {
        color: #ffffff;
        background: linear-gradient(135deg, #0ea5e9, #0284c7);
    }

    nav a.active-link::after {
        display: none;
    }

    /* Mobile dropdown */
    .nav-dropdown > .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    .nav-dropdown > .nav-link i {
        font-size: 0.7rem;
        margin-left: 0;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .nav-dropdown.dropdown-open > .nav-link i {
        transform: rotate(180deg);
    }

    .nav-dropdown::after {
        display: none;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        min-width: 0 !important;
        width: 100%;
        background: #0c1322;
        border: 1px solid rgba(56, 189, 248, 0.35);
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
        padding: 0;
        margin: 4px 0 2px 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }

    .dropdown-menu::before {
        display: none !important;
    }

    .nav-dropdown.dropdown-open > .dropdown-menu {
        max-height: 300px;
        padding: 6px 0;
    }

    .dropdown-menu li {
        list-style: none;
    }

    .dropdown-menu li a {
        padding: 11px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
        margin: 2px 6px;
        color: #f1f5f9;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .dropdown-menu li a i {
        color: #38bdf8;
        width: 18px;
        text-align: center;
        margin-right: 0;
    }

    .dropdown-menu li a:hover,
    .dropdown-menu li a:active {
        background: rgba(56, 189, 248, 0.18);
        color: #ffffff;
    }

    /* à¦¹à¦¿à¦°à§‹ à¦“ à¦…à¦¨à§à¦¯à¦¾à¦¨à§à¦¯ à¦¸à§‡à¦•à¦¶à¦¨ à¦›à§‹à¦Ÿ à¦¸à§à¦•à§à¦°à¦¿à¦¨à§‡à¦° à¦¸à¦¾à¦¥à§‡ à¦®à¦¾à¦¨à¦¿à§Ÿà§‡ à¦¨à§‡à¦“à§Ÿà¦¾ */
    .hero {
        padding: 60px 5%;
        min-height: auto;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns, .hero-stats {
        justify-content: center;
    }

    .mentor-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .mentor-photo {
        max-width: 360px;
        margin: 0 auto;
        animation: none;
    }

    .mentor-info h2 {
        font-size: 1.9rem;
    }

    .mentor-actions {
        justify-content: center;
    }

    .mentor-features li {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .demo-card {
        animation: none;
        max-width: 420px;
        margin: 0 auto;
    }

    .services-grid, .gallery-grid, .videos-layout, .bangla-social-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        overflow-x: hidden;
    }

    .gallery-grid {
        grid-auto-rows: auto;
    }

    .gallery-card.featured {
        grid-column: auto;
        grid-row: auto;
    }
}

/* ==========================================
   ICON ENHANCEMENTS
   ========================================== */

/* SSC 2026 Ready badge bolt icon */
.hero-badge i {
    color: #facc15;
    filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.5));
}

/* Hero stat label icons */
.hero-stat .stat-label i {
    color: #22c55e;
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Button icons spacing */
.btn i {
    margin-right: 8px;
}

/* Section heading icons */
.services-section h2 i,
.videos-section h2 i,
.gallery-section h2 i,
.quiz-section h2 i,
.register-section h2 i {
    color: #38bdf8;
    margin-right: 10px;
    vertical-align: middle;
}

/* Quiz completed trophy */
.quiz-result h3 i {
    color: #facc15;
    margin-right: 8px;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

/* Footer social icons */
footer {
    padding: 28px 20px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
    color: #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 8px 18px rgba(56, 189, 248, 0.25);
}

.footer-social a:nth-child(1):hover {
    color: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 8px 18px rgba(24, 119, 242, 0.25);
}

.footer-social a:nth-child(2):hover {
    color: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 8px 18px rgba(255, 0, 0, 0.25);
}

.footer-social a:nth-child(3):hover {
    color: #25d366;
    border-color: #25d366;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.25);
}

.footer-social a:nth-child(4):hover {
    color: #ffffff;
    border-color: #010101;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
    background: #010101;
}

.footer-social a:nth-child(5):hover {
    color: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.25);
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-page-section {
    padding: 60px 8% 80px;
    text-align: center;
    min-height: 70vh;
}

.contact-page-section h2 {
    font-size: 2.2rem;
    color: #f8fafc;
    margin-bottom: 12px;
    font-family: 'Outfit', 'Poppins', 'Noto Sans Bengali', sans-serif;
}

.contact-page-section h2 .highlight {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-page-sub {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 40px;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-page-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 20px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-page-card:hover {
    transform: translateY(-4px);
}

.contact-page-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.contact-page-icon.phone {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.contact-page-icon.wa {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.contact-page-icon.em {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.contact-page-icon.fb {
    background: rgba(24, 119, 242, 0.15);
    color: #1877f2;
}

.contact-page-icon.yt {
    background: rgba(255, 0, 0, 0.15);
    color: #ff0000;
}

.contact-page-icon.tt {
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.contact-page-card h3 {
    color: #f8fafc;
    font-size: 1.1rem;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
    margin: 0;
}

.contact-page-card p {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

.contact-page-link {
    color: #38bdf8;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-page-card.wa-card:hover {
    border-color: #25d366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.15);
}
.contact-page-card.wa-card .contact-page-link { color: #25d366; }

.contact-page-card.em-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}
.contact-page-card.em-card .contact-page-link { color: #f59e0b; }

.contact-page-card.fb-card:hover {
    border-color: #1877f2;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.15);
}
.contact-page-card.fb-card .contact-page-link { color: #1877f2; }

.contact-page-card.yt-card:hover {
    border-color: #ff0000;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.15);
}
.contact-page-card.yt-card .contact-page-link { color: #ff4d4d; }

.contact-page-card.tt-card:hover {
    border-color: #010101;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.contact-page-card.tt-card .contact-page-link { color: #ffffff; }

@media (max-width: 768px) {
    .contact-page-section {
        padding: 40px 5% 60px;
    }

    .contact-page-section h2 {
        font-size: 1.6rem;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-page-card {
        flex-direction: row;
        padding: 18px 20px;
        gap: 16px;
    }

    .contact-page-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

/* ==========================================
   GALLERY PAGE
   ========================================== */
.gallery-page-section {
    padding: 60px 8% 80px;
    text-align: center;
    min-height: 70vh;
}

.gallery-page-section h2 {
    font-size: 2.2rem;
    color: #f8fafc;
    margin-bottom: 12px;
    font-family: 'Outfit', 'Poppins', 'Noto Sans Bengali', sans-serif;
}

.gallery-page-section h2 .highlight {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-page-sub {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 24px;
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

.about-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
}

/* Interactive Filter Bar & Role Badges */
.about-roles.gallery-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 25px auto 40px;
    flex-wrap: wrap;
    max-width: 860px;
}

.about-role-btn,
.about-role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Poppins', 'Outfit', sans-serif;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.22);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    user-select: none;
}

.about-role-btn:hover,
.about-role:hover {
    color: #ffffff;
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.16);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3);
}

.about-role-btn.active,
.about-role.active {
    color: #0b1120;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    border-color: #38bdf8;
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.55), 0 4px 14px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.about-role-btn i,
.about-role i {
    font-size: 0.9rem;
}

/* Responsive adjustments for Gallery Frames */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gallery-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .gallery-page-section {
        padding: 40px 5% 60px;
    }

    .gallery-page-section h2 {
        font-size: 1.6rem;
    }

    .about-roles.gallery-filter-bar {
        gap: 8px;
        margin: 20px auto 30px;
    }

    .about-role-btn,
    .about-role {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
        gap: 20px;
    }

    .gallery-card.featured {
        grid-column: 1;
    }

    .frame-photo-container {
        height: 250px;
    }
}

/* ===================================================================
   TBS ACADEMY - SUBJECT-WISE QUIZ SYSTEM STYLES
   =================================================================== */

.quiz-level-switcher-wrapper,
.quiz-level-switcher-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 10px auto 30px;
    padding: 6px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.quiz-level-switcher {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 40px;
    padding: 6px 12px;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.1);
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
}

.level-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(30, 41, 59, 0.55);
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.level-tab-btn:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
}

.level-tab-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.45);
    transform: translateY(-1px);
}

/* Responsive adjustment for Quiz Level Switcher to ensure Class 6 is shifted right and completely visible */
@media (max-width: 950px) {
    .quiz-section {
        padding: 40px 16px;
    }

    .quiz-level-switcher-wrapper,
    .quiz-level-switcher-wrap {
        justify-content: flex-start;
        padding-left: 24px;
        padding-right: 20px;
        overflow-x: auto;
    }

    .quiz-level-switcher {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin: 0;
        gap: 6px;
    }

    .level-tab-btn {
        padding: 8px 14px;
        font-size: 0.84rem;
        gap: 6px;
    }
}


/* Breadcrumbs Bar */
.quiz-breadcrumbs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    max-width: 1100px;
    margin: 0 auto 24px;
}

.breadcrumb-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #38bdf8;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.breadcrumb-back-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    transform: translateX(-2px);
}

.breadcrumb-trail {
    font-size: 0.9rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-trail strong {
    color: #f8fafc;
}

/* Subject Search Bar */
.subject-search-bar {
    position: relative;
    max-width: 480px;
    margin: 0 auto 30px;
}

.subject-search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

.subject-search-bar input {
    width: 100%;
    padding: 12px 18px 12px 44px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 30px;
    color: #f8fafc;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.subject-search-bar input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    background: #1e293b;
}

/* Subject Cards Grid */
.subject-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.subject-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--subject-color, #38bdf8);
    opacity: 0.8;
}

.subject-card:hover {
    transform: translateY(-6px);
    border-color: var(--subject-color, #38bdf8);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}

.subject-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.subject-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--subject-color, #38bdf8);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.subject-card-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--subject-color, #38bdf8);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.subject-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
}

.subject-card-sub {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.subject-card-topics {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.subject-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.subject-quiz-count {
    font-size: 0.8rem;
    color: #38bdf8;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.subject-open-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}

.subject-card:hover .subject-open-btn {
    transform: translateX(4px);
    color: var(--subject-color, #38bdf8);
}

/* Subject Hero Card */
.subject-hero-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
    text-align: left;
}

.subject-hero-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #38bdf8;
}

.subject-hero-info {
    flex: 1;
    min-width: 240px;
}

.subject-hero-level {
    font-size: 0.75rem;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 4px;
}

.subject-hero-info h2 {
    font-size: 1.6rem;
    color: #f8fafc;
    margin-bottom: 6px;
}

.subject-hero-info p {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.4;
}

.subject-hero-badge {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 12px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.badge-count {
    font-size: 1.6rem;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1;
}

.badge-label {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 4px;
}

.sub-header-row {
    max-width: 1100px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sub-header-row h3 {
    font-size: 1.15rem;
    color: #f8fafc;
    font-weight: 600;
}

.badge-notice {
    font-size: 0.75rem;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* 6 Quiz Cards Grid */
.quiz-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.quiz-item-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 22px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.quiz-item-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.18);
}

.quiz-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.quiz-number-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.quiz-pass-badge {
    font-size: 0.72rem;
    color: #94a3b8;
}

.quiz-item-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
}

.quiz-item-desc {
    font-size: 0.84rem;
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 16px;
    flex: 1;
}

.quiz-item-meta {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 8px 12px;
}

.quiz-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quiz-item-meta i {
    color: #38bdf8;
}

.quiz-start-cta {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.quiz-start-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

/* Quiz Meta info inside Quiz Taking Header */
.quiz-meta-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-right: 16px;
}

.quiz-active-subject {
    font-size: 0.75rem;
    color: #38bdf8;
    font-weight: 700;
    text-transform: uppercase;
}

.quiz-active-title {
    font-size: 0.95rem;
    color: #f8fafc;
    font-weight: 600;
}

/* Result KPIs */
.result-kpis {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px auto 0;
    max-width: 400px;
}

.result-kpi-item {
    flex: 1;
    padding: 12px 8px;
    border-radius: 12px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-kpi-item.correct-kpi { border-color: rgba(34, 197, 94, 0.4); }
.result-kpi-item.correct-kpi .kpi-num { color: #22c55e; }

.result-kpi-item.wrong-kpi { border-color: rgba(248, 113, 113, 0.4); }
.result-kpi-item.wrong-kpi .kpi-num { color: #f87171; }

.result-kpi-item.skipped-kpi { border-color: rgba(250, 204, 21, 0.4); }
.result-kpi-item.skipped-kpi .kpi-num { color: #facc15; }

.kpi-num {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.kpi-lbl {
    font-size: 0.72rem;
    color: #94a3b8;
}

.result-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Explanation in review item */
.review-explanation {
    margin-top: 10px;
    background: rgba(56, 189, 248, 0.06);
    border-left: 3px solid #38bdf8;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
}

.review-explanation strong {
    color: #38bdf8;
}

