/* ==========================================================================
   Learn Hardware & Networking - Master Stylesheet
   Theme: Professional Dark with Awesome Gradients and UX
   Mobile-First & Fully Responsive Design System
   Developed by Ashish Vegan (https://www.ashishvegan.com)
   ========================================================================== */

:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-base: #0b0f19;
    --bg-surface: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(26, 36, 56, 0.85);
    --bg-input: #1a2234;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: #6366f1;
    --border-hover: rgba(99, 102, 241, 0.35);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --grad-secondary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --grad-accent: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    --grad-glow: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
    --grad-card-border: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(6, 182, 212, 0.2));

    /* Accents */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-subtle: #6b7280;
    --color-cyan: #06b6d4;
    --color-indigo: #6366f1;
    --color-purple: #a855f7;
    --color-emerald: #10b981;
    --color-amber: #f59e0b;
    --color-rose: #f43f5e;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;

    /* Layout & Shadows */
    --container-max: 1280px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    --transition-fast: 0.18s ease;
    --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Global SVG & Icon Sizing Standards (Bulletproof Constraints)
   -------------------------------------------------------------------------- */
svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    max-width: 100%;
    max-height: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Specific UI Icon Sizes & Alignments */
.logo-svg {
    width: 32px !important;
    height: 32px !important;
    display: block;
    flex-shrink: 0;
}

.nav-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.btn-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.audience-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.audience-icon-teacher {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #818cf8;
}

.audience-icon-student {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #22d3ee;
}

.audience-svg {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0;
}

.catalog-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px !important;
    height: 18px !important;
    color: var(--text-subtle);
    pointer-events: none;
    z-index: 2;
    flex-shrink: 0;
}

.sim-icon {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

.arrow-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

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

.req-type-icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

.copy-icon {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

.catalog-grid-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.visitor-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}

.back-to-top-btn svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

.mobile-menu-btn svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
}

.viva-chevron svg,
.viva-toggle-icon svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Reset & Base Elements
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: dark;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.main-content {
    flex: 1 0 auto;
}

/* --------------------------------------------------------------------------
   Typography Helpers & Gradients
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
    background: var(--grad-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--color-cyan); }
.text-emerald { color: var(--color-emerald); }
.text-amber { color: var(--color-amber); }
.text-purple { color: var(--color-purple); }
.subtle-text { color: var(--text-subtle); }
.font-bold { font-weight: 700; }

/* --------------------------------------------------------------------------
   Top University & Session Announcement Bar
   -------------------------------------------------------------------------- */
.top-announcement-bar {
    background: linear-gradient(90deg, #1e1b4b 0%, #0f172a 50%, #083344 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: #cbd5e1;
    padding: 0.35rem 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.univ-tag {
    font-weight: 600;
    color: #93c5fd;
}

.session-tag {
    color: #67e8f9;
}

/* --------------------------------------------------------------------------
   Site Header & Navbar (Frosted Glass)
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.25rem;
    gap: 0.75rem;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* Brand / Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 1;
    min-width: 0;
}

.logo-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.35);
    flex-shrink: 0;
}

.logo-svg {
    width: 2.25rem;
    height: 2.25rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.9rem, 3.8vw, 1.15rem);
    line-height: 1.2;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .brand-subtitle {
        display: none;
    }
}

/* Desktop Nav Links */
.desktop-nav {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--color-cyan);
    font-weight: 600;
}

.nav-icon {
    width: 1.1rem;
    height: 1.1rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.author-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.author-badge-link:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    transform: translateY(-1px);
}

.author-label {
    color: var(--text-muted);
}

.author-name {
    color: #67e8f9;
    font-weight: 600;
}

/* Hide author badge in header on mobile to prevent pushing hamburger out */
@media (max-width: 768px) {
    .author-badge-link {
        display: none !important;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.35rem;
    height: 2.35rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.hamburger-bar {
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    display: none;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 1.25rem;
}

.mobile-nav-drawer.open {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-muted);
}

.mobile-link:hover, .mobile-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.mobile-link.active {
    color: var(--color-cyan);
    font-weight: 600;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Buttons & Pills
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--color-cyan);
    color: #ffffff;
}

.btn-accent {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-accent:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-xs {
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.85rem 1.65rem;
    font-size: 1.05rem;
}

/* Badges */
.badge-co, .badge-category, .badge-difficulty, .badge-simulator, .badge-diagram, .badge-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.co-badges {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.co-badge-co1 {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.co-badge-co2 {
    background: rgba(6, 182, 212, 0.18);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.co-badge-co3 {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.co-badge-co4 {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-category {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-difficulty {
    text-transform: uppercase;
}

.diff-beginner {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.diff-intermediate {
.sim-icon {
    width: 0.85rem !important;
    height: 0.85rem !important;
    min-width: 0.85rem;
    min-height: 0.85rem;
    max-width: 0.85rem;
    max-height: 0.85rem;
    flex-shrink: 0;
    display: inline-block;
}

.badge-simulator, .badge-diagram {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    white-space: nowrap;
    height: 1.6rem;
    box-sizing: border-box;
}

.badge-simulator {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.badge-diagram {
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(14, 165, 233, 0.28);
}

.badge-viva-count {
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
}

.badge-duration {
    font-size: 0.72rem;
    color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 3.5rem 0 3rem;
    overflow: hidden;
    background: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.18), transparent 70%);
}

.hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.hero-glow-1 {
    top: 5%;
    left: 10%;
    background: #4f46e5;
}

.hero-glow-2 {
    top: 15%;
    right: 10%;
    background: #06b6d4;
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge-wrap {
    margin-bottom: 1.25rem;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f2fe;
    box-shadow: 0 0 8px #00f2fe;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.25rem;
    line-height: 1.65;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 820px;
    margin: 0 auto 2.5rem;
}

.stat-card {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Dual Audience (Teacher & Student Friendly) Section
   -------------------------------------------------------------------------- */
.section {
    padding: 3.5rem 0;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-tag-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-cyan);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 680px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

.audience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.audience-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.audience-teacher::before {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.audience-student::before {
    background: linear-gradient(90deg, #06b6d4, #6366f1);
}

.audience-icon-wrap {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.audience-teacher .audience-icon-wrap {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
}

.audience-student .audience-icon-wrap {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.12);
}

.audience-svg {
    width: 1.75rem;
    height: 1.75rem;
}

.audience-heading {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.audience-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.audience-features li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.92rem;
    color: #d1d5db;
    line-height: 1.5;
}

.audience-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-cyan);
    font-weight: 700;
}

.audience-teacher .audience-features li::before {
    color: #f59e0b;
}

/* --------------------------------------------------------------------------
   Practicals Catalog Section & Filtering
   -------------------------------------------------------------------------- */
.catalog-section {
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header-top {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.catalog-search-wrap {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.15rem;
    height: 1.15rem;
    color: var(--text-subtle);
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0.75rem 5.5rem 0.75rem 2.75rem;
    font-size: 0.92rem;
    color: #ffffff;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-indigo);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.search-count-badge {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    pointer-events: none;
}

/* Filter Toolbar */
.filter-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.filter-group-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-subtle);
    margin-right: 0.25rem;
}

.filter-btn, .filter-btn-co {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn-co:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.filter-btn.active, .filter-btn-co.active {
    background: var(--grad-primary);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

/* Practicals Grid */
.practicals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.practical-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.practical-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.card-sr-no-pill {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

.card-badges {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-body {
    padding: 1.25rem 1.5rem;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

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

.card-aim {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.card-requirements-preview {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 1rem;
}

.req-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-subtle);
    display: block;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.req-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.req-chip {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.req-chip-sw {
    border-color: rgba(6, 182, 212, 0.2);
    color: #7dd3fc;
}

.card-highlights {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: rgba(11, 15, 25, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.btn-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.4rem 0;
    transition: color var(--transition-fast);
}

.btn-card-action:hover {
    color: var(--color-cyan);
}

.arrow-icon {
    width: 1.15rem;
    height: 1.15rem;
    transition: transform var(--transition-fast);
}

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

.no-results-box {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-xl);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Course Outcomes Grid Section
   -------------------------------------------------------------------------- */
.co-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.co-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    transition: transform var(--transition-fast);
}

.co-card:hover {
    transform: translateY(-2px);
}

.co-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.co-tag {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
}

.co-card-1 .co-tag { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.co-card-2 .co-tag { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.co-card-3 .co-tag { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.co-card-4 .co-tag { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.co-title {
    font-size: 1.15rem;
}

.co-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.co-mapped-list {
    font-size: 0.8rem;
    color: #cbd5e1;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   Practical Detail View Styles
   -------------------------------------------------------------------------- */
.practical-detail-container {
    padding-bottom: 4rem;
}

.breadcrumb-nav {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.82rem;
    color: var(--text-subtle);
    flex-wrap: wrap;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item a:hover {
    color: var(--color-cyan);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin-right: 0.5rem;
    color: var(--text-subtle);
}

.breadcrumb-item.active {
    color: #e2e8f0;
    font-weight: 500;
}

.practical-header-banner {
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15), transparent 60%),
                linear-gradient(180deg, rgba(17, 24, 39, 0.7) 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2.25rem 0 2rem;
    margin-bottom: 2rem;
}

.practical-meta-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.sr-badge {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--grad-primary);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.badge-duration-pill {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid var(--border-subtle);
}

.practical-main-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.28;
    margin-bottom: 1.25rem;
    max-width: 1000px;
}

.practical-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

/* Two-column layout on practical view */
.practical-content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.practical-main-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

/* Lab Cards */
.lab-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.lab-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
}

.lab-card-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.lab-card-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.lab-card-body {
    padding: 1.5rem;
}

/* Aim Section */
.aim-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #e2e8f0;
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.req-box {
    background: rgba(11, 15, 25, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.req-box-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.req-type-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-indigo);
}

.req-box-software .req-type-icon {
    color: var(--color-cyan);
}

.req-box-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.req-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.req-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.check-icon {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.check-icon-sw {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

/* --------------------------------------------------------------------------
   Teacher's Lab Delivery Guide (Dedicated Box)
   -------------------------------------------------------------------------- */
.teacher-guide-card {
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.08);
}

.teacher-guide-header {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    justify-content: space-between;
}

.teacher-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.teacher-header-subtitle {
    display: block;
    font-size: 0.78rem;
    color: #fde68a;
    font-weight: 400;
}

.teacher-role-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

.teacher-brief-block {
    background: rgba(245, 158, 11, 0.06);
    border-left: 3px solid #f59e0b;
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 1.5rem;
}

.teacher-block-heading {
    font-size: 0.95rem;
    color: #fde68a;
    margin-bottom: 0.5rem;
}

.teacher-brief-text {
    font-size: 0.95rem;
    color: #f3f4f6;
    line-height: 1.6;
}

.teacher-concepts-block {
    margin-bottom: 1.5rem;
}

.teacher-concepts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.teacher-concepts-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.5;
}

.teacher-concepts-list li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: #f59e0b;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}

.teacher-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.teacher-meta-box {
    background: rgba(11, 15, 25, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.teacher-sub-heading {
    font-size: 0.88rem;
    color: #93c5fd;
    margin-bottom: 0.4rem;
}

.teacher-safety-box {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.teacher-safety-box .teacher-sub-heading {
    color: #fca5a5;
}

.teacher-meta-box p {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Step-by-Step Procedure Timeline
   -------------------------------------------------------------------------- */
.procedure-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.procedure-step {
    display: flex;
    gap: 1.25rem;
}

.step-badge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-number-circle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.step-connector-line {
    flex: 1 0 auto;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.5rem 0;
}

.procedure-step:last-child .step-connector-line {
    display: none;
}

.step-content-col {
    flex: 1 1 auto;
    padding-bottom: 1.5rem;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.step-desc {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-command-box {
    background: #070a12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

.command-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.command-type-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-copy-code {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-copy-code:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.btn-copy-code.copied {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    color: #34d399;
}

.copy-icon {
    width: 0.85rem;
    height: 0.85rem;
}

.command-code {
    padding: 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #67e8f9;
    overflow-x: auto;
    line-height: 1.5;
}

.step-tip-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: rgba(6, 182, 212, 0.08);
    border-left: 3px solid var(--color-cyan);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.88rem;
    color: #e0f2fe;
}

.tip-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tip-text {
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Simulator Container Card
   -------------------------------------------------------------------------- */
.simulator-card {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.12);
}

.simulator-header {
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
}

.simulator-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.simulator-subtitle {
    display: block;
    font-size: 0.78rem;
    color: #cbd5e1;
}

.badge-simulator-live {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    animation: pulseGlow 2.5s infinite;
}

.simulator-body {
    padding: 1.75rem;
    background: #080c16;
}

/* --------------------------------------------------------------------------
   Observations & Lab Record Table
   -------------------------------------------------------------------------- */
.obs-instruction {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.lab-observation-table, .syllabus-practical-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
    background: var(--bg-surface);
}

.lab-observation-table th, .syllabus-practical-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.lab-observation-table td, .syllabus-practical-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    line-height: 1.5;
}

.lab-observation-table tr:last-child td, .syllabus-practical-table tr:last-child td {
    border-bottom: none;
}

.lab-observation-table tr:hover, .syllabus-practical-table tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

/* Conclusion Box */
.conclusion-box {
    background: rgba(16, 185, 129, 0.06);
    border-left: 3px solid #10b981;
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.conclusion-text {
    font-size: 1rem;
    line-height: 1.65;
    color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   Viva Questions Accordion UI
   -------------------------------------------------------------------------- */
.viva-header {
    justify-content: space-between;
}

.viva-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.viva-subtitle {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.viva-accordion-controls {
    display: flex;
    gap: 0.5rem;
}

.viva-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.viva-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: rgba(11, 15, 25, 0.4);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.viva-item.active {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.viva-question-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    transition: background var(--transition-fast);
}

.viva-question-btn:hover {
    background: rgba(255, 255, 255, 0.03);
}

.viva-q-num {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-cyan);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.viva-q-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    flex: 1 1 auto;
    line-height: 1.4;
}

.viva-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.viva-item.active .viva-chevron {
    transform: rotate(180deg);
    color: var(--color-cyan);
}

.viva-answer-pane {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.viva-answer-content {
    padding: 1.25rem 1.5rem;
    position: relative;
}

.answer-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.viva-answer-content p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Adjacent Practical Navigation
   -------------------------------------------------------------------------- */
.adjacent-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.adjacent-nav-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-fast);
}

.adjacent-nav-card:hover {
    border-color: var(--color-indigo);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.nav-direction {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-cyan);
    margin-bottom: 0.25rem;
}

.nav-sr {
    font-size: 0.75rem;
    color: var(--text-subtle);
}

.nav-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
}

.btn-back-catalog {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.btn-back-catalog:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.catalog-grid-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* --------------------------------------------------------------------------
   Sidebar (Table of Contents)
   -------------------------------------------------------------------------- */
.practical-sidebar {
    display: none;
}

.sidebar-sticky-box {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.side-link {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.side-link:hover, .side-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.side-link.active {
    color: var(--color-cyan);
    font-weight: 600;
}

.side-link-highlight {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
    font-weight: 600;
}

.sidebar-meta-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.side-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.meta-label {
    color: var(--text-subtle);
}

.meta-val {
    color: #e2e8f0;
    text-align: right;
}

/* --------------------------------------------------------------------------
   Syllabus View Styles
   -------------------------------------------------------------------------- */
.syllabus-header-banner {
    background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.15), transparent 70%),
                linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2.5rem 0 2rem;
    margin-bottom: 2.5rem;
}

.badge-accent {
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--grad-primary);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.syllabus-main-title {
    font-size: 2rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.syllabus-sub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.syllabus-content-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-bottom: 4rem;
}

.co-detailed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.co-detailed-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(11, 15, 25, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.co-detailed-tag {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.co-detailed-content p {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.6;
}

.sr-cell-badge {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.table-activity-title {
    font-weight: 600;
    color: #ffffff;
    display: block;
    margin-bottom: 0.25rem;
}

.table-activity-title:hover {
    color: var(--color-cyan);
}

.table-activity-aim {
    font-size: 0.8rem;
    color: var(--text-subtle);
}

.eval-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.eval-box {
    background: rgba(11, 15, 25, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.eval-box h4 {
    font-size: 1.05rem;
    color: var(--color-cyan);
    margin-bottom: 0.75rem;
}

.eval-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.eval-box li {
    font-size: 0.9rem;
    color: #cbd5e1;
    position: relative;
    padding-left: 1.25rem;
}

.eval-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
}

.signatories-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.signatories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.signatory-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    border-left: 3px solid var(--color-indigo);
}

.sig-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.sig-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Site Footer (With Ashish Vegan Branding)
   -------------------------------------------------------------------------- */
.site-footer {
    background: #070a12;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.footer-top-accent {
    height: 3px;
    background: var(--grad-primary);
}

.footer-inner {
    padding: 3.5rem 1.25rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    margin-bottom: 3rem;
}

.footer-logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 1rem 0;
    max-width: 420px;
}

.footer-dept-box {
    font-size: 0.8rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-cyan);
    transform: translateX(3px);
    display: inline-block;
}

.footer-bottom {
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-visitor-counter {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visitor-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.visitor-counter-badge strong {
    color: #67e8f9;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.visitor-icon {
    width: 1rem;
    height: 1rem;
    color: var(--color-cyan);
    flex-shrink: 0;
}

.footer-author {
    font-size: 0.95rem;
}

.author-credit-link {
    color: #67e8f9;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.author-credit-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

/* Floating Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 90;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: var(--color-indigo);
    border-color: var(--color-indigo);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-3px);
}

.back-to-top-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries (Tablet & Desktop Breakpoints)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
    .hero-title { font-size: 2.65rem; }
    .hero-actions { flex-direction: row; }
    .hero-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
    .practicals-grid { grid-template-columns: repeat(2, 1fr); }
    .co-grid { grid-template-columns: repeat(2, 1fr); }
    .eval-grid { grid-template-columns: repeat(2, 1fr); }
    .signatories-grid { grid-template-columns: repeat(2, 1fr); }
    .adjacent-nav-grid { grid-template-columns: 1fr auto 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 768px) {
    .desktop-nav { display: block; }
    .mobile-menu-btn { display: none; }
    .section-header-top { flex-direction: row; justify-content: space-between; align-items: flex-end; }
    .requirements-grid { grid-template-columns: repeat(2, 1fr); }
    .teacher-meta-grid { grid-template-columns: repeat(3, 1fr); }
    .signatories-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 3.25rem; }
    .practicals-grid { grid-template-columns: repeat(3, 1fr); }
    .practical-content-layout { grid-template-columns: 1fr 280px; }
    .practical-sidebar { display: block; }
}

@media (min-width: 1280px) {
    .practical-content-layout { grid-template-columns: 1fr 310px; }
}
