/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0.0
*/

.popup-loader {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  background: #293385;
  border-radius: 15px;
  width: 800px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.popup-loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.popup-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.slider-wrapper {
  display: flex;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.slider-left {
  flex: 1;
  min-width: 100px;
  max-width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 600px;
}

.thumbnail-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.thumbnail {
  position: relative;
  cursor: pointer;
  flex: 1;
  overflow: hidden;
  border-radius: 5px;
  height: calc((600px - 2rem) / 3); 
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.thumbnail:hover img,
.thumbnail.active-thumb img {
  opacity: 1;
}

.thumb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  z-index: 2;
}

.slider-right {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.main-image {
  cursor: pointer;
  position: relative;
  height: 600px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%; 
  min-width: 800px;
  aspect-ratio: 4 / 3; 
  max-width: 800px; 
  height: auto; 
}

.main-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.overlay-caption {
  position: relative;
  z-index: 1;
  width: 100%;
  background: url('https://polaris.reborndev123.com/wp-content/uploads/2025/04/flag-background-2.png');
  background-size: cover;
  color: #293385;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.slider-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-arrow {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-arrow:hover {
  background-color: #555;
}

#popup-video-container.hidden {
  display: none;
}

@media screen and (max-width: 1695px) {
  #main-image {
    width: 100%; 
    min-width: 400px;
    aspect-ratio: 4 / 3; 
    max-width: 600px; 
    min-height: 600px; 
  }
}

@media screen and (max-width: 1450px) {
  #main-image {
    width: 100%; 
    min-width: 300px;
    aspect-ratio: 4 / 3; 
    max-width: 400px; 
    min-height: 600px; 
  }
}

@media screen and (max-width: 1175px) {
  .slider-left {
    display: none;
  }
}

@media screen and (max-width: 1024px) {
  .slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #main-image {
    min-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 500px) {
  #main-image {
    min-width: 275px;
  }
}