/* === Dynamic Banner Content Blocks === */
#template8 .title_vasu,
#template8 .feat_img,
#template8 .content_vasu {
    position: absolute;
    z-index: 2;
    left: 5%;
    width: 90%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    text-align: justify;
    transition: top 0.3s ease, opacity 0.3s ease;
}

/* Specific styles for each block */
#template8 .title_vasu { 
    color: white;
    font-size: 28px;
    font-weight: 600;
    left: 6.3%;
    line-height: 147%;
    text-align: center;
}

#template8 .user-photo {
    width: 100%;
    height: 90%;
    border-radius: 11%;
    object-fit: cover;
    background-color: #00FF0000;
    margin-top: 12%;
}

#template8 .feat_img {
    width: 526px;
    left: 3.1%;
}

#template8 .content_vasu {
    color: black;
    font-size: 22px;
    font-weight: 600;
    left: 5.3%;
    line-height: 135%;
}

/* === Main Image Wrapper === */
#template8 .img-wrapper {
    position: relative;
    width: 540px;
    height: 960px;
    background-color: #f0f0f0;
    margin-bottom: 1rem;
}

#template8 .img-wrapper img {
    position: absolute;
    object-fit: cover;
    z-index: 1;
}

/* === User Uploaded Photo and Name === */
#template8 .img-wrapper .pic {
    width: 27%;
    height: 19%;
    overflow: hidden;
    position: absolute;
    bottom: 10%;
    left: 4%;
    z-index: 2;
}

#template8 .img-wrapper .text {
    position: absolute;
    font-size: 25px;
    text-align: right;
    font-weight: bold;
    color: #0b0b0b;
    z-index: 2;
}

/* Duplicate classes for downloaded canvas */
#template8 .pic {
    position: absolute;
    width: 540px;
    height: 960px;
    top: 78.5%;
    left: 6.5%;
    background-size: cover;
    background-position: center;
    background-color: #00FF0000;
    border-radius: 13%;
}

#template8 .text {
    top: 93%;
    left: 37.5%;
    width: 57%;
    height: 7%;
    color: #000000;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
}

/* === Download Button === */
#template8 #downloader { }

/* Logo & Tagline */
#template8 .logo-tagline-wrapper {
    text-align: center;
    margin-top: 10px;
}

#template8 .banner-logo img {
    display: inline-block;
    top: 79%;
    width: 300px;
    height: 105px;
    left: 37%;
}

#template8 .scpb-banner-tagline {       
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    padding: 6px 12px;
    margin: -5px auto;
    display: inline-block;
    border-radius: 8px;

    max-width: 100%;
    word-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}  

#template8 .vasu_tag{
    display: flex;
    align-items: center;
    justify-content: center;
    top: 91%;
    left: 39%;
    border-radius: 8px;
    height: 30px;
    width: 300px;
    position: absolute;
    z-index: 2;
}

#template8 .vasu_form{
    position: absolute;
    z-index: 2;
}

#template8 .vasu_hide{
    margin-top: 210px;
}

#template8 .whatsapp-btn:hover {
  background-color: #1ebe5d;
}

#template8 .wa-icon {
  margin-top: -50px;
  left: 158px;
  width: 120px;
  height: 50px;
}
.post-date {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    text-align: center;
    margin-top: 10px;
    position: absolute;
    left: 42%;
}

.ad-image1,
.ad-image2 {
    top: 94%;
    position: absolute;
    bottom: 40px;      /* adjust for each */
    z-index: 2;
    left: 50%;         /* move to horizontal center */
    transform: translateX(-50%); /* shift back by half width */
    display: flex; 
    justify-content: center;
    align-items: center;
    width: 100%;       /* optional: ensures centering context */
}

.ad-image2 {
    bottom: 115px;  /* separate from ad1 */
}

.ad-image1 img,
.ad-image2 img {
    max-width: 515px; 
    max-height: 81px;  /* ensures it doesn’t exceed */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 1px solid;
    height: auto;      /* let image keep its natural aspect ratio */
}



#template8 .qr-code {
    position: absolute;
    top: 80.5%;   /* adjust distance from bottom */
    right: 72%;    /* adjust distance from right */
    width: 80px;   /* size of QR code */
    height: 80px;
    z-index: 3;
    background-color: white;
    border-radius: 7px;
}

#template8 .qr-code img {
    border: 1px solid;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px; /* optional */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* optional shadow */
}
