html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; /* prevent horizontal scroll */
}

* Reset & basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
  background-image: url('/images/background.svg');
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: auto;
  background-size: cover;
  background-color: #f9f9f9;
  color: #222;
}

.container {
  max-width: 400px;
  margin: 40px auto;
  /*padding: 20px;*/
  padding-bottom: 20px; /* add padding bottom instead of margin */
  /*background: white;*/
  /*border-radius: 12px;*/
  /*box-shadow: 0 4px 14px rgba(0,0,0,0.1);*/
  text-align: center;
  margin-bottom: 0; /* remove margin bottom */
}



/* Company logo on top */
.company-logo {
  max-width: 150px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Circular employee photo with green border */
.employee-photo {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  /*border: 1px solid #58E15F;  green */
  object-fit: cover;
  margin: 0 auto 0px;
  display: block;
}

/* Info container*/
.info-container {
  display: flex;
  /*justify-content: space-between;  */
  margin-bottom: 0px;
}

.info-en {
  width: 100%;
  font-size: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
  text-align: center;
}

h2 {
    margin-bottom: 5px; /* Adjust as needed */
  }

h5 {
    margin-top: 5px; /* Adjust as needed */
  }

/* Contact buttons row */
.contact-buttons-container {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;   
  background-color: #ffffff;
  border-radius: 100%;  
  font-size: 0px;
  text-decoration: none;
  transition: background-color 0.25s;
}

.icon-btn:hover,
.icon-btn:focus {

  color: #e6ffe6;
  outline: none;
}

/* Action buttons below */
/* Action buttons: remove bottom margin */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px;
}

.action-buttons button {
  background-color: #0071BA;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.action-buttons button:hover,
.action-buttons button:focus {
 
  outline: none;
}

/* Contact Info */
.contact-info {  
  margin: 20px 0;
}

.info-row {
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-row .label {
  font-weight: bold;
  color: #333;
}

.info-row a, .info-row p {
  color: #0077cc;
  text-decoration: none;
  font-size: 0.95rem;
}

/* QR Code modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px; /* adjust if needed */
  position: relative;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 10px;
  padding: 25px 30px;
  width: 280px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.2);
}

#qrcode {
  margin: 15px auto 20px;
}

#close-qr-btn {
  background-color: #0071BA;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

#close-qr-btn:hover,
#close-qr-btn:focus {
  
  outline: none;
}

/* Responsive */
@media (max-width: 480px) {
  .info-container {
    flex-direction: column;
    gap: 10px;
  }

  .info-ar, .info-en {
    width: 100%;
    text-align: center;
  }
}

.contact-list {
  background: #fff;  
  max-width: 300px;
  width: 100%;
  margin: 0px auto;
  padding-bottom: 0px; /* add padding bottom instead of margin */  
  text-align: left;
  margin-bottom: 0; /* remove margin bottom */
}

.contact-list .info-row {
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  gap: 14px;
}

.contact-list .info-row:last-child {
  border-bottom: none;
}

.contact-list .icon {
  width: 28px;
  height: 28px;
  font-size: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;  
}

.contact-list .text-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-list .label {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 4px;
}

.contact-list .value {
  font-size: 1rem;
  color: #222;
  text-decoration: none;
  word-break: break-word;
}

.contact-list .map-btn {
  background: #e9f9ee;
  border: none;
  color: #0071BA;
  padding: 4px 10px;
  margin-top: 6px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  align-self: flex-start;
}

.contact-list .contactbtn-icon { 
  width: 25px;
  height: 25px;     
}

.contact-list .map-btn:hover {
  background: #c8f0d6;
}