/* หน้ about ใช้ธีมหลักจาก style.css แล้วเติมเลย์เอาต์เฉพาะหน้านี้ */
.about-hero{
  padding-top: 110px;        /* กันชน navbar fixed */
  padding-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: center;
}

.about-photo{
  width: 100%;
  height: 300px;
  background: #222;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255,255,255,.06);
}
.about-photo img{
  width: 100%; height: 100%; object-fit: cover;
}

.about-intro .about-name{
  font-size: 2.2rem; color:#fff; margin-bottom:.25rem;
}
.about-role{
  color:#aaa; margin-bottom: .75rem;
}
.about-summary{
  color:#ccc; line-height:1.8; margin-bottom: 1rem;
  max-width: 70ch;
}
.about-actions{ display:flex; gap:.6rem; flex-wrap:wrap; }
.btn-pill{
  display:inline-block; padding:10px 18px; border-radius:24px;
  background:#222; color:#fff; text-decoration:none; border:1px solid #2a2a2a;
  transition:.25s;
}
.btn-pill:hover{ background:#333; transform: translateY(-1px); }
.btn-ghost{ background:transparent; }

.about-info{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 2rem;
}
.info-card{
  background:#181818; border:1px solid #262626; border-radius:12px;
  padding: 1.2rem;
}
.info-card h3{ color:#fff; margin-bottom:.6rem; font-size:1.1rem; }
.info-card p{ color:#cfcfcf; }
.chips{ display:flex; flex-wrap:wrap; gap:.5rem; }

.about-timeline{ margin: 1rem 0 2.5rem; }
.timeline{
  margin-top: .5rem; list-style: none;
  position: relative; padding-left: 1.25rem;
}
.timeline::before{
  content:''; position:absolute; left:10px; top:0; bottom:0;
  width:2px; background:#2b2b2b;
}
.timeline-item{
  display:grid; grid-template-columns: 80px 20px 1fr;
  gap: .8rem; align-items: start; margin-bottom: 1.1rem;
}
.timeline-item .time{ color:#aaa; font-size:.95rem; }
.timeline-item .dot{
  width:10px; height:10px; border-radius:50%; background:#7c3aed; margin-top:.35rem;
  box-shadow: 0 0 0 4px rgba(124,58,237,.15);
}
.timeline-item .desc h4{ color:#fff; margin-bottom:.25rem; font-size:1.05rem; }
.timeline-item .desc p{ color:#cfcfcf; }

.about-cta{ padding-bottom: 3rem; }
.cta-box{
  background:#181818; border:1px solid #262626; border-radius:16px;
  padding: 1.5rem; text-align:center;
}
.cta-box h3{ color:#fff; margin-bottom:.25rem; font-size:1.25rem; }
.cta-box p{ color:#cfcfcf; margin-bottom:.8rem; }

.about-cta .about-actions{ justify-content:center; }

/* เอาเส้นใต้ลิงก์ออกและคงสีธีม */
.about-hero a, .about-info a, .about-cta a { text-decoration:none; color:inherit; }

/* Responsive */
@media (max-width: 992px){
  .about-info{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 768px){
  .about-hero{
    grid-template-columns: 1fr;
  }
  .about-photo{ height: 260px; }
  .about-info{ grid-template-columns:1fr; }
}
/* กำหนดความกว้างอ่านสบาย + จัดกึ่งกลางทุกบล็อก */
.page-wrap{
  max-width: 980px;
  margin: 0 auto;          /* กึ่งกลางแนวนอน */
}

/* Hero: ขยับออกจากซ้าย และบาลานซ์ภาพ/ข้อความ */
.about-hero{
  padding-top: 110px;
  padding-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: center;
}

.about-photo{
  width: 100%; height: 320px;
  background:#222; border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 20px rgba(255,255,255,.06);
}
.about-photo img{ width:100%; height:100%; object-fit: cover; }

.about-name{ font-size: 2.2rem; color:#fff; margin-bottom:.25rem; }
.about-role{ color:#aaa; margin-bottom:.75rem; }
.about-summary{ color:#ccc; line-height:1.8; margin-bottom:1rem; }

/* แถว badge สถานศึกษา */
.edu-badges{
  margin: 1.25rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.edu-badge{
  background:#181818; border:1px solid #262626; border-radius:14px;
  padding:14px 10px; text-align:center;
}
.edu-badge i{ font-size:22px; display:block; margin-bottom:6px; color:#e5e5e5; }
.edu-badge span{ font-size:.85rem; color:#cfcfcf; }

/* กล่องข้อมูลสั้น ๆ */
.info-grid{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.info-card{ background:#181818; border:1px solid #262626; border-radius:12px; padding: 1.2rem; }
.info-card h3{ color:#fff; margin-bottom:.6rem; font-size:1.1rem; }
.info-card p{ color:#cfcfcf; }

/* รายละเอียดโปรไฟล์ (bullet) */
.profile-detail{
  background:#181818; border:1px solid #262626; border-radius:12px;
  padding: 1.2rem; color:#cfcfcf; line-height:1.9;
}
.profile-detail b{ color:#fff; }

/* CTA กลับไปดูผลงาน */
.about-actions{ display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1rem; }
.btn-pill{
  display:inline-block; padding:10px 18px; border-radius:24px;
  background:#222; color:#fff; text-decoration:none; border:1px solid #2a2a2a;
  transition:.25s;
}
.btn-pill:hover{ background:#333; transform:translateY(-1px); }
.btn-ghost{ background:transparent; }

/* Responsive */
@media (max-width: 1024px){
  .edu-badges{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px){
  .about-hero{ grid-template-columns: 1fr; }
  .about-photo{ height: 260px; }
  .info-grid{ grid-template-columns: 1fr; }
  .edu-badges{ grid-template-columns: repeat(2, 1fr); }
  .about-name{ font-size: 1.8rem; }
}
