/* Styling for the video lazy load containers */
.video-lazy-load-container {
  position: relative;
  cursor: pointer;
  background-color: #f8f8f8; /* Changed as per your request */
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  width: 100%; /* Ensure it takes full width of its parent */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box; /* Include padding/border in width/height */
  /* height is set inline by PHP, removed height: 100% from here */
}

.video-lazy-load-container .video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column; /* To stack content vertically */
  justify-content: center;
  align-items: center;
  
  /* --- Styles for the Background Image --- */
  /* The background-image URL is set inline by PHP for YouTube */
  background-size: cover;          /* Ensures the image covers the entire placeholder area */
  background-position: center center; /* Centers the background image */
  background-repeat: no-repeat;    /* Prevents the image from tiling if it's smaller than the container */
  background-color: #f8f8f8; /* Default fallback background for placeholder (used by YouTube) */

  cursor: pointer;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
  z-index: 2; /* Ensure it's above the iframe wrapper initially */
  color: white; /* Default text color for placeholder */
  font-size: 1.5rem;
  font-weight: bold;
}

.homepage_contentsec video{
  width: 100% !important;
}
.video-iframe-wrapper video{
  width: 100% !important;
  object-fit: cover;  
}
video{
  width: 100% !important;
}
.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column; /* To stack content vertically */
  justify-content: center;
  align-items: center;
  
  /* --- Styles for the Background Image --- */
  /* The background-image URL is set inline by PHP */
  background-size: cover;          /* Ensures the image covers the entire placeholder area */
  background-position: center center; /* Centers the background image */
  background-repeat: no-repeat;    /* Prevents the image from tiling if it's smaller than the container */
                                   /* If you don't want black flash, you can make this transparent or a loading spinner background */
  /* ------------------------------------ */

  cursor: pointer;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
  z-index: 2; /* Ensure it's above the iframe wrapper initially */
}

/* Keep your play button styles as they are: */
.play-button {
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute; /* Position it relative to the placeholder */
  z-index: 1; /* Ensure it's above the background image */
  padding: 0;
}

/* Your YouTube/TikTok specific play button styles */
.youtube-video .play-button svg { /* ... */ }
.tiktok-video .play-button { /* ... */ }

/* And your video-iframe-wrapper CSS is fine */
.video-iframe-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease-in-out;
}

.video-iframe-wrapper.active {
  opacity: 1;
}

/* Ensure the iframes take full height/width inside their wrappers */
.video-iframe-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
}
.loader {
font-weight: bold;
font-family: Arial, sans-serif;
font-size: 16px;
color: #4dd069;
}

.loading-text
{
      margin-top : 20px;
      text-align: center;
      padding-bottom: 20px;
      font-family: Arial, sans-serif;
      font-size: 16px;
}

/* TikTok specific placeholder styling (loader) */
.tiktok-video .video-placeholder {
  background-color: transparent; /* Changed from #222 to transparent to remove grey area */
  color: #fff;
  font-size: 1.2rem;
  /* Removed flex-direction, justify-content, align-items here as they are on .video-placeholder */
  /* Removed loader specific styles, dots, and blink animation */
}
.image-lazy-load-container {
  position: relative;
  display: flex; /* To center loading text */  
  overflow: hidden;
  margin-bottom: 15px;
  background-color: transparent;  /* Light grey background for the container */
  border-radius: 8px;
  box-sizing: border-box;
  /* Dimensions will be set inline by PHP or default min-height */
}

.image-lazy-load-container .image-loading-text {
  position: absolute;
  color: #555; /* Visible text color */
  font-size: 1rem;
  font-family: Arial, sans-serif;
  z-index: 1; /* Above the transparent image */
}

/* Image lazy loading */
img.Imglazy {
  display: block; /* Ensure images are block level for proper layout */
  height: auto;
  min-height: 100px; /* Placeholder height while loading */
  background-color: transparent; /* Changed to transparent to avoid grey flash */
  transition: opacity 0.3s ease-in-out;
  opacity: 0; /* Initially hidden */
  border-radius: 8px;
  margin-bottom: 15px;
}

img.Imglazy.loaded {
  opacity: 1; /* Fade in when loaded */
}

/* Loading indicator for AJAX - Adjusted for in-flow centering */
#loading-indicator {
  margin-top: 20px;
  text-align: center; /* Centers inline content (like the text) */
  padding-bottom: 20px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #555; /* A darker color for text within the content area */
  display: none; /* Hidden by default, shown by JS */
  background: none; /* Ensure no background */
}


 /* --- CSS for the Splash Screen --- */
 #splash-screen {
  /* position: fixed; /* Covers the entire viewport */
  
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* Or any background color you prefer */
  display: flex; /* Centers content */
  flex-direction: column;
  justify-content: center;

}

.splash-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #3498db; /* Blue spinner color */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite; /* Spinner animation */
  margin-bottom: 10px; /* Space between spinner and text */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- CSS for Main Content Container --- */
/* This hides your entire page content initially */
#main-page-wrapper {
  display: none; /* Hidden by default */
  opacity: 0; /* For smooth fade-in */
  transition: opacity 0.5s ease-in; /* Fade-in animation */
}

/* This class will be added by JavaScript to make content visible */
#main-page-wrapper.visible-page-content {
  display: block; /* Or flex, grid, etc., depending on your layout */
  opacity: 1;
}
/* Removed .loading-text rule as its styles are now directly on #loading-indicator */

@media (max-width: 767px) {
  .video-lazy-load-container {
      max-width: 100% !important;
  }
  .mobile_full_width {
      width: 100% !important;
  }
}

.contaner-splashscreen {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.logo-section {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  width: 310.46px;
  height: 100.7px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.free-news {
  color: #4DD069;
  font-size: 54.93px;
  font-weight: 700;
  letter-spacing: -0.55px;
  line-height: 1.2;
}

.marketplace {
  color: #0086AB;
  font-size: 37.21px;
  font-weight: 700;
  letter-spacing: 2.98px;
  line-height: 1.2;
}

.loading-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  margin-bottom: 40px;
}

.loading-spinner {
  width:55px;
  height: 58px;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: #5C5C5C;
  font-family: Arial, sans-serif;
  font-size:16px;
  font-weight: 500;
}

.content-image {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.main-image {
  width: 100%;
  max-width: 786px;
  height: auto;
  border-radius: 30px;
}

.divider-lines {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.divider-line {
  width: 100%;
  height: 4.04px;
  background: #FDFDFD;
  opacity: 0.99;
}

#scrollToBottomImage {
  top: 110px;
  width: 40px;
  height: 40px;

  overflow: hidden;
  z-index: 999;
  cursor: pointer;
  bottom: 50px;
  right: 0;
  position: fixed;
  background-color: #ddd;
  color: #555;
  text-align: center;
  text-decoration: none;
  transform: rotate(
180deg
);
  padding: 10px;
 
}

#scrollToBottomText 
{
  color: #3333ff  !important; 
}


/* #back2Top{width: 40px;line-height: 40px;overflow: hidden;z-index: 999;display: none;cursor: pointer;bottom: 50px;right: 0;position: fixed;background-color: #ddd;color: #555;text-align: center;text-decoration: none;}#back2Top:hover{background-color: #ddf;color: #000}#back2Top img {width:20px}.btn:focus,.btn:active:focus,.btn.active:focus{outline: none;} */

body
{
  position:relative;
}

/* Responsive Design */
@media (max-width: 768px) {
  .free-news {
      font-size: 40px;
  }
  .main-image {
      border-radius: 20px;
  }
  .marketplace {
      font-size: 28px;
  }
  
  .logo-image {
      width: 230px;
      height: auto;
  }
}

@media (max-width: 480px) {
  .free-news {
      font-size: 32px;
  }
  
  .marketplace {
      font-size: 24px;
  }
  
  .loading-spinner {
      width: 45px;
      height: 45px;
  }
  
  .loading-text {
      font-size: 16px;
  }
}

