body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #5a5a575d;
}



.owner-profile-modern {
  width: 100%;
  background: linear-gradient(135deg, #c9c6b6 70%, #0a0a0a 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px #b8860b22;
  margin: 2rem auto 2rem auto;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.owner-profile-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: center;
}

.owner-profile-imgbox {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.owner-profile-img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #645918;
  box-shadow: 0 2px 16px #64591833;
  background: #fff;
}

.owner-name-title {
  text-align: center;
}

.owner-name {
  font-size: 1.5rem;
  color: #645918;
  font-weight: 700;
  margin: 0.3rem 0 0 0;
}

.owner-title {
  font-size: 1.05rem;
  color: #332d0d;
  font-weight: 500;
}

.owner-profile-content {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.owner-profile-title {
  font-size: 2rem;
  color: #7c5901;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.owner-profile-desc {
  font-size: 1.08rem;
  color: #18130a;
  font-weight: bold;
  margin-bottom: 0.7rem;
  line-height: 1.7;
}

.owner-section-heading {
  font-size: 1.15rem;
  color: #b8860b;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.owner-achievements-gallery,
.owner-certificates-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.owner-achievement-img,
.owner-certificate-img {
  width: 180px;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid #473e27;
  background: #fff;
  box-shadow: 0 2px 16px #b8860b33;
  transition: transform 0.18s, box-shadow 0.18s;
  margin-bottom: 0.5rem;
  /* Portrait style: taller than wide */
  aspect-ratio: 9/13;
  display: block;
}

.owner-achievement-img:hover,
.owner-certificate-img:hover {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 4px 24px #b8860b55;
  border-color: #26f059;
}

.owner-profile-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.owner-profile-social {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
}

.owner-profile-address {
  font-size: 1.08rem;
  color: #645918;
  text-align: center;
  font-weight: 600;
}

/* Modal for enlarged cert/license images */
#imgModal {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(24, 19, 10, 0.65);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}

.img-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 22, 0.288);
}

.img-modal-content {
  position: relative;
  z-index: 2;
  background: #00000091;
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 8px 32px #18130a55;
  text-align: center;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
}

.img-modal-img {
  max-width: 70vw;
  max-height: 65vh;
  border-radius: 12px;
  border: 3px solid #0f0a00;
  background: #fff;
  box-shadow: 0 2px 16px #b8860b33;
  margin-bottom: 1rem;
}

.img-modal-caption {
  color: #f0f0f0;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  word-break: break-word;
}

.img-modal-close {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #b8860b;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s;
}

.img-modal-close:hover,
.img-modal-close:focus {
  color: #a50000;
}

/* Responsive Design */
@media (max-width: 900px) {
  .owner-profile-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
 
  .owner-profile-imgbox {
    flex: none;
    width: 300px;
    height: 300px;
    border-radius: 50%;
  }
 .owner-profile-content {
  width: 100%;
  margin-top: 140px;
}
  .owner-achievement-img,
  .owner-certificate-img {
    grid-template-columns: 1fr 1fr 1fr;
    width: 200px;
    height: 300px;
    border-radius: 12px;
  }
  .img-modal-img {
    max-width: 92vw;
    max-height: 50vh;
  }
  .img-modal-content {
    padding: 0.7rem 0.3rem;
    border-radius: 10px;
  }
  
}

@media (max-width: 600px) {
  .owner-profile-modern {
    padding: 1.2rem 0.3rem 1rem 0.3rem;
    border-radius: 10px;
  }
  .owner-profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
  }
  .owner-achievement-img,
  .owner-certificate-img {
    width: 200px;
    height: 300px;
    border-radius: 8px;
  }
  .owner-profile-title {
    font-size: 2rem;
    top: 50%;
  }
  .owner-section-heading {
    font-size: 1rem;
  }
  .img-modal-img {
    max-width: 98vw;
    max-height: 40vh;
    border-radius: 7px;
  }
  .img-modal-content {
    padding: 0.3rem 0.1rem;
    border-radius: 7px;
    
  }

  .owner-section-heading {
  
    margin-top: 6rem;
    font-size: 1.5rem;
}
}
@media (max-width: 400px) {
  .owner-profile-modern {
    padding: 1.2rem 0.3rem 1rem 0.3rem;
    border-radius: 10px;  
  }
    .owner-profile-content {
      margin-top: -1px;
  }
   .owner-achievement-img,
  .owner-certificate-img {
    grid-template-columns: 1fr 1fr 1fr;
    width: 200px;
    height: 300px;
    border-radius: 12px;
  }
 
}

@media (max-width: 777px) {
   .owner-profile-title {
    font-size: 1.7rem;
    top: 7%;
    position: relative;
  }
.owner-profile-desc {
    top:8%;
    position: relative;
    margin-bottom: 6rem;
}
}