:root {
  --primary: #0f7b85;
  --background: #ffffff;
  --text: #000000;
  --font-family-base: 'Arial', sans-serif;
}

/* Simple reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  min-height: 100vh;
}
body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-family-base);
  line-height: 1.4;
  background: var(--background);
  color: var(--text);
}

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

/* HEADER START */
header {
  padding: 20px 20px 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.mobile-nav {
  display: none !important;
  width: 100%;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--background);
  border-radius: 2px;
}

/* Burger menu button */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu-overlay_ {
  position: fixed;
  top: 122px;
  left: 0;
  width: 100%;
  height: 100vh;
  background: red;
  z-index: 10;
}

header .header-img {
  width: 240px;
  object-fit: contain;
}
/* HEADER END */

/* HEADER CONTENT START */
.full-width-container {
  position: relative;
  width: 100%;
  /* background: var(--primary); */
}

.full-width-container .bg-img {
  width: 100%;
  min-height: 200px;
  object-fit: cover;
}

.header-content {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--background);
  text-align: center;
}

.subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--background);
  text-align: center;
}

/* HEADER CONTENT END */

/* CONTENT BLOCK START */
main {
  margin: 0 auto;
  padding: 40px 20px;
  max-width: 1200px;
  width: 100%;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insights-page-main {
  padding-left: 3rem;
  padding-right: 3rem;
}

.content-block {
  margin-bottom: 1rem;
}

.content-block p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.content-block .colored-title {
  font-size: 1.125rem;
  color: var(--primary);
}

.video-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.video-container video {
  max-width: 800px;
  width: 100%;
  height: auto;
}

.content-block .explore-block {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
}

.content-block .explore-block p {
  max-width: 50%;
  font-size: 1.125rem;
  color: var(--primary);
}

.explore-button button {
  background: var(--primary);
  color: var(--background);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.iframe-wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 0.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--primary) 1px solid;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.iframe-wrapper-error {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--text);
  display: none;
}

.home-page-link-container {
  margin-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.home-page-link-container a {
  cursor: pointer;
  text-decoration: underline;
  color: #8a8a8a;
}

/* CONTENT BLOCK END */

/* GALLERY SECTION START */
.gallery-section {
  width: 100%;
  max-width: 1200px;
  margin-top: 1rem;
  padding: 2rem 0;
}

.gallery-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.gallery-subtitle {
  font-size: 1rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-container {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
  gap: 1rem;
}

.slider-slide {
  flex: 0 0 calc(33.333% - 0.667rem);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  background: #f0f0f0;
}

.slider-slide:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider-slide img.loaded {
  opacity: 1;
}

/* Loading spinner */
.slider-slide::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

.slider-slide img.loaded + ::before,
.slider-slide:has(img.loaded)::before {
  display: none;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.slider-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  flex-shrink: 0;
}

.slider-btn:hover {
  background: #0a5f67;
  transform: scale(1.05);
}

.slider-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.slider-pagination {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text);
}

.pagination-separator {
  margin: 0 0.5rem;
}

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

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.lightbox-nav {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Desktop navigation - positioned on sides */
.lightbox-nav.desktop-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.desktop-nav:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev.desktop-nav {
  left: 20px;
}

.lightbox-next.desktop-nav {
  right: 20px;
}

/* Mobile navigation container */
.lightbox-mobile-nav {
  display: none;
  gap: 2rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-image.loaded {
  opacity: 1;
}

.lightbox-content {
  position: relative;
}

.lightbox-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 0;
}

.lightbox-content:has(.lightbox-image.loaded)::before {
  display: none;
}

.lightbox-counter {
  color: white;
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.lightbox-separator {
  margin: 0 0.5rem;
}

/* Gallery messages */
.gallery-message {
  width: 100%;
  text-align: center;
  padding: 3rem;
  color: var(--text);
  font-size: 1.1rem;
}

.gallery-error {
  color: #d32f2f;
}

@media (max-width: 1024px) {
  .slider-slide {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media (max-width: 640px) {
  .gallery-title {
    font-size: 1.5rem;
  }

  .gallery-subtitle {
    font-size: 0.9rem;
  }

  .slider-slide {
    flex: 0 0 100%;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  /* Hide desktop navigation buttons on mobile */
  .lightbox-nav.desktop-nav {
    display: none;
  }

  /* Show mobile navigation under image */
  .lightbox-mobile-nav {
    display: flex;
  }

  .lightbox-mobile-nav .lightbox-nav {
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
  }

  .lightbox-mobile-nav .lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 85vh;
  }

  .lightbox-image {
    max-height: 60vh;
  }

  .lightbox-counter {
    margin-top: 0.75rem;
    font-size: 1rem;
  }
}
/* GALLERY SECTION END */

/* FOOTER BLOCK START */
footer {
  background: var(--primary);
  color: var(--background);
  padding: 1rem 1rem;
  font-size: 0.95rem;
}

footer .footer-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

footer .footer-container .footer-left p {
  margin-left: 100px;
}

footer .footer-container .footer-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

footer .footer-container img {
  width: 240px;
  object-fit: contain;
}

footer .footer-contact {
  margin-bottom: 1rem;
}

footer .footer-contact a {
  display: block;
  color: var(--background);
}
/* FOOTER BLOCK END */

@media (max-width: 1024px) {
  header .header-img,
  footer .footer-container img {
    width: 200px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.5rem;
  }

  .content-block p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .insights-page-main {
    padding: 1.5rem;
  }

  .content-block .explore-block .explore-button button {
    padding: 0.6rem 1.4rem;
  }

  footer .footer-container .footer-left p {
    margin-left: 60px;
  }
}

@media (max-width: 770px) {
  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: flex !important;
  }

  .nav-links {
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  /* Burger menu */
  /* .burger-menu {
    display: flex;
  }


  .nav-links {
    display: none;
    position: absolute;
    top: 122px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--primary);
    padding: 1rem;
    gap: 0;
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 0.75rem;
    color: var(--background);
  }

  .nav-link.active {
    color: var(--background);
    border-bottom: 2px solid var(--background);
  }

  .nav-link.active::after {
    display: none;
  }

  /* Burger menu animation */
  /* .burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  } */

  header {
    padding: 20px 20px 30px 20px;
  }

  header .header-img {
    width: 140px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .content-block p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .content-block .explore-block {
    padding-bottom: 2rem;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
  }

  .content-block .explore-block p {
    min-width: 100%;
  }

  .iframe-wrapper-error {
    display: block;
  }

  footer .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer .footer-container .footer-left p {
    margin-left: 0px;
  }

  footer .footer-container img {
    width: 240px;
  }
}
