/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
  }
  
  /* Header styling */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0F4F84;
    padding: 10px 20px;
  }
  
  /* Logo styling */
  .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;
  }

  #langLabel {
    color: white;
    font-size: 16px;
    margin-right: 10px;
  }
  
  .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-content {
    display: flex;
    align-items: flex-start; /* aligns items to the top */
    gap: 30px; /* spacing between dropdown and welcome section */
    margin: 40px;
    flex: 1;
  }
  

  /* Flex container that fills the whole viewport */
    body, html {
    height: 100%;
    margin: 0;
  }
  
  .page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* full viewport height */
  }
  
  /* Footer */
  .site-footer {
    background-color: #0F4F84;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto;
  }
  

  .card-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 per row */
    gap: 20px;
    background-color: #0F4F84;
    border-radius: 20px;
    padding: 20px;
    margin-top: 30px;
  }
  
  .activity-card {
    text-decoration: none;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
  }
  
  .activity-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .label {
    background-color: #0F4F84;
    padding: 6px 8px;
    margin-top: 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
  }
  
  .activity-card:hover {
    transform: scale(1.05);
  }

  @media (max-width: 900px) {
    .card-grid-container {
      grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
    }
  }
  @media (max-width: 600px) {
    .card-grid-container {
      grid-template-columns: 1fr; /* full width on mobile */
    }
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

    .contact-form input,
    .contact-form textarea {
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      width: 100%;
      justify-content: center;
    }
  
  /* ===== 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-content {
    flex-direction: column;
    margin: 20px;
  }

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

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

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

  .main-content {
    margin: 15px;
  }

  .site-footer {
    padding: 12px;
  }
}
  
