html,
body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding-top: 80px;
}

body {
  padding: 0;
  overflow-y: auto;
}

/* ===== header ===== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-center;
  z-index: 2000;
}

.header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 20px;
  z-index: 100;
}

.title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  width: 100%;
  height: 90px;
  /* justify-content: center; */
}

.logo {
  width: 50px;
  height: auto;
  margin-top: 12px;
}

.title-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  transform: none;
  transform-origin: left center;
  margin-bottom: 20px;
}

.type-switch-vertical {
  top: 16px;
  right: 16px;
  align-items: center;
  transform: scale(0.85);
  margin: 0;
  transform: scale(0.85);
}

/* ===== content ===== */
.grid {
  display: grid;
  gap: 20px;
  padding-top: 10px;
  padding-right: 16px;
  padding-bottom: 60px;
  padding-left: 16px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  font-weight: 300;
}

.card {
  position: relative;
  aspect-ratio: 3 / 3;
  border-radius: 35px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.card > img,
.card .card-image img {
  width: 100%;
  height: 35%;
  object-fit: cover;
  filter: grayscale(60%);
  transition: 0.4s ease;
  border-radius: 0px;
}

.card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.card .category-text {
  position: absolute;
  left: 50%;
  top: 12%;
  transform: translateX(-50%);
  text-align: center;

  font-size: 35px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

/* ===== CONTACT BUTTON : MOBILE ===== */
.contact-wrap {
  gap: 12px;
}

.contact-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.contact-btn .icon {
  width: 17px;
  height: 17px;
}

.intro-text {
  text-align: center;
  padding: 90px 16px 16px;
}

.intro-sub {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin-bottom: 6px;
}

.intro-main {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
}

.info-actions {
  display: flex;
  align-items: center;
}

.info-actions-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  transform: scale(0.88);
}

.info-actions-left .popup-btn {
  min-width: 0;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ขวา: ต้องเห็นเสมอ */
.info-actions-right {
  flex-shrink: 0;
}

.info-header .popup-name {
  font-size: 14px;
  line-height: 1.2;
}

.info-header .popup-role {
  font-size: 25px;
}

.info-meta {
  font-size: 12px;
  line-height: 1.3;
}

.popup-info {
  transform: scale(0.96);
  transform-origin: top left;
  margin-top: 50px;
  margin-right: -10px;
}

.info-text {
  min-width: 0;
}

.popup-avatar {
  transform: scale(0.89);
  margin-left: -22px;
}

.popup-box {
  height: 320px;
}

.popup-bottom {
  margin-top: -15px;
  margin-left: -8px;
}

.info-actions-left .popup-btn + .popup-btn::before {
  margin-left: 3px;
}

.title-sub {
  font-size: 12px;
  letter-spacing: 2px;
  color: #666;
  text-transform: lowercase;
  white-space: nowrap;
  margin: 0;
  padding-left: 58px;
}

/* category */
.title-main {
  font-size: 35px;
  font-weight: 800;
  color: #d71920;
  line-height: 0.4;
  margin: 0;
  letter-spacing: 1.5px;
}

.card-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: relative;
  width: 100%;
}

.card-actions-inner {
  flex: 1;
  display: flex;
  gap: 10px;
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 999px;
  width: fit-content;
  justify-content: center;
}

.card-actions-inner .action.line {
  order: -1;
}

.card-actions-inner .action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  min-width: 80px;
}

/* icon เล็กลง */

.card-actions-inner .action.web img {
  width: 20px;
  height: 20px;
}

.card-actions-inner .action.line img {
  width: 24px;
  height: 24px;
}

/* แสดง text */
.action-text {
  display: inline;
  font-size: 16px;
  font-weight: 520;
  white-space: nowrap;
  position: relative;
  top: -2.5px;
}

.action.line,
.action.web {
  flex: 0 0 150px;
  color: #6a6a6a;
  background: #eaeaea;
  padding: 11px 30px;
  border-radius: 17px;
  justify-content: center;
}

/* ===== HOVER ===== */
.action.line:hover {
  background: #06c755;
  color: #fff;
}

.action.web:hover {
  background: #e50533;
  color: #fff;
}

/* -------- */
.card-info-mobile {
  display: block;
  padding: 10px 0px;
}

.card-info-mobile .info-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-info-mobile .card-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.card-info-mobile .card-role {
  font-size: 28px;
  color: #000000;
  font-weight: 700;
  white-space: nowrap;
}

.card-info-mobile .card-time {
  font-size: 12px;
  font-weight: 400;
  color: #a9a7a7;
}

.category-text {
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.category-text br {
  display: none;
}

.mobile-only {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.popup-btn.phone {
  background: #06038d;
  color: #fff;
  font-weight: 700;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.popup-btn.phone {
  height: 60px;
  padding: 0 46px;
  font-size: 25px;
}

/* ===== Contact ใต้ Header ===== */
.header-contact {
  position: fixed;
  width: 100%;
  display: flex;
  gap: 0px;
  padding: 14px 0px;
  border-radius: 12px;
  margin: -7px 0px 12px;
  z-index: 1000;
}

/* ปุ่ม */
.contact-btn {
  flex: 1;
  height: 44px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 550;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

/* LINE */
.contact-btn.line {
  background: #959ca2;
  color: #fff;
  border-radius: 0 0 0 15px;
}

/* WEB */
.contact-btn.web {
  background: #e50533;
  color: #fff;
  border-radius: 0 0 15px 0;
}

.contact-wrap:not(.header-contact) {
  display: none;
}

.info-actions .icon {
  width: 32px;
  height: 32px;
}

.phone-text {
  position: relative;
  top: -1px;
}

.site-footer {
  color: #a9a7a7;
  text-align: center;
  padding-right: 12px;
  padding-bottom: 46px;
  padding-left: 12px;
  font-size: 13px;
  font-weight: 600;
}
