/* =========================================================
   WOA ARCHITECTS — pages.css
   Style riêng từng trang + responsive
   ========================================================= */

/* ================= EXPLORE FILTER BAR ================= */
/* Dải hashtag lọc nội dung — nền tối, cuộn ngang, sticky dưới header */
.explore-filter {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: #111114;
  padding: 0 var(--gutter);
  margin: 0 calc(-1 * var(--gutter)) 28px;
  /* âm lề để kéo full-width */
}

.explore-filter::-webkit-scrollbar {
  display: none;
}

.explore-filter__tag {
  display: inline-block;
  padding: 10px 16px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s, border-bottom-color 0.25s;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
}

.explore-filter__tag:hover {
  color: rgba(255, 255, 255, 0.9);
}

.explore-filter__tag.active {
  color: #fff;
  border-bottom-color: var(--primary);
}

/* ================= SPLASH (index) ================= */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 10px solid var(--primary);
  cursor: pointer;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__inner {
  text-align: center;
  animation: splash-in 1.2s var(--ease-slow);
}

.splash__logo {
  width: clamp(120px, 22vw, 210px);
  margin: 0 auto 26px;
  color: var(--primary);
}

.splash__logo svg {
  width: 100%;
  height: 100%;
}

.splash__name {
  color: var(--primary);
  letter-spacing: 0.34em;
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 400;
  /* bù khoảng trắng letter-spacing cuối chữ để cân giữa */
  margin-right: -0.34em;
}

@keyframes splash-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ================= GATEWAY ================= */
.gateway {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111114;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 30px var(--gutter) 50px;
  z-index: 1000;
  overflow-y: auto;
}

.admin-bar .gateway {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .gateway {
    top: 46px;
  }
}

.gateway::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #111114 0%, rgba(17, 17, 20, 0) 100%);
  pointer-events: none;
  z-index: 1001;
}

@media (min-width: 768px) {
  .gateway {
    overflow: hidden;
    padding: clamp(20px, 4vh, 40px) var(--gutter);
    justify-content: center;
  }

  .gateway__brand {
    margin-bottom: clamp(15px, 4vh, 35px);
  }

  .gate__tags {
    max-height: clamp(100px, 20vh, 180px);
    overflow-y: auto;
    scrollbar-width: none;
  }

  .gate__tags::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 1200px) {
  .gateway__brand {
    margin-bottom: clamp(35px, 6vh, 65px);
  }
}

.gateway--overlay {
  background: rgba(17, 17, 20, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gateway--overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gateway__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  margin-bottom: clamp(30px, 6vh, 70px);
}

.gateway__brand .brand__logo {
  width: 54px;
  height: 54px;
  color: #fff;
  --logo-cut: #111114;
}

.gateway__brand .brand__name {
  letter-spacing: 0.3em;
  font-size: 13px;
  opacity: 0.85;
}

.gateway__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.gate {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.gate__media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
}

.gate__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.6s var(--ease-slow), transform 1.4s var(--ease-slow);
}

.gate__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.6s var(--ease-slow);
}

.gate:hover .gate__media img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.gate:hover .gate__media::after {
  opacity: 0.5;
}

.gate__title {
  position: absolute;
  /* left: 10px;
  bottom: 10px; */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #b1adad;
  /* writing-mode: vertical-rl;
  transform: rotate(180deg); */
  letter-spacing: 0.3em;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* dải hashtag xếp dọc, căn giữa */
.gate__tags {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 4px;
}

.gate__tags::-webkit-scrollbar {
  display: none;
}

.gate__tags .tag {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  flex-shrink: 0;
}

.gate__tags .tag:hover {
  color: #fff;
}

/* ================= PROJECT DETAIL ================= */
.detail {
  display: grid;
  grid-template-columns: minmax(500px, 5fr) 7fr;
  gap: clamp(28px, 4vw, 70px);
  align-items: start;
}

.detail__info {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.detail__title-en {
  color: #435185;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
}

.detail__title-vi {
  color: #a0a1c8;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail__date {
  color: #a0a1c8;
  font-size: clamp(15px, 1.8vw, 19px);
  /* letter-spacing: 0.15em; */
}

.detail__tags {
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  /* gap: 4px; */
}

.detail__tags .tags__group--en {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  justify-content: flex-start;
}

.detail__tags .tags__group--vi {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  justify-content: flex-start;
}

/* Detail page tag colors */
.detail__tags .tags__group--en .tag,
.article__body .tags__group--en .tag {
  color: #435185;
}

.detail__tags .tags__group--vi .tag--vi,
.article__body .tags__group--vi .tag--vi {
  color: #a0a1c8;
  opacity: 1;
}

.detail__tags .tag,
.article__body .tag {
  transition: color 0.3s;
}

.detail__tags .tags__group--en .tag:hover,
.article__body .tags__group--en .tag:hover {
  color: var(--primary);
}

.detail__tags .tags__group--vi .tag--vi:hover,
.article__body .tags__group--vi .tag--vi:hover {
  color: #3b4e63;
}

.detail__desc p {
  font-size: 13.5px;
  line-height: 1.8;
  margin-bottom: 5px;
  text-align: justify;
  color: #435185;
}

.detail__desc .vi {
  margin-top: 24px;
}

.detail__desc .vi,
.detail__desc .vi p {
  font-size: 13.5px;
  color: #a0a1c8;
  opacity: 1;
}

/* lưới ảnh khung tròn — "cửa sổ quan sát" */
.detail__circles {
  padding-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
}

.circle {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: #e8e8e8;
}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-slow), filter 0.6s var(--ease-slow);
}

.circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.6s var(--ease-slow);
}

.circle:hover img {
  transform: scale(1.08);
}

.circle:hover::after {
  opacity: 0.35;
}

/* ================= ARTICLE ================= */
.article {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(28px, 4vw, 70px);
  align-items: start;
}

.article__media {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 2rem;
}

.article__media figure {
  cursor: pointer;
  overflow: hidden;
}

.article__media img {
  width: 100%;
  transition: transform 1.2s var(--ease-slow);
}

.article__media figure:hover img {
  transform: scale(1.03);
}

.article__body p {
  font-size: 13.5px;
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: justify;
  color: #435185;
}

.article__body .vi {
  margin-top: 24px;
}

.article__body .vi,
.article__body .vi p {
  font-size: 13.5px;
  color: #a0a1c8;
  opacity: 1;
}

/* ================= NETWORK ================= */
.network-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.network {
  position: relative;
  min-width: 900px;
  height: clamp(560px, 74vh, 760px);
}

.network svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.network svg line {
  stroke-width: 1;
  transition: stroke 0.3s, opacity 0.3s;
}

.network svg line.line--active {
  stroke: var(--primary);
  opacity: 0.65;
}

.network svg line.line--old {
  stroke: var(--line);
  opacity: 0.22;
}

.network svg circle {
  transition: fill 0.3s;
}

.network svg circle.dot--active {
  fill: var(--primary);
}

.network svg circle.dot--old {
  fill: #ccc;
}

.net-node {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 190px;
}

.net-node__label {
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}

.net-node__sub {
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-top: 1px;
  white-space: nowrap;
}

.net-node--center {
  max-width: none;
}

.net-node--center .net-node__label {
  color: var(--primary);
  font-size: clamp(26px, 2.6vw, 40px);
  letter-spacing: 0.06em;
}

.net-node--lg .net-node__label {
  font-size: clamp(16px, 0.6vw, 19px);
}

.net-node--md .net-node__label {
  font-size: clamp(13px, 0.4vw, 16px);
}

.net-node--sm .net-node__label {
  font-size: clamp(12px, 0.3vw, 15px);
  font-weight: 500;
}

/* xanh = đang hoạt động, xám = quan hệ cũ */
.net-node--active .net-node__label {
  color: var(--primary);
}

.net-node--active .net-node__sub {

  color: var(--primary);
}

.net-node--old .net-node__label {
  color: var(--ink-soft);
}

.net-node--old .net-node__sub {
  color: var(--ink-soft);
}

/* ================= JOB ================= */
.job-intro {
  max-width: 880px;
  margin-bottom: 40px;
}

.job-intro__title .en {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.12em;
  font-weight: 600;
}

.job-intro__title .vi {
  font-size: clamp(15px, 2vw, 19px);
  margin-left: 14px;
}

.job-intro__desc {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.8;
}

.job-intro__desc .vi {
  display: block;
}

.job-intro__desc a {
  color: var(--primary);
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.3vw, 26px);
}

.job-card {
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 18px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  background-color: #fff;
}

.job-card__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
}

.job-card__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-card__right {
  text-align: right;
  flex-shrink: 0;
  max-width: 40%;
}

.job-card__right .tags {
  justify-content: flex-end;
}

.job-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 28px var(--primary-soft);
  transform: translateY(-3px);
}

.job-card__title-en {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.job-card__title-vi {
  font-size: 12.5px;
}

.job-card__positions {
  font-size: 12px;
  color: var(--primary);
  margin-top: 4px;
}

.job-card__positions .vi {
  display: block;
  color: var(--ink);
}

.job-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.job-card__close {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--primary);
  letter-spacing: 0.06em;
}

/* ================= CONTACT ================= */
.contact-page {
  position: relative;
  min-height: calc(100vh - var(--header-h));
}

.contact-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #f2f2f0 url("../images/map-static.jpg") center / cover no-repeat;
}

.contact-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #f2f2f0;
}

/* tile xám nhạt đúng tone design */
.contact-map .leaflet-tile {
  filter: grayscale(1) brightness(1.06) contrast(0.92);
}

.contact-panel {
  position: relative;
  z-index: 2;
  width: min(440px, 92%);
  margin: clamp(16px, 3vw, 40px) 0 clamp(16px, 3vw, 40px) var(--gutter);
  background: rgba(255, 255, 255, 0.646);
  backdrop-filter: blur(1px);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
}

.contact-info {
  margin-bottom: 30px;
}

.contact-info__row {
  margin-bottom: 16px;
}

.contact-info__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--primary);
}

.contact-info__label .vi {
  margin-left: 8px;
  color: var(--primary);
}

.contact-info__value {
  font-size: 15px;
  margin-top: 3px;
  color: var(--primary);
  line-height: 1.6;
  font-weight: 600;
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.socials a {
  width: 45px;
  height: 45px;
  /* border: 1.5px solid currentColor; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  opacity: 0.55;
  transition: opacity 0.25s, background 0.25s, color 0.25s;
}

.socials a svg {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}

.socials a:hover {
  opacity: 1;
  background: var(--primary);
  color: #fff;
}

/* pin bản đồ */
.map-pin svg {
  width: 38px;
  height: 38px;
  color: var(--primary);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* ================= HASHTAG ================= */
.hashtag-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hashtag-head__tag {
  color: var(--primary);
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: 0.1em;
  font-weight: 600;
}

.hashtag-head__count {
  font-size: 13px;
  color: var(--ink-soft);
}

.empty-note {
  color: var(--ink-soft);
  font-size: 14px;
  padding: 60px 0;
  text-align: center;
}

.empty-note .vi {
  display: block;
  margin-top: 4px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1023px) {
  .job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail {
    grid-template-columns: 1fr;
  }

  .detail__info {
    position: static;
  }

  .detail__circles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .gateway__grid {
    grid-template-columns: 1fr;
    gap: 34px;
    max-width: 460px;
  }

  .gate__media {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 599px) {
  .job-grid {
    grid-template-columns: 1fr;
  }

  .detail__circles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-page {
    display: flex;
    flex-direction: column;
  }

  /* mobile: form trên, bản đồ dưới */
  .contact-panel {
    width: 100%;
    margin: 0;
    order: 1;
  }

  .contact-map {
    position: relative;
    inset: auto;
    height: 320px;
    order: 2;
  }
}