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

.lang-switcher {
  position: fixed;
  top: 0.75rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}

.lang-btn {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  background: rgba(255, 248, 220, 0.75);
  color: #3b2a0e;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-btn:hover {
  background: rgba(255, 248, 220, 0.95);
}

.lang-btn--active {
  background: rgba(107, 90, 42, 0.85);
  color: #fdf5e0;
  cursor: default;
}

.external-links {
  position: fixed;
  bottom: 0.75rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}

.link-btn {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  background: rgba(255, 248, 220, 0.75);
  color: #3b2a0e;
  cursor: pointer;
  transition: background 0.15s;
}

body {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: url('/resources/main.jpg') center center / cover no-repeat fixed;
}

.banner {
  width: 100%;
  background: rgba(40, 28, 8, 0.65);
  backdrop-filter: blur(6px);
  padding: 1.5rem 2rem 1.25rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

header {
  text-align: center;
}

h1 {
  font-size: clamp(3rem, 5.5vw, 6rem);
  font-weight: 600;
  color: #fdf5e0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.2rem, 2.2vw, 2.4rem);
  font-weight: 600;
  color: #fdf5e0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
}

.cards-row {
  display: flex;
  gap: clamp(1.5rem, 5vw, 6rem);
  justify-content: center;
  align-items: stretch;
  padding: 3rem 2rem 3rem;
  flex-wrap: wrap;
}

.action-card {
  background: rgba(255, 248, 220, 0.92);
  border-radius: 12px;
  padding: 1.5rem;
  width: clamp(260px, 22vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.action-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.card-icon {
  height: clamp(140px, 14vw, 220px);
  /*background: rgba(107, 90, 42, 0.15);*/
  border-radius: 8px;
  border: 2px rgba(107, 90, 42, 0.3);
}

.card-title {
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 600;
  color: #3b2a0e;
}

.card-text {
  font-size: clamp(0.875rem, 1.1vw, 1.1rem);
  color: #5c4a2a;
  line-height: 1.5;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.hidden {
  display: none;
}

.modal-box {
  position: relative;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 0.5rem;
  width: 80vw;
  height: 80vh;
}

.modal-close {
  position: absolute;
  top: -1.5rem;
  right: -0.25rem;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 400;
  border: none;
  font-family: inherit;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal-fullscreen {
  position: absolute;
  top: -1.5rem;
  right: 2.1rem;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.modal-fullscreen:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Reposition controls inside the box when in fullscreen */
.modal-box:fullscreen,
.modal-box:-webkit-full-screen {
  border-radius: 0;
  width: 100vw;
  height: 100vh;
}

.modal-box:fullscreen .modal-close,
.modal-box:-webkit-full-screen .modal-close {
  top: 0.5rem;
  right: 0.5rem;
}

.modal-box:fullscreen .modal-fullscreen,
.modal-box:-webkit-full-screen .modal-fullscreen {
  top: 0.5rem;
  right: 3rem;
}

#modal-video {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: none;
}

#modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 6px;
  display: none;
}

#modal-pdf {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 6px;
  display: none;
}
