/* Hide hamburger by default */
.hamburger { display: none; }

/* Mobile styles */
@media (max-width: 768px) {

  :root {
    --header-bg: rgb(197, 216, 219);
    --menu-bg: rgb(197, 216, 219);
    --menu-text: #000;
    --divider: rgba(0,0,0,0.12);
  }

  /* Header */
  header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    background-color: var(--header-bg);
    padding: 0;
  }

  /* Contact bar */
  header .kontact {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    width: 100%;
    font-size: 14px;
    background-color: var(--header-bg);
    border-bottom: 1px solid #ccc;
    white-space: nowrap;
  }
  header .kontact .boarded { display: none; }
  header .buraz { display: none; }

  /* Logo */
  .odv {
    max-height: 70px;
    display: block;
    align-self: flex-end;
    justify-self: start;
    margin-left: -20%;
    margin-bottom: 20px;
  }

  /* Nav */
  header > nav {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 10000;
  }

  /* Hamburger */
  .hamburger {
    grid-column: 2;
    grid-row: 2;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--header-bg);
    border: none;
    font-size: 40px;
    height: 80px;
    width: 80px;
    cursor: pointer;
    margin-top: 40%;
  }

  /* Reset all ULs */
  header > nav ul,
  header > nav ul ul {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;       /* ✅ force edge-to-edge */
    box-sizing: border-box !important;
  }

  /* Fullscreen UL */
  header > nav > ul {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw !important;
    height: 100vh !important;
    background: var(--menu-bg);
    z-index: 9998;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
  }

  header > nav.active > ul,
  header > nav > ul.show {
    display: flex;
  }

  /* Top-level LI */
  header > nav > ul > li {
    display: block !important;
    width: 100% !important;       /* fill parent UL */
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    background-color: var(--menu-bg) !important;
    border-bottom: 1px solid var(--divider) !important;
  }
  header > nav > ul > li:last-child {
    border-bottom: none !important;
  }

  /* Submenu LI */
  header > nav > ul li ul li {
    display: block !important;
    width: 100% !important;       /* fill parent UL */
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    background-color: var(--menu-bg) !important;
    /* border-top: 1px dashed var(--divider) !important; */
  }
  .ena2 {
    height: auto;
  }
  /* Force submenu ULs open full width */
  header > nav > ul ul {
    display: none;
    flex-direction: column;
    width: 100% !important;
    background: var(--menu-bg) !important;
  }
  header > nav > ul > li > a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    font-size: 20px !important;
    text-align: center !important;
    background-color: var(--menu-bg) !important;
    color: var(--menu-text) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid var(--divider) !important;
  }
  header > nav > ul li.open > ul {
    display: flex;
  }

  /* Close button */
  .menu-close {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: var(--menu-text);
  }

  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }
    /* Override restrictive widths/heights from style.css */
  .mainlist,
  .mainlist1,
  .mainlist15 {
    max-width: none !important;
    max-height: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
    background-color: var(--menu-bg) !important;
    border-bottom: 1px solid var(--divider) !important;
  }  
  .ok, .ok1 {
    max-width: none !important;
  }
  .column {
    display: none;
  }
}

/* Tiny phones */
@media (max-width: 480px) {
  .odv { max-height: 60px; margin-left: -20%; margin-bottom: 10px; }
  .hamburger { height: 70px; width: 70px; font-size: 36px; margin-top: 40%; }
}
