.section-div-wrapper-center-area.ds-signup-wrapper {
  flex-basis: 55%;
  max-height: initial;
  min-width: initial;
  box-shadow: none;
}

.section-div-wrapper-right-col.ds-signup-area2 {
  flex-basis: 37%;
  min-height: initial;
  max-height: initial;
  margin-left: 3%;
}

.dashboard-section.ds-signup-top-section {
  justify-content: flex-start;
}

@media (min-width: 300px) {
  .promo-Card-section {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (min-width: 576px) {
    .promo-Card-section {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }
}

@media (min-width: 300px) {
  .promo-page-aside-card {
    outline: 1px solid red;
    height: 400px;
    flex-basis: 100%;
    margin: 15px;
  }
}

@media (min-width: 576px) {
  .promo-page-aside-card {
    flex-basis: 42%;
  }
}




.promo-card {
    width: 48%;
    margin: 1%;
    border-radius: 20px;
    box-shadow: 5px 5px 16px 2px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    height: 1000px; /* ?? Increased from 700px to fit full PDF preview */
}

@media (max-width: 768px) {
    .promo-card {
        width: 100%;
        margin: 8px 0;
    }
}

.card-img-div-wrapper {
    position: relative;
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    justify-content: center;
    height:900px;
    
}

/* Canvas needs no special class now, but this keeps the code explicit */
/* PDF canvas styling */
    .card-img-div-wrapper .pdf-canvas1 {
        width: 100% !important;
        max-height: 100% !important;
        transform: scale(1.0); /* Slight scale down to fit better */
        transform-origin: center top;
        display: block;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

/* Keep image scaling */
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.card-body-heading {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
  color: #8b0b1c;
}

.card-p {
  font-family: 'Source Sans Pro', sans-serif;
  color: #212121;
  margin-top: 16px;
  height: 125px;
  max-height: 125px;
}

.card-link {
  padding: 6px;
  background: rgba(0,0,0,0.8);
  color: rgb(255,255,255);
  border-radius: 17px;
  padding-right: 14px;
  padding-left: 14px;
  padding-bottom: 6px;
  font-family: 'Source Sans Pro', sans-serif;
  margin-top: auto;
  text-decoration: none;
}


.titleLink:hover {
    color: #226191 !important;
    transition: 0.3s all ease-in-out !important;
}

.titleLink {
    text-decoration: none;
}

.h-caro {
    object-fit: cover;
    object-position: top;
    height: 700px;
}



canvas.pdf-canvas {
    transform: scale(0.8);
    transform-origin: center top;
    display: block;
}

.carousel-item.marg-fix {
    padding-bottom: 33px;
}

.card-link.caro-btn {
    display: flex;
    justify-content: center;
    width: 50%;
    margin: 0 auto;
    padding: 10px 0;
}

.pdf-canvas {
    width: auto !important;
    max-width: 100% !important;
    max-height: 75vh !important; /* ? 75% of screen height */
    height: auto !important;
    display: block;
    margin: 0 auto;
    transform: none !important;
    object-fit: contain;
}

@media (max-width: 576px) {
    .pdf-canvas {
        max-height: 60vh !important;
    }
}

@media (max-width: 768px) {
    .pdf-canvas {
        max-width: 100% !important;
        padding: 0 10px;
    }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}