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

  body {
    font-family: Arial, sans-serif;
  }
  
  /* Header */
  header {
    background-color: #0F4F84;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

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

  .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    display: flex;
    align-items: center;
  }
  .nav-links li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
  }

  .dropDown {
    background-color: #0F4F84;
    padding: 15px;
    border-radius: 20px;
    width: 250px;
    min-width: 250px;
    color: white;
    margin-top: 10px;
    margin-left: 10px;
  }
  
  aside details {
    display: block;
    margin-bottom: 10px;
    background-color: #0F4F84;
    border-radius: 5px;
    overflow: visible;
    width: 100%;
  }
  
  aside summary {
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    background-color: #003f6b;
    border-radius: 5px;
  }
  
  aside summary::after {
    content: "▼";
    font-size: 12px;
    background: #222;
    padding: 2px 6px;
    border-radius: 4px;
  }
  
  details[open] summary::after {
    content: "▲";
  }
  
  aside ul {
    width: 100%;
    padding: 10px 30px;
    margin: 0;
    list-style: disc;
    background-color: #f1f1f1;
    color: #333;
    box-sizing: border-box;
  }
  
  aside ul li {
    margin-bottom: 6px;
  }
  
  summary:hover {
    background-color: #555;
  }

  /* Main layout */
  .main-content {
    display: flex;
    align-items: flex-start;
    flex: 1;
    padding: 20px;
    gap: 30px;
  }

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

    .toggle-label {
      color: white;
    }
    

  body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
  }
  
  .page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  /* Content */
  .content {
    flex: 1;
  }

  .main-title {
    font-size: 2rem;
    color: white;
    background-color: #0F4F84;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
  }

  .description-box {
    background-color: #0F4F84;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
  }
  .why-works {
    background-color: #0F4F84;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
  }
  .why-works h2 {
    margin-bottom: 10px;
  }
  
  .media-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
  }

  .media-section iframe {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
  }
  .instructions {
    background-color: #0F4F84;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
  }
  .instructions ul {
    list-style-type: disc;
    padding-left: 20px;
    list-style-type: none;
  }
  
  /* Related Activities */
  .related-activities {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
  }

  .related-activities a {
    text-decoration: none;
    color: black;
    text-align: center;
  }
  .related-activities img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }
  .related-activities p {
    margin-top: 5px;
    font-weight: bold;
  }
  

  /* ===== 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-links {
      flex-wrap: wrap;
      gap: 10px;
    }

    .logo {
      height: 72px;
    }

    .main-content {
      flex-direction: column;
      padding: 15px;
    }

    .dropDown {
      width: 100%;
      min-width: 0;
      margin-left: 0;
    }
  }

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

    .nav-links li a {
      display: block;
      width: 100%;
    }

    .main-title {
      font-size: 1.5rem;
    }

    .related-activities img {
      width: 100%;
      max-width: 220px;
      height: auto;
    }
  }
