/*Top Premium advertisement */
.websofttopads{
	padding: 6px;
    border: 1px solid #ccc;
	width: 100%;
	max-width:1200px;
	margin: 0px auto;
	}
.websofttopads img,
.websofttopads a img{
	width:100%;
	display:flex;
	margin:auto;
				}
.gallery
.gallery-item
.gallery-icon img,
.gallery .gallery-item .gallery-icon a img{
	width:100%;
	height:auto;
	border:none !important;
	}
	
aside h6 {
    display: none;
}


/* Container for advertisement section */
.hb-adssection-advertisement-section {
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Distribute space between ads */
  gap: 10px; /* Space between ads */
}
.hb-adssection-advertisement-section h1{
	display:none;
}

/* Individual ad container */
.hb-adssection-ad-container {
  display: flex;
  justify-content: center; 
  align-items: center;
  position: relative;
  width: 45%; 
  border-radius: 6px;
  padding: 10px;
}

.hb-adssection-ad-container img {
  width: 80%;
  height: auto;
  border-radius: 8px; 
}

/* Add the "Advertisement" label using pseudo-class */
.hb-adssection-ad-container::before {
    content: "विज्ञापन";
    position: absolute;
    top: -7px;
    left: 44%;
    padding: 2px 4px;
    background-color: #6b6b6b;
    color: white;
    font-weight: bold;
    font-size: 8px;
    border-radius: 5px;
    text-transform: uppercase;
    z-index: 2;
}

.hb-adssection-ad-container:hover {
  transform: translateY(-5px); 
}

/* Responsive Design for Tablets and Mobile Devices */
@media (max-width: 768px) {
  .hb-adssection-ad-container {
    width: 100%;
    margin: 0 auto; 
  }

  .hb-adssection-advertisement-section {
    gap: 6px; 
  }
}


@media (max-width: 480px) {
  .hb-adssection-ad-container {
    width: 95%; /* Ads take up full width on very small screens */
  }

  .hb-adssection-advertisement-section {
  }
}


/* Sidebar Hamrobiratnagar advertisement */
/* Parent flex container */
#singlepageAdsScroll .ads-container {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 10px;
}

/* Individual ad box */
#singlepageAdsScroll .singlepage-newsdetails-ads-section {
  position: relative;
  flex: 1 0 calc(50% - 10px); 
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  padding: 8px;
}

/* Images inside ads */
#singlepageAdsScroll .singlepage-newsdetails-ads-section img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.singlepage-newsdetails-ads-section h6,.websofttopads custom-gallery h6{
	display:none;
}
/* Pseudo-label "Advertisement" */
#singlepageAdsScroll .singlepage-newsdetails-ads-section::after {
	content: "Sponsored";
    position: absolute;
    top: 0;
    left: 0;
    background: rgb(3 3 3 / 80%);
    color: #fff;
    font-size: 7px;
    font-weight: 600;
    padding: 0px 3px;
    z-index: 1;
}

/* Make it responsive */
@media (max-width: 768px) {
  #singlepageAdsScroll .singlepage-newsdetails-ads-section {
    flex: 0 0 calc(50% - 8px); 
  }
}

@media (max-width: 500px) {
  #singlepageAdsScroll .singlepage-newsdetails-ads-section {
    flex: 0 0 100%; 
  }
}



/* Headline Ad container */
.hb-headline-ad-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  padding: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hb-headline-ad-container h6{
	display:none;
}

/* Image inside headline ad */
.hb-headline-ad-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Pseudo-element for labeling */
.hb-headline-ad-container::after {
  content: "विज्ञापन";
  position: absolute;
  top: 0;
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
  font-size: 8px;
  z-index: 2;
}

/* Responsive adjustment if needed */
@media (max-width: 768px) {
  .hb-headline-ad-container {
    padding: 6px;
  }
  
  .hb-headline-ad-container::after {
    font-size: 7px;
    padding: 0;
  }
}

/* HamroBiratnagar Center Popup-
Sabinn Roka
*/

.centered-ad-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 21;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
}

/* Header Row: Label + Skip Button */
.centered-ad-header {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.centered-ad-label {
  font-size: 10px;
  color: #666;
  font-weight: bold;
}

.skip-button {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 5px;
  cursor: not-allowed;
}

/* Ad Image Link */
.centered-ad-popup a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
}


.centered-ad-popup ::view-transition-image-pair{

  width: 100%;
  padding: 20px;
  border: 2px solid #484848;
  box-sizing: border-box; 

}
/* Ad Image Container */
.centered-ad-popup img {
  width: 100%;
  padding: 20px;
  border: 2px solid #484848;
  box-sizing: border-box;
}

/* Ad Image */
.centered-ad-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}

/* Skip Ads Container */
.skipads {
	
  text-align: center;
  padding: 10px;
}

.skipads img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}


.skipadv {
  width: 80vh;
  height: auto;
}

/* For tablets and mobile devices */
@media (max-width: 760px) {
  .skipadv {
    width: 90vw;
  }
}




/*Footer Ads*/

.footerads {
	margin: auto;
	width: 80%;
	max-width: 1200px;
	height: auto;
}

@media (max-width: 768px) {
	.footerads {
		width: 100%;
	}
}