/* ========== CHANGED: Import professional font instead of Marck Script ========== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/*
 @font-face {
  font-family: 'Marck Script';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/marck-script-v20-cyrillic_latin_latin-ext-regular.woff2') format('woff2');
  font-display: swap;
}
*/

* {
    margin: 0;
    padding: 0;
}


/* horizontal nav start */

nav {
   /* background-color: white; */
    /* ========== CHANGED: Professional blue instead of brown ========== */
    background-color: #2C5F8D;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10000;
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li {
    height: 50px;
    position: relative; /* *** ADDED: needed for submenu positioning *** */
}

nav a{
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    /* ========== CHANGED: White text for better contrast ========== */
    color: #FFFFFF;
    /* font-family: sans-serif; */
    /* ========== CHANGED: Inter font for readability ========== */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    /* ========== CHANGED: Added font-weight for better legibility ========== */
    font-weight: 500;
}

nav a:hover {
    /* ========== CHANGED: Darker blue hover state ========== */
    background-color: #1A3A52;
}

nav li:first-child {
    margin-right: auto;
}

/* *** ADDED: Submenu styling for desktop nav *** */
/* ========== CORRECTED: This targets submenu in DESKTOP nav (second <ul>) ========== */
.submenu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    /* ========== CHANGED: Darker blue for submenu ========== */
    background-color: #1A3A52;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
    /* ========== CHANGED: Allow submenu to grow with content ========== */
    min-width: 250px;
    width: max-content;
    flex-direction: column;
    list-style: none;
}

.submenu li {
    height: auto;
    /* ========== CHANGED: Removed width: 100% so li doesn't expand beyond content ========== */
    /* ========== CHANGED: Prevent text wrapping ========== */
    white-space: nowrap;
}

.submenu a {
    padding: 15px 30px;
    /* ========== CHANGED: Removed width: 100% and added display: block ========== */
    display: block;
    font-size: 16px;
}

/* ========== CHANGED: Added hover effect for submenu items ========== */
.submenu a:hover {
    background-color: #2C5F8D;
}

/* Show submenu on hover - ONLY on desktop */
nav li:hover .submenu {
    display: flex;
}
/* *** END ADDED *** */



/* horizontal nav  */
/* vertical nav  */


.sidebar {
    position: fixed; /* fixing the sidebar to stay always there */ 
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);       /* making it transparent, the b-color must not be white */
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    width: 100%;
    /* ========== CHANGED: Added dark text color for sidebar links ========== */
    color: #1F2937;
    /* ========== CHANGED: Applied Inter font to sidebar ========== */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
}

/* ========== CHANGED: Added hover effect for sidebar links ========== */
.sidebar a:hover {
    background-color: rgba(44, 95, 141, 0.1);
}

/* ========== REMOVED: No submenu styling for sidebar (mobile doesn't have submenu) ========== */

.menu-button{
    display: none;
}

/* ARROW STARTs */

.back-arrow a {
    padding: 0 20px !important;
    transition: transform 0.2s ease;
}

.back-arrow a:hover {
    transform: translateY(-3px);
}

.back-arrow svg {
    width: 24px;
    height: 24px;
    fill: #FFFFFF;
}
/* ARROW ENDs */


@media(max-width: 800px){
    .hideOnMobile{
        display: none;
    }
    .menu-button{
        display: block;
    }
}

@media(max-width: 400px){
    .sidebar{
        width: 100%;
    }
}