/* --- Global Variables & Resets --- */
:root {
  --blue: #0000ff;
  --gap: 30px;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--blue);
  background-color: #ffffff;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* --- Typography & Elements --- */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
.logo {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

p {
  margin-bottom: 30px;
}

h6 {
  margin-top: 18px;
}

img {
  margin-top: 0px;
}

.nospace {
  margin-top: 0px;
}

a {
    text-decoration: none;
    transition: color 0.2s ease; /* Optional: makes the transition smoother */
}

/* This adds the underline back only when the mouse is over the link */
a:hover {
    text-decoration: underline;
}



/* new */

/* --- Updated Layout --- */
.app-container {
  display: flex;
  height: 100vh;
  /* Force the container to take the full height of the screen */
}

/* This replaces your old .slide-content and .div-block-21 */
.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Changed from center */
  min-height: 100%; /* Keeps the bottom text at the bottom if content is short */
  padding: 30px 30px;
  /* Removed align-items: center; so text aligns left properly */
}

.top-content {
  margin-bottom: 10px;
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  flex-grow: 1; /* Replaced height: 100% with this */
}

.bottom-content {
    
  margin-top: 10px;
  position: relative;
  line-height: 1.5;
  /* This naturally sits at the bottom because of space-between */
}


.section {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
  margin-left: 30px;
  margin-right: 30px;
  display: flex;
  overflow: visible;
}


/* new */


.slide-content {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
  margin-left: 30px;
  margin-right: 30px;
  display: flex;
  overflow: visible;
}

img,
iframe,
.placeholder-frame {
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  display: block;
}

/* --- Layout --- */
.app-container {
  display: flex;
  height: 100%;
}

.sidebar {
  width: max-content;
  flex-shrink: 0;
  border-right: 1px solid var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gap) 30px var(--gap) var(--gap);
}


.menu {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.menu a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.2s;
}

.menu a:hover {
  opacity: 0.7;
}

.content-area {
  flex-grow: 1;
  height: 100vh;
  position: relative;
  overflow-y: auto; /* This tells the browser to scroll this section */
  overflow-x: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  overflow-y: auto;
  padding-right: 10px;
}

.slide-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 30px 35px;
  position: relative;
}

/* --- Filters & Hovers --- */
.bw-image {
  filter: grayscale(100%) brightness(100%) sepia(0%) hue-rotate(190deg) saturate(900%);
  transition: filter 0s ease;
  width: 100%;
}

.bw-image:hover {
  filter: none;
}

.bw-image iframe {
    width: 100vw; /* Using viewport width units ensures it fills the screen */
    display: block; /* Removes the tiny gap at the bottom of inline elements */
}

.blue-image {
  filter: grayscale(100%) brightness(20%) sepia(60%) hue-rotate(190deg) saturate(900%);
  transition: filter 0.1s ease;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'><circle cx='9' cy='9' r='8' fill='%23ffffff'/></svg>") 9 9, auto;
}

.blue-image:hover {
  filter: none;
}

/* --- Slider Nav --- */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--blue);
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s, transform 0.2s;
}

.nav-btn.prev {
  left: 8px;
}

.nav-btn.next {
  right: 16px;
}

.pagination-dots {
  position: absolute;
  top: var(--gap);
  right: 46px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 255, 0.2);
  cursor: pointer;
}

.dot.active {
  background: var(--blue);
}

/* --- Grid & Popups --- */

.pop-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}


    .pop-image-grid img {
      cursor: zoom-in;
      transition: transform 0.3s ease;
    }
    .pop-image-grid img:hover {
      transform: scale(1.03);
    }



.custom-popup-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
  opacity: 0;
  transition: background 0.6s ease, backdrop-filter 0.6s ease, opacity 0.6s;
  backdrop-filter: blur(0px);
  pointer-events: none;
}

.custom-popup-wrapper.active {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(25px);
  pointer-events: auto;
  opacity: 1;
}

.popup-content {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 20px;
  transform: scale(0);
  filter: blur(15px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease-out, opacity 0.6s ease-out;
}

.custom-popup-wrapper.active .popup-content {
  transform: scale(1);
  filter: blur(0px);
  opacity: 1;
}

.video-container {
  position: relative;
  width: 100%;
  /* Adjust this padding-top to match your video's aspect ratio (16:9 is 56.25%) */
  padding-top: 56.25%;

  /* This makes the corners round and crops the video inside */
  border-radius: 20px;
  overflow: hidden;

  /* Optional: removes any default white border/space */
  line-height: 0;

  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  filter: grayscale(100%) brightness(100%) saturate(900%);
  transition: filter 0.5s ease;

}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;

  /* Ensures the video content covers the area, 
     though iframes are limited by the source aspect ratio */
  object-fit: cover;
}

.video-container:hover {
  filter: none;
}


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

/* --- Responsive --- */

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    padding: 20px 20px 10px;
    border-right: none;
  }

  .pop-image-grid {
    grid-template-columns: 1fr;
  }

  .pagination-dots {
    display: none;
  }
}


/* Full screen overlay (optional) */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* The Blue Circle */
.custom-loader {
  width: 18px;
  height: 18px;
  background-color: #3300FF;
  /* Matching the blue in your image */
  border-radius: 50%;
  position: relative;
  animation: spin 1s linear infinite;
}

/* The White Dot */
.white-dot {
  width: 3px;
  height: 3px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  /* Adjusting position to match your image */
  right: 4px;
}

/* Percentage Text */
#loading-text {
  margin-top: 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #3300FF;
}



/* 3. POPUP & UTILITY STYLES */
    .custom-popup-wrapper,
    .iframe-popup-wrapper {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      justify-content: center;
      align-items: center;
    }

    .custom-popup-wrapper {
      background-color: rgba(0, 0, 0, 0.9);
      z-index: 9999;
      cursor: zoom-out;
    }

    .popup-content {
      width: auto !important;
      height: auto !important;
      max-width: 90vw;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 20px;
      box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
      pointer-events: auto;
    }

    .iframe-popup-wrapper {
      background-color: rgba(0, 0, 0, 0.85);
      z-index: 10000;
      backdrop-filter: blur(5px);
    }

    .iframe-container {
      width: 90%;
      height: 80%;
      max-width: 1200px;
      background: #000;
      position: relative;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
      border-radius: 20px;
      overflow: hidden;
    }

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

    .close-iframe {
      position: absolute;
      top: 15px;
      right: 20px;
      color: white;
      font-size: 30px;
      cursor: pointer;
      z-index: 10001;
      font-family: sans-serif;
      line-height: 1;
    }



/* Rotation Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
