/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

/* Root Variables (Available Globally) */
:root {
    --primary-font: 'Open Sans', sans-serif;
    --primary-color: #007BFF;
    --secondary-color: #6c757d;
    --background-color: #f5f5f5;
    --text-color: #333;
    --light-color: #ffffff;
    --dark-color: #2c3e50;
    --border-color: #e0e0e0;
    --hover-color: #0056b3;
    --header-color: #005994;
    --footer-color: #005994;
}

/* iPad Landscape Styles: 1024x768 specifically */
@media screen and (width: 1024px) and (height: 768px) and (orientation: landscape),
       screen and (min-width: 1024px) and (max-width: 1024px) and (orientation: landscape) {
    
    /* Component Font Size Classes for iPad Landscape */
    .lesson-code-badge { font-size: 16px; }
    .lesson-bonus-badge { font-size: 14px; }
    .lesson-title { font-size: 20px; }
    .lesson-description { font-size: 16px; }
    .lesson-meta-text { font-size: 14px; }
    .unlock-title { font-size: 28px; }
    .unlock-description { font-size: 18px; }
    .unlock-button { font-size: 18px; }
    .empty-state-title { font-size: 24px; }
    .empty-state-text { font-size: 16px; }
    .lesson-viewer-title { font-size: 30px; }
    .lesson-viewer-description { font-size: 18px; }
    .lesson-viewer-tab { font-size: 16px; }
    .lesson-viewer-tab-content-title { font-size: 22px; }
    .lesson-viewer-tab-content-text { font-size: 18px; }
    .lesson-viewer-related-title { font-size: 18px; }
    .lesson-viewer-locked-title { font-size: 24px; }
    .lesson-viewer-locked-text { font-size: 18px; }
    .lesson-viewer-resource-link { font-size: 18px; }
    .stripe-emoji { font-size: 48px; }
    .stripe-safety-info { font-size: 16px; }
    .stripe-connect-button { font-size: 18px; }
    .section-heading { font-size: 22px; }
    .page-title { font-size: 28px; }
    .card-metric-label { font-size: 16px; }
    .card-metric-value { font-size: 22px; }
    .button-small { font-size: 16px; }
    .content-text { font-size: 16px; }
    .textarea-input { font-size: 16px; }
    .activity-title { font-size: 16px; }
    .activity-description { font-size: 15px; }
    .activity-amount { font-size: 16px; }
    .activity-date { font-size: 14px; }

    /* Basic Reset */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* HTML and Body for natural flow */
    html, body {
        height: auto !important; /* Allow content to grow naturally */
        overflow-x: hidden !important;
    }

    /* Body Styling */
    body {
        font-family: 'Open Sans', sans-serif;
        color: #333333;
        background-color: #f5f5f5;
        line-height: 1.6;
        font-size: 16px; /* Appropriate for iPad landscape */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important; /* Allow page to grow with content */
    }

    /* Header Styling - iPad Landscape Optimized */
    header {
        background-color: #005994 !important;
        padding: 12px 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
        width: 100% !important;
        z-index: 999999 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        min-height: 60px !important;
    }

    header .logo img {
        height: 36px !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    /* Navigation - iPad Landscape Specific */
    header nav {
        position: relative !important;
    }

    header nav ul {
        list-style: none !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 50% !important; /* Good width for iPad landscape */
        height: 100vh !important;
        background: linear-gradient(135deg, #005994 0%, #003d6b 100%) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 70px 0 20px 0 !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 10000 !important;
        backdrop-filter: blur(8px) !important;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.3) !important;
        overflow-y: auto !important;
    }

    header nav ul.active {
        right: 0 !important;
    }

    header nav ul li {
        margin: 8px 0 !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
        width: 85% !important;
        list-style: none !important;
        display: block !important;
    }

    header nav ul.active li {
        opacity: 1 !important;
        transform: translateX(0) !important;
        animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    }

    /* Animation delays */
    header nav ul.active li:nth-child(1) { animation-delay: 0.1s !important; }
    header nav ul.active li:nth-child(2) { animation-delay: 0.2s !important; }
    header nav ul.active li:nth-child(3) { animation-delay: 0.3s !important; }
    header nav ul.active li:nth-child(4) { animation-delay: 0.4s !important; }
    header nav ul.active li:nth-child(5) { animation-delay: 0.5s !important; }
    
    @keyframes slideInFromRight {
        from {
            opacity: 0 !important;
            transform: translateX(20px) !important;
        }
        to {
            opacity: 1 !important;
            transform: translateX(0) !important;
        }
    }

    /* Navigation Links - iPad Landscape */
    header nav ul li a,
    header nav ul.active li a,
    header nav ul li a:link,
    header nav ul li a:visited,
    header nav ul li a:active {
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 18px !important;
        min-height: 48px !important;
        padding: 14px 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 8px !important;
        margin: 0 16px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        list-style: none !important;
    }

    header nav ul li a:hover,
    header nav ul.active li a:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
        color: #ffffff !important;
    }

    /* Hamburger Menu - iPad Landscape */
    .hamburger {
        display: block !important;
        width: 32px !important;
        height: 24px !important;
        position: relative !important;
        cursor: pointer !important;
        background: none !important;
        border: none !important;
        z-index: 20000 !important;
        padding: 0 !important;
    }

    .hamburger span {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        height: 3px !important;
        width: 100% !important;
        background: #ffffff !important;
        border-radius: 3px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    }

    .hamburger span:nth-child(1) {
        top: 0 !important;
    }

    .hamburger span:nth-child(2) {
        top: 10px !important;
    }

    .hamburger span:nth-child(3) {
        top: 20px !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg) !important;
        background: #ffffff !important;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg) !important;
        background: #ffffff !important;
    }

    /* Dropdown System - iPad Landscape */
    header nav ul li.dropdown {
        position: relative !important;
        width: 85% !important;
    }
    
    header nav ul li.dropdown .dropbtn {
        width: 100% !important;
        justify-content: center !important;
        position: relative !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 14px 20px !important;
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 18px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        border-radius: 8px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    header nav ul li.dropdown .dropbtn .arrow {
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 16px !important;
        transition: transform 0.3s ease !important;
        pointer-events: none !important;
    }
    
    header nav ul li.dropdown.active .dropbtn .arrow {
        transform: translateY(-50%) rotate(180deg) !important;
    }

    .dropdown-content {
        max-height: 0 !important;
        overflow: hidden !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 8px !important;
        margin-top: 8px !important;
        width: 100% !important;
        backdrop-filter: blur(4px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease !important;
        padding: 0 !important;
    }
    
    .dropdown-content.show {
        max-height: 600px !important;
        padding: 12px 0 !important;
    }

    .dropdown-content a {
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        font-size: 16px !important;
        padding: 12px 16px !important;
        display: flex !important;
        border-radius: 8px !important;
        margin: 3px 8px !important;
        transition: all 0.3s ease !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        text-align: center !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
        transform: translateX(4px) !important;
        color: #ffffff !important;
    }

    /* Container and Layout - iPad Landscape */
    .container {
        width: 100%;
        margin: 0 auto;
        padding: 20px; /* Natural padding without fixed header/footer */
    }

    .lesson-container {
        padding: 0 !important;
    }

    /* Content adjustments for iPad landscape */
    .main-content {
        flex: 1;
        padding: 20px;
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    /* Video player adjustments */
    #video-player-wrap {
        padding-top: 16px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    #video-player,
    #video-thumbnail {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin: 0 auto;
        padding-bottom: 16px;
        display: block;
        object-fit: contain;
    }

    /* Grid layouts for iPad landscape */
    .premium-video-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 20px !important;
        width: 100% !important;
        margin-top: 20px !important;
    }

    /* Typography fixes */
    h1 { font-size: 28px !important; }
    h2 { font-size: 24px !important; }
    h3 { font-size: 20px !important; }
    h4 { font-size: 18px !important; }
    
    p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 16px !important;
    }

    /* Button styles */
    button, input[type="submit"] {
        background-color: #007BFF;
        border: none;
        padding: 12px 20px;
        color: #ffffff;
        font-size: 16px;
        border-radius: 4px;
        cursor: pointer;
    }

    button:hover, input[type="submit"]:hover {
        background-color: #0056b3;
    }

    /* CORE LESSONS PAGE STYLING - iPad Landscape */
    .core-lessons-container,
    .supplemental-lessons-container {
        width: 95% !important;
        max-width: none !important;
        margin: 0 auto 0 auto !important;
        padding: 20px !important; /* Natural padding */
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        min-height: auto !important; /* Allow content to grow naturally */
        flex: 1 !important; /* Take up available space */
    }

    /* Hero Section - iPad Landscape */
    .video-platform-hero {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        border-radius: 12px !important;
        padding: 40px 30px !important;
        margin-bottom: 30px !important;
        color: white !important;
        text-align: center !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    }

    .supplemental-hero {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    }
    
    .video-platform-hero h1 {
        color: #ffffff !important;
        font-size: 32px !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
        margin: 0 0 16px 0 !important;
        font-weight: 700 !important;
    }
    
    .video-platform-hero p {
        color: #ffffff !important;
        font-size: 18px !important;
        opacity: 0.95 !important;
        font-weight: 400 !important;
        max-width: 100% !important;
        margin: 0 !important;
        line-height: 1.5 !important;
    }

    /* Lesson Cards Grid - iPad Landscape */
    .premium-video-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 24px !important;
        width: 100% !important;
        margin-top: 30px !important;
    }

    /* Individual Lesson Cards */
    .premium-lesson-card {
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        overflow: hidden !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
        position: relative !important;
    }

    .premium-lesson-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
        border-color: rgba(0, 123, 255, 0.2) !important;
    }

    .premium-lesson-card .lesson-link {
        text-decoration: none !important;
        color: inherit !important;
        display: block !important;
    }

    /* Thumbnail Container */
    .lesson-thumbnail-container {
        position: relative !important;
        width: 100% !important;
        padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
        background: #000 !important;
        overflow: hidden !important;
    }
    
    .lesson-thumbnail {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: transform 0.3s ease !important;
    }

    .premium-lesson-card:hover .lesson-thumbnail {
        transform: scale(1.05) !important;
    }
    
    .lesson-placeholder {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .lesson-placeholder svg {
        width: 48px !important;
        height: 48px !important;
        opacity: 0.8 !important;
    }

    /* Play Overlay */
    .play-overlay {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 48px !important;
        height: 48px !important;
        background: rgba(0,0,0,0.7) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        opacity: 0.9 !important;
    }

    .premium-lesson-card:hover .play-overlay {
        opacity: 1 !important;
        transform: translate(-50%, -50%) scale(1.1) !important;
        background: rgba(0,0,0,0.8) !important;
    }

    .play-overlay svg {
        width: 20px !important;
        height: 20px !important;
        margin-left: 2px !important; /* Center play triangle */
    }
    
    /* Lesson Badges */
    .lesson-code-badge {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        background: rgba(0,0,0,0.8) !important;
        color: white !important;
        padding: 6px 10px !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        z-index: 10 !important;
    }
    
    .lesson-bonus-badge {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        color: white !important;
        padding: 6px 10px !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        z-index: 10 !important;
    }
    
    .supplemental-badge {
        background: linear-gradient(135deg, #28a745, #20c997) !important;
    }

    /* Lesson Details Section */
    .lesson-details {
        padding: 20px !important;
    }

    .lesson-title {
        font-size: 18px !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin: 0 0 12px 0 !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .lesson-description {
        font-size: 16px !important;
        color: #666 !important;
        line-height: 1.5 !important;
        margin: 0 0 16px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Meta Information */
    .lesson-meta {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 16px !important;
    }

    .lesson-meta-text {
        font-size: 12px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .lesson-meta-text.core {
        color: #007BFF !important;
    }

    .lesson-meta-text.supplemental {
        color: #28a745 !important;
    }

    .lesson-meta-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .lesson-meta-actions svg {
        width: 16px !important;
        height: 16px !important;
    }

    .lesson-meta-text.watch {
        color: #666 !important;
    }

    /* Empty State */
    .empty-state {
        text-align: center !important;
        padding: 60px 20px !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        margin-top: 30px !important;
    }

    .empty-state svg {
        width: 64px !important;
        height: 64px !important;
        margin-bottom: 20px !important;
        opacity: 0.5 !important;
    }

    .empty-state-title {
        font-size: 24px !important;
        color: #333 !important;
        margin: 0 0 12px 0 !important;
    }

    .empty-state-text {
        font-size: 16px !important;
        color: #666 !important;
        margin: 0 !important;
    }

    /* Override vw-based SVG sizes that break layout */
    .play-overlay svg[width*="vw"],
    .lesson-meta-actions svg[width*="vw"] {
        width: 16px !important;
        height: 16px !important;
    }

    .play-overlay svg[width*="1.56vw"] {
        width: 20px !important;
        height: 20px !important;
    }

    .lesson-meta-actions svg[width*="0.83vw"] {
        width: 16px !important;
        height: 16px !important;
    }

    /* Component Container Base */
    .component-container {
        width: 100% !important;
        margin: 0 auto !important;
    }

    .component-full-height {
        min-height: auto !important; /* Allow content to grow naturally */
    }

    /* COMMISSION REPORT PAGE STYLING - iPad Landscape */
    .commission-report-container,
    .kss-container {
        width: 95% !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 20px !important; /* Natural padding */
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        min-height: auto !important; /* Allow content to grow naturally */
    }

    /* Commission Report Card */
    .commission-report-card,
    .kss-card {
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
        overflow: hidden !important;
        margin-bottom: 24px !important;
    }

    /* Card Header */
    .commission-report-header,
    .kss-card-header {
        background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%) !important;
        padding: 24px 30px !important;
        border-bottom: none !important;
    }

    .commission-report-title,
    .kss-card-title {
        color: #ffffff !important;
        font-size: 24px !important;
        font-weight: 600 !important;
        margin: 0 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    }

    /* Admin Alert */
    .commission-admin-alert {
        background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
        border: 1px solid #ffc107 !important;
        border-radius: 8px !important;
        padding: 20px !important;
        margin: 20px 30px !important;
    }

    .commission-admin-alert-heading {
        color: #856404 !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        margin: 0 0 12px 0 !important;
    }

    .commission-admin-alert-text {
        color: #856404 !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin: 0 !important;
    }

    /* Card Content */
    .commission-report-content,
    .kss-card-content {
        padding: 30px !important;
    }

    /* Form Grid */
    .commission-form-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
        margin-bottom: 30px !important;
    }

    /* Form Sections */
    .commission-form-section,
    .kss-form-section {
        background: #f8f9fa !important;
        border-radius: 8px !important;
        padding: 24px !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
    }

    .commission-form-section-heading {
        color: #333 !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        margin: 0 0 20px 0 !important;
        padding-bottom: 12px !important;
        border-bottom: 2px solid #007BFF !important;
    }

    /* Form Elements */
    .commission-form-group,
    .kss-form-group {
        margin-bottom: 20px !important;
    }

    .commission-form-label,
    .kss-form-label {
        display: block !important;
        font-weight: 600 !important;
        color: #333 !important;
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .commission-form-input,
    .commission-form-select,
    .kss-form-input,
    .kss-form-select {
        width: 100% !important;
        padding: 12px 16px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 6px !important;
        font-size: 16px !important;
        background: #ffffff !important;
        transition: all 0.3s ease !important;
    }

    .commission-form-input:focus,
    .commission-form-select:focus,
    .kss-form-input:focus,
    .kss-form-select:focus {
        outline: none !important;
        border-color: #007BFF !important;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
    }

    /* Form Buttons */
    .commission-form-submit,
    .kss-btn {
        padding: 12px 24px !important;
        border: none !important;
        border-radius: 6px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        min-height: 48px !important;
        text-decoration: none !important;
        display: inline-block !important;
        text-align: center !important;
    }

    .kss-btn-primary {
        background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%) !important;
        color: #ffffff !important;
    }

    .kss-btn-primary:hover {
        background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
    }

    .kss-btn-secondary {
        background: linear-gradient(135deg, #6c757d 0%, #545b62 100%) !important;
        color: #ffffff !important;
    }

    .kss-btn-secondary:hover {
        background: linear-gradient(135deg, #545b62 0%, #495057 100%) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3) !important;
    }

    /* Info Box */
    .commission-info-box {
        background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%) !important;
        border: 1px solid #17a2b8 !important;
        border-radius: 8px !important;
        padding: 16px 20px !important;
        margin-bottom: 24px !important;
    }

    .commission-info-text {
        color: #0c5460 !important;
        font-size: 16px !important;
        margin: 0 !important;
        font-weight: 500 !important;
    }

    /* Empty State */
    .commission-empty-state {
        text-align: center !important;
        padding: 60px 20px !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        border: 2px dashed #dee2e6 !important;
    }

    .commission-empty-text {
        color: #6c757d !important;
        font-size: 18px !important;
        margin: 0 !important;
        font-weight: 500 !important;
    }

    /* Table Container */
    .commission-table-container,
    .kss-table-container {
        background: #ffffff !important;
        border-radius: 8px !important;
        border: 1px solid #e0e0e0 !important;
        overflow: hidden !important;
        margin-bottom: 24px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    }

    /* Table Styling */
    .commission-table,
    .kss-table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 14px !important;
        background: #ffffff !important;
    }

    /* Table Header */
    .commission-table-head {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    }

    .commission-table-header,
    .commission-table-header-last {
        padding: 16px 12px !important;
        font-weight: 600 !important;
        color: #333 !important;
        text-align: left !important;
        border-bottom: 2px solid #007BFF !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    /* Table Rows */
    .commission-table-row {
        transition: background-color 0.2s ease !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .commission-table-row:hover {
        background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%) !important;
    }

    .commission-table-row:nth-child(even) {
        background: rgba(248, 249, 250, 0.5) !important;
    }

    .commission-table-row:nth-child(even):hover {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    }

    /* Table Cells */
    .commission-table-cell {
        padding: 14px 12px !important;
        font-size: 14px !important;
        color: #333 !important;
        vertical-align: middle !important;
        border-right: 1px solid #f0f0f0 !important;
    }

    .commission-table-cell-mono {
        padding: 14px 12px !important;
        font-size: 13px !important;
        color: #495057 !important;
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
        background: rgba(248, 249, 250, 0.8) !important;
        border-right: 1px solid #f0f0f0 !important;
    }

    .commission-table-cell-bold {
        padding: 14px 12px !important;
        font-size: 14px !important;
        color: #333 !important;
        font-weight: 600 !important;
        border-right: 1px solid #f0f0f0 !important;
    }

    .commission-table-cell-success {
        padding: 14px 12px !important;
        font-size: 14px !important;
        color: #155724 !important;
        font-weight: 600 !important;
        background: rgba(212, 237, 218, 0.3) !important;
    }

    /* Table Footer */
    .commission-table-footer {
        background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%) !important;
    }

    .commission-table-footer-cell {
        padding: 16px 12px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        text-align: right !important;
        font-size: 16px !important;
        border-right: 1px solid rgba(255,255,255,0.2) !important;
    }

    .commission-table-footer-total {
        padding: 16px 12px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        font-size: 18px !important;
        background: rgba(255,255,255,0.1) !important;
    }

    /* Button Container */
    .commission-button-container {
        display: flex !important;
        gap: 16px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        margin-top: 24px !important;
    }

    /* Responsive Table for iPad Landscape */
    @media screen and (width: 1024px) and (height: 768px) and (orientation: landscape) {
        .commission-table {
            font-size: 13px !important;
        }
        
        .commission-table-header,
        .commission-table-header-last,
        .commission-table-cell,
        .commission-table-cell-mono,
        .commission-table-cell-bold,
        .commission-table-cell-success {
            padding: 12px 8px !important;
        }
        
        .commission-form-grid {
            grid-template-columns: 1fr !important;
            gap: 20px !important;
        }
        
        .kss-container {
            padding: 16px !important; /* Natural padding for iPad landscape */
        }
    }

    /* Override problematic vw units in embedded styles */
    .kss-btn {
        min-width: auto !important;
        font-size: 16px !important;
    }

    .kss-table {
        font-size: 14px !important;
    }

    .kss-container {
        width: 95% !important;
        padding: 20px !important; /* Natural padding */
    }

    /* LESSON MANAGER & ADMIN PAGES STYLING - iPad Landscape */
    
    /* Admin Filter Forms */
    .admin-filter-form {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        margin-bottom: 20px !important;
        padding: 20px !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
    }

    .admin-filter-label {
        font-weight: 600 !important;
        color: #333 !important;
        font-size: 16px !important;
        white-space: nowrap !important;
    }

    .admin-filter-select,
    .kss-select {
        padding: 10px 12px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 6px !important;
        font-size: 16px !important;
        background: #ffffff !important;
        min-width: 200px !important;
        transition: all 0.3s ease !important;
    }

    .admin-filter-select:focus,
    .kss-select:focus {
        outline: none !important;
        border-color: #007BFF !important;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
    }

    /* Admin Button Groups */
    .admin-button-group,
    .btn-group-horizontal {
        display: flex !important;
        gap: 12px !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    .admin-button-group-vertical,
    .btn-group-vertical {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Search Forms */
    .admin-search-form {
        display: flex !important;
        gap: 12px !important;
        align-items: center !important;
        margin-bottom: 20px !important;
        padding: 16px 20px !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
    }

    .admin-search-input {
        flex: 1 !important;
        padding: 12px 16px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 6px !important;
        font-size: 16px !important;
        background: #ffffff !important;
        transition: all 0.3s ease !important;
    }

    .admin-search-input:focus {
        outline: none !important;
        border-color: #007BFF !important;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
    }

    /* Table Sorting Links */
    .admin-sort-link {
        color: #333 !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        transition: color 0.3s ease !important;
    }

    .admin-sort-link:hover {
        color: #007BFF !important;
    }

    .admin-sort-arrow {
        font-size: 12px !important;
        color: #007BFF !important;
    }

    /* Action Cells */
    .kss-action-cell {
        white-space: nowrap !important;
        text-align: center !important;
        min-width: 200px !important;
    }

    /* Button Styling */
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-warning,
    .btn-danger {
        padding: 10px 16px !important;
        border: none !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        text-decoration: none !important;
        display: inline-block !important;
        text-align: center !important;
        min-height: 40px !important;
        line-height: 1.2 !important;
    }

    .btn-sm {
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-height: 36px !important;
    }

    .btn-full-width {
        width: 100% !important;
    }

    .btn-primary {
        background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%) !important;
        color: #ffffff !important;
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3) !important;
    }

    .btn-secondary {
        background: linear-gradient(135deg, #6c757d 0%, #545b62 100%) !important;
        color: #ffffff !important;
    }

    .btn-secondary:hover {
        background: linear-gradient(135deg, #545b62 0%, #495057 100%) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 8px rgba(108, 117, 125, 0.3) !important;
    }

    .btn-success {
        background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
        color: #ffffff !important;
    }

    .btn-success:hover {
        background: linear-gradient(135deg, #1e7e34 0%, #155724 100%) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3) !important;
    }

    .btn-warning {
        background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
        color: #212529 !important;
    }

    .btn-warning:hover {
        background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 8px rgba(255, 193, 7, 0.3) !important;
    }

    .btn-danger {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
        color: #ffffff !important;
    }

    .btn-danger:hover {
        background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3) !important;
    }

    /* MANAGE SUBSCRIPTIONS SPECIFIC STYLING */

    /* Subscription Inputs */
    .subscription-input {
        width: 100% !important;
        padding: 8px 10px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 4px !important;
        font-size: 14px !important;
        background: #ffffff !important;
        margin-bottom: 8px !important;
        transition: all 0.3s ease !important;
    }

    .subscription-input:focus {
        outline: none !important;
        border-color: #007BFF !important;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15) !important;
    }

    /* Subscription Reason Container */
    .subscription-reason-container {
        margin: 8px 0 !important;
    }

    .subscription-reason-label {
        display: block !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin-bottom: 4px !important;
    }

    .subscription-reason-input {
        width: 100% !important;
        padding: 8px 10px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 4px !important;
        font-size: 13px !important;
        background: #ffffff !important;
    }

    /* Complimentary Status */
    .admin-complimentary-status {
        color: #28a745 !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        background: rgba(40, 167, 69, 0.1) !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
        display: inline-block !important;
    }

    /* Pagination */
    .admin-pagination-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 16px !important;
        margin-top: 24px !important;
        padding: 20px !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
    }

    .admin-pagination-text {
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #333 !important;
    }

    /* Search Results */
    .admin-search-results {
        max-height: 300px !important;
        overflow-y: auto !important;
        margin-top: 12px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 4px !important;
        background: #ffffff !important;
    }

    /* Modal Overlay */
    .kss-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0,0,0,0.5) !important;
        display: none !important;
        z-index: 10000 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .kss-modal-overlay.show {
        display: flex !important;
    }

    /* Modal */
    .kss-modal {
        background: #ffffff !important;
        border-radius: 12px !important;
        width: 90% !important;
        max-width: 500px !important;
        max-height: 80% !important;
        overflow: hidden !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
        animation: modalSlideUp 0.3s ease !important;
    }

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

    /* Modal Header */
    .kss-modal-header {
        padding: 20px 24px !important;
        border-bottom: 1px solid #e0e0e0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #f8f9fa !important;
    }

    .kss-modal-header h3 {
        margin: 0 !important;
        font-size: 20px !important;
        font-weight: 600 !important;
        color: #333 !important;
    }

    .kss-modal-close {
        background: none !important;
        border: none !important;
        font-size: 24px !important;
        cursor: pointer !important;
        color: #6c757d !important;
        padding: 0 !important;
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
    }

    .kss-modal-close:hover {
        background: rgba(108, 117, 125, 0.1) !important;
        color: #333 !important;
    }

    /* Modal Body */
    .kss-modal-body {
        padding: 24px !important;
        overflow-y: auto !important;
        max-height: 400px !important;
    }

    /* Table Responsive Adjustments for iPad Landscape */
    @media screen and (width: 1024px) and (height: 768px) and (orientation: landscape) {
        .kss-table {
            font-size: 13px !important;
        }
        
        .kss-table th,
        .kss-table td {
            padding: 10px 8px !important;
        }
        
        .admin-filter-form {
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 12px !important;
        }
        
        .admin-search-form {
            flex-direction: column !important;
            align-items: stretch !important;
            gap: 12px !important;
        }
        
        .btn-group-horizontal {
            flex-direction: column !important;
            width: 100% !important;
        }
        
        .subscription-input {
            font-size: 13px !important;
            padding: 6px 8px !important;
        }
        
        .btn-sm {
            padding: 6px 10px !important;
            font-size: 12px !important;
            min-height: 32px !important;
        }
    }

    /* Override KSS Input Styling */
    .kss-input {
        padding: 12px 16px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 6px !important;
        font-size: 16px !important;
        background: #ffffff !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
    }

    .kss-input:focus {
        outline: none !important;
        border-color: #007BFF !important;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
    }

    /* Footer for iPad landscape */
    footer {
        background-color: #005994 !important;
        padding: 16px !important;
        text-align: center !important;
        font-size: 16px !important;
        color: #ffffff !important;
        position: static !important;
        width: 100% !important;
        min-height: 60px !important;
        margin-top: 20px !important;
        clear: both !important;
        flex-shrink: 0 !important;
    }
}

/* Larger Tablet Landscape Styles: 1025px+ Landscape */
@media screen and (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
    /* Component Font Size Classes for Tablet Landscape */
    .lesson-code-badge { font-size: 18px; } /* Clear on larger tablet screen */
    .lesson-bonus-badge { font-size: 16px; } /* Proportional badge size */
    .lesson-title { font-size: 24px; } /* Prominent title */
    .lesson-description { font-size: 18px; } /* Comfortable reading */
    .lesson-meta-text { font-size: 16px; } /* Clear meta info */
    .unlock-title { font-size: 36px; } /* Large attention-grabbing */
    .unlock-description { font-size: 20px; } /* Standard paragraph */
    .unlock-button { font-size: 20px; } /* Touchable button */
    .empty-state-title { font-size: 30px; } /* Clear empty state title */
    .empty-state-text { font-size: 19px; } /* Clear empty state text */
    .lesson-viewer-title { font-size: 38px; } /* Large lesson title */
    .lesson-viewer-description { font-size: 20px; } /* Readable description */
    .lesson-viewer-tab { font-size: 18px; } /* Tab label */
    .lesson-viewer-tab-content-title { font-size: 28px; } /* Tab content title */
    .lesson-viewer-tab-content-text { font-size: 20px; } /* Tab content text */
    .lesson-viewer-related-title { font-size: 22px; } /* Related item title */
    .lesson-viewer-locked-title { font-size: 30px; } /* Locked message title */
    .lesson-viewer-locked-text { font-size: 20px; } /* Locked message text */
    .lesson-viewer-resource-link { font-size: 20px; } /* Resource links */
    .stripe-emoji { font-size: 60px; } /* Large emoji for large tablet */
    .stripe-safety-info { font-size: 18px; } /* Safety info text */
    .stripe-connect-button { font-size: 20px; } /* Connect button */
    .section-heading { font-size: 26px; } /* Section headings */
    .page-title { font-size: 34px; } /* Page titles */
    .card-metric-label { font-size: 18px; } /* Card metric labels */
    .card-metric-value { font-size: 28px; } /* Card metric values */
    .button-small { font-size: 18px; } /* Small buttons */
    .content-text { font-size: 18px; } /* Content text */
    .textarea-input { font-size: 18px; } /* Textarea inputs */
    .activity-title { font-size: 18px; } /* Activity titles */
    .activity-description { font-size: 17px; } /* Activity descriptions */
    .activity-amount { font-size: 18px; } /* Activity amounts */
    .activity-date { font-size: 16px; } /* Activity dates */

    /* Basic Reset */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Body Styling with Hard-coded Colors */
    body {
        font-family: 'Open Sans', sans-serif;
        color: #333333;
        background-color: #f5f5f5;
        line-height: 1.6;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    /* Header Styling - Fixed for iPad Pro/Large Tablets */
    header {
        background-color: #005994 !important;
        padding: 1.0vw 2.4vw !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 999999 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    }

    header .logo img {
        height: 4vw !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    /* Navigation Styling - Modern Large Tablet Navigation */
    header nav {
        position: relative !important;
    }

    header nav ul {
        list-style: none !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 45% !important; /* Wider for landscape tablets */
        height: 100vh !important;
        background: linear-gradient(135deg, #005994 0%, #003d6b 100%) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* Start from top like iPhone */
        align-items: center !important;
        margin: 0 !important;
        padding: 70px 0 20px 0 !important; /* Top padding for header clearance */
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 10000 !important;
        backdrop-filter: blur(8px) !important;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.3) !important;
        overflow-y: auto !important; /* Allow scrolling if needed */
    }

    header nav ul.active {
        right: 0 !important;
    }

    header nav ul li {
        margin: 10px 0 !important; /* Comfortable spacing for large screens */
        opacity: 1 !important; /* Start visible for tablets */
        transform: translateX(0) !important; /* No initial offset */
        width: 80% !important; /* Consistent width */
        list-style: none !important;
        display: block !important;
    }

    /* Force menu items to be visible and properly styled */
    header nav ul.active li {
        opacity: 1 !important;
        transform: translateX(0) !important;
        animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    }

    /* Animation delays for staggered effect */
    header nav ul.active li:nth-child(1) { animation-delay: 0.1s !important; }
    header nav ul.active li:nth-child(2) { animation-delay: 0.2s !important; }
    header nav ul.active li:nth-child(3) { animation-delay: 0.3s !important; }
    header nav ul.active li:nth-child(4) { animation-delay: 0.4s !important; }
    header nav ul.active li:nth-child(5) { animation-delay: 0.5s !important; }
    
    @keyframes slideInFromRight {
        from {
            opacity: 0 !important;
            transform: translateX(20px) !important;
        }
        to {
            opacity: 1 !important;
            transform: translateX(0) !important;
        }
    }

    /* CRITICAL: Force white text color on all navigation links */
    header nav ul li a,
    header nav ul.active li a,
    header nav ul li a:link,
    header nav ul li a:visited,
    header nav ul li a:active {
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 20px !important; /* Larger text for landscape tablets */
        min-height: 50px !important; /* Touch-friendly */
        padding: 18px 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 10px !important;
        margin: 0 20px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        list-style: none !important;
    }

    header nav ul li a:hover,
    header nav ul.active li a:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
        color: #ffffff !important;
    }

    /* Force override any inherited styles */
    @media screen and (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
        header nav ul li a {
            color: #ffffff !important;
        }
        
        header nav ul li {
            color: #ffffff !important;
        }
        
        header nav ul li a:hover {
            color: #ffffff !important;
        }
    }

    /* Hamburger Menu Icon - Large Tablet Optimized */
    .hamburger {
        display: block !important;
        width: 3.2vw !important;
        height: 2.4vw !important;
        position: relative !important;
        cursor: pointer !important;
        background: none !important;
        border: none !important;
        z-index: 20000 !important;
        padding: 0 !important;
    }

    .hamburger span {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        height: 0.32vw !important;
        width: 100% !important;
        background: #ffffff !important;
        border-radius: 0.32vw !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    }

    .hamburger span:nth-child(1) {
        top: 0 !important;
    }

    .hamburger span:nth-child(2) {
        top: 1.04vw !important;
    }

    .hamburger span:nth-child(3) {
        top: 2.08vw !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(1.04vw) rotate(45deg) !important;
        background: #ffffff !important;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-1.04vw) rotate(-45deg) !important;
        background: #ffffff !important;
    }

    /* Dropdown Menu System - Modern Large Tablet Navigation */
    header nav ul li.dropdown {
        position: relative !important;
        width: 80% !important;
    }
    
    header nav ul li.dropdown .dropbtn {
        width: 100% !important;
        justify-content: center !important;
        position: relative !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 18px 28px !important;
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 20px !important;
        min-height: 50px !important;
        display: flex !important;
        align-items: center !important;
        border-radius: 10px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    header nav ul li.dropdown .dropbtn .arrow {
        position: absolute !important;
        right: 24px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 18px !important;
        transition: transform 0.3s ease !important;
        pointer-events: none !important;
    }
    
    header nav ul li.dropdown.active .dropbtn .arrow {
        transform: translateY(-50%) rotate(180deg) !important;
    }

    .dropdown-content {
        max-height: 0 !important;
        overflow: hidden !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 10px !important;
        margin-top: 10px !important;
        width: 100% !important;
        backdrop-filter: blur(4px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease !important;
        padding: 0 !important;
    }
    
    .dropdown-content.show {
        max-height: 800px !important; /* Plenty of space for all items */
        padding: 16px 0 !important;
    }

    .dropdown-content a {
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        font-size: 18px !important;
        padding: 16px 20px !important;
        display: flex !important;
        border-radius: 10px !important;
        margin: 4px 12px !important;
        transition: all 0.3s ease !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        text-align: center !important;
        min-height: 48px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
        transform: translateX(4px) !important;
        color: #ffffff !important;
    }

    /* Container Styling */
    .container {
        width: 100%;
        margin: 0 auto;
        padding: 7.28vw 2.27vw 9.1vw 2.27vw;
    }

    .lesson-container {
        padding: 6.37vw 0 0 0 !important;
    }

    /* Content Wrapper */
    .content-wrapper {
        display: flex;
        flex-direction: column;
    }

    /* Sidebar Styling */
    .sidebar {
        width: 100%;
        background-color: #2c3e50;
        padding: 1.82vw 0;
        position: relative;
        height: auto;
    }

    .sidebar ul {
        list-style: none;
    }

    .sidebar ul li {
        margin-bottom: 0.91vw;
    }

    .sidebar ul li a {
        display: block;
        padding: 1.36vw 2.27vw;
        color: #ffffff;
        text-decoration: none;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        transition: background-color 0.3s ease;
    }

    .sidebar ul li a:hover {
        background-color: #34495e;
    }

    .sidebar ul li a.active {
        background-color: #1abc9c;
    }

    /* Main Content Styling */
    .main-content {
        flex: 1;
        padding: 3.18vw;
        background-color: #ffffff;
        border-radius: 0.73vw;
        box-shadow: 0 0.18vw 0.45vw rgba(0,0,0,0.1);
    }

    .main-content-video {
        flex: 1;
        background-color: #000000;
        padding: 2.27vw;
    }

    .main-content-video h2 {
        width: 100%;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        color: #FFFFFF;
        margin: 1.36vw auto;
        text-align: center;
    }

    /* Video Player */
    #video-player-wrap {
        padding-top: 1.82vw;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    #video-player,
    #video-thumbnail {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin: 0 auto;
        padding-bottom: 1.82vw;
        display: block;
        object-fit: contain;
    }

    .thumbnail-container {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        cursor: pointer;
        overflow: hidden;
    }

    .thumbnail {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .play-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 8vw;
        height: auto;
        pointer-events: none;
        object-fit: contain;
    }

    .video-description {
        width: 100%;
        padding: 1.36vw 1.82vw;
        color: #FFFFFF;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        text-align: center;
    }

    /* Tabs Styling */
    #moreinfo-tabs {
        padding: 1.82vw;
        background-color: #606060;
        border-radius: 0.73vw;
        margin-top: 2.27vw;
    }

    .tabs {
        width: 100%;
        background-color: #f1f1f1;
        margin: 0;
        border-radius: 0.73vw 0.73vw 0 0;
        overflow-x: auto;
        white-space: nowrap;
        text-align: center;
    }

    .tabs .tablink {
        padding: 1.09vw 2.27vw;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        font-weight: 600;
        color: #333333;
        display: inline-block;
        border: none;
        background: none;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .tabs .tablink:hover {
        background-color: #ddd;
    }

    .tabs .tablink.active {
        background-color: #ffffff;
        border-bottom: 0.27vw solid #007BFF;
    }

    .tabcontent {
        width: 100%;
        padding: 2.27vw;
        background-color: #6b6b6b;
        border-radius: 0 0 0.73vw 0.73vw;
        display: none;
        color: #ffffff;
    }

    .tabcontent.active {
        display: block;
    }

    .tabcontent h3 {
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        margin-bottom: 1.36vw;
        color: #ffffff;
    }

    .tabcontent p {
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        margin-bottom: 1.36vw;
    }

    /* Lesson Grid and Tiles (Supplemental Lessons) */
    .lesson-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(27.3vw, 1fr));
        gap: 2.27vw;
        margin-top: 2.27vw;
    }

    .lesson-tile {
        background-color: #ffffff;
        border-radius: 0.73vw;
        box-shadow: 0 0.18vw 0.45vw rgba(0,0,0,0.1);
        width: 100%;
        overflow: hidden;
    }

    .lesson-tile img {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .lesson-title {
        padding: 1.82vw;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        color: #2c3e50;
    }

    .lesson-progress {
        padding: 0 1.82vw 1.82vw;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        color: #6c757d;
    }

    /* Related Info and Additional Resources */
    .related-item,
    .resource-item {
        background-color: #ffffff;
        border-radius: 0.73vw;
        padding: 2.27vw;
        margin-bottom: 1.82vw;
        border: 0.09vw solid #e0e0e0;
        box-shadow: 0 0.18vw 0.45vw rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .related-item h4,
    .resource-item h4 {
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        color: #2c3e50;
        margin-bottom: 1.36vw;
    }

    .related-item p,
    .resource-item p {
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        color: #333333;
        margin-bottom: 1.36vw;
    }

    .related-item a,
    .resource-item a {
        color: #007BFF;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        padding: 0.91vw 1.82vw;
        display: inline-block;
        text-decoration: none;
    }

    .related-item a:hover,
    .resource-item a:hover {
        color: #0056b3;
        text-decoration: underline;
    }

    /* Embedded Video in Related Info */
    .embedded-video-container {
        width: 100%;
        max-width: 100%;
        margin-bottom: 2.27vw;
        overflow: hidden;
    }

    .embedded-video-container video,
    .embedded-video-container iframe {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: contain;
        border: none;
    }

    .embedded-video-container div[id^="thumbnail-videoitem-"] {
        width: 100%;
        max-width: 100%;
        height: 0;
        padding-bottom: 56.25%;
        background-size: cover;
        background-position: center;
        position: relative;
        cursor: pointer;
        overflow: hidden;
    }

    .other_video_thumbnail {
        width: 8vw;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 100%;
        object-fit: contain;
    }

    /* Webinar Grid and Tiles */
    .webinar-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(27.3vw, 1fr));
        gap: 2.27vw;
        margin-top: 2.27vw;
    }

    .webinar-tile {
        background-color: #ffffff;
        border-radius: 0.73vw;
        overflow: hidden;
        box-shadow: 0 0.18vw 0.45vw rgba(0,0,0,0.1);
        width: 100%;
        transition: transform 0.3s ease;
    }

    .webinar-tile:hover {
        transform: scale(1.03);
    }

    .webinar-tile img {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .webinar-tile h4 {
        padding: 1.82vw;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        color: #333333;
    }

    /* Form Grid Layout */
    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.27vw;
        margin-top: 2.27vw;
    }

    .form-column {
        background: #f9f9f9;
        padding: 2.27vw;
        border-radius: 0.73vw;
        box-shadow: 0 0.18vw 0.45vw rgba(0,0,0,0.1);
    }

    .form-column hr {
        border: none;
        height: 0.09vw;
        background-color: #ccc;
        margin: 2.27vw 0;
    }

    .form-column label {
        display: block;
        font-weight: bold;
        margin-bottom: 0.73vw;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
    }

    .form-column input[type="text"],
    .form-column input[type="email"],
    .form-column input[type="password"],
    .form-column textarea,
    .form-column select {
        width: 100%;
        padding: 1.27vw;
        border: 0.09vw solid #ccc;
        border-radius: 0.36vw;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        background: #fff;
    }

    .form-column textarea {
        min-height: 10.92vw;
        resize: vertical;
    }

    .role-options {
        display: flex;
        flex-wrap: wrap;
        gap: 1.36vw;
        margin-bottom: 1.82vw;
    }

    .role-options label {
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        font-weight: normal;
        cursor: pointer;
    }

    .account-details {
        background: #fff;
        padding: 1.82vw;
        border-radius: 0.73vw;
        border: 0.09vw solid #ddd;
        margin-top: 1.82vw;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
    }

    .account-details p {
        margin: 0.73vw 0;
    }

    /* Login Form */
    #login-form-main {
        width: 50%;
        padding: 3.18vw;
        margin: 2.73vw auto;
        border-radius: 0.73vw;
        background-color: #ffffff;
        box-shadow: 0 0.18vw 0.45vw rgba(0,0,0,0.1);
    }

    .login-heading {
        text-align: center;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        margin-bottom: 2.27vw;
    }

    /* Success and Error Messages */
    .success-message,
    .error-message {
        padding: 1.36vw 2.27vw;
        margin-bottom: 2.27vw;
        border-radius: 0.73vw;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
    }

    .success-message {
        background-color: #d4edda;
        color: #155724;
    }

    .error-message {
        background-color: #f8d7da;
        color: #721c24;
    }

    /* Footer Styling - Block element for all screens */
    footer {
        background-color: #005994;
        padding: 20px;
        text-align: center;
        font-size: 18px;
        color: #ffffff;
        position: static;
        width: 100%;
        margin-top: 20px;
        clear: both;
        flex-shrink: 0;
    }

    /* Typography */
    h1, h2, h3, h4, h5, h6 {
        color: #2c3e50;
        margin-bottom: 1.82vw;
    }

    h1 { font-size: 28px; /* WCAG compliant - was dangerous 1.8vw */ }
    h2 { font-size: 26px; /* WCAG compliant - was dangerous 1.8vw */ }
    h3 { font-size: 24px; /* WCAG compliant - was dangerous 1.8vw */ }
    h4 { font-size: 22px; /* WCAG compliant - was dangerous 1.8vw */ }

    p {
        margin-bottom: 1.36vw;
    }

    /* Links */
    a {
        color: #007BFF;
        text-decoration: none;
    }

    a:hover {
        color: #0056b3;
    }

    /* Buttons */
    button, input[type="submit"] {
        background-color: #007BFF;
        border: none;
        padding: 1.27vw 2.73vw;
        color: #ffffff;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        border-radius: 0.36vw;
        cursor: pointer;
    }

    button:hover, input[type="submit"]:hover {
        background-color: #0056b3;
    }

    button:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
    }

    .subaction_button {
        background: linear-gradient(to bottom, #33bdef 5%, #019ad2 100%);
        border: 0.09vw solid #057fd0;
        color: #ffffff;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        font-weight: bold;
        padding: 1.09vw 2.73vw;
        margin: 0.45vw 0;
        border-radius: 0.36vw;
        text-decoration: none;
        display: inline-block;
    }

    .subaction_button:hover {
        background: linear-gradient(to bottom, #019ad2 5%, #33bdef 100%);
    }

    /* Enhanced Button System */
    .btn {
        background-color: #007BFF;
        border: none;
        padding: 14px 28px;
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-block;
        text-decoration: none;
        text-align: center;
        line-height: 1.4;
    }

    .btn:hover {
        background-color: #0056b3;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .btn-info {
        background-color: #17a2b8;
        color: #ffffff;
    }

    .btn-info:hover {
        background-color: #138496;
    }

    .btn-success {
        background-color: #28a745;
        color: #ffffff;
    }

    .btn-success:hover {
        background-color: #218838;
    }

    .btn-warning {
        background-color: #ffc107;
        color: #212529;
    }

    .btn-warning:hover {
        background-color: #e0a800;
    }

    .btn-danger {
        background-color: #dc3545;
        color: #ffffff;
    }

    .btn-danger:hover {
        background-color: #c82333;
    }

    .btn-disabled-state,
    .btn:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
        opacity: 0.6;
    }

    .btn-disabled-state:hover,
    .btn:disabled:hover {
        background-color: #cccccc;
        transform: none;
        box-shadow: none;
    }

    /* Enhanced Form System */
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="url"]:focus,
    textarea:focus,
    select:focus {
        border-color: #007BFF;
        outline: none;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

    .form-group {
        margin-bottom: 22px;
    }

    .form-control {
        width: 100%;
        padding: 14px;
        font-size: 18px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        background-color: #ffffff;
    }

    .form-control:focus {
        border-color: #007BFF;
        outline: none;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

    .form-label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        color: #333333;
        font-size: 18px;
    }

    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    textarea,
    select {
        width: 100%;
        padding: 1.27vw;
        margin-bottom: 1.36vw;
        border: 0.09vw solid #e0e0e0;
        border-radius: 0.36vw;
        font-size: 18px; /* WCAG compliant - was dangerous 1.8vw */
        background-color: #fafafa;
    }

    /* Tables */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 2.27vw;
        font-size: 18px; /* WCAG compliant - was dangerous 1.4vw */
    }

    table th,
    table td {
        padding: 1.27vw 1.82vw;
        border: 0.09vw solid #e0e0e0;
        text-align: left;
    }

    /* Alert and Notification System */
    .alert {
        padding: 18px 24px;
        margin-bottom: 24px;
        border-radius: 6px;
        font-size: 18px;
        font-weight: 500;
        border: 1px solid transparent;
    }

    .alert-success {
        background-color: #d4edda;
        border-color: #c3e6cb;
        color: #155724;
    }

    .alert-info {
        background-color: #d1ecf1;
        border-color: #bee5eb;
        color: #0c5460;
    }

    .alert-warning {
        background-color: #fff3cd;
        border-color: #ffeaa7;
        color: #856404;
    }

    .alert-danger,
    .alert-error {
        background-color: #f8d7da;
        border-color: #f5c6cb;
        color: #721c24;
    }

    .notification {
        position: fixed;
        top: 24px;
        right: 24px;
        padding: 18px 24px;
        border-radius: 6px;
        font-size: 18px;
        font-weight: 500;
        z-index: 10000;
        min-width: 320px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .status-message {
        padding: 14px 18px;
        border-radius: 4px;
        font-size: 18px;
        margin-bottom: 18px;
    }

    /* Modal System */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 10000;
        animation: fadeIn 0.3s ease;
    }

    .modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-container {
        background: #ffffff;
        border-radius: 8px;
        width: 85%;
        max-width: 700px;
        max-height: 85%;
        overflow: hidden;
        animation: slideUp 0.3s ease;
    }

    .modal-header {
        padding: 24px;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #f8f9fa;
    }

    .modal-title {
        margin: 0;
        font-size: 28px;
        font-weight: 600;
        color: #333333;
    }

    .modal-close {
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #6c757d;
        padding: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-close:hover {
        color: #333333;
    }

    .modal-body {
        padding: 24px;
        overflow-y: auto;
        max-height: 450px;
    }

    .modal-content {
        font-size: 18px;
        line-height: 1.6;
        color: #333333;
    }

    .modal-footer {
        padding: 24px;
        border-top: 1px solid #e0e0e0;
        display: flex;
        justify-content: flex-end;
        gap: 14px;
        background-color: #f8f9fa;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

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

    /* Breadcrumb Navigation */
    .breadcrumb {
        display: flex;
        flex-wrap: wrap;
        padding: 14px 0;
        margin-bottom: 24px;
        list-style: none;
        font-size: 18px;
    }

    .breadcrumb-item {
        display: flex;
        align-items: center;
        color: #6c757d;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        content: "/";
        padding: 0 10px;
        color: #6c757d;
    }

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

    .breadcrumb-item a {
        color: #007BFF;
        text-decoration: none;
        font-size: 18px;
    }

    .breadcrumb-item a:hover {
        color: #0056b3;
        text-decoration: underline;
    }

    /* Search and Filter Components */
    .search-container {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 24px;
        flex-wrap: wrap;
    }

    .search-input {
        flex: 1;
        min-width: 250px;
        padding: 14px 18px;
        font-size: 18px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        background-color: #ffffff;
    }

    .search-input:focus {
        border-color: #007BFF;
        outline: none;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

    .filter-button {
        padding: 14px 18px;
        font-size: 18px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        background-color: #ffffff;
        color: #333333;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .filter-button:hover,
    .filter-button.active {
        background-color: #007BFF;
        color: #ffffff;
        border-color: #007BFF;
    }

    .sort-option {
        padding: 14px 18px;
        font-size: 18px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        background-color: #ffffff;
        color: #333333;
        cursor: pointer;
    }

    /* Pagination */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 36px;
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        padding: 12px 16px;
        font-size: 18px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        color: #333333;
        text-decoration: none;
        transition: all 0.3s ease;
        min-width: 44px;
        text-align: center;
    }

    .pagination a:hover {
        background-color: #007BFF;
        color: #ffffff;
        border-color: #007BFF;
    }

    .pagination .current {
        background-color: #007BFF;
        color: #ffffff;
        border-color: #007BFF;
        font-weight: 600;
    }

    .pagination .disabled {
        color: #6c757d;
        background-color: #f8f9fa;
        border-color: #e0e0e0;
        cursor: not-allowed;
    }

    /* Dashboard Components */
    .dashboard-widget {
        background: #ffffff;
        border-radius: 8px;
        padding: 30px;
        margin-bottom: 30px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        border: 1px solid #e0e0e0;
    }

    .dashboard-widget h3 {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 20px;
        color: #333333;
    }

    .dashboard-stat {
        font-size: 20px;
        color: #333333;
        margin-bottom: 14px;
    }

    .dashboard-stat-value {
        font-size: 38px;
        font-weight: 700;
        color: #007BFF;
        display: block;
        margin-bottom: 10px;
    }

    .dashboard-stat-label {
        font-size: 16px;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Progress Indicators */
    .progress-text {
        font-size: 18px;
        color: #333333;
        margin-bottom: 10px;
    }

    .completion-status {
        font-size: 18px;
        font-weight: 500;
        padding: 8px 16px;
        border-radius: 24px;
        display: inline-block;
    }

    .completion-status.completed {
        background-color: #d4edda;
        color: #155724;
    }

    .completion-status.in-progress {
        background-color: #fff3cd;
        color: #856404;
    }

    .completion-status.not-started {
        background-color: #f8d7da;
        color: #721c24;
    }

    .progress-bar {
        width: 100%;
        height: 10px;
        background-color: #e0e0e0;
        border-radius: 5px;
        overflow: hidden;
        margin-bottom: 20px;
    }

    .progress-bar-fill {
        height: 100%;
        background-color: #28a745;
        transition: width 0.3s ease;
    }

    /* COMPREHENSIVE PAGE FONT FIXES FOR TABLET */
    
    /* Core Lessons Page */
    .core-lesson-card h3,
    .lesson-card h3,
    .premium-lesson-card h3 {
        font-size: 22px !important;
        height: auto !important;
    }
    
    .core-lesson-card p,
    .lesson-card p,
    .premium-lesson-card p {
        font-size: 16px !important;
        height: auto !important;
    }
    
    /* Webinars Page */
    .webinar-card h3,
    .webinar-tile h4 {
        font-size: 22px !important;
    }
    
    .webinar-card p,
    .webinar-description {
        font-size: 16px !important;
    }
    
    /* Profile Page */
    .profile-section h2 {
        font-size: 30px !important;
    }
    
    .profile-section p,
    .profile-field {
        font-size: 18px !important;
    }
    
    /* Form Elements */
    .form-group label {
        font-size: 16px !important;
    }
    
    .form-control,
    .form-input {
        font-size: 18px !important;
    }
    
    /* Modal Content */
    .modal-header h4,
    .modal-title {
        font-size: 24px !important;
    }
    
    .modal-body p,
    .modal-content {
        font-size: 18px !important;
    }
    
    /* Navigation Breadcrumbs */
    .breadcrumb,
    .breadcrumb-item {
        font-size: 16px !important;
    }
    
    /* Status Messages */
    .alert,
    .notification,
    .status-message {
        font-size: 18px !important;
    }
    
    /* Search and Filter Elements */
    .search-input,
    .filter-button,
    .sort-option {
        font-size: 18px !important;
    }
    
    /* Pagination */
    .pagination a,
    .pagination span {
        font-size: 16px !important;
    }
    
    /* Dashboard Content */
    .dashboard-widget h3 {
        font-size: 24px !important;
    }
    
    .dashboard-stat {
        font-size: 18px !important;
    }
    
    /* Progress Indicators */
    .progress-text,
    .completion-status {
        font-size: 16px !important;
    }
    
    /* LESSONS PAGE STYLING - TABLET LANDSCAPE */
    .core-lessons-container,
    .supplemental-lessons-container {
        width: 95vw !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 7.28vw 2.27vw 6.37vw 2.27vw !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    }

    .video-platform-hero {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        border-radius: 0.73vw !important;
        padding: 3.64vw !important;
        margin-bottom: 3.64vw !important;
        color: white !important;
        text-align: center !important;
        box-shadow: 0 0.45vw 1.82vw rgba(0,0,0,0.15) !important;
    }

    .supplemental-hero {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    }
    
    .video-platform-hero h1,
    .video-platform-hero h1[style*="font-size: 2.6vw"] {
        color: #ffffff !important;
        font-size: 32px !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
        margin: 0 0 1.82vw 0 !important;
        font-weight: 700 !important;
    }
    
    .video-platform-hero p {
        color: #ffffff !important;
        font-size: 20px !important;
        opacity: 0.9 !important;
        font-weight: 400 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .premium-video-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(27.3vw, 1fr)) !important;
        gap: 2.27vw !important;
        width: 100% !important;
        margin-top: 2.27vw !important;
    }

    /* Override ALL dangerous vw units - ACCESSIBILITY CRITICAL FOR TABLET LANDSCAPE */
    .component-container *[style*="font-size:"][style*="vw"],
    .container *[style*="font-size:"][style*="vw"],
    .main-content *[style*="font-size:"][style*="vw"],
    *[style*="font-size: 0."],
    *[style*="font-size:0."],
    *[style*="font-size: 1.0vw"],
    *[style*="font-size: 1.1vw"],
    *[style*="font-size: 1.2vw"],
    *[style*="font-size: 1.3vw"],
    *[style*="font-size: 1.4vw"],
    *[style*="font-size: 1.5vw"],
    *[style*="font-size: 1.6vw"],
    *[style*="font-size: 1.7vw"],
    *[style*="font-size: 1.8vw"],
    *[style*="font-size: 1.9vw"],
    *[style*="font-size: 2.0vw"] {
        font-size: 18px !important; /* Force WCAG minimum on all elements */
        line-height: 1.5 !important;
    }
    
    /* Override for non-hero elements */
    .component-container *[style*="font-size:"][style*="vw"]:not(.video-platform-hero *),
    .container *[style*="font-size:"][style*="vw"]:not(.video-platform-hero *),
    .main-content *[style*="font-size:"][style*="vw"]:not(.video-platform-hero *) {
        color: #333333 !important;
    }
    
    /* Specific override for ALL 2.6vw h1 elements - should be white */
    *[style*="font-size: 2.6vw"],
    h1[style*="font-size: 2.6vw"] {
        color: #ffffff !important;
        font-size: 32px !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    }
    
    /* Tablet Landscape Responsive Design for Lesson Grids */
    .premium-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(25vw, 1fr)) !important;
        gap: 1.56vw !important;
    }
    
    .video-platform-hero h1 {
        font-size: 3.5vw !important;
    }
    
    .video-platform-hero p {
        font-size: 1.5vw !important;
        max-width: 70vw !important;
    }
}