/* ===============================
   NewsDekho Reporter ID Card CSS
   (Designed for 450x670px layout)
   =============================== */

.nd-id-card {
  position: relative;
  width: 450px;
  height: 670px;
  margin: 20px auto;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  overflow: hidden;
  color: #111;
}

.nd-overlay{
    position:absolute;
    inset:0;
    padding:22px;
    padding-left: 108px;
    color:#111;
    font-family:inherit;
}

/* Photo Section */
.nd-photo {
    position: absolute;
    top: 134px;
    left: 169px;
    /* transform: translateX(-50%); */
    width: 195px;
    height: 195px;
    /* border: 2px solid #333; */
    /* border-radius: 6px; */
    /* background: #f0f0f0 center / cover no-repeat; */
    overflow: hidden;
}

/* ID and Name */
.nd-id-number {
  position: absolute;
  top: 310px;
  left: 0;
  width: 100%;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  color: #c00;
}
.nd-idnum {
  position: absolute;
  top: 360px;
  width: 315px;
  text-align: center;
  font-size: 24px;
}
.nd-name {
  position: absolute;
  top: 390px;
  width: 315px;
  text-align: center;
  font-weight: 700;
  font-size: 30px;
  line-height: 30px;
  color: #CD0026;
  text-transform: uppercase;
  white-space: nowrap;       /* keep in one line */
    overflow: hidden;   
}

/* Designation */
.nd-designation {
    position: absolute;
    top: 430px;
    width: 315px;
    text-align: center;
    font-size: 15px;
    /* font-weight: 600; */
    color: #444;
}

/* Details Section */
.nd-details {
    position: absolute;
    bottom: 69px;
    padding: 0px 15px;
    /* left: 30px; */
    width: 315px;
    font-size: 13px;
    line-height: 1.5;
}

.nd-details div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #aaa;
  padding: 2px 0;
}

.nd-details .nd-label {
  color: #000;
  width: 45%;
}

.nd-val{
    
  font-weight: 600;
}

/* Status Badge */
.nd-status {
  position: absolute;
    bottom: 0;
    left: 0;
}
.nd-badge{
    display: block;
    width: 400px;
    height: 400px;
    background-size: cover;
    transform: rotate(-45deg);
    opacity: 0.4;
}
.nd-badge-active {
  background: url('../img/active-seal.png');
}

.nd-badge-expired {
  background: url('../img/expired-seal.png');
}

.nd-badge-resigned {
  background: url('../img/resigned-seal.png');
}

/* QR Code */
.nd-qr {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 80px;
  height: 80px;
  background: #fff center/contain no-repeat;
  border: 1px solid #ccc;
  border-radius: 6px;
}
@media (max-width: 700px) {
  .nd-id-card {
    transform: scale(0.8);
    transform-origin: top left;
  }
}
