/* Header Section */
header {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  align-items: center;
  background-color: #fff;
  padding-left: 10px;
  padding-right: 23px;
  padding-top: 80px;
  padding-bottom: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;

  /* Animation for sliding */
  transition: top 0.3s ease-in-out;
}


/* smooth transform for elements that should follow the header */
[data-follow-header] {
  transition: transform 0.30s ease;
  will-change: transform;
  /* ensure no unexpected stacking change */
  /* keep their existing position: fixed; top: ...; left/right: ...; */
}





  /* Logo Container: Display flex to align items horizontally */
.logo-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 250;
    display: flex;            /* Horizontal layout */
    align-items: center;      /* Vertically center items */
    gap: 10px;                /* Space between logo and text */
  }
  
  .logo {
    max-height: 90px;
    width: auto;
  }
  
/* global variables (tweak these to change sizes app-wide) */
:root{
  /* D-Red / Empire main text */
  --logo-min: 14px;        /* absolute minimum */
  --logo-preferred: 2vw;   /* flexible preferred size */
  --logo-max: 40px;        /* absolute maximum */

  /* Motto text size */
  --motto-min: 5px;
  --motto-preferred: 1vw;
  --motto-max: 10px;

  /* horizontal shift for styling (tweak or set to 0) */
  --logo-shift-desktop: -75%;
  --logo-shift-tablet: -6%;
  --logo-shift-mobile: -6%;
}

/* Container */
.logo-text{
  display: flex;
  flex-direction: column;
  text-align: right;        /* keep it right aligned as you had */
}

/* Heading */
.logo-text h2{
  margin: 0;
  white-space: nowrap;
  gap: .25em;
  /* translateX is optional — change via variable */
  transform: translateX(var(--logo-shift-desktop));
  transition: transform .25s ease; /* smooth when breakpoint changes */
}


/* Parts of the logo text */
.logo-part{
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  /* correct clamp usage: clamp(min, preferred, max) */
  font-size: clamp(var(--logo-min), var(--logo-preferred), var(--logo-max));
  font-weight: 600;
  text-shadow: 3px 3px 4px rgba(0,0,0,0.2);
  line-height: 1; /* keep tight */
}

/* blue part */
.logo-part--blue{
  color: rgb(0, 0, 230);
}

/* Empire container */
.empire{ display:inline-block; }

/* gradient E */
.letter-e{
  background: linear-gradient(
    to right,
    blue 0%,
    blue 40%,
    #c62100 60%,
    #c62100 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* rest of "mpire" */
.rest{ color: #b71e00; }

/* Motto */
.logo-text .motto{
  font-size: clamp(var(--motto-min), var(--motto-preferred), var(--motto-max));
  font-weight: 500;
  font-style: italic;
  color: #000;
  text-shadow: 3px 3px 4px rgba(0,0,0,0.2);
  transform: translateX(var(--logo-shift-desktop));
  transition: transform .25s ease, font-size .15s ease;
}

header .logo-text .motto,
.navbar .logo-text .motto,
.site-header .logo-text .motto {
  font-size: clamp(5px, 0.6vw, 10px);
  line-height: 1.1;
}

.logo-link {
  display: inline-block;   /* keeps it block-like but still a link */
  text-decoration: none;   /* remove underline */
  color: inherit;
}
  
  
  /* Top Right Bar: Fixed at top right with adequate spacing */
  .top-right-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 250;
    
  }
  
  /* Container for the toggle and dropdown */
  .language-toggle {
    position: relative;
    display: inline-block; 
  }
  
  /* 
    The toggle switch (initially off):
    - A horizontal pill shape with a sliding circle inside.
  */
  .lang-switch {
    width: 62px;              /* Overall width of the switch */
    height: 28px;             /* Overall height of the switch */
    border-radius: 20px;      /* Creates the pill shape */
    background: #ffffff;         /* Default background color when off */
    position: relative;       /* So we can place the circle absolutely */
    cursor: pointer;          /* Indicate it's clickable */
    transition: background 0.3s;
    border: 2px solid rgb(6, 0, 179);
    /* data-state="off" means it's in the off position by default */
  }
  
  /* 
    The circle inside the switch:
    - We place a globe icon inside it to indicate language.
    - Moves left/right depending on on/off state.
  */
  .toggle-circle {
    position: absolute;
    left: 3px;           /* Left position when off */
    width: 24px;
    height: 24px;
    border-radius: 50%;  /* Make it a circle */
    background: #fff;    /* White circle background */
    display: flex;       /* So we can center the icon */
    align-items: center;
    justify-content: center;
    transition: left 0.3s;  /* Smooth slide animation */
    color: rgb(6, 0, 168);            /* Color for the globe icon */
    font-size: 20px;        /* Size of the globe icon */
  }
  
  /*
    If the switch is on, we change background color and
    move the circle to the right by adjusting left.
  */
  .lang-switch[data-state="on"] {
    background:#ffffff;  /* Blue background when on */
  }
  
  /* Slide the circle to the right when on */
  .lang-switch[data-state="on"] .toggle-circle {
    left: 30px; 
    color: rgb(168, 0, 0); /* White icon color when on */
  }
  
  /* ================================
     Dropdown styling
  ================================ */
  
  /* Hidden by default */
  .language-dropdown {
    display: none;
    position: absolute;
    top: 110%;           /* Just below the switch */
    left: 0;
    background: #ffffff;
    font-weight: 600;
    border: 1px solid #ccc;
    list-style: none;
    padding: 5px 20px;
    margin: 0;
    min-width: 120px;
    z-index: 1000;
  }
  
  .language-dropdown li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;               /* Start fully to the left */
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #020092, #0400ff); 
    transition: left 0.3s ease;   /* Smooth sliding animation */
    z-index: 999999 !important;                  /* Place behind the text */
    border-radius: 4px;           /* Match the link's border-radius */
  }
  
  /* Dropdown items */
  .language-dropdown {
    border-radius: 20px;
    border-color: #000000;
  }
  
  .language-dropdown li {
    padding: 8px 15px;
    transition: background-color 0.3s;
  }
  
  /* Basic styling for the dropdown links (before the fancy effect) */
  .language-dropdown li a {
    position: relative;     /* Needed for pseudo-elements */
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    transition: 0.3s;
    display: block;
    overflow: hidden;       /* Ensures the pseudo-element doesn't overflow */
    border-radius: 4px;     /* Slightly rounded corners */
  }
  
  .language-dropdown li a::after {
    content: "";
    position: absolute;
    inset: 0;                    /* Cover the entire area of the link */
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.15s ease, transform 0.15s ease;
    transform: scale(0.9);       /* Slightly smaller initially */
  }
  
  /* Hover effect on dropdown items */
  .language-dropdown li a:hover {
    background-color: #f0f0f0;
  }
  
  .language-dropdown li a:hover::before {
    left: 0;
  }
  
  .language-dropdown li a:hover::after {
    border-color: #940000;       /* Same or complementary color to the gradient */
    transform: scale(1);
  }
  
  
  
  
  
  
  /* ---------- Search UI: Base header search bar ---------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 2px solid #0300b5;
  border-radius: 6px;
  background: #fff;
  width: min(420px, 100%);
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
  cursor: text;
}

.search-bar:focus-within {
  border-color: #0300b5;
  box-shadow: 0 0 12px rgba(3,0,181,0.12);
  transform: translateY(-1px);
}

.search-bar input[type="search"] {
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  width: 180px;
  min-width: 80px;
  padding: 6px 8px;
  background: transparent;
  cursor: text;
}

.search-button { background:none; border:none; cursor:pointer; color:#0300b5; font-size:16px; }

/* ---------- Results dropdown (header inline) ---------- */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 6px;
  z-index: 2200;
  width: 420px;
  max-width: 94vw;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(18,18,18,0.08);
  padding: 8px;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}
.search-results.active { display:block; }

.result-item { padding: 10px; border-bottom: 1px solid #eee; }
.result-item:last-child { border-bottom: none; }
.result-item a { color:#222; text-decoration:none; display:block; font-weight:700; }
.result-item h4 { margin:0 0 6px 0; font-size:15px; }
.result-item p { margin:0; color:#666; font-size:13px; }
.badge { display:inline-block; padding:4px 8px; border-radius:6px; font-weight:700; font-size:11px; background:#f0f2ff; color:#0300b5; margin-top:8px; }

/* ---------- Full-screen overlay modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}
.overlay.active { pointer-events:auto; opacity:1; }
.overlay.hidden { pointer-events:none; opacity:0; }

/* modal */
.search-modal {
  background:#fff;
  width:min(980px,100%);
  max-width:980px;
  border-radius:10px;
  padding:20px;
  box-shadow:0 18px 60px rgba(0,0,0,0.28);
  transform:translateY(-8px);
  transition:transform .22s ease,opacity .18s ease;
  max-height:calc(100vh - 120px);
  overflow:auto;
}

/* buttons */
.search-modal .buttons { display:flex; gap:12px; justify-content:space-between; margin-bottom:18px; }
.search-modal .buttons button { flex:1; padding:12px 10px; border-radius:8px; border:2px solid #0300b5; background:#fff; color:#0300b5; font-weight:700; cursor:pointer; transition:all .12s ease; }
.search-modal .buttons button:hover, .search-modal .buttons button.active { background:#0300b5; color:#fff; transform:translateY(-2px); }

/* dropdown container */
.dropdown-container { margin-top:6px; }
#dropdown-label { display:block; font-weight:800; margin-bottom:6px; font-size:15px; }
#search-input { width:100%; border:2px solid #dcdcdc; border-radius:8px; padding:12px; font-size:16px; outline:none; }
#search-input:focus { border-color:#0300b5; box-shadow:0 6px 18px rgba(3,0,181,0.08); }

/* feedback */
.search-feedback { margin-top:10px; min-height:38px; font-size:15px; }
.search-feedback a { display:block; padding:10px; background:#f6f7ff; border-radius:8px; color:#0300b5; text-decoration:none; font-weight:700; }
.search-feedback p { color:#777; font-style:italic; }

/* cancel */
.cancel-btn { margin-top:18px; background:#e7e7e7; border:none; padding:10px 14px; border-radius:8px; font-weight:700; cursor:pointer; }

/* responsiveness */
@media (max-width:640px) {
  .search-modal { padding:14px; }
  .search-modal .buttons { flex-direction:column; }
  .search-results { width:92vw; left:4vw; }
}









  
  
  
  
  /* Menu Toggle Button: Positioned at the top right */
  .menu-toggle-btn {
    position: fixed;           /* Fixed position relative to viewport */
    display: inline-flex !important;
    margin-top: 75px !important;                 /* 20px from the top */
    right: 20px;               /* 20px from the right */
    background: #af1f1f;       /* Blue background */
    color: #ffffff;               /* White text */
    border: none;
    padding: 5px 10px !important;
    margin-right: 5px;
    border-radius: 20%;
    cursor: pointer;
    z-index: 1100;             /* Higher than the side menu */
    transition: background 0.3s ease;
    font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  }


   .menu-toggle-btn i {
    padding-top: 1.5px;
    padding-right: 1.5px;
   }
  
  .menu-toggle-btn:hover {
    background: #0a009b;
  }
  
/* ============================= */
/* Side Menu Container */
/* ============================= */
.side-menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f9f9ff 100%
  );
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
  transition: right 0.35s cubic-bezier(.4,0,.2,1);
  z-index: 1050;
  padding: 22px 22px 28px;
  overflow-y: auto;
}

/* Active state */
.side-menu.active {
  right: 0;
}

/* ============================= */
/* Side Menu Header */
/* ============================= */
.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(10, 0, 155, 0.08);
}

.side-menu-header h2 {
  font-size: 2rem;
  color: #0a009b;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ============================= */
/* Close Button */
/* ============================= */
.menu-close-btn {
  background: none;
  border: none;
  font-size: 48px;
  line-height: 1;
  color: #b60000;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease;
}

.menu-close-btn:hover {
  color: #ff2e2e;
  transform: rotate(90deg) scale(1.08);
}

.menu-close-btn:focus {
  outline: none;
}

/* ============================= */
/* Menu List */
/* ============================= */
.side-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Item spacing */
.side-menu-list li {
  margin-bottom: 14px;
}

/* ============================= */
/* Menu Links */
/* ============================= */
.side-menu-list li a {
  position: relative;
  display: block;
  padding: 10px 6px;
  text-decoration: none;
  color: #0a009b;
  font-size: 10px;
  font-weight: 900;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* Animated underline */
.side-menu-list li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    #ff416c,
    #ff4b2b
  );
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Hover effects */
.side-menu-list li a:hover {
  color: #ff416c;
  transform: translateX(6px);
}

.side-menu-list li a:hover::after {
  width: 100%;
}

/* Keyboard accessibility */
.side-menu-list li a:focus {
  outline: none;
  color: #ff416c;
}

/* ============================= */
/* Subtle section breathing */
/* ============================= */
.side-menu-list li:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-bottom: 6px;
}
  
  
  









  
  






  /* container */
.filters-and-nav {
  display: flex;             /* Place Filters + Nav side by side */
  align-items: center;       /* Vertically center them */
  justify-content: space-between;
  position: relative;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 0;
  padding: 0;
  box-sizing: border-box;
}


.header,
.filters-and-nav {
  position: relative;
  z-index: 1100;            /* higher than typical content/slider */
  overflow: visible;        /* allow dropdowns to escape */
}
  
/* Overlay backdrop */
.filters-overlay {
  position: fixed;
  inset: 0;
  display: none; /* toggled by JS */
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#open-filters {
  color: #0000bd;
  font-weight: 700;
}

/* Panel */
.filters-panel {
  width: min(1100px, 96%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  position: relative;
}

/* Close */
.filters-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

/* Chips */
.selected-chips {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.chip {
  padding: 8px 12px;
  background: #f3f3f3;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  cursor: pointer; user-select: none;
}

/* Columns */
.filters-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 18px;
  margin-top: 8px;
}
.filter-col {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 12px;
  border-radius: 8px;
}
.filter-col h3 { margin: 0 0 8px 0; }

/* Lists */
.list {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 48vh;
  overflow: auto;
}
.list li {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.list li:hover { background: #f0f8ff; }

.list.visible {
  display: block;
}

/* Buttons area */
.filters-actions {
  display:flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.btn { padding: 10px 18px; border-radius: 8px; border: none; cursor: pointer; }
.btn-primary { background: #0a78c2; color: #fff; }
.btn-secondary { background: #f3f3f3; color: #222; }


/* Responsive */
@media (max-width: 800px) {
  .filters-columns { grid-template-columns: 1fr; }
  .filters-panel { width: 96%; padding: 12px; }
}




  
  
  
  
  

/* ============================
   NAVIGATION (copy-paste replace)
   ============================ */

/* Main navigation container */
.main-navigation {
  display: flex;
  justify-content: center;
  width: auto;
  margin: 0;
  box-sizing: border-box;
  align-items: center;
  white-space: nowrap;
}

/* Make sure nav doesn't clip children */
.main-navigation,
.filters-and-nav,
header {
  overflow: visible;
}

/* Nav list */
.nav-menu {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--controls-gap, 18px);
  align-items: center;
  margin: 0;
  width: 100%;
  white-space: nowrap;
}

/* Each nav item */
.nav-item {
  position: relative;
  flex: 0 0 auto; /* no grow/shrink by default — prevents squeeze in scroll contexts */
  text-align: center;
  display: inline-block;
  font-weight: 700;
  white-space: nowrap;
  min-width: var(--nav-item-minw, 110px);
  box-sizing: border-box;
}

/* Link appearance and hover behavior */
.nav-link {
  display: inline-block;
  position: relative;
  overflow: visible; /* allow pseudo-element to be visible */
  color: #0900b2;
  text-decoration: none;
  font-weight: bolder;
  padding: 5px 40px !important;
  white-space: nowrap;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: background-color 0.3s ease, 
              transform 0.3s ease, 
              color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}


/* Animated underline that grows from center */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: calc(100% - 8px);
  height: 2px;
  background-color: #ff415a;
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1);
  border-radius: 2px;
  pointer-events: none;
}

/* Show underline on hover/focus */
.nav-link:hover::after,
.nav-link:focus::after,
.nav-item:focus-within > .nav-link::after {
  transform: translateX(-50%) scaleX(1);
}

/* Hover/focus visual */
.nav-link:hover,
.nav-link:focus {
  background-color: #000;
  transform: scale(1.09);
  color: #fff;
}

/* Support showing dropdown by hover, focus-within or via .active (JS) */
.nav-item.dropdown:hover > .dropdown-menu,
.nav-item.dropdown:focus-within > .dropdown-menu,
.nav-item.dropdown.active > .dropdown-menu {
  display: block;
}

/* center dropdown under the parent trigger */
.dropdown-menu {
  display: none; /* shown by :hover/.active */
  position: absolute;
  top: calc(100% + 1.5px);   /* just under parent item */
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #2c2c2c;
  color: #fff;
  padding: 8px 0;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  z-index: 2147483647;
  pointer-events: auto;
  overflow: visible;
  white-space: nowrap;       /* optional: prevent line wraps */
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}


/* Dropdown items container */
.dropdown-menu li {
  padding: 0; /* anchor will hold padding; keeps spacing consistent */
  box-sizing: border-box;
}


/* === Reset & re-style dropdown anchors (removes "button" look) ===
   This neutralizes any global/third-party a{} rules that make links look like buttons.
   Then re-apply the intended visuals for dropdown items. */
.dropdown-menu li a,
.floating-dropdown li a,
.sub-dropdown li a {
  all: unset;                /* strip browser/other CSS defaults */
  display: block;            /* full clickable row */
  width: 100%;
  box-sizing: border-box;
  padding: 8px 15px;         /* dropdown item padding */
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;             /* inherit font-family/size from parent */
  border-radius: 6px;
  transition: background-color 0.14s ease, transform 0.14s ease;
}

/* Hover/focus for dropdown anchors */
.dropdown-menu li a:hover,
.floating-dropdown li a:hover,
.sub-dropdown li a:hover {
  background-color: #555;
  transform: scale(1.06);
  text-decoration: none;
  color: #fff;
}

/* when we show a floating clone, hide the original menu inside the nav item */
.nav-item.floating-open > .dropdown-menu {
  display: none;
}


/* remove bullets/markers for dropdown menus (and nested submenus) */
.dropdown-menu,
.dropdown-menu ul {
  list-style: none;   /* remove bullets */
  margin: 0;
  padding: 0;
}

/* extra safety for modern browsers that use markers */
.dropdown-menu li {
  list-style: none;
}
.dropdown-menu li::marker {
  content: none;
}

/* if bullets were added via pseudo-elements or background images, remove them too */
.dropdown-menu li::before,
.dropdown-menu li::after {
  content: none !important;
  background: none !important;
}

/* keep spacing and make links easy to click */
.dropdown-menu li > a {
  display: block;
  padding: 8px 14px;
  color: inherit;
  text-decoration: none;
}


/* Floating dropdown (works on all screens) */
.floating-dropdown {
  position: fixed;              /* detach from header so it never gets clipped */
  min-width: 220px;
  background: #2c2c2c;
  color: #fff;
  padding: 8px 0;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  pointer-events: auto;
  max-height: 70vh;
  overflow: auto;

  /* start hidden until script positions + shows it */
  visibility: hidden;
  opacity: 0;
  transition: opacity 120ms ease;
}

/* active state */
.floating-dropdown.visible {
  visibility: visible;
  opacity: 1;
}

/* reset default list spacing */
.floating-dropdown li {
  padding: 0;
  box-sizing: border-box;
}

/* dropdown links */
.floating-dropdown li a {
  color: #fff;
  display: block;
  padding: 8px 15px;
  text-decoration: none;
  font-size: 14px;       /* readable on both desktop & mobile */
  line-height: 1.4;
}



/* Safety: ensure slider/hero has lower stacking context than dropdown */
.hero-slider, .slider-container, .slider { position: relative; z-index: 1; }

/* Sub-dropdown (nested) */
.sub-dropdown {
  display: none;
}

/* Parent for nested dropdowns */
.sub-dropdown-item { position: relative; }

/* Show sub-dropdown on hover or focus-within */
.sub-dropdown-item:hover > .sub-dropdown,
.sub-dropdown-item:focus-within > .sub-dropdown {
  display: block;
  position: absolute;
  top: 0;
  left: 150%;
  background-color: #2c2c2c;
  border: 1px solid rgba(255,255,255,0.04);
  padding: 10px 0;
  min-width: 100%;
  z-index: 10010;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

/* Nested sub-dropdown link styling */
.sub-dropdown li { padding: 0; }

/* sub-dropdown hover */
.sub-dropdown li a:hover {
  background-color: #555;
  transform: none;
  width: 100%;
}



  

















/* ----------------------------
  Hide filters-and-nav on small/tablet breakpoints
  (we still keep it visible on larger screens)
   ---------------------------- */
@media (max-width: 599px),
       (min-width: 600px) and (max-width: 991px) {
  .filters-and-nav {
    display: none !important; /* hide original row on small sizes */
  }
}

/* ----------------------------
  Off-canvas overlay panel (mobile)
  ---------------------------- */
.mobile-filters-overlay {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  z-index: 4000;
  background: rgba(0,0,0,0.45);
  display: none;           /* shown via .visible */
  align-items: stretch;
  justify-content: flex-end; /* panel slides from the right */
  -webkit-overflow-scrolling: touch;
}

.mobile-filters-overlay.visible {
  display: flex;
}

/* inner panel (holds cloned .filters-and-nav content) */
.mobile-filters-panel {
  width: 92%;
  max-width: 420px;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0,0,0,0.25);
  transform: translateX(100%);
  transition: transform 240ms ease;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 16px;
}

/* visible state slides in */
.mobile-filters-overlay.visible .mobile-filters-panel {
  transform: translateX(0);
}

/* header for the panel (close button + optional title) */
.mobile-filters-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mobile-filters-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

/* content area (cloned markup lands here) */
.mobile-filters-content { margin-top: 6px; }

/* accessibility focus styling inside overlay */
.mobile-filters-panel :focus { outline: 3px solid rgba(41,128,185,0.85); outline-offset: 2px; }

/* toggle button: visible only on those small breakpoints (hidden at desktop) */
.menu-toggle-btn { display:none; } /* default hide */
@media (max-width: 991px) {
  .menu-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    color: #000;
    border-radius: 8px;
    border: 2px solid #0300b5;
    cursor: pointer;
    z-index: 4100; /* above header content */
  }
}

/* small tweak: ensure cloned filters don't overflow outwards */
.mobile-filters-content > .filters-and-nav,
.mobile-filters-content .filters-dropdown {
  width: 100%;
  box-sizing: border-box;
}

/* Optional: hide overflow scrollbar visuals (mobile) */
.mobile-filters-panel::-webkit-scrollbar { display: none; }
















































  @media (max-width: 599px) {
    header {
      padding-left: 10px;
      padding-right: 15px;
      padding-top: 100px;
    }
    
    .logo {
      max-height: 80px;
    }
    
  /* Make the logo smaller and shift appropriately on mobile */
  :root{
    --logo-min: 10px;
    --logo-preferred: 5vw;
    --logo-max: 26px;

    --motto-min: 8px;
    --motto-preferred: 1.2vw;
    --motto-max: 12px;
  }



    .logo-text {
    display: none;
  }

  .logo-text h2,
  .logo-text .motto {
    transform: translateX(var(--logo-shift-mobile)); /* small shift */
  }
      header .logo-text .motto,
  .navbar .logo-text .motto,
  .site-header .logo-text .motto {
    /* smaller on phones so it doesn't crowd layout */
    font-size: clamp(1px, 1.5vw, 12px);
  }

    
    .top-right-bar {
      gap: 10px;
      top: 5px;
      right: 5px;
    }
      .language-toggle {
        display: none;
      }
    
/* ---- updated small-screen search styles (works with your existing selectors) ---- */
.search-bar {
  /* compact circle by default */
  width: 33px;               /* slightly larger for touch */
  height: 33px;
  border-radius: 999px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: width .28s cubic-bezier(.2,.9,.3,1), border-radius .18s ease, box-shadow .18s ease;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(3,102,214,0.06);
  box-shadow: 0 6px 18px rgba(3,12,60,0.08);
  overflow: visible;
  z-index: 50;
}

/* keep your search icon visible */
.search-bar .search-button {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 20px;
  color: var(--accent, #0366d6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
}

/* input hidden by default (absolute so it expands inside the container) */
.search-bar input[type="search"] {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  opacity: 0;
  height: auto;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  padding: 0 10px;
  transition: width .28s cubic-bezier(.2,.9,.3,1), opacity .18s ease, left .18s ease, transform .18s ease;
  caret-color: var(--accent, #0366d6);
  color: #0a0a0a;
}

/* when focused via keyboard or tapped (focus-within) expand inline */
.search-bar:focus-within,
.search-bar.expanded {
  width: calc(100% - 28px); /* occupy available space */
  min-width: 160px;
  max-width: 420px;
  border-radius: 10px;
  padding-left: 12px;
  justify-content: flex-start;
  box-shadow: 0 14px 36px rgba(3,12,60,0.12);
}

/* reveal input when expanded */
.search-bar:focus-within input[type="search"],
.search-bar.expanded input[type="search"] {
  left: 12px;
  transform: none;
  width: calc(100% - 56px);
  opacity: 1;
  padding: 6px 8px;
}

/* ensure placeholder styling */
.search-bar input[type="search"]::placeholder {
  color: #6b6b6b;
  opacity: 0.95;
}

/* results box small-screen adjustments */
.search-results {
  font-size: 14px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  border-radius: 8px;
  margin-top: 8px;
  z-index: 60;
}

.search-results li { padding: 8px; }
.search-results li a { font-weight: 500; color: #111; }

/* touch size fallback for very small phones */
@media (max-width: 360px) {
  .search-bar { width: 40px; height: 40px; }
  .search-bar:focus-within,
  .search-bar.expanded { width: calc(100% - 20px); }
  .search-bar:focus-within input[type="search"],
  .search-bar.expanded input[type="search"] { width: calc(100% - 56px); }
}


  .filter-bar {
    flex-direction: column;
  }
    
   /* Hide the text so only the icon shows */
   .menu-toggle-btn .menu-text {
    display: none;
  }
  
  /* common variables (fallbacks) */
:root {
  --fp-bg: rgba(255,255,255,0.92);
  --fp-accent: var(--accent, #0366d6);
  --fp-muted: #6b6b6b;
}

/* Menu toggle - elegant circular button with soft shadow */
.menu-toggle-btn {
  width: 35px;
  height: 35px;
  padding: 0;
  border-radius: 12px;            /* slightly rounded rectangle for modern look */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fp-bg);
  color: var(--fp-accent);
  border: 1px solid rgba(3,102,214,0.06);
  box-shadow: 0 6px 18px rgba(3,12,60,0.12);
  font-size: 20px;
  right: 3px;
  margin-top: 75px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* subtle press effect */
.menu-toggle-btn:active { transform: translateY(1px) scale(.995); box-shadow: 0 4px 12px rgba(3,12,60,0.12); }

    .side-menu {
      width: 300px;
      right: -300px;
    }
    
    .side-menu.active {
      right: 0;
    }
    
    .side-menu-header h2 {
      font-size: 2.2rem;
    }
    
    .menu-close-btn {
      font-size: 45px;
    }
    
    .side-menu-list li a {
      font-size: 18px;
    }
    
 

  

  /* Mobile header adjustments */
  .filters-and-nav {
    padding: 6px 10px;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  /* Filters container inline */
  .filters-container {
    width: auto;
    display: inline-flex;
  }

  /* Filter button smaller on mobile */
  .filters-button {
    width: auto;
    padding: 10px 14px;
    font-size: 15px;
  }

  /* Navigation becomes horizontally scrollable row */
  .main-navigation {
    width: 100%;
    overflow: visible; /* so dropdown isn’t clipped */
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    white-space: nowrap; /* keep items on one line */
  }

  .nav-item {
    min-width: var(--nav-item-minw);
    flex: 0 0 auto;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
  }

    .floating-dropdown {
    min-width: 180px;     /* a bit narrower on mobile */
    font-size: 13px;
  }
  
}



  
  

























  @media (min-width: 600px) and (max-width: 991px) {
    header {
      padding-left: 20px;
      padding-right: 35px;
      padding-top: 110px;
    }  
    .logo {
      max-height: 90px;
    }  
  :root{
    --logo-min: 20px;
    --logo-preferred: 3vw;
    --logo-max: 48px;

    --motto-min: 10px;
    --motto-preferred: 1vw;
    --motto-max: 14px;
  }

  .logo-text h2,
  .logo-text .motto{
    transform: translateX(var(--logo-shift-tablet));
  }
    header .logo-text .motto,
.navbar .logo-text .motto,
.site-header .logo-text .motto {
  font-size: clamp(5px, 1vw, 10px);
  line-height: 1.1;
}

    .top-right-bar {
      gap: 20px;
      top: 15px;
      right: 10px;
    } 
    .lang-switch {
      width: 62px;
      height: 26px;
    } 
    .toggle-circle {
      width: 22px;
      height: 22px;
      font-size: 18px;
    }  
    .lang-switch[data-state="on"] .toggle-circle {
      left: 34px;
    }  
    .language-dropdown {
      top: 115%;
      min-width: 140px;
    } 
    .search-bar input[type="search"] {
      width: 100px;
      font-size: 17px;
    }  
    .search-bar input[type="search"]:focus {
      width: 230px;
      height: 50px;
    } 
    .search-bar button.search-button {
      font-size: 20px;
      padding: 1px 10px;
    }
    .search-results {
      font-size: 15px;
      max-height: 250px;
    }
  
    .search-results li {
      padding: 9px;
    }

    .menu-toggle-btn {
      margin-top: 80px;
      right: 7px;
      padding: 7px 13px;
      font-size: 13px;
      border-radius: 18%;
      background: #af1f1f;       /* Blue background */
    color: #ffffff;               /* White text */
    border: #ffffff;
    }
  
    .side-menu {
      width: 400px;
      right: -400px;
    }
  
    .side-menu.active {
      right: 0;
    }
  
    .side-menu-header h2 {
      font-size: 2.7rem;
    }
  
    .menu-close-btn {
      font-size: 55px;
    }
  
    .side-menu-list li a {
      font-size: 20px;
    }
 
    

  .filters-and-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .filters-container { width: auto; display: inline-flex; }
  .filters-button { padding: 9px 26px; font-size: 15px; }

  .main-navigation { width: auto; }
  .nav-menu { gap: 25px; }
  .nav-item { min-width: var(--nav-item-minw); }
  .nav-link { padding: 10px 14px; font-size: 14px; }

  }




















  @media (min-width: 992px) {
    header {
      padding-left: 10px;
      padding-right: 23px;
      padding-top: 70px;
    }
    
    .logo {
      max-height: 90px;
    }
    
    .logo-text {
      transform: translateX(70%);
    }
    
    .logo-text h1 .logo-part {
      font-size: clamp(20px, 5vw, 50px);
    }
    
    .logo-text .motto {
      font-size: clamp(10px, 2vw, 14px);
    }
    
    .top-right-bar {
      gap: 15px;
      top: 10px;
      right: 20px;
    }
    
    .lang-switch {
      width: 62px; 
      height: 28px;
    }
    
    .toggle-circle {
      width: 24px;
      height: 24px;
      font-size: 20px;
    }
    
    .lang-switch[data-state="on"] .toggle-circle {
      left: 30px;
    }
    
    .language-dropdown {
      top: 110%;
      min-width: 120px;
    }
    
    .search-bar input[type="search"] {
      width: 150px;
      font-size: 16px;
    }
    
    .search-bar input[type="search"]:focus {
      width: 200px;
      height: 50px;
    }
    
    .search-bar button.search-button {
      font-size: 18px;
      padding: 5px 10px;
    }
    .search-results {
      font-size: 16px;
      max-height: 300px;
    }
  
    .search-results li {
      padding: 10px;
    }
    
    .menu-toggle-btn {
      margin-top: 85px;
      right: 20px;
      padding: 10px 15px;
      border-radius: 20%;
    }
    
    .side-menu {
      width: 350px;
      right: -350px;
    }
    
    .side-menu.active {
      right: 0;
    }
    
    .side-menu-header h2 {
      font-size: 2.5rem;
    }
    
    .menu-close-btn {
      font-size: 50px;
    }
    
    .side-menu-list li a {
      font-size: 18px;
    }
    
    .filters-and-nav {
      flex-direction: row;         /* Keep items side by side */
      justify-content: space-between;
    }
    
    .filters-container {
      width: auto;
      margin: 0;
    }
    
    .filters-button {
      padding: 4px 100px;
      font-size: 17px;
    }
    
    .main-navigation {
      width: 75%;
    }
    
    .nav-menu {
      display: flex;
    }
    
    .nav-item {
      text-align: center;
    }
    

  }
  























  
  