/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #F2F6FA;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
}

/* Header Styles */
header {
    background-color: #277ab9;
    color: #fff;
    padding: 15px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    margin-left: 250px;
    justify-content: center;
    flex-direction: column; /* Stack elements for responsiveness */
}

.header-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-wrap: wrap; /* Wrap for smaller screens */
}

.logo {
    height: 80px; /* Adjusted for better spacing */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 6px;
    max-width: 150px;
    height: auto;
}

.language-selector {
    position: absolute;
    right: 15px;
    top: 15px;
    transform: translateY(-50%);
}

.language-selector select {
    padding: 5px;
    font-size: 14px;
    background-color: #277ab9;
    color: white;
    border: none;
    cursor: pointer;
}

.language-selector select:hover {
    background-color: #225f93;
}

.language-selector select:focus {
    outline: none;
}

/* Responsive Content */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

h1 {
    text-align: left;
    flex: 1;
}

/* Navigation Styles */
nav {
    position: fixed; /* Fix the nav on the left */
    left: 0;
    width: 250px; /* Fixed width for the navigation */
    background-color: #277ab9;
    font-size: 1.1em;
    box-shadow: 0px 0 0px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* Ensures scrollability if needed */
    min-height: 100%; /* Extend to footer */
}

.nav-links {
    display: flex;
    flex-direction: column; /* Stack nav items vertically */
    gap: 15px;
    padding-left: 10px;
}

nav a {
    margin: 0;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    color: white;
}

nav a:hover {
    background-color: #225f93;
}

nav a:hover + .submenu, .submenu:hover {
    display: block;
}

.menu-bar {
    display: flex;
    background-color: #333;
    padding: 0px;
    justify-content: left;
    position: relative;
}

/* Submenu styling */
.submenu {
    display: none;
    position: absolute;
    top: 100%; /* Position it right below the menu item */
    left: 0;
    background-color: #444;
    min-width: 180px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.submenu a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden; /* Hides overflowed text */
    text-overflow: ellipsis; /* Adds '...' for overflowed text */
    min-width: 250px; /* Adjust width as needed */
}

.submenu a:hover {
    background-color: #b84040;
}

.menu-item {
    position: relative;
    background-color: #333;
    display: inline-block;
    color: white;
    cursor: pointer;
    padding: 10px;
}

.menu-item:hover {
    background-color: #b84040;
}

/* Show submenu when hovering over the parent */
.menu-item:hover .submenu {
    display: block;
}

/* Submenu for submenu (nested submenu) */
.submenu .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%; /* Position to the right of the parent submenu */
    background-color: #555;
}

.submenu-item {
    position: relative;
}

/* Show nested submenu when hovering over a submenu item */
.submenu-item:hover .submenu {
    display: block;
}

.submenu img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}
/* Main content adjustment */
main {
    padding: 2rem 1rem;
    margin-left: 250px; /* Space for the fixed left navigation */
}

.toolbar {
    display: flex;
    padding: 5px;
    justify-content: left;
    border-left: 2px solid #000;
    border-right: 2px solid #000;
}
.toolbar button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-right: 5px;
}
.toolbar button img {
    width: 24px;
    height: 24px;
}
.toolbar button:hover {
    background-color: #b84040;
}  

#logger {
    border: 2px solid #333;
    padding: 10px;
    overflow-y: auto;
    height: 150px;
    margin-top: 10px;
}

/* Responsive Navigation */
.hamburger {
    display: none;
    background-color: #277ab9;
    color: white;
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Tab Menu */
.tab-menu {
    display: flex;
    justify-content: center;
    background-color: #f7f7f7;
    padding: 10px 0;
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    border: none;
    background-color: #f7f7f7;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-button:hover, .tab-button.active {
    background-color: #e2e2e2;
    color: #277ab9;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: white;
}

.tab-content.active {
    display: block;
}

/* Responsive Styles */
@media screen and (max-width: 767px) {
    header {
        margin-left: 0;
    }    
    /* Header adjustments */
    .logo {
        position: static;
        margin-right: 0;
        align-items: center;
        padding-top: 15px;
        height: auto; /* Adjusted to fit better on smaller screens */
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between; /* Ensure space between logo and language selector */
        padding: 10px;
    }

    .language-selector {
        top: 20px; /* Ensure language selector stays at the top */
    }

    .desktop-nav {
        display: none; /* Hide desktop navigation on mobile */
    }

    .toolbar button {
        width: 40px;
        height: 40px;
    }
    
    .hamburger {
        display: block;
        width: 100%; /* Ensure hamburger is full width */
        text-align: center;
        padding: 12px;
        font-size: 26px;
        cursor: pointer;
        background-color: #277ab9;
        color: white;
    }

    /* Mobile Navigation bar */
    nav {
        position: relative; /* Adjust to make it part of the normal flow below the header */
        top: auto; /* Reset the fixed positioning */
        width: 100%; /* Full width */
        height: auto; /* Allow the height to adapt */
        background-color: #277ab9;
        align-items: center;
        font-size: 1.1em;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px;
    }

    .nav-links {
        width: 15%;
        height: 100%;
        display: flex;
        position: fixed;
        flex-direction: column; /* Stack nav items vertically */
        gap: 10px; /* Reduced gap for better spacing */
        padding-left: 0; /* Remove left padding */
    }

    .nav-links a {
        padding: 12px;
        text-align: left;
    }

    /* Main Content adjustments */
    main {
        padding: 2rem 1rem;
        margin-top: 20px; /* Add margin-top to give space below the navigation */
        margin-left: 0; /* Ensure no left margin on mobile */
        margin-top: 20px; /* Add margin-top to give space below the navigation */
    }

    /* Tab Menu */
    .tab-menu {
        flex-direction: row; /* Align tab menu items horizontally */
        align-items: stretch;
        padding: 15px 0; /* Added padding for better spacing */
    }

    .tab-button {
        width: 100%; /* Make buttons fill the full width */
        padding: 12px;
        cursor: pointer;
        text-align: center;
        background-color: #f7f7f7;
        font-size: 16px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Main Content Styles */
main {
    padding: 2rem 1rem;
}
.main-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    text-align: left;
    padding: 20px; /* Added padding for better spacing */
}

/* Construction Message */
.construction-message {
    font-size: 24px;
    color: #277ab9;
    text-align: center; /* Center the message */
    padding: 20px;
}

.construction-message p {
    margin: 10px 0;
}

form {
    background: #f9f9f9;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-details {
    margin-top: 2rem;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-details h3 {
    margin-top: 0;
}

/* Footer */
footer {
    display: flex;
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
    background-color: #277ab9; /* Adjust color */
    color: white;
    text-align: center;
}

.social-links {
    position: absolute;
    bottom: 20px; /* Align it to the bottom */
    right: 20px; /* Align it to the right */
    display: flex;
    gap: 10px;
}

.social-links a {
    text-decoration: none;
}

/* LinkedIn Icon */
.social-links a.linkedin {
    color: #07405f; /* LinkedIn blue */
}

/* YouTube Icon */
.social-links a.youtube {
    color: #ff0000; /* YouTube red */
}

/* Email Icon */
.social-links a.email {
    color: #333; /* Default color for the envelope icon */
}
/* Typography */
h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 10px;
}

ul li, ol li {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

strong.green {
    font-weight: bold;
    color: #0b610b;
}

strong.red {
    font-weight: bold;
    color: #e40c0c;
}

em {
    font-style: italic;
    color: #d8cbcb;
}

tr:hover {
    background-color: #f1f1f1; /* Lighter hover effect */
}

/* Accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #ffcc00;
    outline-offset: 2px;
}


/* Auth Buttons Styles */
.auth-buttons a {
    background-color: #277ab9; /* Same as nav background color */
    color: white;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.auth-buttons a:hover {
    background-color: #225f93; /* Darker shade of the same color for hover effect */
}

/* Active or focused auth buttons */
.auth-buttons a:focus, .auth-buttons a:active {
    outline: none;
    background-color: #1a4f7d; /* Another shade of blue for active/focused state */
}

header, footer, nav {
    background-color: #277ab9; /* Same color to connect */
    color: white;
    text-align: left;
}

