/* =====================================================
   DETAILS – MOBILE ONLY
   Áp dụng cho màn hình <= 768px
===================================================== */

@media (max-width: 768px) {

  /* ================= GLOBAL ================= */
  body {
    font-size: 15px;
  }

  .section {
    padding: 72px 0;
  }

  .content {
    padding: 0 20px;
  }

  /* ================= HERO ================= */

  .hero {
    padding: 20px 16px 40px;
  }

  .hero-card {
    max-width: 100%;
  }

  .hero-image-wrap {
    height: 420px;                 /* gần tràn viền */
    border-radius: 28px;
  }

  /* mobile giữ ảnh gốc – không crop */
  .hero-image-wrap img {
    object-fit: contain;
    object-position: center;
    background: var(--cream);
  }

  /* ===== HERO META (TRIỀU ĐẠI – LĨNH VỰC) ===== */
  .hero-meta {
    top: 20px;
    left: -12px;
    gap: 12px;
  }

  .hero-meta span {
    font-size: 16px;
    padding: 12px 26px 12px 22px;
    min-width: 180px;
    border-radius: 0 16px 16px 0;
  }

  /* ===== MENU ===== */
  .hero-menu {
    top: 18px;
    right: 18px;
  }

  /* ===== TÊN NHÂN VẬT ===== */
  .hero-name-overlay {
    right: 16px;
    bottom: 16px;
    padding: 14px 22px;
    border-radius: 20px;
  }

  .hero-name-overlay h1 {
    font-size: 26px;
    letter-spacing: 1px;
  }

  /* ================= BIOGRAPHY ================= */

  .two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .body-text {
    font-size: 15px;
    line-height: 1.7;
  }

  /* ================= FLOAT TITLES ================= */

  .section-title-float,
  .activity-title-float {
    max-width: 40vw;                 
    padding: 14px 18px;
    border-radius: 18px 18px 0 0;
  }

  .section-title-float h2,
  .activity-title-float h2 {
    display: inline-block;           /* chữ tới đâu – thanh tới đó */
    font-size: 26px;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
  }

  /* lệch có chủ ý */
  .activity-title-float {
    right: 12%;
  }

  .section-title-float.light {
    left: 12%;
  }

  .section-title-float.dark {
    left: 8%;
  }

  /* ================= ACTIVITY ================= */

  .activity {
    padding-top: 120px;
  }

  /* ================= TIMELINE ================= */

  .timeline {
    max-width: 100%;
    padding-left: 8px;
  }

  .timeline-item {
    grid-template-columns: 24px 1fr;
    column-gap: 16px;
    padding-bottom: 32px;
  }

  .timeline-line::before {
    bottom: -32px;
  }

  .timeline-dot {
    width: 14px;
    height: 14px;
  }

  .timeline-content h4 {
    font-size: 18px;
  }

  /* ================= CONTRIBUTE (MOBILE – GIỮ LAYOUT DESKTOP) ================= */

.contribute {
  max-width: 100%;
}

.contribute-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;   /* 👈 GIỮ 2 CỘT */
  gap: 16px;
  padding: 24px 0;
}

/* đường kẻ so le */
.contribute-item:nth-child(odd) {
  border-bottom: 1px solid rgba(255, 255, 228, 0.15);
}

.contribute-item:nth-child(even) {
  border-bottom: 1px solid rgba(255, 255, 228, 0.45);
}

/* keyword bên trái */
.contribute-keyword {
  font-size: 18px;        /* nhỏ hơn desktop */
  line-height: 1.3;
}

/* nội dung bên phải */
.contribute-text {
  font-size: 15px;
  line-height: 1.6;
}


  /* ================= HONOR ================= */

.honor {
  display: grid;
  grid-template-columns: 1fr 1fr;   
  gap: 16px;
  align-items: start;
}

/* text bên trái */
.honor-text {
  font-size: 15px;
  line-height: 1.7;
}

/* cột ảnh bên phải */
.honor-gallery {
  width: 100%;
  overflow: visiable;        
}
.honor-gallery figure,
.honor-gallery img {
  width: 100%;
  max-width: 100%;
  display: block;
}

.honor-gallery img {
  width: 100%;
  height: auto;

  object-fit: contain;   
  background: var(--cream);

  border-radius: 16px;
}
.honor-gallery figcaption {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 6px;
  color: var(--green);
}


  /* ================= REVIEW ================= */

  .review-list {
    display: flex;
    gap: 16px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 8px 16px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* ẩn scrollbar xấu */
  .review-list::-webkit-scrollbar {
    display: none;
  }

  /* mỗi card */
  .review-item {
    flex: 0 0 45vw;

    background: var(--cream);
    color: var(--green);

    border-radius: 22px;
    padding: 16px 14px;

    min-height: 180px;

    scroll-snap-align: start;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* chấm tròn decor góc */
  .review-item::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green);

    position: absolute;
    top: 12px;
    left: 12px;
  }

  .review-item h4 {
    margin: 24px 0 8px;
    font-family: "DFVN Arthemys Display";
    font-size: 16px;
    line-height: 1.2;
  }

  .review-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
  }
}
