/*
Theme Name: For Learning
Author: Your Name
Version: 1.0
*/

:root {
  --bg: #0e1624;
  --panel: #121c2d;
  --muted: #94a3b8;
  --text: #e6eef8;
  --accent-yellow: #ffdb00; /* UA flag */
  --accent-blue: #0056b3; /* UA flag */
  --ring: rgba(255, 219, 0, 0.25);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --maxw: 1340px;
}
html,
body {
  height: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;

  color: #000000;
  line-height: 1.6;
}
a {
  color: inherit;
}
.learn_more_btn {
  padding: 10px 12px;
  color: white;
  background-color: #0471e5;
  border-radius: 50px;
}
.learn_more_btn a:active {
  color: white;
  text-decoration: none;
}
.learn_link {
  color: white;
  text-decoration: none;
}
#learn_link p {
  color: white;
}
.learn_more_btn a:focus {
  color: white;
  text-decoration: none;
}
.learn_more_btn a:visited {
  color: white;
  text-decoration: none;
}
.container {
  max-width: var(--maxw);
  padding: 0;
  margin: 0 52px;
}
#go_to_map {
  cursor: pointer;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.control_container {
  position: relative;
}

.types_of_maps_container {
  display: flex;
  position: absolute;
  z-index: 40;
  left: -100%;
  align-items: center;
  justify-content: center;
  bottom: 95px;
  background: rgba(255, 255, 255, 0.838);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  /* padding: 18px; */
  padding: 0 12px;
  padding-top: 32px;
  box-shadow: var(--shadow);
  width: 215px;
  color: #000;
  animation: ease;
  transition: top 0.2s ease;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #000;
  color: #fff;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
#map {
  height: 88vh;
  width: 100%;
  z-index: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.flag {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.flag i {
  display: block;
  height: 50%;
}
.flag .y {
  background: var(--accent-yellow);
}
.flag .b {
  background: var(--accent-blue);
}
.nav a.btn {
  margin-left: 10px;
}
nav ul {
  display: flex;
  list-style: none;
  align-items: center;

  gap: 14px;
  padding: 0;
  margin: 0;
}
nav a {
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: black;
}
nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.navbar-toggler-icon img {
  height: 100%;
}

#go_to_map {
  padding: 20px 70px;
  color: white;
  background-color: #0471e5;
  border-radius: 50px;
}
.btn.primary {
  border-radius: 30px;
  color: #1b1b1b;
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.btn:active {
  transform: translateY(1px);
}
.navbar-brand img {
  height: 30px;
}
.info_btn {
  border-radius: 5px;
  border: none;
  color: white;
  background-color: #0471e5;
  padding: 10px;
  position: absolute;
  left: 50px;
  bottom: 100px;
  z-index: 5;
}
/* Hero */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  height: 90vh;
  width: 100%;
  padding: 64px 0 40px;
  animation: ease;
  z-index: 50;
  backdrop-filter: blur(8px);
  transition: top 0.5s ease;
  background: linear-gradient(
    180deg,
    rgba(14, 22, 36, 0.85),
    rgba(14, 22, 36, 0.55)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
.hint_window_relative svg {
  position: absolute;
  bottom: -20px;
  left: 76px;
}
.tag {
  display: inline-block;
  background: rgba(0, 86, 179, 0.35);
  border: 1px solid rgba(0, 86, 179, 0.5);
  color: #d9ecff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
}
h1 {
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.15;
  margin: 16px 0;
}
.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.1vw, 18px);
}
.cta {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-card {
  background: linear-gradient(
    180deg,
    rgba(255, 219, 0, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.metric {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.metric small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

/* Sections */
section {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#events {
  margin-bottom: 86px;
}
.events_container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.event_item {
  display: flex;
  align-items: center;
  box-shadow: 0px 4px 4px 0px #00000040;
  border-radius: 25px;
  padding: 14px 10px;
  width: 617px;
  height: 308px;
  gap: 10px;
}
#join form {
  box-shadow: 0px 4px 4px 0px #00000040;
  padding: 25px 32px;
  border-radius: 25px;
}
.join_container {
  display: flex;
  justify-content: space-between;
}
.submit_button {
  padding: 20px 100px;
  color: white;
  background-color: #0471e5;
  border-radius: 50px;
}

#join {
  margin-top: 18px;
}
.join_us_text h3 {
  font-size: 86px;
  line-height: 100%;
}
.join_us_text {
  max-width: 567px;
}
.event_item img {
  width: 250px;
  height: 279px;
  border-radius: 25px;
  object-fit: cover;
}
.event_text {
  padding-left: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  align-items: start;
}

.event_text img {
  width: 25px;
  height: 25px;
}
.button_container img {
  width: 25px;
  height: 25px;
}
.event_item button {
  height: 31px;
  width: 31px;
  border: none;
  display: flex;
  align-items: center;
  border-radius: 25px;
  padding: 0;
  padding-left: 4px;
  background-color: #0471e5;
}
.event_item_smaller button {
  height: 31px;
  width: 31px;
  border: none;
  display: flex;
  align-items: center;
  border-radius: 25px;
  padding: 0;
  transform: rotate(-63deg); /* rotate 45 degrees clockwise */
  padding-left: 4px;
  background-color: #0471e5;
}

.event_item_smaller {
  display: flex;
  flex-direction: column;
  align-items: self-start;
  box-shadow: 0px 4px 4px 0px #00000040;
  border-radius: 25px;
  padding: 14px 10px;
  width: 352px;
  height: 308px;
  gap: 10px;
}
.button_smaller {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.button_container {
  display: flex;
  gap: 7px;
  width: 100%;
}
#about_us {
  margin-bottom: 86px;
}

.about_us_text {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.about_us_items {
  display: flex;
  gap: 10px;
}
.about_us_text_container p {
  text-align: center;
}
.about_us_text_container {
  max-width: 560px;
}
.about_us_highlighted {
  color: #fff;
  background-color: #0471e5;
}
.about_us_item {
  box-shadow: 0px 4px 4px 0px #00000040;
  border-radius: 25px;
  padding: 20px;
  width: 440px;
  height: 281px;
}
.first_hint {
  bottom: 174px;
  left: 16px;
}
@media (min-width: 1200px) {
}
@media (max-width: 1360px) {
  .event_item {
    width: 100%;
  }
  .about_us_item {
    width: 100%;
  }
  .about_us_items {
    width: 100%;
  }

  .event_item_smaller {
    width: 100%;
  }
  .event_item_smaller {
    height: 200px;
  }

  .about_us_text {
    flex-direction: column;
    align-items: start;
  }
}
.about_us_text h3 {
  font-size: 86px;
  line-height: 100%;
  margin-top: 48px;
  margin-bottom: 14px;
}
.img_about_us_container {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0471e5;
  border-radius: 15px;
  margin-bottom: 15px;
}
.about_us_text p {
  font-size: 20px;
  line-height: 100%;
  margin-top: 0;
}

#events h3 {
  font-size: 86px;
  line-height: 100%;
  margin-bottom: 10px;
}
#events p {
  font-size: 20px;
  line-height: 100%;
  margin-top: 0;
}
@media (max-width: 640px) {
  .first_hint {
    bottom: 156px;
    left: 9px;
  }
  .first_hint svg {
    position: absolute;
    bottom: -20px;
    left: 53px;
  }
  .event_item {
    height: 400px;
    flex-direction: column-reverse;
  }
  .about_us_item {
    width: 100%;
  }
  .about_us_text {
    flex-direction: column;
  }
  .event_item img {
    width: 100%;
  }
  .container {
    margin: 0 10px;
  }
  #event_img {
    height: 175px;
  }

  .about_us_text h3 {
    font-size: 36px;
    line-height: 100%;
    margin-top: 48px;
    margin-bottom: 36px;
  }
  .about_us_text p {
    font-size: 15px;
    line-height: 100%;
    margin-top: 0;
  }

  #events h3 {
    font-size: 36px;
    line-height: 100%;
    margin-bottom: 10px;
  }
  #events p {
    font-size: 15px;
    line-height: 100%;
    margin-top: 0;
  }
  .info_btn {
    left: 30px;
    font-size: 12px;
  }
  .info_btn img {
    height: 20px;
  }

  .checkboxes {
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px; */

    display: flex; /* use flex instead of grid */
    flex-direction: column; /* stack items vertically */
    max-height: 150px; /* adjust height as needed */
    overflow-y: auto; /* enable vertical scrolling */
    gap: 1px;
    width: 100%;
    overflow-x: hidden;
  }
  .types_of_maps_container {
    width: 100vw;
    bottom: 72px;
  }
}
.section-title {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 10px;
}
.buttons_year {
  position: absolute;
  z-index: 5;
  width: 100%;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(14, 22, 36, 0.85),
    rgba(14, 22, 36, 0.55)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.buttons_year button {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
  background: linear-gradient(
    180deg,
    rgba(14, 22, 36, 0.85),
    rgba(14, 22, 36, 0.55)
  );
  color: rgb(213, 213, 213);
  transition: transform 0.05s ease-in;
  cursor: pointer;
}
.section-lead {
  color: var(--muted);
  margin: 0 0 24px;
}

.grid {
  display: grid;
  gap: 16px;
}
.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 8px;
}
.card p {
  margin: 0;
}

.list {
  display: grid;
  gap: 10px;
}
.list .item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
}
.list .item strong {
  display: block;
}

.banner {
  margin-top: 10px;
  background: linear-gradient(
    90deg,
    rgba(0, 86, 179, 0.4),
    rgba(255, 219, 0, 0.25)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px;
}
.map_container {
  position: relative;
  width: 100%;
  color: #fff;
  height: 88vh;
}
/* Form */
form {
  display: grid;
  gap: 12px;
  max-width: 640px;
}
label {
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid black;
  color: var(--text);
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.note {
  color: var(--muted);
  font-size: 14px;
}
.bg_gradient {
  position: fixed;
  display: block;
  width: 100%;
  top: 0;
  z-index: -100;
  height: 1000px;
  background: #f5f6f8;
  color: var(--text);
  line-height: 1.6;
}
/* Footer */
footer {
  padding: 26px 0 40px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.control_container {
  max-width: 650px;
  width: 100%;
}
.swiper {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mySwiper2 {
  overflow: hidden;
}
.mySwiper3 {
  overflow: hidden;
}
.mySwiper4 {
  overflow: hidden;
}
.popup {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.years_header {
  font-style: italic;
  padding: 0;
  margin: 0;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: linear-gradient(
    180deg,
    rgba(14, 22, 36, 0.7),
    rgba(14, 22, 36, 0.7)
  );

  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide p {
  margin: 0;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-v {
  background: #000;
}
.slide_container_custom {
  display: flex;
  flex-direction: column;
}
.control_wrapper {
  width: 100%;
  display: flex;
  height: 70px;
  justify-content: center;
}
#hero-title {
  color: #fff;
}
.control_container h4 {
  text-align: left;
  font-size: 12px;
  margin: 0;
  width: 100%;
  padding: 3px;
}
.checkboxes {
  position: relative;
  padding: 3px;
  padding-right: 8px;
}
.open_types {
  top: -25px;
  right: 7px;
  position: absolute;
}
.close_types_of_maps img {
  width: 20px;
  height: 20px;
}
.types_of_maps_container label {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: space-between;
}
.types_of_maps_container input {
  width: 20px;
}

.popup h3 {
  margin: 0;
}
.popup p {
  margin: 0;
}
.hero {
  z-index: 100000;
}
.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures video always covers section */
  z-index: -2; /* send it behind content */
  filter: blur(3px); /* blur effect */
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* black tint with 40% opacity */
  z-index: -1;
}
.open_types_of_maps {
  position: absolute;

  transform: rotate(-90deg);
  bottom: 0px;
  left: 50%;
}
.menu {
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 1000;
  background-color: #fff;
  justify-content: space-around;
}
/* Responsive */
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .menu a {
    font-size: 12px;
  }
}

.custom_nav_st {
  width: 100%;
  justify-content: center;
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .about_us_items {
    flex-direction: column;
  }
  .events_container {
    flex-direction: column;
  }
  .join_container {
    flex-direction: column;
  }
  .join_us_text h3 {
    font-size: 36px;
    line-height: 100%;
    margin-bottom: 10px;
  }
  .about_us_item {
    height: auto;
  }
}
@media (max-width: 600px) {
  .cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.swiper-slide {
  border-right: 1px wheat;
}

.button_down {
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  left: 50%;
  top: 11px;
}
.button_up {
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  top: 98px;
}

html,
body {
  height: 100%;
}

.hint_overlay {
  position: absolute;
  z-index: 5000;
  width: 100vw;
  height: 100%;
  background-color: #0000007e;
}
.hint_container {
  position: relative;
  height: 100%;
}

.hint_window {
  position: absolute;
  width: 207px;
  height: 119px;
  background-color: white;
  border-radius: 5px;
  padding: 11px 13px;
  display: none;
  color: black;
}

.second_hint {
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%);
}

.hint_window h4 {
  font-size: 11px;
}
.hint_window p {
  font-size: 8px;
  line-height: 100%;
  margin-bottom: 11px;
}
.hint_window_relative {
  position: relative;
  width: 100%;
  height: 100%;
}

.hint_button {
  background-color: #0471e5;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 9px;
  padding: 5px 13px;
}
.button_container {
  display: flex;
  width: 100%;
  justify-content: flex-end;
}
.appear-wrapper {
  background: none;
  border: none;
}

/* Animate only image inside */
.appear-img {
  opacity: 0;
  animation: appear 0.6s ease-out forwards;
  width: 30px;
}

@keyframes appear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* initial state */
.overlay-fade {
  opacity: 0;
  animation: fadeIn 0.7s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.8;
  }
}
