* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f5f5f5;
    color: #000;
}

  /* Header styling */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0F4F84;
    padding: 10px 20px;
  }

  .logo {
    height: 100px;
    width:auto;
  }

  /* Navigation styling */
  nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
  }
  
  nav ul li a:hover {
    background-color: #555;
    border-radius: 4px;
  }

input:checked + .slider {
    background-color: #0F4F84;
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.lang-btn {
    background-color: #0F4F84;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
}

main {
    padding: 20px;
    text-align: center;
}

h1 {
    background-color: #0F4F84;
    color: white;
    display: inline-block;
    padding: 10px 30px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.support-box {
    background-color: #0F4F84;
    color: white;
    padding: 20px;
    width: 80%;
    margin: 0 auto;
    border-radius: 8px;
    text-align: left;
}

.line {
    margin-bottom: 20px;
    text-align: center;
}

.line span {
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

 /* Footer */
 .site-footer {
    background-color: #0F4F84;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto;
  }

  .page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* full viewport height */
  }

  #langLabel {
    margin-left: 10px;
    font-size: 16px;
    color: white;
  }

  /* ===== Language Toggle Switch ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 80px;   /* wide enough for text */
  height: 34px;
  margin-left: 15px;
}

/* Hide the checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider background */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

/* ENG/UKR labels */
.slider .label {
  position: relative;
  z-index: 3;          /* keep labels above the knob */
  width: 50%;          /* left = ENG, right = УКР */
  text-align: center;
  pointer-events: none;
}

/* Blue knob */
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 36px;
  left: 4px;
  bottom: 4px;
  background-color: #0F4F84;
  transition: .4s;
  border-radius: 34px;
  z-index: 2; /* knob under labels */
}

/* Move knob to right when checked */
input:checked + .slider:before {
  transform: translateX(40px);
}

/* Wrapper to keep ENG (slider) УКР in a line */
.lang-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px; /* space between text and slider */
}

/* Labels next to the slider */
.lang-label {
  font-size: 14px;
  font-weight: bold;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo {
    height: 72px;
  }

  main {
    padding: 15px;
  }

  .support-box {
    width: 100%;
  }
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
  }

  h1 {
    font-size: 1.4rem;
  }
}
