@font-face {
  font-family: "db-helvethaica";
  font-style: normal;
  font-weight: 100;
  src: url('assets/db-helvethaica-x-bd-ext-v32.ttf') format("truetype"),
       url('https://hopkard.com/static/fonts/db-helvethaica-x-bd-ext-v32.ttf') format("truetype");
}

* {
  font-family: "db-helvethaica", sans-serif !important;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  color: #333;
}

.container-sm {
  max-width: 100%;
  padding: 0 10px;
}

.profile-card {
  background: #fff;
  max-width: 500px;
  margin: 20px auto;
  border-radius: 20px;
}

.header-image {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
}

.profile-img-container {
  margin-top: -60px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  object-position: center 0;
}

.info-section {
  padding: 30px 20px 0 20px;
  text-align: center;
}

.text-name-th {
  font-size: clamp(30px, 6.8vw, 38px) !important;
  font-weight: bold !important;
  line-height: 1.1;
  margin-bottom: 5px;
  color: #1a1a1a !important;
}

.text-name-en {
  font-size: 22px !important;
  color: #666 !important;
  margin-bottom: 10px;
}

.text-rank {
  font-size: 20px !important;
  color: #007bff !important;
  font-weight: 700 !important;
  margin-bottom: 20px;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0;
}

.qr-side {
  flex: 0 0 auto;
}

.qr-side img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
}

.contact-side {
  flex: 1;
  text-align: left;
  border-left: 2px solid #eee;
  padding-left: 20px;
}

.contact-side div,
.contact-side a {
  display: block;
  font-size: 22px !important;
  margin-bottom: 5px;
  color: #444 !important;
  text-decoration: none;
}

.contact-ellipsis {
  font-size: clamp(18px, 5.6vw, 22px) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-bottom-container {
  width: 100%;
  height: auto;
  position: relative;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-bottom-bg {
  width: 100%;
  height: auto !important;
  display: block;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.banner-bottom-logo-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.banner-bottom-logo {
  max-width: 95%;
  max-height: 200px;
  width: calc(200px * 100 / 100);
  object-fit: contain;
}

.company-section {
  padding: 0 20px 20px 20px;
  background: transparent;
  border-top: none;
}

.text-company-th {
  font-size: 24px !important;
  font-weight: bold !important;
  color: #1a1a1a !important;
  margin-bottom: 10px;
}

.text-company-en {
  font-size: 20px !important;
  color: #555 !important;
  line-height: 1.5;
}

.company-link {
  color: #007bff;
  text-decoration: none;
  font-size: 22px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.social-links img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s;
}

.social-links img:hover {
  transform: scale(1.1);
}

.btn-save-container {
  padding: 30px 20px;
  text-align: center;
}

.btn-save {
  background: #1a1a1a;
  color: #fff !important;
  padding: 12px 40px !important;
  border-radius: 50px !important;
  font-size: 20px !important;
  text-decoration: none !important;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-save:hover {
  background: #333;
}
