* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

body {
  font-family: Arial, sans-serif;
  direction: rtl;
  background-color: #477088;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

/* שכבת הרקע של המפה */
body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image:
    linear-gradient(rgba(71, 112, 136, 0.25), rgba(71, 112, 136, 0.25)),
    url("World_map_blank.svg");

  background-size: 1200px auto;
  background-repeat: no-repeat;
  background-position: center;

  z-index: -1;
}

.card {
  width: 100%;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 30px 24px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  text-align: center;
}

h1 {
  margin: 0 0 8px;
  font-size: 30px;
  color: #243528;
}

.subtitle {
  margin: 0 0 26px;
  color: #555;
  font-size: 16px;
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
  margin: 12px 0;
  padding: 15px 18px;

  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(213, 222, 210, 0.6);
  border-radius: 12px;

  text-align: right;
  text-decoration: none;
  color: #1f4f35;

  font-size: 19px;
  font-weight: bold;

  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.link-button::before {
  content: "";
  flex: 0 0 auto;

  width: 22px;
  height: 22px;

  background-image: url("icons/marker.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  margin-left: 10px;
}

.link-button:hover {
  background: rgba(237, 244, 234, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

button.link-button {
  cursor: pointer;
  font-family: inherit;
}

/* אזור הסרטונים */
.hidden {
  display: none;
}

.videos-panel {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(36, 53, 40, 0.25);
}

.videos-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #243528;
}

.video-group {
  margin-bottom: 16px;
  text-align: right;
}

.video-group h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #243528;
}

.video-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(36, 53, 40, 0.3);
  background: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  direction: rtl;
}

.video-player {
  margin-top: 22px;
}

.video-player h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #243528;
  text-align: right;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* מחשב: 16:9 */
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* התאמה לטלפון */
@media (max-width: 768px) {
  body {
    padding: 14px;
    align-items: flex-start;
  }

  body::before {
    background-size: 850px auto;
    background-position: center top;
  }

  .card {
    margin-top: 24px;
    padding: 24px 16px;
    border-radius: 16px;
  }

  h1 {
    font-size: 25px;
  }

  .subtitle {
    font-size: 15px;
  }

  .link-button {
    font-size: 17px;
    padding: 14px;
  }

  .video-wrapper {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding-bottom: 177.77%; /* נייד: 9:16 */
  }
}