/* หน้า "เกี่ยวกับ รพ." (ประวัติความเป็นมา / วิสัยทัศน์-พันธกิจ / ทำเนียบผู้บริหาร) — โทนม่วง */
#msh-about { --p9:#3b1d5e; --p7:#6a3d9a; --p6:#7f55b5; --p5:#9a74cf; --p2:#e6dafa; --p1:#f4eefc;
    --ink:#2e2540; --muted:#7d7390; --line:#ebe4f2; font-family:'Prompt',sans-serif; color:var(--ink);
    max-width:1180px; margin:0 auto; padding:26px 16px 52px; }
#msh-about * { box-sizing:border-box; }

/* ลิงก์นำทาง */
.ab-crumb { display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:.85rem; color:var(--muted); margin-bottom:14px; }
.ab-crumb a { color:var(--p6); text-decoration:none; }
.ab-crumb a:hover { text-decoration:underline; }

/* ส่วนหัว */
.ab-hero {
    position:relative; overflow:hidden; border-radius:22px; padding:30px 32px; color:#fff; margin-bottom:16px;
    background:linear-gradient(120deg,#a483d6 0%,#7f55b5 55%,#5b3290 100%);
    box-shadow:0 18px 40px -22px rgba(91,50,144,.75);
}
.ab-hero::before, .ab-hero::after { content:''; position:absolute; border-radius:50%; background:rgba(255,255,255,.09); }
.ab-hero::before { width:280px; height:280px; right:-80px; top:-110px; }
.ab-hero::after  { width:160px; height:160px; right:120px; bottom:-90px; }
.ab-hero > * { position:relative; z-index:1; }
.ab-hero .kicker { display:inline-flex; align-items:center; gap:6px; font-size:.8rem; letter-spacing:.06em; background:rgba(255,255,255,.18); padding:4px 12px; border-radius:99px; }
.ab-hero h1 { margin:10px 0 6px; color:#fff !important; font-family:'Prompt',sans-serif; font-weight:600; font-size:clamp(1.45rem,3vw,2.1rem); }
.ab-hero p  { margin:0; color:rgba(255,255,255,.92) !important; font-size:.95rem; max-width:720px; }

/* แท็บสลับหน้า */
.ab-tabs { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 22px; padding:6px; background:#fff; border-radius:16px;
    box-shadow:0 4px 18px -10px rgba(59,29,94,.25); }
.ab-tabs a {
    flex:1 1 0; min-width:150px; display:flex; align-items:center; justify-content:center; gap:8px; padding:11px 14px;
    border-radius:12px; font-weight:500; font-size:.95rem; color:var(--p9) !important; text-decoration:none !important;
    transition:background .15s, color .15s;
}
.ab-tabs a:hover { background:var(--p1); }
.ab-tabs a.active { background:linear-gradient(135deg,var(--p5),var(--p7)); color:#fff !important; box-shadow:0 8px 18px -10px rgba(106,61,154,.8); }
.ab-tabs a i { font-size:1.05rem; }

/* หัวข้อส่วน */
.ab-section-title { display:flex; align-items:center; gap:10px; margin:30px 0 14px; font-size:1.15rem; font-weight:600; color:var(--p9); }
.ab-section-title::before { content:''; width:5px; height:22px; border-radius:4px; background:linear-gradient(180deg,var(--p5),var(--p7)); }
.ab-section-title small { color:var(--muted); font-weight:400; font-size:.82rem; margin-left:4px; }

/* การ์ดรูป */
.ab-figure { margin:0 0 18px; background:#fff; border-radius:18px; padding:12px; box-shadow:0 6px 24px -14px rgba(59,29,94,.3), 0 1px 3px rgba(59,29,94,.05); }
.ab-figure .frame { position:relative; border-radius:12px; overflow:hidden; background:#faf8fd; cursor:zoom-in; }
.ab-figure img { display:block; width:100%; height:auto; transition:transform .35s ease; }
.ab-figure .frame:hover img { transform:scale(1.01); }
.ab-figure .zoom-hint {
    position:absolute; right:10px; bottom:10px; display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:99px;
    background:rgba(59,29,94,.78); color:#fff; font-size:.78rem; opacity:0; transform:translateY(4px); transition:all .2s;
}
.ab-figure .frame:hover .zoom-hint, .ab-figure .frame:focus-visible .zoom-hint { opacity:1; transform:none; }
.ab-figure figcaption { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 6px 2px; font-size:.86rem; color:var(--muted); }
.ab-figure figcaption a { color:var(--p6); text-decoration:none; white-space:nowrap; }
.ab-figure figcaption a:hover { text-decoration:underline; }

/* วิสัยทัศน์ */
.ab-vision {
    text-align:center; border-radius:20px; padding:34px 24px; margin-bottom:18px; background:#fff;
    border:1.5px solid var(--p2); box-shadow:0 6px 24px -14px rgba(59,29,94,.3);
}
.ab-vision .lbl { font-size:.8rem; letter-spacing:.12em; color:var(--p5); font-weight:600; }
.ab-vision .quote { margin:10px 0 0; font-size:clamp(1.35rem,3.2vw,2.05rem); font-weight:600; color:var(--p9); line-height:1.45; }
.ab-vision .quote::before { content:'“'; color:var(--p5); }
.ab-vision .quote::after  { content:'”'; color:var(--p5); }
.ab-vision .scope { margin-top:14px; font-size:.9rem; color:var(--muted); }

.ab-values { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:18px; }
.ab-value { display:flex; align-items:center; gap:14px; padding:18px 20px; border-radius:16px; background:#fff; box-shadow:0 6px 22px -14px rgba(59,29,94,.3); }
.ab-value .ic { flex:none; width:48px; height:48px; border-radius:14px; display:grid; place-items:center; background:var(--p1); color:var(--p7); font-size:1.4rem; }
.ab-value b { display:block; font-weight:600; color:var(--p9); font-size:1.05rem; }
.ab-value small { color:var(--muted); font-size:.78rem; letter-spacing:.04em; }

.ab-missions { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:8px; }
.ab-mission { padding:18px; border-radius:16px; background:#fff; box-shadow:0 6px 22px -14px rgba(59,29,94,.3); border-top:4px solid var(--p5); }
.ab-mission .no { display:inline-block; font-size:.78rem; font-weight:700; color:#fff; background:var(--p6); border-radius:8px; padding:2px 9px; }
.ab-mission h3 { margin:10px 0 6px; font-size:1rem; font-weight:600; color:var(--p9); font-family:'Prompt',sans-serif; }
.ab-mission p { margin:0; font-size:.88rem; line-height:1.6; color:var(--ink); }

.ab-note { font-size:.82rem; color:var(--muted); text-align:center; margin-top:6px; }

/* หน้าต่างดูรูปขยาย */
.ab-lightbox { position:fixed; inset:0; z-index:20000; background:rgba(24,12,40,.92); display:none; flex-direction:column; }
.ab-lightbox.open { display:flex; }
.ab-lightbox .bar { display:flex; align-items:center; gap:10px; padding:10px 14px; color:#fff; font-family:'Prompt',sans-serif; font-size:.9rem; }
.ab-lightbox .bar .title { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ab-lightbox .bar button, .ab-lightbox .bar a {
    border:0; background:rgba(255,255,255,.14); color:#fff !important; border-radius:10px; padding:8px 12px; cursor:pointer;
    font:inherit; text-decoration:none !important; display:inline-flex; align-items:center; gap:6px;
}
.ab-lightbox .bar button:hover, .ab-lightbox .bar a:hover { background:rgba(255,255,255,.25); }
.ab-lightbox .stage { flex:1; overflow:auto; display:flex; align-items:flex-start; justify-content:center; padding:0 12px 16px; -webkit-overflow-scrolling:touch; }
.ab-lightbox .stage img { max-width:100%; height:auto; margin:auto; border-radius:8px; background:#fff; cursor:zoom-in; }
.ab-lightbox .stage.zoomed img { max-width:none; width:200%; cursor:zoom-out; }
.ab-lightbox .nav { position:fixed; top:50%; transform:translateY(-50%); border:0; width:44px; height:44px; border-radius:50%;
    background:rgba(255,255,255,.16); color:#fff; font-size:1.3rem; cursor:pointer; }
.ab-lightbox .nav:hover { background:rgba(255,255,255,.3); }
.ab-lightbox .prev { left:12px; } .ab-lightbox .next { right:12px; }

@media (max-width:991px) {
    .ab-missions { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:767px) {
    #msh-about { padding:18px 12px 40px; }
    .ab-hero { padding:22px 20px; border-radius:18px; }
    .ab-tabs { flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
    .ab-tabs::-webkit-scrollbar { display:none; }
    .ab-tabs a { flex:0 0 auto; min-width:0; font-size:.86rem; padding:9px 12px; }
    .ab-section-title { flex-wrap:wrap; }
    .ab-values, .ab-missions { grid-template-columns:1fr; }
    .ab-vision { padding:26px 16px; }
    .ab-figure { padding:8px; border-radius:14px; }
    .ab-figure .zoom-hint { opacity:1; transform:none; }   /* มือถือไม่มี hover → แสดงตลอด */
    .ab-lightbox .nav { display:none; }
}
