/* ===================================================
   بوابة التربية الصحية والبدنية (2) - الصف الثالث ثانوي
   الوحدة الثانية: المهارات الأساسية وقوانين كرة اليد - نظام المسارات
   تصميم عصري رياضي متجاوب | دعم الوضعين الليلي والنهاري ونمط العرض الصفي
   =================================================== */

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #38bdf8;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #f97316;
    --accent-gold: #f59e0b;
    --danger: #ef4444;
    --court-wood: #d97706;
    --court-blue: #1d4ed8;

    /* Theme colors: Dark Mode (Default) */
    --bg-main: #0b1120;
    --bg-surface: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #273549;
    --bg-alt: #0a0f1d;
    --border-color: rgba(255, 255, 255, 0.09);
    --border-highlight: rgba(56, 189, 248, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --card-glow: 0 0 25px rgba(14, 165, 233, 0.15);
    --nav-bg: rgba(11, 17, 32, 0.92);

    --font-main: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-alt: #f1f5f9;
    --border-color: #e2e8f0;
    --border-highlight: rgba(2, 132, 199, 0.5);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --card-glow: 0 0 20px rgba(2, 132, 199, 0.12);
    --nav-bg: rgba(255, 255, 255, 0.92);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-light), var(--accent), var(--secondary));
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* Container */
.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Typography & Headers */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, #60a5fa 40%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-badge.badge-accent {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.3);
}

.section-badge.badge-secondary {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 45px;
}

.section-title {
    font-size: 2.1rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.section {
    padding: 85px 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    z-index: 900;
    transition: background var(--transition-normal);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.logo-icon svg {
    width: 26px;
    height: 26px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: color var(--transition-fast);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-light);
    background: rgba(56, 189, 248, 0.08);
}

.nav-link.nav-highlight {
    color: var(--accent);
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-highlight);
}

.sound-toggle-btn {
    width: auto;
    padding: 0 12px;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.mode-switch-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0284c7);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: rgba(56, 189, 248, 0.08);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Fullscreen Presentation Mode Overlay */
.presentation-overlay {
    position: fixed;
    inset: 0;
    background: #060913;
    z-index: 2000;
    display: none;
    flex-direction: column;
    color: #ffffff;
}

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

.pres-header {
    height: 65px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: #0b1120;
}

.pres-title {
    font-size: 1rem;
    font-weight: 700;
    color: #38bdf8;
}

.pres-slide-counter {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.9rem;
    color: #38bdf8;
}

.pres-controls-top {
    display: flex;
    gap: 8px;
}

.btn-close-pres {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.pres-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow-y: auto;
}

.pres-slide {
    display: none;
    width: 100%;
    max-width: 1050px;
    animation: fadeInSlide 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pres-slide.active {
    display: block;
}

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

.slide-content-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 45px 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.slide-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-light), var(--accent), var(--secondary));
}

.slide-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.slide-title {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #ffffff;
}

.slide-points-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slide-points-list li {
    font-size: 1.15rem;
    line-height: 1.7;
    position: relative;
    padding-right: 28px;
    color: #cbd5e1;
}

.slide-points-list li::before {
    content: '🤾';
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 1rem;
}

.slide-points-list strong {
    color: #f8fafc;
}

.pres-footer {
    height: 65px;
    background: #0b1120;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.pres-hint {
    font-size: 0.85rem;
    color: #94a3b8;
}

.pres-nav-btns {
    display: flex;
    gap: 10px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -120px;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(249, 115, 22, 0.1) 60%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.tag-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1.2;
}

.metric-label {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.metric-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

/* Glass Card in Hero */
.card-hero-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
}

.glass-header {
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.glass-title {
    margin-right: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.glass-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vital-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform var(--transition-fast);
}

.vital-card:hover {
    transform: translateX(-4px);
    border-color: var(--border-highlight);
}

.vital-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.vital-icon.icon-court {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}

.vital-icon.icon-ball {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

.vital-icon.icon-timer {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.vital-icon.icon-card {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.vital-info {
    display: flex;
    flex-direction: column;
}

.vital-name {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.vital-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.vital-val small {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Detailed Skill Cards & Grids */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow), var(--card-glow);
}

.skill-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.skill-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(249, 115, 22, 0.2));
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.skill-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.skill-tag.tag-defense {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.skill-tag.tag-gk {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.3);
}

.skill-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.skill-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Step Accordions / Technical Phases */
.phases-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.phases-box-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phase-step {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.phase-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.phase-step-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.phase-step-title span.step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

.phase-step p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 0;
    padding-right: 26px;
}

.errors-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    padding: 14px;
    font-size: 0.84rem;
}

.errors-box-title {
    font-weight: 800;
    color: #f87171;
    margin-bottom: 6px;
}

.errors-box ul {
    padding-right: 18px;
    color: var(--text-secondary);
}

.errors-box li {
    margin-bottom: 4px;
}

/* Mini Checkpoint Quiz inside lessons */
.checkpoint-box {
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-top: 36px;
    box-shadow: var(--card-shadow);
}

.checkpoint-header {
    margin-bottom: 16px;
}

.cp-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.checkpoint-header h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.checkpoint-question {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.checkpoint-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkpoint-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: right;
    transition: all var(--transition-fast);
}

.checkpoint-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-light);
}

.btn-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 800;
}

.checkpoint-btn.selected-correct {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
}

.checkpoint-btn.selected-wrong {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

.checkpoint-result {
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    display: none;
    padding: 12px;
    border-radius: var(--radius-sm);
}

/* Court Diagrams and Visual SVG Sections */
.court-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.court-svg-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #022c22;
    border-radius: 16px;
    padding: 15px;
    border: 2px solid #059669;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.tactical-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.formation-btn-group {
    display: flex;
    gap: 8px;
}

.tactical-info-card {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tactical-player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.tactical-player-details h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tactical-player-details p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Interactive Referee Whistle & Decision Lab */
.whistle-lab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.whistle-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.whistle-visual {
    text-align: center;
    padding: 30px;
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.whistle-icon-big {
    font-size: 4rem;
    display: block;
    margin-bottom: 14px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whistle-icon-big:hover {
    transform: scale(1.15) rotate(-10deg);
}

.whistle-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    border: none;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    transition: all var(--transition-fast);
}

.whistle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

.scenario-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
}

.scenario-badge {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 10px;
}

.scenario-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.scenario-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scenario-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    text-align: right;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.scenario-btn:hover {
    border-color: var(--primary-light);
    background: var(--bg-card-hover);
}

.scenario-btn.correct {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

.scenario-btn.wrong {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.scenario-feedback {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    display: none;
}

/* 3D Flip Cards Section */
.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
}

.flip-card {
    background-color: transparent;
    height: 290px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.flip-card-front {
    background: var(--bg-card);
}

.flip-card-front .card-front-icon {
    font-size: 3rem;
    margin-bottom: 14px;
}

.flip-card-front h4 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.front-hint {
    font-size: 0.82rem;
    color: var(--primary-light);
    font-weight: 700;
}

.flip-prompt {
    margin-top: 18px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.flip-card-back {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: var(--text-primary);
    transform: rotateY(180deg);
    border-color: var(--border-highlight);
    text-align: right;
    align-items: flex-start;
}

.flip-card-back h4 {
    font-size: 1.15rem;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.flip-card-back p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.back-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent);
    background: rgba(249, 115, 22, 0.12);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-top: auto;
}

/* Matching Game Section */
.matching-game-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.game-score-board {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
}

.score-badge {
    background: var(--primary);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-weight: 800;
}

.matching-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.matching-col h4 {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--primary-light);
    border-bottom: 2px solid rgba(56, 189, 248, 0.2);
    padding-bottom: 6px;
}

.matching-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 13px 18px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.match-item:hover {
    border-color: var(--primary-light);
    background: var(--bg-card-hover);
    transform: translateX(-4px);
}

.match-item.selected {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.3);
}

.match-item.matched {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    cursor: default;
    pointer-events: none;
}

.match-item.matched::after {
    content: ' ✓';
    font-weight: 900;
}

.game-congrats {
    margin-top: 24px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.game-congrats h3 {
    color: #10b981;
    margin-bottom: 6px;
}

/* Video Library Section */
.video-notice-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 30px;
    font-size: 0.92rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 28px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
}

.video-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow), var(--card-glow);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-content {
    padding: 22px;
}

.video-tag {
    display: inline-block;
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent);
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.video-content h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.video-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.video-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-yt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(239, 68, 68, 0.3);
    transition: all var(--transition-fast);
}

.btn-yt:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
}

/* Comprehensive Quiz Section */
.quiz-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 26px;
}

.filter-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-pill:hover, .filter-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.quiz-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--card-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.quiz-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 700;
}

.quiz-progress-bar-wrap {
    height: 8px;
    background: var(--bg-surface);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.quiz-progress-fill {
    height: 100%;
    width: 5%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.quiz-category-tag {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.quiz-question-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 22px;
    line-height: 1.5;
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.quiz-opt-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
    transition: all var(--transition-fast);
}

.quiz-opt-btn:hover {
    border-color: var(--primary-light);
    background: var(--bg-card-hover);
}

.quiz-opt-btn.correct {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #10b981;
}

.quiz-opt-btn.wrong {
    background: rgba(239, 68, 68, 0.18);
    border-color: #ef4444;
    color: #ef4444;
}

.quiz-opt-btn.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.quiz-feedback-box {
    display: none;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    margin-bottom: 22px;
    line-height: 1.65;
}

.quiz-feedback-box.correct-box {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #34d399;
}

.quiz-feedback-box.wrong-box {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
}

.quiz-nav-row {
    display: flex;
    justify-content: flex-end;
}

.quiz-summary-card {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.quiz-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.score-circle-num {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.score-circle-label {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Assessment Card & Rubric Section */
.assessment-sheet {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.sheet-header {
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 28px;
}

.sheet-ministry-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sheet-doc-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-light);
    margin-bottom: 6px;
}

.sheet-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.student-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.meta-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.meta-field input {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    color: var(--text-primary);
    font-size: 0.92rem;
}

.meta-field input:focus {
    outline: none;
    border-color: var(--primary-light);
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 26px;
}

.assessment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: right;
}

.assessment-table th, .assessment-table td {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
}

.assessment-table th {
    background: var(--bg-surface);
    color: var(--primary-light);
    font-weight: 800;
}

.cell-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    padding: 4px;
}

.cell-input:focus {
    outline: 1px solid var(--primary-light);
    background: var(--bg-surface);
}

.pledge-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.pledge-box h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--primary-light);
}

.pledge-box p {
    font-size: 0.86rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.signatures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.card-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

/* Footer */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.86rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-references {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.back-to-top {
    text-decoration: none;
    color: var(--primary-light);
    font-weight: 700;
}

/* Print Optimization */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .navbar, .scroll-progress, .presentation-overlay, .hero-section, 
    .nav-actions, .video-library, .flip-cards-grid, .matching-game-wrapper, 
    .quiz-card, .footer, .no-print, .btn, .checkpoint-box, .court-container {
        display: none !important;
    }
    .assessment-sheet {
        box-shadow: none !important;
        border: 1px solid #94a3b8 !important;
        padding: 15px !important;
    }
    .assessment-table th, .assessment-table td {
        border-color: #64748b !important;
        color: #000000 !important;
    }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .whistle-lab-grid {
        grid-template-columns: 1fr;
    }
    .matching-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .slide-title {
        font-size: 1.5rem;
    }
    .slide-content-card {
        padding: 24px;
    }
}
