@import url("https://fonts.adam-test.com/css/invention.css");

:root {
  --color-primary: #0c233f;
  --color-accent: #c4d54b;
  --color-text: #fff;
}

/* Fancybox */
.fancybox__carousel .fancybox__slide.has-iframe .fancybox__content,
.fancybox__carousel .fancybox__slide.has-map .fancybox__content,
.fancybox__carousel .fancybox__slide.has-pdf .fancybox__content {
  width: 100% !important;
  height: 100% !important;
}

.fancybox__content {
  max-width: 960px;
  background: transparent !important;
}

a[data-fancybox] img {
  cursor: zoom-in;
}

.fancybox-zoomIn {
  animation: 0.25s ease both fancybox-zoomIn;
}

.fancybox-zoomOut {
  animation: 0.15s ease both fancybox-zoomOut;
}

@keyframes fancybox-zoomIn {
  from {
    opacity: 0;
    transform: scale(0.75);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fancybox-zoomOut {
  to {
    opacity: 0;
    transform: scale(1.25);
  }
}

/* Layout */
body {
  font-family: "Invention", sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url("../img/hero-bg-image.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

header {
  padding: 20px 40px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer {
  background-color: var(--color-primary);
  color: var(--color-text);
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
}

header img,
footer img {
  height: 50px;
}

.additional-logo {
  height: 50px;
}

.main-content {
  position: relative;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 50px 20px;
  align-items: center;
  justify-content: center;
}

/* Typography */
h1 {
  font-family: "Invention", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin-bottom: 0;
}

h2 {
  letter-spacing: 0.02rem;
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  margin-top: 0;
}

p.copy {
  font-size: 0.7rem;
}

p.contact {
  text-align: right;
  line-height: 1.1rem;
  font-size: 0.7rem;
}

a {
  text-decoration: none;
  color: var(--color-text);
}

.tl {
  padding-bottom: 20px;
}

.left {
  text-align: left;
  font-size: 0.6rem;
}

.italic {
  font-style: italic;
}

.accent-text {
  color: var(--color-accent);
}

.accent-text {
  color: var(--color-accent);
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* Content blocks */
.block1>.title1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  /* background: #00a2b3;
  background: linear-gradient(to right, #00a2b3 0%, #00a2b3 100%);
  -webkit-background-clip: text; */
  /* -webkit-text-fill-color: transparent; */
  font-weight: bold;
  margin: 0;
}

.block1>.title2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0;
  font-weight: bold;
}

.block1>.date {
  /* color: #7cebe6; */
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 0;
}

.block1>.location {
  color: #ffffff;
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  margin-top: 0.5rem;
}

.block1>.title-msd {
  color: #444444;
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  /* Ensures the effect stays within the button */
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  box-shadow: 0px 9px 8px rgb(0 0 0 / 7%);
  letter-spacing: 0.05rem;
  transition: color 0.3s ease, border-color 0.3s ease;
  /* Keep transition smooth */
  /* flex: 1; */
  min-width: 120px;
  text-align: center;
  padding: 8px 50px;
  height: 40px;
  font-size: 0.8rem;
  font-family: "Invention", sans-serif;
  font-weight: 700;
  border: solid 2.5px var(--color-primary);
  color: var(--color-primary);
  z-index: 1;
}

/* Pseudo-element for hover effect */
.btn-primary::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  bottom: -100%;
  /* Initially hidden below */
  left: 0;
  transition: bottom 0.3s ease-in-out;
  z-index: -1;
}

.btn-primary:hover::before {
  bottom: 0;
}

.btn-primary:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
}

.btn-drop {
  position: relative;
  overflow: hidden;
  /* Ensures the effect stays within the button */
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  box-shadow: 0px 9px 8px rgb(0 0 0 / 7%);
  letter-spacing: 0.05rem;
  /* flex: 1; */
  min-width: 120px;
  text-align: center;
  padding: 8px 50px;
  height: 40px;
  font-size: 0.8rem;
  font-family: "Invention", sans-serif;
  font-weight: 700;
  border: solid 2.5px var(--color-primary);
  color: var(--color-primary);
  z-index: 1;
  transition: all 0.3s ease-in-out;
}

.btn-drop:hover {
  transform: scale(0.97);
}

/* Dropdown */
.dropdown {
  position: relative;
  flex-direction: column;
}

.dropdown-menu {
  opacity: 0;
  transform: translateY(-10px);
  background-color: #fff;
  min-width: 150px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
  visibility: hidden;
  overflow: hidden;
  max-height: 0;
  /* Initially collapsed */
}

/* Show dropdown with smooth transition */
.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  max-height: 200px;
  /* Adjust based on content */
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-primary);
  height: 20px;
}

.dropdown-menu a i {
  margin-right: 5px;
  font-size: 1rem;
}

/* Content below the dropdown */
.content {
  transition: margin-top 0.3s ease;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  height: 80%;
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.9rem;
  cursor: pointer;
  color: var(--color-text);
}

/* Footer */
.footer-top {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  /* Ensures responsiveness */
  justify-content: space-between;
  padding-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 10px;
  width: 100%;
  text-align: center;
}

a.footer-email,
a.footer-email:visited,
a.footer-email:hover,
a.footer-email:active {
  color: var(--color-text) !important;
  text-decoration: underline;
}

img.logo-footer {
  height: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons a {
    letter-spacing: 0.05rem;
    /* flex: 1; */
    max-width: 250px;
    text-align: center;
    padding: 15px 55px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
  }

  .main-content {
    background-size: 140%;
  }

  .footer-top {
    flex-direction: column-reverse;
    align-items: center;
  }

  .left {
    text-align: center;
  }

  p.contact {
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .additional-logo {
    height: 100px;
  }
}

@media (max-width: 768px) {
  .footer-column {
    width: 100%;
    margin-bottom: 10px;
  }

  .main-content {
    padding: 20px;
    background-size: 200%;
  }
}

@media (max-width: 500px) {
  .fancybox__content {
    max-height: 550px;
    padding: 0px !important;
  }

  button.carousel__button.is-close {
    right: -7px !important;
  }

  h1 {
    margin-bottom: 30px;
  }

  .tl {
    padding-bottom: 30px;
  }
}