:root{
  --logo-width: clamp(160px, 13vw, 340px);
}


body{
    margin: 0;
    padding: 0;
}


.main-header {
    width: 100%;
    font-family: Arial, sans-serif;
    
}
.header-top {
    display: grid;
    grid-template-columns: var(--logo-width) 1fr;   /* ⬅️ MORE SPACE BESIDE LOGO */
    align-items: center;
    height: 80px;                       /* ⬅️ SAME AS YELLOW STRIP */
    background: #0b132b;
    position: relative;
    justify-content: space-between;
}
.logo {
    grid-row: 1 / span 2;               /* Covers black + yellow */
    background: #0b132b;

    display: flex;
    align-items: center;
    justify-content: center;

    width: var(--logo-width);
    height: clamp(80px, 12vw, 140px);                     /* ⬅️ BIG CONTAINER */

    margin-bottom: -60px;               /* ⬅️ CLEAN OVERLAP */
    z-index: 10;
    pointer-events: auto;
}

.logo img {
    width: 100%;
    height: auto;
    max-height: 110px;
    object-fit: contain;
    pointer-events: auto;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-left: 15px;                 /* ⬅️ BREATHING SPACE */
}

.nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
    margin-left: auto;   /* pushes menu to right automatically */
    padding-right: 70px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 500;
    white-space: nowrap;
    pointer-events: auto;
    position: relative;
    z-index: 102;
}

.nav-links a:hover {
    color: #22c55e;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;           /* space between each link */
    padding-right: 24px;
    padding-left: 0px;
}
.header-right::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}


.header-strip .header-links {
    display: grid;
    gap: 18px;           /* space between links */
    flex-wrap: wrap;  
    left: 0; 
    padding-left: 18px;          /* space between line and links */
    height:20px;  /* wrap on smaller screens */
    grid-auto-flow: column;     /* fill columns first */ /* 🔥 two rows */
    gap: 10px 25px;  
    z-index: 5;
    position: relative;
    top: 7px;
    grid-column: 2;
}

.header-strip .header-links a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    white-space: nowrap; /* keep text on one line */
    transition: color 0.2s;
    font-weight: bold;
}

.header-strip .header-links a:hover {
    color: white;      /* white on hover */
}


.header-link-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 500;
    cursor: pointer;

    padding: 6px 10px;     /* 🔥 THIS fixes hover area */
    line-height: 1.2;

    display: inline-flex; /* 🔥 align like <a> */
    align-items: center;

    position: relative;
    z-index: 300;
}


.header-link-btn:hover {
    color: #22c55e;
}

.header-link-btn:active {
    transform: scale(0.95);
}
.header-strip {
    display: grid;
    grid-template-columns: var(--logo-width) 1fr; /* same as header-top */
    height: 60px;
    background: #facc15;             /* yellow */
    color: #000;
    font-size: 14px;
    font-weight: 500;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0;
}

/* LEFT PART UNDER LOGO → DARK */
.header-strip::before {
    content: "";
    background: #0b132b;           /* same as header */
    width: var(--logo-width);                  /* matches logo column */
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    pointer-events: none;
}


/* ===============================
   RESPONSIVE HEADER SYSTEM
   =============================== */

@media (max-width: 1200px) {

  .nav-links {
    gap: 18px;
    padding-right: 30px;
  }

  .header-left {
    gap: 20px;
  }
}


/* TABLET */
@media (max-width: 992px) {

  :root{
    --logo-width: clamp(140px, 18vw, 200px);
  }

  .nav-links a,
  .header-link-btn {
    font-size: 14px;
  }

  .nav-links {
    gap: 14px;
    padding-right: 20px;
  }
}


/* MOBILE */
@media (max-width: 768px) {

  .header-top {
    grid-template-columns: 1fr;
    height: auto;
    padding: 10px 15px;
  }

  .logo {
    grid-row: auto;
    margin: 0 auto;
    height: auto;
    width: clamp(150px, 40vw, 200px);
  }

  .header-left {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  .nav-links {
    margin: 10px 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .header-right {
    justify-content: center;
    padding: 0;
  }

  .header-strip {
    grid-template-columns: 1fr;
    height: auto;
    padding: 10px;
    text-align: center;
  }

  .header-strip::before {
    display: none; /* remove dark block on mobile */
  }

  .header-strip .header-links {
    grid-column: auto;
    justify-content: center;
    top: 0;
  }
}


/* SMALL PHONES */
@media (max-width: 480px) {

  .nav-links a,
  .header-link-btn {
    font-size: 13px;
  }

  .nav-links {
    gap: 10px;
  }
}

@media (max-width: 768px) {

  .logo {
    margin-bottom: 0;   /* remove overlap */
  }

  .header-top {
    height: auto;
  }

  .header-strip {
    height: auto;
  }
}


.main-header{
    width: 100vw;
    margin-left: calc(50% - 50vw);
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
}


/* =====================================
   FINAL MOBILE HEADER POLISH
   ===================================== */
@media (max-width: 768px) {

  /* header becomes natural height */
  .main-header {
    width: 100%;
    margin-left: 0;
  }

  /* remove fixed row system */
  .header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* logo normal, no overlap */
  .logo {
    grid-row: auto;
    margin: 0;
    width: clamp(140px, 45vw, 200px);
    height: auto;
  }

  /* menu under logo */
  .header-left {
    width: 100%;
    align-items: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 10px;
  }

  /* yellow strip */
  .header-strip{
    display:block !important;
    width:100% !important;
  }

  .header-strip .header-links{
    display:flex !important;
    flex-wrap:wrap !important;
    width:100% !important;
    max-width:100% !important;
    justify-content:center;
    height: auto;
  }

  .header-strip .header-links a{
    white-space:normal !important;
  }

  /* remove dark left box */
  .header-strip::before {
    display: none;
  }


}