/* ==========================================================================
   DRD Security - CSS Design System & Navigation Styles
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@500;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Root Variables (Cyber Design System) --- */
:root {
    /* Color Palette */
    --bg-primary: #060913;      /* Deep cyber space black */
    --bg-secondary: #0b1120;    /* Dark card background */
    --bg-tertiary: #131b2e;     /* Hover & highlight background */
    --bg-glass: rgba(11, 17, 32, 0.85); /* Glassmorphic navbar */
    --bg-glass-card: rgba(19, 27, 46, 0.65);
    
    --text-primary: #f8fafc;    /* Off-white */
    --text-secondary: #94a3b8;  /* Cool grey slate */
    --text-muted: #64748b;     /* Darker grey */
    
    /* Neon Cyber Accents */
    --accent-cyan: #00f0ff;     /* Electric cyan (primary cyber) */
    --accent-blue: #3b82f6;     /* Deep tech blue */
    --accent-purple: #a855f7;   /* Toxic purple */
    --accent-green: #10b981;    /* System safe green */
    --accent-orange: #f97316;   /* Breach/Alert orange */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    --gradient-cyber: linear-gradient(90deg, rgba(0, 240, 255, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    
    /* Borders & Glows */
    --border-color: rgba(0, 240, 255, 0.15);
    --border-glow: 0 0 10px rgba(0, 240, 255, 0.25);
    --border-glow-heavy: 0 0 20px rgba(0, 240, 255, 0.5);
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Resets & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

/* --- Utility Classes --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.glow-btn {
    position: relative;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-normal);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    z-index: -1;
}

.glow-btn:hover {
    box-shadow: var(--border-glow);
    border-color: transparent;
    color: #000;
    font-weight: 700;
}

.glow-btn:hover::before {
    left: 0;
}

/* Navbar specific CTA button sizing */
.navbar-actions .glow-btn {
    padding: 7px 16px;
    font-size: 0.775rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */

header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

header.main-header.scrolled {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* --- Top Bar --- */
.top-bar {
    background-color: rgba(6, 9, 19, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
}

header.main-header.scrolled .top-bar {
    height: 0;
    padding: 0;
    overflow: hidden;
    border-bottom: none;
}

.top-bar .nav-segments {
    display: flex;
    gap: 20px;
}

.top-bar .segment-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.top-bar .segment-link:hover, 
.top-bar .segment-link.active {
    color: var(--accent-cyan);
}

.top-bar .segment-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.top-bar .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar .announcement {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.top-bar .login-link {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar .login-link:hover {
    color: var(--accent-cyan);
}

/* --- Main Navbar --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    transition: var(--transition-normal);
}

header.main-header.scrolled .navbar {
    height: 56px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--accent-cyan);
    stroke-width: 2;
    filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.4));
}

.logo-text {
    font-family: var(--font-tech);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    background: linear-gradient(to right, #ffffff 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    flex-direction: column;
}

.logo-subtext {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: -4px;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

/* Nav Menu Links */
.nav-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item.has-mega {
    position: static;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.825rem;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-link svg.arrow-icon {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link,
.nav-item.active .nav-link {
    color: var(--text-primary);
}

.nav-item:hover .nav-link svg.arrow-icon {
    transform: rotate(180deg);
    stroke: var(--accent-cyan);
}

/* Nav indicator line */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: var(--accent-cyan);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-item:hover .nav-link::after {
    transform: scaleX(1);
}

/* Right Section Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Search Bar */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 72px 6px 12px;
    border-radius: 4px;
    font-size: 0.775rem;
    width: 190px;
    transition: var(--transition-normal);
}

.search-input:focus {
    width: 240px;
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: var(--border-glow);
}

.search-icon-btn {
    position: absolute;
    right: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.search-icon-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.search-input:focus + .search-icon-btn {
    color: var(--accent-cyan);
}

.search-kbd {
    position: absolute;
    right: 28px;
    background-color: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: var(--font-mono);
    pointer-events: none;
    transition: var(--transition-fast);
}

.search-input:focus ~ .search-kbd {
    opacity: 0;
}

/* Mobile Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-normal);
}

/* ==========================================================================
   MEGA MENU STYLES
   ========================================================================== */

.mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: calc(100% - 48px);
    max-width: 1350px;
    background-color: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.3s;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

/* Show mega menu on parent hover */
.nav-item.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-menu-container {
    width: 100%;
    display: flex;
}

/* Left Categories Sidebar */
.mega-categories {
    width: 28%;
    background-color: rgba(6, 9, 19, 0.8);
    border-right: 1px solid var(--border-color);
    padding: 30px 0;
}

.mega-categories-title {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0 30px 15px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-categories-title svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.category-list {
    list-style: none;
}

.category-item {
    width: 100%;
}

.category-btn {
    width: 100%;
    text-align: left;
    padding: 14px 30px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.category-btn svg.chevron-icon {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transform: translateX(-5px);
    opacity: 0;
    transition: var(--transition-fast);
}

.category-btn:hover,
.category-item.active .category-btn {
    color: var(--accent-cyan);
    background-color: var(--bg-tertiary);
    border-left-color: var(--accent-cyan);
}

.category-btn:hover svg.chevron-icon,
.category-item.active .category-btn svg.chevron-icon {
    transform: translateX(0);
    opacity: 1;
}

/* Right Content Panel */
.mega-content {
    width: 72%;
    padding: 30px 40px;
    background-color: rgba(11, 17, 32, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mega-content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.category-info h3 {
    font-family: var(--font-tech);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.category-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.view-all-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(0, 240, 255, 0.03);
}

.view-all-link:hover {
    border-color: var(--accent-cyan);
    background-color: rgba(0, 240, 255, 0.1);
    box-shadow: var(--border-glow);
}

.view-all-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

/* Course Card styling */
.course-card {
    background-color: var(--bg-glass-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: var(--transition-normal);
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--border-glow);
}

.card-image-wrapper {
    position: relative;
    height: 130px;
    background-color: #0d1527;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform var(--transition-normal);
}

.course-card:hover .card-image {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Cyber network scanning line effect on image hover */
.card-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 50%, 
        rgba(0, 240, 255, 0.15) 50%, 
        transparent 52%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.3;
}

.badge-group {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.badge.popular {
    background-color: var(--accent-orange);
    color: #fff;
}

.badge.new {
    background-color: var(--accent-purple);
    color: #fff;
}

.badge.advanced {
    background-color: var(--bg-primary);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    box-shadow: var(--border-glow);
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.course-meta-item {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-meta-item svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.course-title {
    font-family: var(--font-tech);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.course-card:hover .course-title {
    color: var(--accent-cyan);
}

.course-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #f59e0b; /* Yellow rating color */
}

.course-rating svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.card-action-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-action-btn svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    transition: transform var(--transition-fast);
}

.course-card:hover .card-action-btn svg {
    transform: translateX(4px);
}

/* Mega menu footer promo */
.mega-footer-promo {
    background: var(--gradient-cyber);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 6px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.promo-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Tab Content Visibility classes */
.tab-content {
    display: none;
    animation: fadeIn var(--transition-normal) forwards;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE NAVIGATION)
   ========================================================================== */

@media (max-width: 1200px) {
    .container {
        padding: 0 16px;
    }
    
    .search-input {
        width: 160px;
    }
    
    .search-input:focus {
        width: 200px;
    }
    
    .nav-link {
        padding: 0 10px;
        font-size: 0.85rem;
    }
    
    .mega-categories {
        width: 35%;
    }
    
    .mega-content {
        width: 65%;
        padding: 24px 30px;
    }
    
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    /* Top Bar adjustments */
    .top-bar .nav-segments {
        display: none;
    }
    
    /* Navbar Hamburger Trigger */
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    /* Mobile Active State for Hamburger */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Navigation Menu Overlay for Mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 380px;
        height: 100vh;
        background-color: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 24px 40px 24px;
        transition: right var(--transition-normal);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-link {
        width: 100%;
        padding: 18px 0;
        justify-content: space-between;
        font-size: 1rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-item:hover .nav-link svg.arrow-icon {
        transform: none;
    }
    
    .nav-item.mobile-active .nav-link svg.arrow-icon {
        transform: rotate(180deg);
        stroke: var(--accent-cyan);
    }
    
    /* Actions Placement */
    .navbar-actions {
        gap: 12px;
    }
    
    .search-wrapper {
        display: none; /* Hide standard search wrapper, put inside mobile menu */
    }
    
    .navbar-actions .glow-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* MEGA MENU MOBILE ACCORDION MODE */
    .mega-menu {
        position: static;
        width: 100%;
        max-width: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background-color: rgba(6, 9, 19, 0.4);
        pointer-events: auto;
        display: none;
        padding-bottom: 10px;
    }
    
    .nav-item.mobile-active .mega-menu {
        display: block;
    }
    
    .mega-menu-container {
        flex-direction: column;
        border-left: none;
        border-right: none;
    }
    
    /* Categories List inside mobile menu */
    .mega-categories {
        width: 100%;
        padding: 10px 0;
        background: transparent;
        border-right: none;
    }
    
    .mega-categories-title {
        display: none;
    }
    
    .category-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
        border-left: 2px solid transparent;
    }
    
    /* Mobile Sub-categories Accordion Content */
    .mega-content {
        width: 100%;
        padding: 10px 15px;
        background: transparent;
    }
    
    .mega-content-header {
        display: none; /* Hide header, title, view all link */
    }
    
    .mega-footer-promo {
        display: none; /* Hide footer promo */
    }
    
    /* Course Grid inside mobile */
    .course-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 10px;
        display: none; /* Managed by JS/CSS categories active states */
    }
    
    .tab-content.active .course-grid {
        display: grid;
    }
    
    .course-card {
        flex-direction: row;
        height: auto;
        align-items: center;
        background-color: var(--bg-tertiary);
    }
    
    .card-image-wrapper {
        width: 80px;
        height: 80px;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        flex-shrink: 0;
    }
    
    .badge-group {
        display: none; /* Hide badges on tiny mobile cards */
    }
    
    .card-body {
        padding: 10px 14px;
    }
    
    .course-meta {
        display: none; /* Hide meta for compactness */
    }
    
    .course-title {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }
    
    .course-desc {
        display: none; /* Hide description */
    }
    
    .card-footer {
        display: none; /* Hide footer */
    }
}

/* --- Terminal Cursor Blink Animation --- */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.term-cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background-color: var(--text-secondary);
    vertical-align: middle;
    margin-left: 3px;
    animation: blink 1s step-end infinite;
}

.term-cursor-static {
    animation: blink 1s step-end infinite;
}

/* ==========================================================================
   Popular Cybersecurity Courses Styles
   ========================================================================== */

.courses-layout-wrapper {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* Sidebar Navigation */
.courses-sidebar {
    width: 290px;
    flex-shrink: 0;
    position: sticky;
    top: 130px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.course-tab-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-tab-btn {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.4;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-tab-btn .tab-arrow {
    margin-right: 12px;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

/* Tab Hover State */
.course-tab-btn:hover {
    color: var(--accent-cyan);
    background-color: var(--bg-tertiary);
    border-color: rgba(0, 240, 255, 0.08);
}

.course-tab-btn:hover .tab-arrow {
    color: var(--accent-cyan);
    transform: translateX(4px);
}

/* Tab Active State */
.course-tab-btn.active {
    background: linear-gradient(90deg, #2b5aed 0%, var(--accent-blue) 100%);
    color: var(--text-primary);
    border-color: #2b5aed;
    box-shadow: 0 4px 15px rgba(43, 90, 237, 0.35);
}

.course-tab-btn.active .tab-arrow {
    color: var(--text-primary);
    transform: translateX(4px);
}

/* Content Panel */
.courses-content-panel {
    flex-grow: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.course-tab-panel {
    display: none;
}

.course-tab-panel.active {
    display: block;
    animation: tabFadeIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.course-group-title {
    font-family: var(--font-tech);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    border-left: 4px solid var(--accent-cyan);
    padding-left: 14px;
}

/* Cards Grid */
.course-cards-grid {
    display: grid;
    gap: 24px;
}

.course-cards-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.course-cards-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Course Card Body */
.course-item-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.course-item-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.08), var(--border-glow);
}

/* Card Image & Overlay Banner */
.card-img-container {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: grayscale(20%) contrast(1.15);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

.course-item-card:hover .card-img-container img {
    transform: scale(1.08);
    opacity: 0.5;
}

.card-img-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 5;
    letter-spacing: 0.05em;
}

.card-img-badge.premium {
    background-color: #fbbf24;
    color: #060913;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.card-img-badge.new {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: #060913;
    box-shadow: 0 2px 8px rgba(0, 240, 255, 0.4);
}

/* Dynamic Graphic Text Overlay */
.card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 9, 19, 0.1) 0%, rgba(6, 9, 19, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 3;
    pointer-events: none;
}

.card-img-overlay .overlay-subtitle-top {
    display: none; /* Already handled by graphic badge */
}

.card-img-overlay .overlay-brand {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.card-img-overlay .overlay-main-title {
    font-family: var(--font-tech);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.card-img-overlay .overlay-desc-sub {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.card-img-overlay .overlay-desc-highlight {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

/* Batch Bar */
.batch-date-bar {
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
    color: var(--text-primary);
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.batch-date-bar svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* Card Details */
.card-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-details .card-title {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-primary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fbbf24;
}

.card-rating svg {
    width: 14px;
    height: 14px;
    fill: #fbbf24;
    stroke: none;
}

.card-tag.limited-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
}

.card-tag.limited-time svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* Fade In Animation */
@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .courses-layout-wrapper {
        flex-direction: column;
        gap: 24px;
    }
    
    .courses-sidebar {
        width: 100%;
        position: static;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    
    .course-tab-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .course-tab-list::-webkit-scrollbar {
        display: none; /* Safari & Chrome */
    }
    
    .course-tab-list .tab-item {
        flex-shrink: 0;
    }
    
    .course-tab-btn {
        width: auto;
        white-space: nowrap;
        padding: 10px 16px;
        background-color: var(--bg-secondary);
        border: 1px solid var(--border-color);
    }
    
    .course-tab-btn .tab-arrow {
        display: none;
    }
    
    .course-cards-grid.grid-2,
    .course-cards-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .course-cards-grid.grid-2,
    .course-cards-grid.grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Placements Scrolling Marquee Styles
   ========================================================================== */

.placement-marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 12px 0;
    /* Softly fades the cards out on left and right screen boundaries */
    -webkit-mask-image: linear-gradient(to right, transparent, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, transparent);
    mask-image: linear-gradient(to right, transparent, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, transparent);
}

.placement-marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
}

/* Opposing direction animations */
.ltr-scrolling .placement-marquee-track {
    animation: marquee-ltr 50s linear infinite;
}

.rtl-scrolling .placement-marquee-track {
    animation: marquee-rtl 50s linear infinite;
}

/* Pause scroll animation on hover to inspect placement cards */
.placement-marquee-container:hover .placement-marquee-track {
    animation-play-state: paused;
}

/* Loops translations seamlessly using 50% duplicate boundary */
@keyframes marquee-rtl {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes marquee-ltr {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

/* Placement Cards layout */
.placement-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    width: auto;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
}

.placement-card img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.placement-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.1), var(--border-glow);
    z-index: 5;
}

/* Mobile responsive dimensions for poster marquee */
@media (max-width: 768px) {
    .placement-marquee-track {
        gap: 12px;
    }
    .placement-card {
        height: 150px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .placement-card {
        height: 110px;
        border-radius: 4px;
    }
}

/* ==========================================================================
   Contact Section Styles
   ========================================================================== */

.contact-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: stretch;
    margin-top: 20px;
}

.contact-info-panel {
    background-color: var(--bg-glass-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
}

.contact-panel-title {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform var(--transition-fast);
}

.channel-item:hover {
    transform: translateX(4px);
}

.channel-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.channel-item:hover .channel-icon-box {
    background-color: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: var(--border-glow);
}

.channel-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--accent-cyan);
    stroke-width: 2;
    transition: transform var(--transition-fast);
}

.channel-item:hover .channel-icon {
    transform: scale(1.1);
}

.channel-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.channel-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.channel-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.channel-value:hover {
    color: var(--accent-cyan);
}

.channel-value-static {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.secure-ops-status {
    margin-top: auto;
    background-color: rgba(6, 9, 19, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px 20px;
    position: relative;
}

.status-indicator-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-dot-green {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px var(--accent-green);
}

.pulse-dot-green::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent-green);
    animation: status-pulse 2s infinite ease-out;
}

@keyframes status-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.status-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: 0.1em;
}

/* Contact Form Panel */
.cyberContactForm {
    transition: opacity var(--transition-normal);
}

.contact-form-panel {
    background-color: var(--bg-glass-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 480px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
}

.form-group-row .form-group {
    margin-bottom: 0;
}

.cyber-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cyber-input, .cyber-select, .cyber-textarea {
    width: 100%;
    background-color: rgba(6, 9, 19, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    box-sizing: border-box;
}

.cyber-input::placeholder, .cyber-textarea::placeholder {
    color: var(--text-muted);
}

.cyber-input:focus, .cyber-select:focus, .cyber-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background-color: rgba(6, 9, 19, 0.75);
    box-shadow: var(--border-glow);
}

/* Select element styling reset override */
.cyber-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.cyber-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Button Transmit */
.transmit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-tech);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 14px 28px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.transmit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, var(--accent-cyan) 100%);
    border-color: var(--accent-cyan);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.35), var(--border-glow);
    transform: translateY(-2px);
}

.transmit-btn:active {
    transform: translateY(0);
}

.btn-arrow-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform var(--transition-fast);
}

.transmit-btn:hover .btn-arrow-icon {
    transform: translateX(4px);
}

/* Error Messages styling */
.error-msg {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #ef4444;
    height: 14px;
    display: block;
    margin-top: 2px;
}

.form-group.invalid .cyber-input,
.form-group.invalid .cyber-textarea {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

/* Transmission Console */
.transmission-console {
    display: none;
    background-color: #040710;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-height: 300px;
    flex-direction: column;
    width: 100%;
}

.console-header {
    background-color: #090e1a;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-cyan);
    letter-spacing: 0.02em;
}

.console-dots {
    display: flex;
    gap: 6px;
}

.console-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
}

.console-dots span:nth-child(1) { background-color: #ef4444; }
.console-dots span:nth-child(2) { background-color: #eab308; }
.console-dots span:nth-child(3) { background-color: #22c55e; }

.console-body {
    padding: 18px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-secondary);
    overflow-y: auto;
    flex-grow: 1;
}

.console-line {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(4px);
    animation: console-line-appear 0.25s forwards;
}

.console-line.success {
    color: var(--accent-green);
}

.console-line.info {
    color: var(--accent-cyan);
}

.console-line.warning {
    color: var(--accent-orange);
}

@keyframes console-line-appear {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles for Contact section */
@media (max-width: 991px) {
    .contact-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-info-panel, .contact-form-panel {
        padding: 30px;
    }
    
    .contact-form-panel {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group-row .form-group {
        margin-bottom: 20px;
    }
}

/* Explore All Courses Button Arrow Micro-interaction */
.explore-all-btn svg {
    transition: transform var(--transition-fast);
}

.explore-all-btn:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Courses Page Layout & Interactive Filtering
   ========================================================================== */

.courses-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: flex-start;
    margin-top: 30px;
}

/* --- Filter Top Bar --- */
.filter-top-bar {
    background-color: var(--bg-glass-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.top-bar-left, .top-bar-center, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.layout-toggle-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background-color: rgba(6, 9, 19, 0.4);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.layout-toggle-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.layout-toggle-btn:hover, .layout-toggle-btn.active {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: var(--border-glow);
    background-color: rgba(0, 240, 255, 0.03);
}

/* Toggle Switches */
.switch-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cyber Toggle Switch design */
.cyber-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.cyber-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(6, 9, 19, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    transition: .3s;
}

.switch-slider::before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    border-radius: 50%;
    transition: .3s;
}

.cyber-switch input:checked + .switch-slider {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.cyber-switch input:checked + .switch-slider::before {
    transform: translateX(22px);
    background-color: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
}

/* Sort dropdown select styling */
.cyber-sort-select {
    background-color: rgba(6, 9, 19, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 36px 8px 12px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    transition: all var(--transition-fast);
}

.cyber-sort-select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: var(--border-glow);
}

/* --- Left Column: Dynamic course lists --- */
.courses-container-panel {
    position: relative;
    min-height: 400px;
}

/* Scan line/Loading effect container */
.scan-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(6, 9, 19, 0.6);
    backdrop-filter: blur(2px);
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.scan-overlay.active {
    display: flex;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.8), transparent);
    box-shadow: 0 0 15px var(--accent-cyan);
    animation: laser-scan 1.5s infinite linear;
}

@keyframes laser-scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.scan-text {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    text-shadow: var(--border-glow);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Courses Grid Layout */
.courses-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Courses List Layout */
.courses-list-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.courses-list-layout .course-item-card {
    flex-direction: row;
    align-items: stretch;
    height: auto;
}

.courses-list-layout .card-img-container {
    width: 260px;
    height: auto;
    min-height: 180px;
    flex-shrink: 0;
}

.courses-list-layout .card-details {
    padding: 24px;
}

.courses-list-layout .card-details .card-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* Notification Alert Bell Icon inside image container */
.bell-notification-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    background-color: var(--bg-glass);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 5;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.bell-notification-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bell-notification-btn:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: var(--border-glow);
}

.bell-notification-btn:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.bell-notification-btn.subscribed {
    color: var(--accent-cyan);
    background-color: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: var(--border-glow);
}

.bell-notification-btn.subscribed svg {
    fill: var(--accent-cyan);
}

/* Instructor row info */
.instructor-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.instructor-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.instructor-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.course-category-tag {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.course-category-tag span {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Duration start row */
.meta-duration-row {
    display: flex;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.meta-duration-row span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-duration-row svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-current {
    font-family: var(--font-tech);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-original {
    font-family: var(--font-tech);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Empty matches screen */
.no-courses-found {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background-color: rgba(6, 9, 19, 0.3);
}

.no-courses-icon {
    width: 48px;
    height: 48px;
    stroke: var(--accent-orange);
    margin-bottom: 16px;
}

.no-courses-found h3 {
    font-family: var(--font-tech);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-courses-found p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Right Column: Filter Sidebar --- */
.filter-sidebar {
    background-color: var(--bg-glass-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.filter-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.filter-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
}

.filter-section-title {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 8px;
}

.filter-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Cyber Checkbox design */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.checkbox-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.checkbox-group input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.cyber-checkbox {
    width: 18px;
    height: 18px;
    background-color: rgba(6, 9, 19, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    position: relative;
    transition: all var(--transition-fast);
}

.checkbox-group:hover .cyber-checkbox {
    border-color: rgba(0, 240, 255, 0.4);
}

.checkbox-group:hover .checkbox-label {
    color: var(--text-primary);
}

.checkbox-group input:checked ~ .cyber-checkbox {
    border-color: var(--accent-cyan);
    background-color: rgba(0, 240, 255, 0.05);
    box-shadow: var(--border-glow);
}

.cyber-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--accent-cyan);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-group input:checked ~ .cyber-checkbox::after {
    display: block;
}

/* Custom system search input inside Courses Page header */
.courses-search-bar {
    width: 100%;
    max-width: 450px;
    position: relative;
    display: flex;
    align-items: center;
}

.courses-search-input {
    width: 100%;
    background-color: rgba(11, 17, 32, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 48px 14px 18px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.courses-search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background-color: rgba(11, 17, 32, 0.85);
    box-shadow: var(--border-glow);
}

.courses-search-icon {
    position: absolute;
    right: 18px;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.courses-search-input:focus + .courses-search-icon {
    color: var(--accent-cyan);
}

/* Toast Console Alerts styling */
.console-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1100;
    pointer-events: none;
}

.console-toast {
    background-color: #040710;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), var(--border-glow);
    border-radius: 6px;
    padding: 14px 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-primary);
    min-width: 280px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toast-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-slide-in {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.console-toast.fade-out {
    animation: toast-fade-out 0.3s forwards;
}

@keyframes toast-fade-out {
    to { transform: translateY(20px); opacity: 0; }
}

.toast-tag {
    color: var(--accent-cyan);
    font-weight: 700;
}

.toast-msg {
    flex-grow: 1;
}

/* Responsive Styles for Courses page */
@media (max-width: 1200px) {
    .courses-page-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .filter-sidebar {
        grid-row: 1; /* Puts filter sidebar on top of cards list for tablets */
    }
    
    .courses-list-layout .card-img-container {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .filter-top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .top-bar-left, .top-bar-center, .top-bar-right {
        justify-content: space-between;
        width: 100%;
    }
    
    .courses-list-layout .course-item-card {
        flex-direction: column;
    }
    
    .courses-list-layout .card-img-container {
        width: 100%;
        height: 160px;
    }
}

/* ==========================================================================
   Course Details Page Styles
   ========================================================================== */

.details-hero {
    position: relative;
    padding: 65px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.details-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(4px) grayscale(50%);
    pointer-events: none;
    z-index: 0;
}

.details-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 9, 19, 0.4) 0%, var(--bg-primary) 100%);
    z-index: 1;
}

.details-hero-container {
    position: relative;
    z-index: 2;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

/* Content block styling */
.details-content-card {
    background-color: var(--bg-glass-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.details-section-title {
    font-family: var(--font-tech);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-cyan);
    padding-left: 12px;
}

/* Accordion Syllabus */
.syllabus-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background-color: rgba(6, 9, 19, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.accordion-item:hover {
    border-color: rgba(0, 240, 255, 0.2);
}

.accordion-item.active {
    border-color: var(--accent-cyan);
    box-shadow: var(--border-glow);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: color var(--transition-fast);
}

.accordion-header:hover {
    color: var(--accent-cyan);
}

.accordion-arrow {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
    stroke: var(--accent-cyan);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content {
    padding: 0 24px 20px 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding-top: 15px;
}

/* Sidebar Info Card Widget */
.info-widget-card {
    background-color: var(--bg-glass-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 100px;
}

.widget-price-box {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.widget-price-current {
    font-family: var(--font-tech);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
}

.widget-price-original {
    font-family: var(--font-tech);
    font-size: 1.15rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-top: 4px;
    display: inline-block;
}

.widget-price-discount {
    background-color: var(--accent-orange);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
    display: inline-block;
}

.widget-spec-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.widget-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.widget-spec-label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-spec-label svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--accent-cyan);
    stroke-width: 2.5;
}

.widget-spec-val {
    color: var(--text-primary);
    font-weight: 600;
}

/* Instructor card detailed */
.instructor-profile-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.instructor-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    box-shadow: var(--border-glow);
    object-fit: cover;
}

.instructor-profile-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.instructor-profile-name {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.instructor-profile-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.instructor-profile-bio {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 10px;
}

/* High-tech Error Container page */
.error-container {
    text-align: center;
    max-width: 550px;
    margin: 80px auto;
    background-color: var(--bg-glass-card);
    border: 1px solid #ef4444;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.1);
}

.error-title {
    font-family: var(--font-tech);
    font-size: 1.6rem;
    color: #ef4444;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.error-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Responsive elements for details */
@media (max-width: 991px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .info-widget-card {
        position: static;
        box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    }
}

/* ==========================================================================
   DRD Security - Google Authentication Modal Styles
   ========================================================================== */

/* Fullscreen Blurred Modal Overlay */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 9, 19, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.login-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Box Container */
.login-popup-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--border-glow);
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    padding: 36px 30px;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    z-index: 100000;
}

.login-modal-overlay.active .login-popup-modal {
    transform: scale(1);
    box-shadow: var(--border-glow-heavy);
}

/* Modal Close Button */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    cursor: pointer;
    background: transparent;
    border: none;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--accent-cyan);
    text-shadow: var(--border-glow);
}

/* Modal Header Content */
.login-popup-modal .modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-lock-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
    box-shadow: var(--border-glow);
}

.modal-title {
    font-family: var(--font-tech);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Custom Google Sign-In Button */
.google-sign-in-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.google-sign-in-btn:hover:not(:disabled) {
    border-color: var(--accent-cyan);
    box-shadow: var(--border-glow);
    background: var(--bg-tertiary);
}

.google-sign-in-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.google-icon {
    flex-shrink: 0;
}

/* Telemetry Terminal Console */
.auth-terminal-console {
    margin-top: 20px;
    background: #02040a;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auth-terminal-console .console-header-bar {
    background: #090d16;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.console-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.console-dot.red { background-color: #ef4444; }
.console-dot.yellow { background-color: #f59e0b; }
.console-dot.green { background-color: #10b981; }

.console-title {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-left: 6px;
}

.console-logs-body {
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-cyan);
    line-height: 1.6;
    min-height: 110px;
    max-height: 150px;
    overflow-y: auto;
    text-align: left;
}

.console-logs-body div {
    margin-bottom: 4px;
}

.console-logs-body div.success {
    color: var(--accent-green);
}

.console-logs-body div.info {
    color: var(--text-secondary);
}

/* Modal Footer */
.login-popup-modal .modal-footer {
    margin-top: 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.secure-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.secure-badge svg {
    color: var(--accent-green);
}

/* Header Active User Profile Container styles */
.header-auth-container {
    display: flex;
    align-items: center;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--accent-cyan);
    object-fit: cover;
    box-shadow: var(--border-glow);
}

.profile-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.sign-out-btn {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.sign-out-btn:hover {
    color: var(--accent-orange);
    border-color: rgba(249, 115, 22, 0.2);
    background: rgba(249, 115, 22, 0.03);
}

.sign-out-btn svg {
    margin-top: -1px;
}


/* ==========================================================================
   DRD Security - Agent Dashboard Styles
   ========================================================================== */

.dashboard-wrapper {
    padding-top: 120px;
    padding-bottom: 100px;
    background-color: var(--bg-primary);
    min-height: 85vh;
}

/* Agent HUD Panel */
.agent-hud-card {
    background: linear-gradient(135deg, rgba(9, 13, 22, 0.9) 0%, rgba(2, 4, 10, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.agent-hud-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
}

.agent-hud-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.agent-hud-avatar-box {
    position: relative;
    flex-shrink: 0;
}

.agent-hud-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    object-fit: cover;
}

.agent-hud-status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--accent-green);
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

.agent-hud-info {
    flex-grow: 1;
}

.agent-clearance-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 3px 10px;
    border-radius: 4px;
    background-color: rgba(0, 240, 255, 0.05);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.agent-hud-name {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.agent-stats-hud-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.agent-hud-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-hud-stat-item svg {
    color: var(--accent-cyan);
}

.agent-hud-xp-box {
    width: 250px;
    flex-shrink: 0;
}

.hud-xp-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.hud-xp-label span.value {
    color: var(--accent-green);
}

.hud-xp-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.hud-xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    width: 75%;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Stat Widgets Grid */
.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
}

.dashboard-stat-card:hover {
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: var(--border-glow);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-cyan);
    font-size: 1.5rem;
}

.stat-card-icon.red { color: var(--accent-orange); background-color: rgba(249, 115, 22, 0.03); border-color: rgba(249, 115, 22, 0.1); }
.stat-card-icon.green { color: var(--accent-green); background-color: rgba(16, 185, 129, 0.03); border-color: rgba(16, 185, 129, 0.15); }
.stat-card-icon.blue { color: var(--accent-blue); background-color: rgba(59, 130, 246, 0.03); border-color: rgba(59, 130, 246, 0.1); }

.stat-card-info {
    display: flex;
    flex-direction: column;
}

.stat-card-val {
    font-family: var(--font-tech);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Dashboard Content Grid */
.dashboard-grid-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

@media (max-width: 991px) {
    .dashboard-grid-layout {
        grid-template-columns: 1fr;
    }
}

.hud-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

.hud-panel-title {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.02em;
}

.hud-panel-title svg {
    color: var(--accent-cyan);
}

/* Dashboard Course Progress items */
.dashboard-course-item {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
}

.dashboard-course-item:hover {
    border-color: rgba(0, 240, 255, 0.15);
    background: rgba(0, 240, 255, 0.01);
}

.course-progress-meta {
    flex-grow: 1;
}

.course-progress-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.course-progress-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.course-progress-track {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.course-progress-fill {
    height: 100%;
    background-color: var(--accent-cyan);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.course-progress-fill.completed {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.course-progress-pct {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 36px;
    text-align: right;
}

.course-progress-pct.completed {
    color: var(--accent-green);
}

.course-progress-actions {
    flex-shrink: 0;
}

.dashboard-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--accent-cyan);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.dashboard-action-btn:hover {
    background: var(--accent-cyan);
    color: #060913;
    box-shadow: var(--border-glow);
}

.dashboard-action-btn.completed {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.dashboard-action-btn.completed:hover {
    background: var(--accent-green);
    color: #060913;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Virtual Sandbox Console Launcher */
.sandbox-terminal-display {
    margin-top: 15px;
    background: #02040a;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.sandbox-terminal-log {
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-cyan);
    line-height: 1.5;
    height: 160px;
    overflow-y: auto;
    text-align: left;
    background: #010204;
}

.sandbox-terminal-log div {
    margin-bottom: 4px;
}

.sandbox-terminal-log div.success { color: var(--accent-green); }
.sandbox-terminal-log div.warning { color: var(--accent-orange); }
.sandbox-terminal-log div.info { color: var(--text-muted); }

.sandbox-timer-indicator {
    padding: 8px 12px;
    background: #090d16;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.sandbox-timer-indicator span.countdown {
    color: var(--accent-orange);
    font-weight: 700;
}

/* Certificates Locker styling */
.cert-locker-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.cert-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.cert-card.unlocked {
    border-color: rgba(16, 185, 129, 0.2);
}

.cert-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.cert-card.unlocked .cert-icon-wrapper {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.15);
}

.cert-meta {
    flex-grow: 1;
}

.cert-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.cert-card.unlocked .cert-title {
    color: var(--text-primary);
}

.cert-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cert-card.unlocked .cert-status {
    color: var(--accent-green);
}

/* Locked overlay glassmorphism */
.cert-card-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 19, 0.65);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
    opacity: 1;
    transition: var(--transition-normal);
}

.cert-card.unlocked .cert-card-lock-overlay {
    opacity: 0;
    pointer-events: none;
}

.lock-shield {
    color: var(--text-muted);
    opacity: 0.8;
}


/* ==========================================================================
   DRD Security - Billing & Checkout Payment Styles
   ========================================================================== */

.checkout-wrapper {
    padding-top: 140px;
    padding-bottom: 100px;
    background-color: var(--bg-primary);
    min-height: 85vh;
}

.checkout-card {
    background: linear-gradient(135deg, rgba(9, 13, 22, 0.9) 0%, rgba(2, 4, 10, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.02);
    position: relative;
    overflow: hidden;
    max-width: 650px;
    margin: 0 auto;
}

.checkout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-orange));
}

.checkout-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.checkout-title {
    font-family: var(--font-tech);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.checkout-step-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-orange);
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    background-color: rgba(249, 115, 22, 0.05);
}

.checkout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 600px) {
    .checkout-split {
        grid-template-columns: 1fr;
    }
}

.summary-list-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
}

.summary-list-item.total {
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    padding-top: 15px;
    margin-top: 5px;
}

.summary-list-item span.label {
    color: var(--text-secondary);
}

.summary-list-item span.value {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

.summary-list-item.total span.value {
    color: var(--accent-green);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.billing-form-group {
    margin-bottom: 15px;
    position: relative;
}

.billing-form-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    font-family: var(--font-tech);
    letter-spacing: 0.05em;
}

.billing-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.billing-input-wrapper svg {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.billing-input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

.billing-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: var(--border-glow);
}

.billing-input:focus + svg {
    color: var(--accent-cyan);
}

.billing-form-row-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 15px;
}

.billing-input.small-padding {
    padding-left: 12px;
}

.checkout-action-row {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.checkout-btn {
    flex-grow: 2;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--accent-cyan);
    font-family: var(--font-tech);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.82rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.checkout-btn:hover:not(:disabled) {
    background: var(--accent-cyan);
    color: #060913;
    box-shadow: var(--border-glow);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkout-cancel-btn {
    flex-grow: 1;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
}

.checkout-cancel-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.checkout-terminal-display {
    margin-top: 25px;
    background: #02040a;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.checkout-terminal-log {
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-cyan);
    line-height: 1.5;
    height: 110px;
    overflow-y: auto;
    text-align: left;
    background: #010204;
}

.checkout-terminal-log div {
    margin-bottom: 4px;
}
.checkout-terminal-log div.success { color: var(--accent-green); }
.checkout-terminal-log div.warning { color: var(--accent-orange); }
.checkout-terminal-log div.info { color: var(--text-muted); }


/* ==========================================================================
   DRD Security - Multi-Tab User Dashboard Styles
   ========================================================================== */

.dashboard-tab-panel {
    display: none;
    animation: fadeIn var(--transition-normal) ease;
}

.dashboard-tab-panel.active {
    display: block;
}

/* Sidebar Navigation Menu */
.dashboard-sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.menu-tab-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    padding: 12px 16px;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: left;
    outline: none;
}

.menu-tab-btn svg {
    color: var(--text-muted);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.menu-tab-btn:hover {
    color: var(--accent-cyan);
    border-color: rgba(0, 240, 255, 0.25);
    background: rgba(0, 240, 255, 0.02);
}

.menu-tab-btn:hover svg {
    color: var(--accent-cyan);
}

.menu-tab-btn.active {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.06);
    box-shadow: var(--border-glow);
}

.menu-tab-btn.active svg {
    color: var(--accent-cyan);
}

/* Profile Editor settings card */
.profile-editor-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 24px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   STUDY PLAYER — Course Video Learning UI
   ========================================================================== */

.study-player-wrapper {
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    padding-top: 100px; /* top-bar(~36px) + navbar(64px) */
}

/* ── Top Study Bar — two-row layout ───────────────────────────────────── */
.study-topbar {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
    z-index: 90;
}

/* Row 1: back button + breadcrumb */
.study-topbar-row1 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    flex-wrap: wrap;
    min-width: 0;
}

/* Row 2: progress */
.study-topbar-row2 {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 20px;
    background: var(--bg-tertiary);
}
.study-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: rgba(0,0,0,0.2);
    transition: var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}
.study-back-btn:hover {
    color: var(--accent-cyan);
    border-color: rgba(0,240,255,0.3);
    box-shadow: var(--border-glow);
}
/* Divider between back btn and breadcrumb */
.study-topbar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.study-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    min-width: 0;
    overflow: hidden;
}
.study-breadcrumb-course {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}
.study-breadcrumb-module {
    color: var(--accent-cyan);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}
.study-progress-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    white-space: nowrap;
}
.study-progress-thin-bar {
    width: 140px;
    height: 4px;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    overflow: hidden;
}
.study-progress-thin-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ── Two-column layout ─────────────────────────────────────────────────── */
.study-main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    flex: 1;
}
.study-player-column {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}
.study-playlist-column {
    border-left: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 165px);
    position: sticky;
    top: 165px;
    align-self: start;
}

/* ── Video Frame ───────────────────────────────────────────────────────── */
.study-video-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0,0,0,0.6), var(--border-glow);
}
.study-video-frame-wrap iframe {
    transition: opacity 0.4s ease;
}

/* Skeleton loader */
.video-skeleton {
    position: absolute;
    inset: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: 12px;
}
.skeleton-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(0,240,255,0.04) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.6s infinite;
}
@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-play-icon {
    z-index: 6;
    animation: pulse 2s infinite;
}

/* Lock overlay */
.study-video-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 19, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}
.video-lock-content {
    text-align: center;
    color: var(--text-muted);
}
.video-lock-content svg { margin-bottom: 16px; color: var(--text-muted); }
.video-lock-content h3 {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.video-lock-content p { font-size: 0.85rem; font-family: var(--font-mono); }

/* ── Video Meta ────────────────────────────────────────────────────────── */
.study-video-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.study-video-meta-left { flex: 1; min-width: 0; }
.study-video-title {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}
.study-video-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.study-video-meta-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    flex-shrink: 0;
}
.study-mark-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.study-mark-btn:hover {
    color: var(--accent-cyan);
    border-color: rgba(0,240,255,0.3);
    box-shadow: var(--border-glow);
}
.study-mark-btn.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border-color: rgba(16, 185, 129, 0.4);
}
.study-nav-btns { display: flex; gap: 8px; }
.study-nav-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}
.study-nav-btn:hover:not(:disabled) {
    color: var(--accent-cyan);
    border-color: rgba(0,240,255,0.3);
}
.study-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Notes Pad ─────────────────────────────────────────────────────────── */
.study-notes-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}
.study-notes-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
}
.study-notes-header svg { color: var(--accent-cyan); flex-shrink: 0; }
.study-save-notes-btn {
    margin-left: auto;
    background: rgba(0,240,255,0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(0,240,255,0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--transition-fast);
}
.study-save-notes-btn:hover {
    background: rgba(0,240,255,0.15);
    box-shadow: var(--border-glow);
}
.study-notes-textarea {
    width: 100%;
    min-height: 160px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: none;
    outline: none;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.65;
    resize: vertical;
    box-sizing: border-box;
}
.study-notes-textarea::placeholder { color: var(--text-muted); opacity: 0.6; }

/* ── Playlist Column ───────────────────────────────────────────────────── */
.study-playlist-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-tech);
    font-size: 0.78rem;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    background: var(--bg-tertiary);
    text-transform: uppercase;
    position: sticky;
    top: 0;
}
.study-playlist-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
}
.study-playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition-fast);
}
.study-playlist-item:hover { background: var(--bg-tertiary); }
.study-playlist-item.active {
    background: rgba(0, 240, 255, 0.05);
    border-left: 2px solid var(--accent-cyan);
}
.study-playlist-item.completed .playlist-item-num {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border-color: rgba(16, 185, 129, 0.3);
}
.study-playlist-item.completed .playlist-item-sub { color: var(--accent-green); }

.playlist-item-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    background: var(--bg-tertiary);
    transition: var(--transition-fast);
}
.study-playlist-item.active .playlist-item-num {
    background: rgba(0,240,255,0.1);
    color: var(--accent-cyan);
    border-color: rgba(0,240,255,0.4);
}
.playlist-item-meta { flex: 1; min-width: 0; }
.playlist-item-title {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 3px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.study-playlist-item.active .playlist-item-title { color: var(--accent-cyan); }
.playlist-item-sub {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
}
.playlist-item-indicator {
    flex-shrink: 0;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.playlist-item-indicator.playing svg { animation: pulse 1.5s infinite; }

/* ── Course Info Box ───────────────────────────────────────────────────── */
.study-course-info-box {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-tertiary);
}
.study-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.study-info-row svg { color: var(--accent-cyan); flex-shrink: 0; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .study-main-layout { grid-template-columns: 1fr; }
    .study-playlist-column {
        border-left: none;
        border-top: 1px solid var(--border-color);
        position: static;
        max-height: none;
    }
}
@media (max-width: 600px) {
    .study-video-meta { flex-direction: column; }
    .study-video-meta-right {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .study-progress-thin-bar { width: 80px; }
}

