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

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

    /* Tablet Portrait Body with Hard-coded Colors */
    body {
        font-family: 'Open Sans', sans-serif;
        color: #333333;
        background-color: #f5f5f5;
        line-height: 1.6;
        font-size: 18px; /* 18px base for tablet portrait */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* TABLET PORTRAIT FONT FIXES */
    .video-platform-hero h1 {
        font-size: 32px !important;
    }
    
    .video-platform-hero p {
        font-size: 18px !important;
        max-width: 100% !important;
    }
    
    .lesson-title {
        font-size: 20px !important;
        height: auto !important;
    }
    
    .lesson-details p {
        font-size: 16px !important;
        height: auto !important;
    }
    
    /* Override ALL dangerous vw-based font sizes for tablet portrait - ACCESSIBILITY CRITICAL */
    *[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"],
    *[style*="font-size: 2.1vw"],
    *[style*="font-size: 2.2vw"] {
        font-size: 18px !important; /* Force WCAG minimum on all elements */
        line-height: 1.5 !important;
        color: #333333 !important;
    }
    
    *[style*="font-size: 2.6vw"] {
        font-size: 32px !important;
    }
    
    *[style*="font-size: 1.1vw"] {
        font-size: 20px !important;
    }
    
    *[style*="font-size: 0.83vw"] {
        font-size: 16px !important;
    }
    
    *[style*="font-size: 0.73vw"] {
        font-size: 14px !important;
    }

    /* Header Styling - Fixed for iPad Air/Mini */
    header {
        background-color: #005994 !important;
        padding: 1.2vw 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: 4.5vw !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

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

    header nav ul {
        list-style: none !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 60% !important; /* Tablet-appropriate width */
        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: 80px 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: 8px 0 !important; /* Compact spacing like iPhone */
        opacity: 1 !important; /* Start visible for tablets */
        transform: translateX(0) !important; /* No initial offset */
        width: 85% !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: 18px !important; /* Clear, readable text for iPad */
        min-height: 48px !important; /* Touch-friendly */
        padding: 16px 24px !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;
    }

    /* Force override any inherited styles */
    @media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
        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 - iPad Optimized */
    .hamburger {
        display: block !important;
        width: 3.5vw !important;
        height: 2.5vw !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.35vw !important;
        width: 100% !important;
        background: #ffffff !important;
        border-radius: 0.35vw !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.05vw !important;
    }

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

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

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

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

    /* Dropdown Menu System - Modern iPad Navigation */
    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: 16px 24px !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: 800px !important; /* Plenty of space for all items */
        padding: 12px 0 !important;
    }

    .dropdown-content a {
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        font-size: 16px !important;
        padding: 14px 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 Styling */
    .container {
        width: 100%;
        margin: 0 auto;
        padding: 6.85vw 1.96vw 8.8vw 1.96vw;
    }

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

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

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

    .sidebar ul {
        list-style: none;
    }

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

    .sidebar ul li a {
        display: block;
        padding: 1.17vw 1.96vw;
        color: #ffffff;
        text-decoration: none;
        font-size: 18px; /* WCAG compliant - was dangerous 2.2vw */
        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: 2.93vw;
        background-color: #ffffff;
        border-radius: 0.59vw;
        box-shadow: 0 0.2vw 0.39vw rgba(0,0,0,0.1);
    }

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

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

    /* Video Player */
    #video-player-wrap {
        padding-top: 1.47vw;
        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.47vw;
        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: 12vw;
        height: auto;
        pointer-events: none;
        object-fit: contain;
    }

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

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

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

    .tabs .tablink {
        padding: 0.98vw 1.96vw;
        font-size: 18px; /* WCAG compliant - was dangerous 2.2vw */
        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.29vw solid #007BFF;
    }

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

    .tabcontent.active {
        display: block;
    }

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

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

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

    .lesson-tile {
        background-color: #ffffff;
        border-radius: 0.59vw;
        box-shadow: 0 0.2vw 0.39vw 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.47vw;
        font-size: 18px; /* WCAG compliant - was dangerous 2.2vw */
        color: #2c3e50;
    }

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

    /* Related Info and Additional Resources */
    .related-item,
    .resource-item {
        background-color: #ffffff;
        border-radius: 0.59vw;
        padding: 1.96vw;
        margin-bottom: 1.47vw;
        border: 0.1vw solid #e0e0e0;
        box-shadow: 0 0.2vw 0.39vw rgba(0,0,0,0.1);
        overflow: hidden;
    }

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

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

    .related-item a,
    .resource-item a {
        color: #007BFF;
        font-size: 18px; /* WCAG compliant - was dangerous 2.2vw */
        padding: 0.78vw 1.47vw;
        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: 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: 10vw;
        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.38vw, 1fr));
        gap: 1.96vw;
        margin-top: 1.96vw;
    }

    .webinar-tile {
        background-color: #ffffff;
        border-radius: 0.59vw;
        overflow: hidden;
        box-shadow: 0 0.2vw 0.39vw 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.47vw;
        font-size: 18px; /* WCAG compliant - was dangerous 2.2vw */
        color: #333333;
    }

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

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

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

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

    .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.17vw;
        border: 0.1vw solid #ccc;
        border-radius: 0.39vw;
        font-size: 18px; /* WCAG compliant - was dangerous 2.2vw */
        background: #fff;
    }

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

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

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

    .account-details {
        background: #fff;
        padding: 1.47vw;
        border-radius: 0.59vw;
        border: 0.1vw solid #ddd;
        margin-top: 1.47vw;
        font-size: 18px; /* WCAG compliant - was dangerous 2.2vw */
    }

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

    /* Login Form */
    #login-form-main {
        width: 60%;
        padding: 2.93vw;
        margin: 2.44vw auto;
        border-radius: 0.59vw;
        background-color: #ffffff;
        box-shadow: 0 0.2vw 0.39vw rgba(0,0,0,0.1);
    }

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

    /* Success and Error Messages */
    .success-message,
    .error-message {
        padding: 1.47vw 1.96vw;
        margin-bottom: 1.96vw;
        border-radius: 0.59vw;
        font-size: 18px; /* WCAG compliant - was dangerous 2.2vw */
    }

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

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

    /* Footer Styling */
    footer {
        background-color: #005994;
        padding: 1.47vw;
        text-align: center;
        font-size: 18px; /* WCAG compliant - was dangerous 2.2vw */
        color: #ffffff;
        position: fixed;
        bottom: 0;
        width: 100%;
        z-index: 999;
    }

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

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

    p {
        margin-bottom: 1.47vw;
    }

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

    a:hover {
        color: #0056b3;
    }

    /* Buttons */
    button, input[type="submit"] {
        background-color: #007BFF;
        border: none;
        padding: 1.17vw 2.44vw;
        color: #ffffff;
        font-size: 18px; /* WCAG compliant - was dangerous 2.2vw */
        border-radius: 0.39vw;
        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.1vw solid #057fd0;
        color: #ffffff;
        font-size: 18px; /* WCAG compliant - was dangerous 2.2vw */
        font-weight: bold;
        padding: 0.98vw 2.44vw;
        margin: 0.49vw 0;
        border-radius: 0.39vw;
        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: 12px 24px;
        color: #ffffff;
        font-size: 16px;
        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: 20px;
    }

    .form-control {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        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: 6px;
        color: #333333;
        font-size: 16px;
    }

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

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

    table th,
    table td {
        padding: 1.17vw 1.47vw;
        border: 0.1vw solid #e0e0e0;
        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;
    }

    /* Alert and Notification System */
    .alert {
        padding: 16px 20px;
        margin-bottom: 20px;
        border-radius: 6px;
        font-size: 16px;
        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: 20px;
        right: 20px;
        padding: 16px 20px;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 500;
        z-index: 10000;
        min-width: 300px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

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

    /* 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: 90%;
        max-width: 600px;
        max-height: 90%;
        overflow: hidden;
        animation: slideUp 0.3s ease;
    }

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

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

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

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

    .modal-body {
        padding: 20px;
        overflow-y: auto;
        max-height: 400px;
    }

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

    .modal-footer {
        padding: 20px;
        border-top: 1px solid #e0e0e0;
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        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: 12px 0;
        margin-bottom: 20px;
        list-style: none;
        font-size: 16px;
    }

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

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

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

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

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

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

    .search-input {
        flex: 1;
        min-width: 200px;
        padding: 12px 16px;
        font-size: 16px;
        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: 12px 16px;
        font-size: 16px;
        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: 12px 16px;
        font-size: 16px;
        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: 8px;
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        padding: 10px 14px;
        font-size: 16px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        color: #333333;
        text-decoration: none;
        transition: all 0.3s ease;
        min-width: 40px;
        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: 24px;
        margin-bottom: 24px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        border: 1px solid #e0e0e0;
    }

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

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

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

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

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

    .completion-status {
        font-size: 16px;
        font-weight: 500;
        padding: 6px 12px;
        border-radius: 20px;
        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: 8px;
        background-color: #e0e0e0;
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 16px;
    }

    .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 PORTRAIT */
    .core-lessons-container,
    .supplemental-lessons-container {
        width: 95vw !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 6.85vw 1.96vw 5.87vw 1.96vw !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.98vw !important;
        padding: 2.93vw !important;
        margin-bottom: 2.93vw !important;
        color: white !important;
        text-align: center !important;
        box-shadow: 0 0.39vw 1.56vw 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"],
    .video-platform-hero *[style*="font-size: 2.6vw"] {
        color: #ffffff !important;
        font-size: 30px !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
        margin: 0 0 1.47vw 0 !important;
        font-weight: 700 !important;
    }
    
    .video-platform-hero p {
        color: #ffffff !important;
        font-size: 18px !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.38vw, 1fr)) !important;
        gap: 1.96vw !important;
        width: 100% !important;
        margin-top: 1.96vw !important;
    }

    /* 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: 18px !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: 30px !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    }
    
    /* LESSON CARDS AND BADGES - iPad Air */
    .lesson-thumbnail-container {
        position: relative !important;
        width: 100% !important;
        padding-bottom: 56.25% !important;
        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;
    }
    
    .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-bonus-badge {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        color: white !important;
        padding: 6px 12px !important;
        border-radius: 6px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        z-index: 10 !important;
    }
    
    .supplemental-badge {
        background: linear-gradient(135deg, #28a745, #20c997) !important;
    }
    
    .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 12px !important;
        border-radius: 6px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        z-index: 10 !important;
    }
    
    /* btn-info iPad Air spacing */
    .btn-info,
    .btn.btn-info,
    button.btn-info {
        color: white !important;
        margin: 10px 0 !important;
        padding: 10px 20px !important;
        font-size: 16px !important;
    }
    
    /* NAVIGATION MENU - iPad Air Portrait */
    header {
        background-color: #005994 !important;
        padding: 1.2vw 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;
    }
    
    header nav ul {
        list-style: none !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 50% !important; /* Wider than iPhone but not full width */
        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: 80px 0 20px 0 !important; /* Top padding for header clearance */
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1000 !important;
        overflow-y: auto !important; /* Allow scrolling if needed */
    }
    
    header nav ul.active {
        right: 0 !important;
    }
    
    header nav ul li {
        margin: 8px 0 !important; /* Compact spacing like iPhone */
        opacity: 0 !important;
        transform: translateX(15px) !important;
        animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
        width: 90% !important; /* Consistent width */
    }
    
    /* 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 {
        to {
            opacity: 1 !important;
            transform: translateX(0) !important;
        }
    }
    
    header nav ul li a {
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 18px !important; /* Tablet-appropriate size */
        min-height: 48px !important; /* Touch-friendly */
        padding: 14px 24px !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;
    }
    
    header nav ul li a:hover {
        background: rgba(255, 255, 255, 0.1) !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;
    }
    
    /* Dropdown Styles for My BCode */
    header nav ul li.dropdown {
        position: relative !important;
        width: 90% !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 24px !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;
    }
    
    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.2) !important;
        border-radius: 8px !important;
        margin-top: 8px !important;
        width: 100% !important;
        backdrop-filter: blur(2px) !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: 12px 0 !important;
    }
    
    /* Hamburger Menu - iPad Air */
    .hamburger {
        display: block !important;
        width: 4vw !important;
        height: 3vw !important;
        position: relative !important;
        cursor: pointer !important;
        background: none !important;
        border: none !important;
        z-index: 2000 !important;
    }
    
    .hamburger span {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        height: 0.4vw !important;
        width: 100% !important;
        background: #ffffff !important;
        border-radius: 0.4vw !important;
        transition: all 0.3s ease !important;
    }
    
    .hamburger span:nth-child(1) {
        top: 0 !important;
    }
    
    .hamburger span:nth-child(2) {
        top: 1.3vw !important;
    }
    
    .hamburger span:nth-child(3) {
        top: 2.6vw !important;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(1.3vw) rotate(45deg) !important;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-1.3vw) rotate(-45deg) !important;
    }
    
    /* SCROLL TO TOP BUTTON - iPad Air */
    #scrollToTop {
        display: flex !important;
        position: fixed !important;
        bottom: 3vw !important;
        right: 3vw !important;
        width: 5vw !important;
        height: 5vw !important;
        background: linear-gradient(135deg, #007BFF, #0056b3) !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        font-size: 2vw !important;
        font-weight: bold !important;
        box-shadow: 0 0.3vw 1vw rgba(0, 0, 0, 0.3) !important;
        transition: all 0.3s ease !important;
        z-index: 9999999 !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    #scrollToTop:hover {
        transform: translateY(-0.2vw) !important;
        box-shadow: 0 0.5vw 1.5vw rgba(0, 0, 0, 0.4) !important;
        background: linear-gradient(135deg, #0056b3, #007BFF) !important;
    }
    
    #scrollToTop svg {
        width: 2.5vw !important;
        height: 2.5vw !important;
        fill: currentColor !important;
    }
}