:root {
            --kenya-red: #DE2910;
            --kenya-dark-red: #B3200D;
            --kenya-black: #000000;
            --kenya-dark-gray: #333333;
            --kenya-white: #FFFFFF;
            --kenya-green: #006600;
            --kenya-light-green: #00875A;
            --gray-100: #f8f9fa;
            --gray-200: #e9ecef;
            --gray-300: #dee2e6;
            --gray-800: #343a40;
        }
        
        body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* Consistent font throughout the site */
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html {
    height: 100%;
}

/* Navigation bar spacing and no line breaks */
.navbar-nav .nav-item {
    margin-right: 15px; /* Adjust spacing between navigation items */
}

.navbar-nav .nav-link {
    white-space: nowrap; /* Prevent navigation links from breaking into two lines */
    padding-left: 0.5rem; /* Adjust padding for better spacing */
    padding-right: 0.5rem; /* Adjust padding for better spacing */
}

/* Ensure brand name doesn't wrap */
.navbar-brand {
    white-space: nowrap;
}
        
        .navbar {
            background: linear-gradient(90deg, var(--kenya-black) 0%, var(--kenya-red) 50%, var(--kenya-green) 100%);
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
            padding: 0.8rem 0;
        }
        
        .navbar-brand {
            font-weight: 700;
            color: white !important;
            font-size: 1.5rem;
        }
        
        .nav-link {
            color: rgba(255, 255, 255, 0.85) !important;
            font-weight: 500;
            padding: 0.5rem 1rem !important;
            border-radius: 6px;
            transition: all 0.3s ease;
            margin: 0 2px;
        }
        
        .nav-link:hover, .nav-link.active {
            color: white !important;
            background-color: rgba(255, 255, 255, 0.15);
        }
        
        .btn-login {
            background-color: var(--kenya-green);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 0.5rem 1rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .btn-login:hover {
            background-color: var(--kenya-light-green);
            color: white;
        }
        
        .btn-logout {
            background-color: var(--kenya-dark-red);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 0.5rem 1rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .btn-logout:hover {
            background-color: var(--kenya-black);
            color: white;
        }
        
        .hero-section {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23000000"/><path d="M0 0L100 100" stroke="%23DE2910" stroke-width="2"/><path d="M100 0L0 100" stroke="%23006600" stroke-width="2"/></svg>');
            background-size: cover;
            color: white;
            padding: 4rem 0;
            text-align: center;
            margin-bottom: 2.5rem;
            border-radius: 0 0 20px 20px;
        }
        
        .hero-title {
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .hero-subtitle {
            font-weight: 400;
            margin-bottom: 2rem;
            opacity: 0.9;
        }
        
        .content-container {
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.06);
            padding: 30px;
            margin-bottom: 25px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid var(--gray-200);
        }
        
        .content-container:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }
        
        .section-title {
            font-weight: 600;
            color: var(--kenya-black);
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--kenya-red);
        }
        
        .video-player {
            width: 100%;
            border-radius: 12px;
            background: #000;
            box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        }
        
        .playlist-controls {
            display: flex;
            gap: 12px;
            margin: 20px 0;
            flex-wrap: wrap;
            align-items: center;
        }

        .btn-kenya {
            background: linear-gradient(135deg, var(--kenya-red), var(--kenya-green));
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 18px;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .btn-kenya:hover {
            background: linear-gradient(135deg, var(--kenya-dark-red), var(--kenya-light-green));
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(222, 41, 16, 0.3);
        }
        
        
        
        .department-selector {
            margin-bottom: 25px;
        }
        
        .form-select {
            border-radius: 8px;
            border: 2px solid var(--gray-300);
            padding: 12px;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .form-select:focus {
            border-color: var(--kenya-red);
            box-shadow: 0 0 0 0.25rem rgba(222, 41, 16, 0.25);
        }
        
        .playlist-item {
            padding: 12px 15px;
            border-bottom: 1px solid var(--gray-200);
            cursor: pointer;
            transition: background-color 0.2s ease;
            border-radius: 6px;
            margin-bottom: 5px;
        }
        
        .playlist-item:hover {
            background-color: rgba(222, 41, 16, 0.08);
        }
        
        .playlist-item.active {
            background-color: rgba(222, 41, 16, 0.12);
            border-left: 4px solid var(--kenya-red);
        }
        
        .control-active {
            background: linear-gradient(135deg, var(--kenya-red), var(--kenya-green)) !important;
            color: white !important;
            border: none !important;
        }
        
        .video-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: none;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            height: 100%;
        }
        
        .video-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }
        
        .video-thumbnail {
            height: 200px;
            object-fit: cover;
            width: 100%;
            transition: transform 0.5s ease;
        }
        
        .video-card:hover .video-thumbnail {
            transform: scale(1.05);
        }
        
        .department-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            background: var(--kenya-red);
            color: white;
            padding: 5px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .footer {
            background: linear-gradient(90deg, var(--kenya-black) 0%, var(--kenya-red) 50%, var(--kenya-green) 100%);
            color: white;
            padding: 3rem 0 2rem;
            margin-top: 4rem;
        }
        
        .stats-card {
            text-align: center;
            padding: 1.75rem;
            border-radius: 12px;
            background: white;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            transition: transform 0.3s ease;
        }
        
        .stats-card:hover {
            transform: translateY(-5px);
        }
        
        .stats-number {
            font-size: 2.25rem;
            font-weight: 700;
            color: var(--kenya-red);
            margin-bottom: 0.5rem;
        }
        
        .stats-label {
            color: var(--gray-800);
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .feature-icon {
            font-size: 2.5rem;
            color: var(--kenya-red);
            margin-bottom: 1rem;
        }
        
        .feature-card {
            text-align: center;
            padding: 2rem 1.5rem;
            border-radius: 12px;
            background: white;
            box-shadow: 0 5px 15px rgba(0,0,0,0.06);
            transition: all 0.3s ease;
            height: 100%;
            border: 1px solid var(--gray-200);
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        
        .feature-title {
            font-weight: 600;
            color: var(--kenya-black);
            margin-bottom: 1rem;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--kenya-red), var(--kenya-green));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
        }
        
        .btn-play {
            background: linear-gradient(135deg, var(--kenya-red), var(--kenya-green));
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px 24px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-top: 15px;
        }
        
        .btn-play:hover {
            background: linear-gradient(135deg, var(--kenya-dark-red), var(--kenya-light-green));
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(222, 41, 16, 0.4);
        }
        
        .upload-area {
            border: 2px dashed var(--kenya-red);
            border-radius: 12px;
            padding: 2.5rem;
            text-align: center;
            transition: all 0.3s ease;
            background-color: rgba(222, 41, 16, 0.05);
        }
        
        .upload-area:hover, .upload-area.dragover {
            background-color: rgba(222, 41, 16, 0.1);
            border-color: var(--kenya-dark-red);
        }
        
        .upload-area i {
            font-size: 3rem;
            color: var(--kenya-red);
            margin-bottom: 1rem;
        }
        
        .upload-area h4 {
            color: var(--kenya-black);
            margin-bottom: 0.5rem;
        }
        
        .upload-area p {
            color: var(--kenya-dark-gray);
            margin-bottom: 1rem;
        }
        
        .file-list {
            margin-top: 1.5rem;
        }
        
        .file-item {
            display: flex;
            justify-content: between;
            align-items: center;
            padding: 0.75rem 1rem;
            background-color: var(--gray-100);
            border-radius: 8px;
            margin-bottom: 0.5rem;
            border-left: 3px solid var(--kenya-green);
        }
        
        .file-info {
            flex-grow: 1;
        }
        
        .file-name {
            font-weight: 500;
            color: var(--kenya-black);
        }
        
        .file-size {
            font-size: 0.85rem;
            color: var(--kenya-dark-gray);
        }
        
        .file-remove {
            color: var(--kenya-red);
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 4px;
            transition: all 0.2s ease;
        }
        
        .file-remove:hover {
            background-color: rgba(222, 41, 16, 0.1);
        }
        
        .progress-container {
            height: 24px;
            background-color: var(--gray-200);
            border-radius: 12px;
            overflow: hidden;
            margin: 1rem 0;
        }
        
        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--kenya-red), var(--kenya-green));
            text-align: center;
            line-height: 24px;
            color: white;
            font-weight: 500;
            transition: width 0.3s ease;
        }
        
        .progress-text {
            font-size: 0.9rem;
            color: var(--kenya-dark-gray);
            text-align: center;
        }
        
        .status-badge {
            font-size: 0.75rem;
            padding: 0.35rem 0.75rem;
            border-radius: 20px;
        }
        
        .login-section {
            max-width: 400px;
            margin: 2rem auto;
            padding: 2rem;
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .department-info {
            background-color: rgba(0, 102, 0, 0.1);
            border-left: 4px solid var(--kenya-green);
            padding: 0.75rem;
            border-radius: 6px;
            margin-top: 0.5rem;
        }
        
        .analytics-chart {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }
        
        .chart-container {
            position: relative;
            height: 300px;
            width: 100%;
        }
        
        @media (max-width: 768px) {
            .hero-section {
                padding: 2.5rem 0;
                border-radius: 0 0 15px 15px;
            }
            
            .playlist-controls {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .content-container {
                padding: 20px;
            }
            
            .upload-area {
                padding: 1.5rem;
            }
        }

.video-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75vw;
    height: 75vh;
    z-index: 1050;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.video-overlay .card-body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-overlay video {
    flex-grow: 1;
    max-height: calc(100% - 120px); /* Adjust based on header/footer height */
}

        body {
            background-color: #f9f9f9;
            font-family: 'Roboto', sans-serif;
        }
        
        .video-container {
            background-color: #000;
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .video-info {
            padding: 20px 0;
        }
        
        .video-title {
            font-size: 22px;
            font-weight: 500;
            margin-bottom: 10px;
            color: #333;
        }
        
        .video-meta {
            color: #666;
            font-size: 14px;
            margin-bottom: 15px;
        }
        
        .video-description {
            background-color: #f2f2f2;
            border-radius: 8px;
            padding: 16px;
            margin: 20px 0;
            font-size: 15px;
            line-height: 1.6;
        }
        
        .related-videos {
            padding-left: 20px;
        }
        
        .related-video-card {
            display: flex;
            margin-bottom: 15px;
            cursor: pointer;
            transition: transform 0.2s;
            border-radius: 6px;
            overflow: hidden;
            background: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .related-video-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .related-video-thumb {
            width: 160px;
            height: 90px;
            object-fit: cover;
            background-color: #e5e5e5;
            flex-shrink: 0;
        }
        
        .related-video-info {
            padding: 10px;
            flex-grow: 1;
        }
        
        .related-video-title {
            font-weight: 500;
            font-size: 14px;
            margin-bottom: 5px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            color: #333;
        }
        
        .related-video-uploader {
            color: #666;
            font-size: 12px;
            margin-bottom: 3px;
        }
        
        .related-video-meta {
            color: #666;
            font-size: 12px;
        }
        
        .quality-selector {
            position: absolute;
            bottom: 50px;
            right: 10px;
            background: rgba(0, 0, 0, 0.8);
            border-radius: 4px;
            padding: 10px;
            z-index: 100;
            display: none;
        }
        
        .quality-option {
            color: white;
            padding: 5px 10px;
            cursor: pointer;
            display: block;
            width: 100%;
            text-align: left;
            background: none;
            border: none;
        }
        
        .quality-option:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .quality-btn {
            position: absolute;
            bottom: 10px;
            right: 10px;
            z-index: 100;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 5px 10px;
            cursor: pointer;
        }
        
        .network-status {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            z-index: 100;
            display: none;
        }
        
        .buffering-indicator {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 10px 20px;
            border-radius: 4px;
            display: none;
            z-index: 100;
        }
        
        @media (max-width: 992px) {
            .related-videos {
                padding-left: 0;
                margin-top: 30px;
            }
            
            .related-video-card {
                flex-direction: column;
            }
            
            .related-video-thumb {
                width: 100%;
                height: auto;
                aspect-ratio: 16/9;
            }
        }
        
        /* Custom Video.js skin */
        .vjs-big-play-button {
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 68px;
            height: 68px;
            line-height: 68px;
            border: none;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        
        .vjs-control-bar {
            background: rgba(0, 0, 0, 0.7) !important;
        }
        
        .vjs-play-progress {
            background-color: #007bff !important;
        }
        
        .vjs-volume-level {
            background-color: #007bff !important;
        }
        
        .player-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
        }
        
        .player-controls button {
            background: none;
            border: none;
            color: #555;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 4px;
            transition: background-color 0.2s;
        }
        
        .player-controls button:hover {
            background-color: #f0f0f0;
            color: #007bff;
        }
        
        .player-controls button i {
            margin-right: 5px;
        }

.fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Use display to hide/show */
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.fullscreen-player.visible {
    display: flex; /* Use display to hide/show */
}

.fullscreen-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.fullscreen-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.video-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    top: 50%;
    transform: translateY(-50%);
}

.video-modal-close {
    color: #fff;
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

.reset-password-page-content .content-container {
    width: 75%;
    margin: 0 auto;
}