/* ===== RESET ===== */
* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background-image: url(../images/Gemini_Generated_Image_ddenxbddenxbdden.png);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #111;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 0 40px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 14px;
  z-index: 9999;
}

.menu-item {
  position: relative;
  font-size: clamp(13px, 3.5vw, 30px);
  cursor: pointer;
}

.menu-item span {
  padding: 6px 10px;
}

.menu-item:hover > span {
  background: #f0f0f0;
  border-radius: 8px;
}

.dropdown-box {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 180px;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  padding: 0;
  gap: 0;
}

.menu-item:hover .dropdown-box {
  display: flex;
}

.drop-btn {
  padding: 10px 16px;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  font-weight: 400;
  transition: 0.15s;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
  display: block;
}

.drop-btn:last-child {
  border-bottom: none;
}

.drop-btn:hover {
  background: #f5f5f5;
  color: #111;
}

.logo {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.logo img {
  height: 45px;
  width: auto;
  display: block;
}



/* ===== WRAPPER ===== */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  align-items: center;
}

.test-box {
  border-radius: 16px;
  padding: 40px;
  width: 90%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  margin-top: 20px;
}

/* ===== FOOTER ===== */
.my-footer {
  width: 100%;
  height: 100px;
  background: #393636;
  color: white;
  text-align: center;
  border-top: 3px solid #555;
  margin-top: auto;
}


.menu-item-link {
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  display: block;
  transition: 0.2s;
  font-size: inherit; /* береться від .menu-item */
}

.menu-item-link:hover {
  background: #f0f0f0;
}

.politics a{
  color: white;
}

.info-block .text {
  width: 100%;
  box-sizing: border-box;
}

/* ── INFO BLOCK ── */
.info-block {
  max-width: 900px;
  margin: 0 auto;
  background: #faf9f9;
  border: 2px solid grey;
  margin-top: 100px;
  padding: 20px;
}

#info-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
}



.text p {
  flex: 1;
  text-align: justify;
  line-height: 1.6;
}





/* ===== АДАПТИВНІСТЬ ===== */

@media (max-width: 1024px) {
  .navbar {
    width: 90%;
    gap: 20px;
    padding: 0 20px;
  }

  .menu-item {
    font-size: 24px;
  }

   #info-title { font-size: 28px; }
  .text { gap: 15px; }

  .info-block {
    margin: 30px auto;
    padding: 20px;
    width: calc(100% - 40px);
  }
 
  }

@media (max-width: 768px) {
  .navbar {
    width: 95%;
    height: 50px;
    gap: 10px;
    padding: 0 10px;
  }

  .menu-item {
    font-size: 18px;
  }

  .logo img {
    height: 32px;
  }

  .drop-btn {
    font-size: 13px;
    padding: 8px 12px;
  }

   .info-block { margin: 25px auto; width: calc(100% - 30px); padding: 18px; }
  .text { flex-direction: column; gap: 12px; }
  .text p { width: 100%; }
  #info-title { font-size: 22px; }

  .my-footer {
    height: 100px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .navbar {
    top: 20px;
  }

  .menu-item {
    font-size: 16px;
  }

  .info-block { margin: 20px auto; width: calc(100% - 24px); padding: 15px; }
  #info-title { font-size: 20px; }
  .text p { font-size: 14px; padding: 10px; }

  .logo img {
    height: 28px;
  }

  .drop-btn {
    font-size: 13px;
    padding: 8px 10px;
  }
}

@media (max-width: 360px) {
  .navbar {
    top: 15px;
    width: 95%;
    height: 45px;
    gap: 8px;
    padding: 0 8px;
  }

  .menu-item {
    font-size: 14px;
  }

  .logo img {
    height: 24px;
  }

  .dropdown-box {
    min-width: 140px;
  }

  .drop-btn {
    padding: 8px 10px;
    font-size: 13px;
  }

.info-block { margin: 15px auto; width: calc(100% - 14px); padding: 10px; }
  #info-title { font-size: 15px; }
  .text p { font-size: 13px; line-height: 1.4; }

 

  .my-footer {
    height: 90px;
    font-size: 12px;
    text-align: center;
  }
}