/* Import CSS Variables from main stylesheet */
:root {
    --primary-font: 'Open Sans', sans-serif;
    --primary-color: #007BFF;
    --secondary-color: #374151; /* WCAG compliant contrast ratio 7.9:1 */
    --background-color: #f5f5f5;
    --text-color: #111827; /* WCAG compliant contrast ratio 13.4:1 */
    --light-color: #ffffff;
    --dark-color: #1f2937; /* Improved contrast */
    --border-color: #d1d5db;
    --hover-color: #0056b3;
    --header-color: #005994;
    --footer-color: #005994;
}

/* Mobile Landscape Styles: 415px - 767px (iPhone, Android Landscape) */
@media screen and (min-width: 415px) and (max-width: 767px) {
    /* Component Font Size Classes for Mobile Landscape */
    .lesson-code-badge { font-size: 15px; } /* Slightly larger than portrait */
    .lesson-bonus-badge { font-size: 13px; } /* Proportional badge size */
    .lesson-title { font-size: 20px; } /* More prominent in landscape */
    .lesson-description { font-size: 15px; } /* Comfortable reading size */
    .lesson-meta-text { font-size: 13px; } /* Small meta info */
    .unlock-title { font-size: 28px; } /* Large but not overwhelming */
    .unlock-description { font-size: 17px; } /* Standard paragraph size */
    .unlock-button { font-size: 17px; } /* Touchable button size */
    .empty-state-title { font-size: 22px; } /* Clear empty state title */
    .empty-state-text { font-size: 16px; } /* Clear empty state text */
    .lesson-viewer-title { font-size: 28px; } /* Large lesson title */
    .lesson-viewer-description { font-size: 17px; } /* Readable description */
    .lesson-viewer-tab { font-size: 15px; } /* Tab label */
    .lesson-viewer-tab-content-title { font-size: 22px; } /* Tab content title */
    .lesson-viewer-tab-content-text { font-size: 17px; } /* Tab content text */
    .lesson-viewer-related-title { font-size: 19px; } /* Related item title */
    .lesson-viewer-locked-title { font-size: 24px; } /* Locked message title */
    .lesson-viewer-locked-text { font-size: 17px; } /* Locked message text */
    .lesson-viewer-resource-link { font-size: 17px; } /* Resource links */
    .stripe-emoji { font-size: 52px; } /* Large emoji for landscape */
    .stripe-safety-info { font-size: 15px; } /* Safety info text */
    .stripe-connect-button { font-size: 17px; } /* Connect button */
    .section-heading { font-size: 22px; } /* Section headings */
    .page-title { font-size: 28px; } /* Page titles */
    .card-metric-label { font-size: 15px; } /* Card metric labels */
    .card-metric-value { font-size: 22px; } /* Card metric values */
    .button-small { font-size: 15px; } /* Small buttons */
    .content-text { font-size: 15px; } /* Content text */
    .textarea-input { font-size: 15px; } /* Textarea inputs */
    .activity-title { font-size: 15px; } /* Activity titles */
    .activity-description { font-size: 14px; } /* Activity descriptions */
    .activity-amount { font-size: 15px; } /* Activity amounts */
    .activity-date { font-size: 13px; } /* Activity dates */

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

    /* Enterprise Body Styling */
    body {
        font-family: var(--primary-font);
        color: var(--text-color);
        background-color: var(--background-color);
        line-height: 1.6;
        font-size: 16px; /* WCAG compliant minimum for landscape phones */
        font-weight: 400;
        letter-spacing: 0.01em;
    }

    /* Header Styling */
    header {
        background-color: var(--header-color);
        padding: 1.3vw 2.61vw;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        width: 100%;
        z-index: 999999;
    }

    header .logo img {
        height: 5.87vw; /* Slightly larger logo */
        max-width: 100%;
        object-fit: contain;
    }

    /* Navigation Styling with Hamburger Menu */
    header nav {
        position: relative;
    }

    header nav ul {
        list-style: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background: linear-gradient(135deg, var(--header-color) 0%, #003d6b 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Start from top */
        align-items: center;
        margin: 0;
        padding: 50px 0 20px 0; /* Top padding for header clearance */
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        backdrop-filter: blur(3px);
        box-shadow: -3px 0 10px rgba(0, 0, 0, 0.3);
        overflow-y: auto; /* Allow scrolling if needed */
    }

    header nav ul.active {
        right: 0;
    }

    header nav ul li {
        margin: 5px 0; /* Compact spacing for landscape */
        opacity: 0;
        transform: translateX(10px);
        animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        width: 85%; /* Consistent width */
    }

    /* Mobile Landscape Dropdown Styles */
    header nav ul li.dropdown {
        position: relative;
        width: 85%;
    }


    header nav ul li.dropdown.active .arrow {
        transform: rotate(180deg);
    }

    /* Mobile Landscape Dropdown Content */
    .dropdown-content {
        max-height: 0;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        margin-top: 6px;
        width: 100%;
        backdrop-filter: blur(2px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
        padding: 0;
    }

    .dropdown-content.show {
        max-height: 500px; /* Increased height for all submenu items in landscape */
        padding: 6px 0;
    }

    .dropdown-content a {
        color: var(--light-color);
        text-decoration: none;
        font-weight: 500;
        font-size: 16px; /* WCAG compliant minimum */
        padding: 14px 16px; /* 44px touch target compliance */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        margin: 3px 8px;
        transition: all 0.3s ease;
        background: rgba(0, 0, 0, 0.3); /* Better contrast */
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        min-height: 44px; /* WCAG touch target minimum */
    }

    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateX(3px);
    }


    header nav ul.active li:nth-child(1) { animation-delay: 0.1s; }
    header nav ul.active li:nth-child(2) { animation-delay: 0.2s; }
    header nav ul.active li:nth-child(3) { animation-delay: 0.3s; }
    header nav ul.active li:nth-child(4) { animation-delay: 0.4s; }
    header nav ul.active li:nth-child(5) { animation-delay: 0.5s; }

    @keyframes slideInFromRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    header nav ul li a {
        color: var(--light-color);
        text-decoration: none;
        font-weight: 600;
        font-size: 16px; /* WCAG compliant menu text */
        padding: 10px 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 8px;
        margin: 0 15px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-height: 40px;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(2px);
        border: 1px solid transparent;
    }

    /* Special styling for dropdown button in landscape */
    header nav ul li.dropdown .dropbtn {
        width: 100%;
        justify-content: center;
        position: relative;
        text-align: center;
        margin: 0; /* No margin - parent li handles spacing */
        padding: 10px 30px;
        color: var(--light-color);
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        min-height: 40px;
        display: flex;
        align-items: center;
        border-radius: 8px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        backdrop-filter: blur(2px);
        border: 1px solid transparent;
    }

    header nav ul li.dropdown .dropbtn .arrow {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        transition: transform 0.3s ease;
        pointer-events: none;
    }

    /* When dropdown is active, rotate arrow */
    header nav ul li.dropdown.active .dropbtn .arrow {
        transform: translateY(-50%) rotate(180deg);
    }

    header nav ul li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.6s;
    }

    header nav ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-0.3vw);
        box-shadow: 0 0.8vw 1.5vw rgba(0, 0, 0, 0.2);
    }

    header nav ul li a:hover::before {
        left: 100%;
    }

    
    /* Premium Hamburger Menu Icon */
    .hamburger {
        display: block;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        position: relative;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        z-index: 9999; /* Always on top */
        padding: 8px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(2px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .hamburger:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: scale(1.05);
        box-shadow: 0 0.5vw 1.5vw rgba(0, 0, 0, 0.3);
    }

    .hamburger span {
        display: block;
        position: absolute;
        left: 50%;
        height: 0.3vw;
        width: 60%;
        background: var(--light-color);
        border-radius: 0.3vw;
        transform: translateX(-50%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0.1vw 0.3vw rgba(0, 0, 0, 0.3);
    }

    .hamburger span:nth-child(1) {
        top: 25%;
    }

    .hamburger span:nth-child(2) {
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
    }

    .hamburger span:nth-child(3) {
        bottom: 25%;
    }

    .hamburger.active {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .hamburger.active span:nth-child(1) {
        top: 50%;
        transform: translateX(-50%) translateY(-50%) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-50%) translateY(-50%) scale(0);
    }

    .hamburger.active span:nth-child(3) {
        bottom: 50%;
        transform: translateX(-50%) translateY(50%) rotate(-45deg);
    }

    /* Enterprise Container */
    .container {
        width: 100%;
        margin: 0 auto;
        padding: 4vw 2.5vw 6vw 2.5vw; /* Professional balanced spacing */
    }

    /* Enterprise Text Content */
    p {
        margin-bottom: 2.5vw;
        line-height: 1.6;
        font-size: 16px; /* WCAG compliant paragraph text */
    }

    /* Professional Lists */
    ul, ol {
        margin-bottom: 2.5vw;
        padding-left: 4vw;
    }

    li {
        margin-bottom: 1.2vw;
        font-size: 16px; /* WCAG compliant list text */
        line-height: 1.6;
    }

    /* Enterprise Links */
    a {
        font-weight: 500;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    /* Professional Helper Text */
    .help-text, .description {
        font-size: 16px; /* WCAG compliant helper text */
        color: var(--secondary-color);
        font-style: italic;
        margin-bottom: 1.5vw;
    }

    /* Error and Success Messages */
    .error-message, .success-message {
        font-size: 16px; /* WCAG compliant message text */
        font-weight: 500;
        padding: 2.2vw;
        border-radius: 0.8vw;
        margin-bottom: 2.5vw;
    }

    /* SUPPLEMENTAL LESSONS PAGE MOBILE LANDSCAPE FIXES */
    .video-platform-hero h1 {
        font-size: 22px !important; /* Hero title for landscape */
    }
    
    .video-platform-hero p {
        font-size: 16px !important; /* WCAG compliant hero description */
        max-width: 100% !important;
    }
    
    .lesson-title {
        font-size: 16px !important; /* Lesson card titles */
        height: auto !important;
    }
    
    .lesson-details p {
        font-size: 16px !important; /* WCAG compliant lesson descriptions */
        height: auto !important;
    }
    
    /* Lesson Card Badges */
    .lesson-details span,
    div[style*="font-size: 0.73vw"] {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    div[style*="font-size: 0.65vw"] {
        font-size: 10px !important;
    }
    
    div[style*="font-size: 0.83vw"] {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    /* GENERAL PAGE CONTENT MOBILE LANDSCAPE FIXES */
    .component-container h1 {
        font-size: 26px !important;
    }
    
    .component-container h2 {
        font-size: 22px !important;
    }
    
    .component-container h3 {
        font-size: 18px !important;
    }
    
    .component-container p {
        font-size: 16px !important; /* WCAG compliant */
        line-height: 1.6 !important;
    }
    
    .component-container div {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    /* LESSONS PAGE STYLING - SMARTPHONE LANDSCAPE */
    .core-lessons-container,
    .supplemental-lessons-container {
        width: 95vw !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 15vw 6vw 10vw 6vw !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    }

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

    .supplemental-hero {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    }

    .video-platform-hero h1 {
        margin: 0 0 3vw 0 !important;
        font-size: 26px !important;
        font-weight: 700 !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
        color: #ffffff !important;
    }

    .video-platform-hero p {
        margin: 0 !important;
        font-size: 16px !important;
        opacity: 0.9 !important;
        font-weight: 400 !important;
        max-width: 100% !important;
    }

    .premium-video-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4vw !important;
        width: 100% !important;
        margin-top: 6vw !important;
    }

    /* Override any vw-based font sizes for landscape */
    *[style*="font-size:"][style*="vw"] {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    /* Specific overrides for common vw sizes in landscape */
    *[style*="font-size: 1.1vw"] {
        font-size: 16px !important;
    }
    
    *[style*="font-size: 2.6vw"] {
        font-size: 22px !important;
    }
    
    *[style*="font-size: 0.83vw"] {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    *[style*="font-size: 0.73vw"] {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    *[style*="font-size: 0.65vw"] {
        font-size: 10px !important;
    }

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

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

    /* Sidebar Styling */
    .sidebar {
        width: 100%;
        background-color: var(--dark-color);
        padding: 1.96vw 0;
        position: relative;
        height: auto;
    }

    .sidebar ul {
        list-style: none;
    }

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

    .sidebar ul li a {
        display: block;
        padding: 1.56vw 2.61vw; /* Slightly wider padding */
        color: var(--light-color);
        text-decoration: none;
        font-size: 2.8vw;
    }

    .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.26vw; /* More padding for wider screen */
        background-color: var(--light-color);
        margin: 1.3vw 0 0 0;
        border-radius: 0.52vw;
        box-shadow: 0 0.13vw 0.26vw rgba(0,0,0,0.1);
    }

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

    .main-content-video h2 {
        width: 100%;
        font-size: 3.5vw; /* Slightly larger for readability */
        color: #FFFFFF;
        margin: 1.3vw auto;
        text-align: center;
        padding: 0 1.96vw;
    }

    /* Video Player */
    #video-player-wrap {
        padding-top: 1.3vw;
        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.3vw;
        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: 15vw; /* Adjusted for wider screen */
        height: auto;
        pointer-events: none;
        object-fit: contain;
    }

    .video-description {
        width: 100%;
        padding: 1.3vw 1.96vw;
        color: #FFFFFF;
        font-size: 3.5vw;
        text-align: center;
    }

    /* Tabs Styling */
    #moreinfo-tabs {
        padding: 1.3vw;
        background-color: #606060;
        border-radius: 0.52vw;
        margin-top: 1.96vw;
    }

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

    .tabs .tablink {
        padding: 1.3vw 1.96vw; /* More padding for touch */
        font-size: 3.5vw;
        font-weight: 600;
        color: var(--text-color);
        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: var(--light-color);
        border-bottom: 0.26vw solid var(--primary-color);
    }

    .tabcontent {
        width: 100%;
        padding: 1.96vw 2.61vw; /* More padding */
        background-color: #6b6b6b;
        border-radius: 0 0 0.52vw 0.52vw;
        display: none;
        color: #ffffff;
    }

    .tabcontent.active {
        display: block;
    }

    .tabcontent h3 {
        font-size: 3.5vw; /* Slightly larger */
        margin-bottom: 1.3vw;
        color: #ffffff;
    }

    .tabcontent p {
        font-size: 3.5vw;
        margin-bottom: 1.3vw;
    }

    /* Lesson Grid and Tiles (Supplemental Lessons) */
    .lesson-grid {
        display: flex;
        flex-direction: row; /* Side-by-side in landscape */
        flex-wrap: wrap;
        gap: 1.96vw;
        margin-top: 1.96vw;
        justify-content: center;
    }

    .lesson-tile {
        background-color: var(--light-color);
        border-radius: 0.52vw;
        box-shadow: 0 0.13vw 0.39vw rgba(0,0,0,0.1);
        width: 45%; /* Two per row with margin */
        max-width: 39.11vw;
        overflow: hidden;
    }

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

    .lesson-title {
        padding: 1.3vw;
        font-size: 3.5vw;
        color: var(--dark-color);
    }

    .lesson-progress {
        padding: 0 1.3vw 1.3vw;
        font-size: 3.5vw;
        color: var(--secondary-color);
    }

    /* Related Info and Additional Resources */
    .related-item,
    .resource-item {
        background-color: var(--light-color);
        border-radius: 0.52vw;
        padding: 1.96vw;
        margin-bottom: 1.3vw;
        border: 0.13vw solid var(--border-color);
        box-shadow: 0 0.13vw 0.26vw rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .related-item h4,
    .resource-item h4 {
        font-size: 3.5vw;
        color: var(--dark-color);
        margin-bottom: 1.04vw;
    }

    .related-item p,
    .resource-item p {
        font-size: 3.5vw;
        color: var(--text-color);
        margin-bottom: 1.04vw;
    }

    .related-item a,
    .resource-item a {
        color: var(--primary-color);
        font-size: 3.5vw;
        padding: 0.78vw 1.56vw;
        display: inline-block;
        text-decoration: none;
    }

    .related-item a:hover,
    .resource-item a:hover {
        color: var(--hover-color);
        text-decoration: underline;
    }

    /* Embedded Video in Related Info */
    .embedded-video-container {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.96vw;
        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: 12vw; /* Adjusted for wider screen */
        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: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.96vw;
        margin-top: 1.96vw;
        justify-content: center;
    }

    .webinar-tile {
        background-color: var(--light-color);
        border-radius: 0.52vw;
        overflow: hidden;
        box-shadow: 0 0.13vw 0.39vw rgba(0,0,0,0.1);
        width: 45%; /* Two per row */
        max-width: 39.11vw;
        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.3vw;
        font-size: 3.5vw;
        color: var(--text-color);
    }

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

    .form-column {
        background: #f9f9f9;
        padding: 1.96vw;
        border-radius: 0.52vw;
        box-shadow: 0 0.13vw 0.26vw rgba(0,0,0,0.1);
    }

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

    .form-column label {
        display: block;
        font-weight: bold;
        margin-bottom: 0.65vw;
        font-size: 3.5vw;
    }

    .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.3vw;
        border: 0.13vw solid #ccc;
        border-radius: 0.52vw;
        font-size: 3.5vw;
        background: #fff;
    }

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

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

    .role-options label {
        font-size: 3.5vw;
        font-weight: normal;
        cursor: pointer;
    }

    .account-details {
        background: #fff;
        padding: 1.3vw;
        border-radius: 0.52vw;
        border: 0.13vw solid #ddd;
        margin-top: 1.3vw;
        font-size: 3.5vw;
    }

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

    /* Login Form */
    #login-form-main {
        width: 70%; /* Wider for landscape */
        padding: 3.26vw;
        margin: 2.61vw auto;
        border-radius: 0.52vw;
        background-color: var(--light-color);
        box-shadow: 0 0.13vw 0.26vw rgba(0,0,0,0.1);
    }

    .login-heading {
        text-align: center;
        font-size: 3.5vw;
        margin-bottom: 1.96vw;
    }

    /* Success and Error Messages */
    .success-message,
    .error-message {
        padding: 1.3vw 1.96vw;
        margin-bottom: 1.96vw;
        border-radius: 0.52vw;
        font-size: 3.5vw;
    }

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

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

    /* Enterprise Footer */
    footer {
        background-color: var(--footer-color);
        padding: 2.5vw 1.3vw;
        text-align: center;
        font-size: 16px; /* WCAG compliant footer text */
        font-weight: 400;
        color: var(--light-color);
        position: relative;
        width: 100%;
        z-index: 999;
        line-height: 1.6;
    }

    /* Enterprise Typography Hierarchy */
    h1, h2, h3, h4, h5, h6 {
        color: var(--dark-color);
        margin-bottom: 2.5vw;
        font-weight: 600;
        letter-spacing: -0.02em;
        line-height: 1.3;
    }

    h1 { 
        font-size: 22px; /* Page titles for landscape */
        font-weight: 700;
        margin-bottom: 3vw;
    }
    h2 { 
        font-size: 18px; /* Section headers */
        font-weight: 600;
        margin-bottom: 2.5vw;
    }
    h3 { 
        font-size: 16px; /* Subsection headers */
        font-weight: 600;
        margin-bottom: 2vw;
    }
    h4 { 
        font-size: 16px; /* WCAG compliant component headers */
        font-weight: 600;
        margin-bottom: 1.8vw;
    }
    h5 { 
        font-size: 16px; /* WCAG compliant small headers */
        font-weight: 600;
        margin-bottom: 1.5vw;
    }
    h6 { 
        font-size: 16px; /* WCAG compliant micro headers */
        font-weight: 600;
        margin-bottom: 1.2vw;
    }

    p {
        margin-bottom: 1.3vw;
    }

    /* Links */
    a {
        color: var(--primary-color);
        text-decoration: none;
    }

    a:hover {
        color: var(--hover-color);
    }

    /* Enterprise Buttons */
    button, input[type="submit"] {
        background-color: var(--primary-color);
        border: none;
        padding: 2.2vw 4vw;
        color: var(--light-color);
        font-size: 16px; /* WCAG compliant button text */
        font-weight: 600;
        letter-spacing: 0.02em;
        border-radius: 0.8vw;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-height: 8.5vw;
        text-transform: none;
        box-shadow: 0 0.4vw 1.2vw rgba(0, 123, 255, 0.2);
    }

    button:hover, input[type="submit"]:hover {
        background-color: var(--hover-color);
    }

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

    .subaction_button {
        background: linear-gradient(to bottom, #33bdef 5%, #019ad2 100%);
        border: 0.13vw solid #057fd0;
        color: #ffffff;
        font-size: 3.5vw;
        font-weight: bold;
        padding: 1.04vw 2.61vw;
        margin: 0.65vw 0;
        border-radius: 0.52vw;
        text-decoration: none;
        display: inline-block;
    }

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

    /* Enterprise Form Elements */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    textarea,
    select {
        width: 100%;
        padding: 2.2vw 2vw;
        margin-bottom: 2vw;
        border: 0.2vw solid var(--border-color);
        border-radius: 0.8vw;
        font-size: 16px; /* WCAG compliant form text */
        font-weight: 400;
        line-height: 1.5;
        background-color: #fafafa;
        transition: border-color 0.3s ease;
        min-height: 8.5vw;
    }

    input:focus, textarea:focus, select:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 0.3vw rgba(0, 123, 255, 0.1);
    }

    label {
        display: block;
        font-size: 16px; /* WCAG compliant label text */
        font-weight: 600;
        color: var(--dark-color);
        margin-bottom: 1vw;
        letter-spacing: 0.01em;
    }

    /* Enterprise Tables */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 3vw;
        font-size: 16px; /* WCAG compliant table data */
        font-weight: 400;
        line-height: 1.5;
    }

    table th,
    table td {
        padding: 1.3vw 1.56vw;
        border: 0.13vw solid var(--border-color);
        text-align: left;
    }
    /* Mobile Table Stacking */
    table {
        border: 0;
        width: 100%;
        margin-bottom: 3vw;
    }
    
    /* Hide table headers on mobile */
    table thead,
    table th {
        display: none !important;
    }
    
    /* Stack table rows vertically */
    table tr {
        border: 0.24vw solid #ddd;
        display: block;
        margin-bottom: 2vw;
        padding: 2vw;
        background: #fff;
        border-radius: 0.5vw;
        box-shadow: 0 0.2vw 0.5vw rgba(0,0,0,0.1);
    }
    
    /* Stack table cells vertically */
    table td {
        border: none !important;
        display: block;
        text-align: left !important;
        padding: 1vw 0 !important;
        margin: 0 !important;
        width: 100% !important;
        position: relative;
        padding-left: 35% !important; /* Space for labels */
        word-wrap: break-word;
    }
    
    /* Add data labels using CSS content */
    table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 0;
        width: 30%;
        font-weight: bold;
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Remove borders and adjust spacing */
    table, 
    table tbody, 
    table tr, 
    table td {
        border-collapse: separate;
        border-spacing: 0;
    }


    /* COMPREHENSIVE PAGE FONT FIXES FOR LANDSCAPE */
    
    /* Core Lessons Page */
    .core-lesson-card h3,
    .lesson-card h3,
    .premium-lesson-card h3 {
        font-size: 16px !important;
        height: auto !important;
    }
    
    .core-lesson-card p,
    .lesson-card p,
    .premium-lesson-card p {
        font-size: 16px !important; /* WCAG compliant */
        height: auto !important;
    }
    
    /* Webinars Page */
    .webinar-card h3,
    .webinar-tile h4 {
        font-size: 16px !important;
    }
    
    .webinar-card p,
    .webinar-description {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    /* Profile Page */
    .profile-section h2 {
        font-size: 22px !important;
    }
    
    .profile-section p,
    .profile-field {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    /* Form Elements */
    .form-group label {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    .form-control,
    .form-input {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    /* Modal Content */
    .modal-header h4,
    .modal-title {
        font-size: 18px !important;
    }
    
    .modal-body p,
    .modal-content {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    /* Navigation Breadcrumbs */
    .breadcrumb,
    .breadcrumb-item {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    /* Status Messages */
    .alert,
    .notification,
    .status-message {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    /* Search and Filter Elements */
    .search-input,
    .filter-button,
    .sort-option {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    /* Pagination */
    .pagination a,
    .pagination span {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    /* Dashboard Content */
    .dashboard-widget h3 {
        font-size: 18px !important;
    }
    
    .dashboard-stat {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    /* Progress Indicators */
    .progress-text,
    .completion-status {
        font-size: 16px !important; /* WCAG compliant */
    }
    
    /* Override any remaining vw units */
    .component-container *[style*="font-size:"][style*="vw"],
    .container *[style*="font-size:"][style*="vw"],
    .main-content *[style*="font-size:"][style*="vw"] {
        font-size: 16px !important; /* WCAG compliant */
    }

    /* CRITICAL: Fix RelatedInfo and AdditionalResources sections for mobile landscape */
    #RelatedInfo,
    #AdditionalResources {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.95) 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 10px !important;
        margin-bottom: 18px !important;
    }

    #RelatedInfo h3,
    #AdditionalResources h3 {
        color: #4CAF50 !important;
        background: none !important;
        -webkit-text-fill-color: #4CAF50 !important;
        font-size: 22px !important;
        margin-bottom: 18px !important;
        font-weight: 600 !important;
    }

    #RelatedInfo h4,
    #AdditionalResources h4 {
        color: #4CAF50 !important;
        font-size: 18px !important;
        margin-bottom: 14px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
    }

    #RelatedInfo p,
    #AdditionalResources p {
        color: rgba(255, 255, 255, 0.95) !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 14px !important;
    }

    .premium-related-item,
    .premium-resource-item {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        margin-bottom: 14px !important;
        padding: 14px !important;
        border-radius: 6px !important;
    }

    .premium-related-item a,
    .premium-resource-item a {
        color: #4CAF50 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 10px 14px !important;
        display: inline-block !important;
        min-height: 44px !important;
        background: rgba(76, 175, 80, 0.1) !important;
        border-radius: 6px !important;
        border: 1px solid rgba(76, 175, 80, 0.3) !important;
        text-decoration: none !important;
        margin-top: 8px !important;
    }
}