body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #000;
    display: flex;
    justify-content: center;
}

.slideshow-container {
    max-width: 1200px;
    width: 100%;
    margin: 20px;
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.main-display {
    width: 100%;
    height: 460px;
    position: relative;
    background: #000;
}

.main-display img,
.main-display video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.caption {
    position: absolute;
    top: 20px;
    left: 200px;
    /* bottom: 20px; */
    background: rgba(0,0,0,0.6);
    color: gold;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 20px;
}

.caption {
    top: 20px;
    left: 200px;
    bottom: auto;
    background: rgba(0,0,0,0.6);
    color: gold;
}

/* .caption.last-slide {
   top:400px;
   text-align: center;
    width: 600px;
    height: 120px;
    background: white;
    color:gold;
    font-size: 22px;
} */

.caption.last-slide {
    position: absolute;
    top: 50%;               /* center vertically */
    left: 50%;              /* center horizontally */
    transform: translate(-50%, -50%);
    width: 600px;
    height: 120px;
    background: white;
    color: gold;
    font-size: 22px;
    text-align: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* logo اوپر اور text نیچے */
    align-items: center;
    justify-content: center;
    padding: 10px;
    gap: 10px;

}
.caption.last-slide img {
  height: 30px;   /* aur chhota */
  width: auto;    /* proportion sahi rahe */
}




/* First slide pop-under overlay */
.popunder {
    position: absolute;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 220px;
    background: rgba(0,0,0,0.75); /* transparent black */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    z-index: 10;
    border-radius: 23px;
    padding: 0 23px;

}
.popunder h2 {
    color: gold;
    font-size: 23px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.popunder p {
    color: white;
    font-size: 20px;
    max-width: 700px;
}
.popunder .hide-btn {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: #444;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.popunder .hide-btn:hover {
    background: gold;
    color: black;
}

/* Sixth slide caption */
.caption.last-slide {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 140px;
    background: white;
    color: gold;
    font-size: 22px;
    text-align: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

.caption.last-slide img {
  width: 90px;
  height: auto;      
  display: block;    
  margin: 10px auto; 
  object-fit: contain; 
}


.arrow {
    position: absolute;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
}

.arrow.left { left: 15px; }
.arrow.right { right: 15px; }
.arrow:hover { background: rgba(0,0,0,0.9); }

.nav-dots {
    text-align: center;
    margin: 10px 0;
}

.nav-dots input[type="radio"] {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.nav-dots input[type="radio"]:checked {
    background: #333;
}


.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    color: #000;
    font-size: 18px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
}



.slideshow-container {
    max-width: 1200px;
    width: 100%;
    margin: 20px;
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.thumbnails {
  display: flex;
  justify-content: center;
   flex-direction: row;
  gap: 10px;
  padding: 10px;
  flex-wrap: nowrap;            
  overflow-x: auto;             
  background: #fff;
  margin: 0;                    
}


.thumb img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s;
}

.thumb img:hover {
  transform: scale(1.05);
}


.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* arrows aur dots ke neeche */
}

.arrow, .nav-dots, .thumbnails {
  z-index: 10; /* video ke upar bhi visible rahenge */
  position: relative;
}

.main-display iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;        /* video neeche */
}

.arrow,
.nav-dots,
.thumbnails {
  position: relative;
  z-index: 10;       /* controls hamesha upar */
}

/* Arrows aur caption hamesha iframe ke upar dikhe */
.arrow, .caption, .popunder, .close-btn {
  position: absolute;
  z-index: 10;
}







/* Bottom bar: adjust logo & button for professional look */
 .bottom-bar {
    position: relative;
    height: 115px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
     padding: 0 40px; 
 } 

.bottom-bar .logo-left {
    height: 60px;
}

.bottom-bar .gold-btn {
    background: gold;
    color: #000;
    font-weight: bold;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
}  






@media(max-width:768px){
    .main-display { height: 300px; }
    .thumb img { height: 80px; }
}
@media(max-width:768px){
  .thumb img {
    width: 90px;      /* thoda chhota width */
    height: 60px;
  }
}

@media(max-width:480px){
  .thumb img {
    width: 70px;      /* aur chhota width */
    height: 50px;
  }
}

@media(max-width:480px){
    .main-display { height: 200px; }
    .thumb img { height: 60px; }
}