/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

/* Consistent Full Height Layout */
html {
    height: 100%;
    font-size: 100%; /* For rem units */
}

body {
    min-height: 100%; /* Ensure at least full viewport height */
    display: flex;
    flex-direction: column;
    background-color: white;
    color: black;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: Arial, sans-serif;
    direction: rtl;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #f0f0f0;
    }
}

/* --- Header --- */
header {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 2em;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* --- Header Slider --- */
.slider {
    display: flex;
    width: 2000%;
    height: 100%;
    margin-top: 20px;
    flex-direction: row-reverse;
    animation: slide 200s infinite linear;
    will-change: transform;
}

.slider img {
    width: 5%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

/* Smooth linear scroll animation (RTL) */
@keyframes slide {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(95%);
    }
}

/* --- Navigation Bar --- */
nav {
    background-color: #444;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    flex-direction: row-reverse;
    position: relative;
    flex-shrink: 0;
}

/* Main Navigation List (Desktop) */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
    flex-direction: row-reverse;
    padding: 0;
    margin: 0;
	/* overflow-y: auto;
    overflow-x: hidden; /* Ensure no horizontal scroll */
}

nav ul li {
    position: relative;
    flex: 1 1 auto;
    text-align: center;
    min-width: 100px;
    border-left: 1px solid #555;
}

nav ul li:first-child {
    border-left: none;
}

/* Top-Level Navigation Links */
nav ul li a {
    text-decoration: none;
    padding: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
    flex-direction: row-reverse;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li i {
    margin-left: 8px;
    margin-right: 0;
}

/* --- Unique Background Colors for Top-Level Links --- */
/* Simplified color application */
nav ul li:nth-child(1) a {
    background-color: #82B60E;
}

nav ul li:nth-child(2) a {
    background-color: #ff6347;
}

nav ul li:nth-child(3) a {
    background-color: #ffa07a;
}

nav ul li:nth-child(4) a {
    background-color: #ffd700;
}

nav ul li:nth-child(5) a {
    background-color: #0427B4;
}

nav ul li:nth-child(6) a {
    background-color: #40e0d0;
}

nav ul li:nth-child(7) a {
    background-color: #7b68ee;
}

nav ul li:nth-child(8) a {
    background-color: #ff69b4;
}

nav ul li:nth-child(9) a {
    background-color: #dc143c;
}

/* ... Add rules up to :nth-child(49) as needed ... */
nav ul li:nth-child(49) a {
    background-color: #dc143c;
}

/* --- END Top-Level Backgrounds --- */
/* Top-Level Link States */
nav ul li a:hover,
nav ul li a:focus {
    background-color: #f0e68c;
    color: #000;
    outline: none;
}

nav ul li a:active {
    background-color: #4682b4;
    color: #fff;
}

/* --- L2 Submenu Styling (Desktop) --- */
nav ul li ul {
    /* L2 UL */
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    background-color: #444;
    list-style: none;
    min-width: 224px;
    width: max-content;
    z-index: 1000;
    direction: rtl;
    padding: 0;
    margin: 0;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    border-top: 1px solid #555;
	
}

/* Show L2 on hover/focus of parent L1 li */
nav ul li:hover > ul,
nav ul li:focus-within > ul {
    display: block;
}

nav ul li ul li {
    /* L2 LI */
    width: 100%;
    text-align: right;
    border: none;
    position: relative;
    /* For L3 */
}

/* Base L2 Submenu Link Style */
nav ul li ul li a {
    padding: 0.75rem 1rem;
    color: #fff;
    background-color: transparent !important;
    /* Let nth-child handle bg */
    text-decoration: none;
    display: block;
    text-align: right;
    white-space: normal;
    transition: background-color 0.3s, color 0.3s;
}

/* Unique L2 Submenu Link Bgs (Desktop) */
/* Simplified L2 color application */
/* Unique L2 Submenu Link Bgs (Desktop) */
nav ul li ul li:nth-child(1) a {
    background-color: #CFE2A2 !important;
    color: #333 !important;
}

nav ul li ul li:nth-child(2) a {
    background-color: #FFDAB9 !important;
    color: #333 !important;
}

nav ul li ul li:nth-child(3) a {
    background-color: #ADD8E6 !important;
    color: #333 !important;
}

/* Light Blue */
nav ul li ul li:nth-child(4) a {
    background-color: #F0E68C !important;
    color: #333 !important;
}

/* Khaki */
nav ul li ul li:nth-child(5) a {
    background-color: #DDA0DD !important;
    color: #fff !important;
}

/* Plum */
nav ul li ul li:nth-child(6) a {
    background-color: #98FB98 !important;
    color: #333 !important;
}

/* Pale Green */
nav ul li ul li:nth-child(7) a {
    background-color: #FFB6C1 !important;
    color: #333 !important;
}

/* Light Pink */
nav ul li ul li:nth-child(8) a {
    background-color: #87CEFA !important;
    color: #333 !important;
}

/* Light Sky Blue */
nav ul li ul li:nth-child(9) a {
    background-color: #F5DEB3 !important;
    color: #333 !important;
}

/* Wheat */
nav ul li ul li:nth-child(10) a {
    background-color: #E0FFFF !important;
    color: #333 !important;
}

/* Light Cyan */
nav ul li ul li:nth-child(11) a {
    background-color: #CFE2A2 !important;
    color: #333 !important;
}

/* Light Green */
nav ul li ul li:nth-child(12) a {
    background-color: #FFDAB9 !important;
    color: #333 !important;
}

/* Peach */
nav ul li ul li:nth-child(13) a {
    background-color: #ADD8E6 !important;
    color: #333 !important;
}

/* Light Blue */
nav ul li ul li:nth-child(14) a {
    background-color: #F0E68C !important;
    color: #333 !important;
}

/* Khaki */
nav ul li ul li:nth-child(15) a {
    background-color: #DDA0DD !important;
    color: #fff !important;
}

/* Plum */
nav ul li ul li:nth-child(16) a {
    background-color: #98FB98 !important;
    color: #333 !important;
}

/* Pale Green */
nav ul li ul li:nth-child(17) a {
    background-color: #FFB6C1 !important;
    color: #333 !important;
}

/* Light Pink */
nav ul li ul li:nth-child(18) a {
    background-color: #87CEFA !important;
    color: #333 !important;
}

/* Light Sky Blue */
nav ul li ul li:nth-child(19) a {
    background-color: #F5DEB3 !important;
    color: #333 !important;
}

/* Wheat */
nav ul li ul li:nth-child(20) a {
    background-color: #E0FFFF !important;
    color: #333 !important;
}

/* Light Cyan */
nav ul li ul li:nth-child(21) a {
    background-color: #CFE2A2 !important;
    color: #333 !important;
}

/* Light Green */
nav ul li ul li:nth-child(22) a {
    background-color: #FFDAB9 !important;
    color: #333 !important;
}

/* Peach */
nav ul li ul li:nth-child(23) a {
    background-color: #ADD8E6 !important;
    color: #333 !important;
}

/* Light Blue */
nav ul li ul li:nth-child(24) a {
    background-color: #F0E68C !important;
    color: #333 !important;
}

/* Khaki */
nav ul li ul li:nth-child(25) a {
    background-color: #DDA0DD !important;
    color: #fff !important;
}

/* Plum */
nav ul li ul li:nth-child(26) a {
    background-color: #98FB98 !important;
    color: #333 !important;
}

/* Pale Green */
nav ul li ul li:nth-child(27) a {
    background-color: #FFB6C1 !important;
    color: #333 !important;
}

/* Light Pink */
nav ul li ul li:nth-child(28) a {
    background-color: #87CEFA !important;
    color: #333 !important;
}

/* Light Sky Blue */
nav ul li ul li:nth-child(29) a {
    background-color: #F5DEB3 !important;
    color: #333 !important;
}

/* Wheat */
nav ul li ul li:nth-child(30) a {
    background-color: #E0FFFF !important;
    color: #333 !important;
}

/* Light Cyan */
nav ul li ul li:nth-child(31) a {
    background-color: #CFE2A2 !important;
    color: #333 !important;
}

/* Light Green */
nav ul li ul li:nth-child(32) a {
    background-color: #FFDAB9 !important;
    color: #333 !important;
}

/* Peach */
nav ul li ul li:nth-child(33) a {
    background-color: #ADD8E6 !important;
    color: #333 !important;
}

/* Light Blue */
nav ul li ul li:nth-child(34) a {
    background-color: #F0E68C !important;
    color: #333 !important;
}

/* Khaki */
nav ul li ul li:nth-child(35) a {
    background-color: #DDA0DD !important;
    color: #fff !important;
}

/* Plum */
nav ul li ul li:nth-child(36) a {
    background-color: #98FB98 !important;
    color: #333 !important;
}

/* Pale Green */
nav ul li ul li:nth-child(37) a {
    background-color: #FFB6C1 !important;
    color: #333 !important;
}

/* Light Pink */
nav ul li ul li:nth-child(38) a {
    background-color: #87CEFA !important;
    color: #333 !important;
}

/* Light Sky Blue */
nav ul li ul li:nth-child(39) a {
    background-color: #F5DEB3 !important;
    color: #333 !important;
}

/* Wheat */
nav ul li ul li:nth-child(40) a {
    background-color: #E0FFFF !important;
    color: #333 !important;
}

/* Light Cyan */
nav ul li ul li:nth-child(41) a {
    background-color: #CFE2A2 !important;
    color: #333 !important;
}

nav ul li ul li:nth-child(42) a {
    background-color: #FFDAB9 !important;
    color: #333 !important;
}

nav ul li ul li:nth-child(43) a {
    background-color: #ADD8E6 !important;
    color: #333 !important;
}

nav ul li ul li:nth-child(44) a {
    background-color: #F0E68C !important;
    color: #333 !important;
}

nav ul li ul li:nth-child(45) a {
    background-color: #DDA0DD !important;
    color: #fff !important;
}

/* Plum */
nav ul li ul li:nth-child(46) a {
    background-color: #98FB98 !important;
    color: #333 !important;
}

/* Pale Green */
nav ul li ul li:nth-child(47) a {
    background-color: #FFB6C1 !important;
    color: #333 !important;
}

/* Light Pink */
nav ul li ul li:nth-child(48) a {
    background-color: #87CEFA !important;
    color: #333 !important;
}

/* Light Sky Blue */
nav ul li ul li:nth-child(49) a {
    background-color: #F5DEB3 !important;
    color: #333 !important;
}

/* Wheat */
nav ul li ul li:nth-child(50) a {
    background-color: #E0FFFF !important;
    color: #333 !important;
}

/* ... other L2 color rules ... */
/* L2 Submenu Hover/Focus */
nav ul li ul li a:hover,
nav ul li ul li a:focus {
    background-color: #555 !important;
    color: #fff !important;
    outline: none;
}

/* --- L3 Submenu (Desktop) --- */
nav ul li ul li ul {
    /* L3 UL */
    display: none;
    position: absolute;
    top: 0;
    right: 100%;
    margin-right: -1px;
    background-color: #505050;
    list-style: none;
    min-width: 200px;
    width: max-content;
    z-index: 1100;
    direction: rtl;
    padding: 0;
    margin: 0;
    box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.3);
    border: 1px solid #666;
	
}

/* Show L3 */
nav ul li ul li:hover > ul,
nav ul li ul li:focus-within > ul {
    display: block;
}

nav ul li ul li ul li {
    /* L3 LI */
    width: 100%;
    text-align: right;
    border: none;
    position: relative;
    /* For L4 */
}

/* L3 Base Link */
nav ul li ul li ul li a {
    padding: 0.6rem 1rem;
    color: #eee;
    background-color: #505050 !important;
    /* Match container */
    text-decoration: none;
    display: block;
    text-align: right;
    white-space: normal;
    transition: background-color 0.3s, color 0.3s;
}

/* L3 Unique Link Bgs */
nav ul li ul li ul li:nth-child(1) a {
    background-color: #F5DEB3 !important;
    color: #333 !important;
}

nav ul li ul li ul li:nth-child(2) a {
    background-color: #E0FFFF !important;
    color: #333 !important;
}

nav ul li ul li ul li:nth-child(3) a {
    background-color: #87CEFA !important;
    color: #333 !important;
}

/* Light Blue */
nav ul li ul li ul li:nth-child(4) a {
    background-color: #F0E68C !important;
    color: #333 !important;
}

/* Khaki */
nav ul li ul li ul li:nth-child(5) a {
    background-color: #DDA0DD !important;
    color: #fff !important;
}

/* Plum */
nav ul li ul li ul li:nth-child(6) a {
    background-color: #98FB98 !important;
    color: #333 !important;
}

/* Pale Green */
nav ul li ul li ul li:nth-child(7) a {
    background-color: #FFB6C1 !important;
    color: #333 !important;
}

/* Light Pink */
nav ul li ul li ul li:nth-child(8) a {
    background-color: #87CEFA !important;
    color: #333 !important;
}

/* Light Sky Blue */
nav ul li ul li ul li:nth-child(9) a {
    background-color: #F5DEB3 !important;
    color: #333 !important;
}

/* Wheat */
nav ul li ul li ul li:nth-child(10) a {
    background-color: #E0FFFF !important;
    color: #333 !important;
}

/* Light Cyan */
nav ul li ul li ul li:nth-child(11) a {
    background-color: #CFE2A2 !important;
    color: #333 !important;
}

nav ul li ul li ul li:nth-child(12) a {
    background-color: #FFDAB9 !important;
    color: #333 !important;
}

/* Peach */
nav ul li ul li ul li:nth-child(13) a {
    background-color: #ADD8E6 !important;
    color: #333 !important;
}

/* Light Blue */
nav ul li ul li ul li:nth-child(14) a {
    background-color: #F0E68C !important;
    color: #333 !important;
}

/* Khaki */
nav ul li ul li ul li:nth-child(15) a {
    background-color: #DDA0DD !important;
    color: #fff !important;
}


nav ul li ul li ul li:nth-child(16) a {
    background-color: #F5DEB3 !important;
    color: #333 !important;
}

nav ul li ul li ul li:nth-child(17) a {
    background-color: #E0FFFF !important;
    color: #333 !important;
}

nav ul li ul li ul li:nth-child(18) a {
    background-color: #87CEFA !important;
    color: #333 !important;
}

/* Light Blue */
nav ul li ul li ul li:nth-child(19) a {
    background-color: #F0E68C !important;
    color: #333 !important;
}

/* Khaki */
nav ul li ul li ul li:nth-child(20) a {
    background-color: #DDA0DD !important;
    color: #fff !important;
}

/* Plum */
nav ul li ul li ul li:nth-child(21) a {
    background-color: #98FB98 !important;
    color: #333 !important;
}

/* Pale Green */
nav ul li ul li ul li:nth-child(22) a {
    background-color: #FFB6C1 !important;
    color: #333 !important;
}

/* Light Pink */
nav ul li ul li ul li:nth-child(23) a {
    background-color: #87CEFA !important;
    color: #333 !important;
}

/* Light Sky Blue */
nav ul li ul li ul li:nth-child(24) a {
    background-color: #F5DEB3 !important;
    color: #333 !important;
}

/* Wheat */
nav ul li ul li ul li:nth-child(25) a {
    background-color: #E0FFFF !important;
    color: #333 !important;
}

/* Light Cyan */
nav ul li ul li ul li:nth-child(26) a {
    background-color: #CFE2A2 !important;
    color: #333 !important;
}

nav ul li ul li ul li:nth-child(27) a {
    background-color: #FFDAB9 !important;
    color: #333 !important;
}

/* Peach */
nav ul li ul li ul li:nth-child(28) a {
    background-color: #ADD8E6 !important;
    color: #333 !important;
}

/* Light Blue */
nav ul li ul li ul li:nth-child(29) a {
    background-color: #F0E68C !important;
    color: #333 !important;
}

/* Khaki */
nav ul li ul li ul li:nth-child(30) a {
    background-color: #DDA0DD !important;
    color: #fff !important;
}



/* Plum */
/* L3 Link Hover/Focus */
nav ul li ul li ul li a:hover,
nav ul li ul li ul li a:focus {
    background-color: #666 !important;
    color: #fff !important;
    outline: none;
}

/* --- L4 Submenu (Desktop) --- */
nav ul li ul li ul li ul {
    /* L4 UL */
    display: none;
    position: absolute;
    top: 0;
    right: 100%;
    margin-right: -1px;
    background-color: #5a5a5a;
    list-style: none;
    min-width: 180px;
    width: max-content;
    z-index: 1200;
    direction: rtl;
    padding: 0;
    margin: 0;
    box-shadow: 6px 6px 12px 0px rgba(0, 0, 0, 0.3);
    border: 1px solid #777;
	
}

/* Show L4 */
nav ul li ul li ul li:hover > ul,
nav ul li ul li ul li:focus-within > ul {
    display: block;
}

nav ul li ul li ul li ul li {
    /* L4 LI */
    width: 100%;
    text-align: right;
    border: none;
}

/* L4 Base Link */
nav ul li ul li ul li ul li a {
    padding: 0.5rem 1rem;
    color: #ddd;
    background-color: #5a5a5a !important;
    /* Match container */
    text-decoration: none;
    display: block;
    text-align: right;
    white-space: normal;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.9em;
}

/* L4 Unique Link Bgs */
/* Simplified L4 color application */
nav ul li ul li ul li ul li:nth-child(1) a {
    background-color: #FddEB3 !important;
    color: #333 !important;
}

nav ul li ul li ul li ul li:nth-child(2) a {
    background-color: #E0ddFF !important;
    color: #333 !important;
}

nav ul li ul li ul li ul li:nth-child(3) a {
    background-color: #87ffFA !important;
    color: #333 !important;
}

/* Light Blue */
nav ul li ul li ul li ul li:nth-child(4) a {
    background-color: #F0E68C !important;
    color: #333 !important;
}

/* Khaki */
nav ul li ul li ul li ul li:nth-child(5) a {
    background-color: #DDA0DD !important;
    color: #fff !important;
}

/* Plum */
nav ul li ul li ul li ul li:nth-child(6) a {
    background-color: #98FB98 !important;
    color: #333 !important;
}

/* Pale Green */
nav ul li ul li ul li ul li:nth-child(7) a {
    background-color: #FFB6C1 !important;
    color: #333 !important;
}

/* Light Pink */
nav ul li ul li ul li ul li:nth-child(8) a {
    background-color: #87CEFA !important;
    color: #333 !important;
}

/* Light Sky Blue */
nav ul li ul li ul li ul li:nth-child(9) a {
    background-color: #F5DEB3 !important;
    color: #333 !important;
}

/* Wheat */
nav ul li ul li ul li ul li:nth-child(10) a {
    background-color: #E0FFFF !important;
    color: #333 !important;
}

/* Light Cyan */
nav ul li ul li ul li ul li:nth-child(11) a {
    background-color: #CFE2A2 !important;
    color: #333 !important;
}

nav ul li ul li ul li ul li:nth-child(12) a {
    background-color: #FFDAB9 !important;
    color: #333 !important;
}

nav ul li ul li ul li ul li:nth-child(13) a {
    background-color: #ADD8E6 !important;
    color: #333 !important;
}

/* Light Blue */
nav ul li ul li ul li ul li:nth-child(14) a {
    background-color: #F0E68C !important;
    color: #333 !important;
}

/* Khaki */
nav ul li ul li ul li ul li:nth-child(15) a {
    background-color: #DDA0DD !important;
    color: #fff !important;
}

/* Plum */
nav ul li ul li ul li ul li:nth-child(16) a {
    background-color: #98FB98 !important;
    color: #333 !important;
}

/* Pale Green */
nav ul li ul li ul li ul li:nth-child(17) a {
    background-color: #FFB6C1 !important;
    color: #333 !important;
}

/* Light Pink */
nav ul li ul li ul li ul li:nth-child(18) a {
    background-color: #87CEFA !important;
    color: #333 !important;
}

/* Light Sky Blue */
nav ul li ul li ul li ul li:nth-child(19) a {
    background-color: #F5DEB3 !important;
    color: #333 !important;
}

/* Wheat */
nav ul li ul li ul li ul li:nth-child(20) a {
    background-color: #E0FFFF !important;
    color: #333 !important;
}

/* Light Cyan */
nav ul li ul li ul li ul li:nth-child(21) a {
    background-color: #FddEB3 !important;
    color: #333 !important;
}

nav ul li ul li ul li ul li:nth-child(22) a {
    background-color: #E0ddFF !important;
    color: #333 !important;
}

nav ul li ul li ul li ul li:nth-child(23) a {
    background-color: #87ffFA !important;
    color: #333 !important;
}

/* Light Blue */
nav ul li ul li ul li ul li:nth-child(24) a {
    background-color: #F0E68C !important;
    color: #333 !important;
}

nav ul li ul li ul li ul li:nth-child(25) a {
    background-color: #DDA0DD !important;
    color: #fff !important;
}

/* Plum */
/* L4 Link Hover/Focus */
nav ul li ul li ul li ul li a:hover,
nav ul li ul li ul li ul li a:focus {
    background-color: #777 !important;
    color: #fff !important;
    outline: none;
}

/* --- Hamburger Button --- */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
}

/* --- Responsive Styles for Mobile ( <= 600px) --- */
/* @media (max-width: 600px) {
*/	
	@media screen and (max-width: 600px),
       screen and (min-width: 820px) and (max-width: 1180px) and (orientation: portrait) {
    /* Styles for both mobile and iPad Air 4 in portrait mode */
	
	
    header {
        height: 225px;
    }

    .slider img {
        object-fit: cover;
    }

    nav {
        padding: 0;
        justify-content: flex-end;
    }

    .hamburger {
        display: block;
    }

    /* ---------------------------------------------------- */
    /* Main mobile menu container */
    /* ---------------------------------------------------- */
    nav ul {
        display: none;
        flex-direction: column;
        width: 90%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #444;
        z-index: 999;
        border-top: 1px solid #555;
		overflow-y: auto;
        overflow-x: hidden;
    }

    nav ul.active {
        display: flex;
    }

    /* ---------------------------------------------------- */
    /* L1 mobile items */
    /* ---------------------------------------------------- */
    nav ul li {
        flex: 1 0 100%;
        width: 100%;
        text-align: right;
        border-left: none;
        border-top: 1px solid #555;
    }

    nav ul li:first-child {
        border-top: none;
    }

    nav ul li a {
        justify-content: flex-end;
        padding: 1rem 1.5rem;
        white-space: normal;
    }

    /* ---------------------------------------------------- */
    /* L2 Mobile Submenu Container */
    /* ---------------------------------------------------- */
    nav ul li ul {
        position: static;
        width: 90%;
        box-shadow: none;
        border-top: none;
        display: none;
        /* Hide L2 by default */
        background-color: #3a3a3a;
        z-index: auto;
	 	overflow-y: auto;
        overflow-x: hidden;
    }

    nav ul li ul.submenu-active {
        display: block;
    }

    /* Show L2 when toggled */
    /* L2 Mobile Items */
    nav ul li ul li {
        border-top: 1px solid #555;
        position: static;
    }

    nav ul li ul li:first-child {
        border-top: none;
    }

    /* L2 Mobile Base Link */
    nav ul li ul li a {
        padding-right: 2.5rem;
        background-color: transparent !important;
        color: #eee;
    }

    /* L2 Unique Mobile Link Bgs */
    nav ul li ul li:nth-child(1) a {
        background-color: #708090 !important;
        color: #fff !important;
    }

    /* ... other L2 nth-child mobile rules ... */
    /* L2 Mobile Hover/Focus */
    nav ul li ul li a:hover,
    nav ul li ul li a:focus {
        background-color: #888 !important;
        color: #fff !important;
    }

    /* ---------------------------------------------------- */
    /* L3 Mobile Submenu Container */
    /* ---------------------------------------------------- */
    nav ul li ul li ul {
        position: static;
        width: 90%;
        display: none;
        /* Hide L3 by default */
        background-color: #2c2c2c;
        padding: 0;
        margin: 0;
        box-shadow: none;
        border: none;
        z-index: auto;
		overflow-y: auto;
        overflow-x: hidden; 
    }

    /* Show L3 when toggled */
    nav ul li ul li ul.sub-submenu-active {
        display: block;
    }

    /* L3 Mobile Items */
    nav ul li ul li ul li {
        border-top: 1px solid #4a4a4a;
    }

    nav ul li ul li ul li:first-child {
        border-top: none;
    }

    /* L3 Mobile Base Link */
    nav ul li ul li ul li a {
        padding-right: 3.5rem;
        background-color: transparent !important;
        color: #ddd;
    }

    /* L3 Mobile Hover/Focus */
    nav ul li ul li ul li a:hover,
    nav ul li ul li ul li a:focus {
        background-color: #4d4d4d !important;
        color: #fff !important;
    }

    /* ---------------------------------------------------- */
    /* L4 Mobile Submenu Container */
    /* ---------------------------------------------------- */
    nav ul li ul li ul li ul {
        /* Select L4 UL */
        position: static;
        width: 90%;
        display: none;
        /* Hide L4 by default */
        background-color: #1e1e1e;
        padding: 0;
        margin: 0;
        box-shadow: none;
        border: none;
        z-index: auto;
		overflow-y: auto;
        overflow-x: hidden; 
    }

    /* Show L4 when toggled */
    nav ul li ul li ul li ul.sub-sub-submenu-active {
        display: block;
    }

    /* L4 Mobile Items */
    nav ul li ul li ul li ul li {
        border-top: 1px solid #3a3a3a;
    }

    nav ul li ul li ul li ul li:first-child {
        border-top: none;
    }

    /* L4 Mobile Base Link */
    nav ul li ul li ul li ul li a {
        padding-right: 4.5rem;
        background-color: transparent !important;
        color: #ccc;
        font-size: 0.9em;
    }

    /* L4 Mobile Hover/Focus */
    nav ul li ul li ul li ul li a:hover,
    nav ul li ul li ul li ul li a:focus {
        background-color: #383838 !important;
        color: #fff !important;
    }
}
/* End media query */


/* --- Main Content & Footer --- */
main {
    padding: 2rem;
    text-align: right;
    flex-grow: 1;
    background-color: #000;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: #fff;
    flex-shrink: 0;
}
video {
    width: 95%;
    height: auto;
    display: block;
}
h3{
		background-color: #FFECA1;
		color: #333;
		}
footer p {
    color: #fff;
    margin: 0;
}