/* ============================================================
   aboutus.css  –  คลินิกแพทย์แผนโบราณ สถาพรคลินิก
   Styles เฉพาะหน้า aboutus.html
   (ใช้ร่วมกับ index.css ที่มี variables, buttons, navbar, footer)
   ลำดับ:
   01. Page Hero
   02. Section Base
   03. Doctor Profile
   04. Vintage Timeline
   05. Awards Gallery + Lightbox
   06. Full Profile Modal
   07. Clinic Closing CTA
   08. Responsive
   ============================================================ */


/* ─── 01. Page Hero ─── */

.page-hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-mid) 100%);
    padding: 48px 0 36px;
    border-bottom: 1px solid var(--cream-dk);
}

.ab-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
    font-size: .88rem;
}
.ab-breadcrumb .breadcrumb-item a {
    color: var(--orange);
    text-decoration: none;
}
.ab-breadcrumb .breadcrumb-item a:hover { text-decoration: underline; }
.ab-breadcrumb .breadcrumb-item.active { color: var(--txt-mu); }
.ab-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--txt-mu); }

.page-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--txt-dk);
    margin-bottom: 10px;
}

.page-hero-sub {
    font-size: 1rem;
    color: var(--txt-mu);
    margin: 0;
}


/* ─── 02. Section Base ─── */

.ab-section {
    background: var(--white);
    padding: 72px 0;
}

.ab-section--cream {
    background: var(--cream);
}


/* ─── 03. Doctor Profile ─── */

/* รูปหมอปัจจุบัน */
.doctor-photo-wrap {
    position: relative;
    margin-bottom: 18px;
}

.doctor-photo-main {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shd-md);
    display: block;
}

.doctor-photo-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--orange);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.doctor-photo-badge i { margin-right: 6px; }

/* รูปหมอในอดีต */
.doctor-photo-vintage {
    position: relative;
}

.doctor-photo-old {
    width: 100%;
    border-radius: 14px;
    box-shadow: var(--shd-sm);
    display: block;
    /* เพิ่ม sepia ให้ดูเป็นรูปเก่า */
    filter: sepia(30%) contrast(1.05);
    transition: filter .3s;
}
.doctor-photo-vintage:hover .doctor-photo-old { filter: sepia(0%) contrast(1); }

.vintage-caption {
    text-align: center;
    font-size: .8rem;
    color: var(--txt-mu);
    margin-top: 8px;
    font-style: italic;
}

/* Profile text */
.profile-badge-row { margin-bottom: 10px; }

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cream-mid);
    color: var(--orange);
    font-size: .82rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    border: 1px solid var(--cream-dk);
}

.profile-heading {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--txt-dk);
    margin-bottom: 4px;
}

.profile-title-th {
    font-size: .95rem;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 24px;
}

/* Specialty block */
.specialty-block {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--cream);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--cream-dk);
}

.specialty-icon {
    width: 44px;
    height: 44px;
    background: var(--orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.specialty-block h6 { font-weight: 700; margin-bottom: 6px; color: var(--txt-dk); }
.specialty-block p  { font-size: .92rem; color: var(--txt-bd); margin: 0; line-height: 1.65; }

/* Other diseases box */
.other-diseases-box {
    background: var(--white);
    border: 1px solid var(--cream-dk);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shd-sm);
}

.other-diseases-title {
    font-weight: 700;
    color: var(--brown);
    font-size: .95rem;
    margin-bottom: 14px;
}
.other-diseases-title i { color: var(--orange); margin-right: 8px; }

.disease-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.disease-list li {
    font-size: .9rem;
    color: var(--txt-bd);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.disease-list li i { color: var(--orange); font-size: .8rem; }

/* Award highlights */
.award-highlights {
    background: var(--cream-mid);
    border-radius: 16px;
    padding: 20px 24px;
    border-left: 4px solid var(--orange);
}

.award-hl-title {
    font-weight: 700;
    color: var(--txt-dk);
    margin-bottom: 14px;
    font-size: .95rem;
}
.award-hl-title i { color: var(--gold); margin-right: 8px; }

.award-hl-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: .9rem;
    color: var(--txt-bd);
    line-height: 1.6;
}

.award-hl-dot {
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}


/* ─── 04. Vintage Timeline ─── */

.vintage-section {
    background: var(--brown);
    background-image:
        radial-gradient(ellipse at 0% 100%, rgba(208,101,26,.20) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 0%, rgba(240,168,48,.10) 0%, transparent 50%);
    padding: 64px 0;
    overflow: hidden;
}

.vintage-header {
    text-align: center;
    margin-bottom: 40px;
}

.vintage-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    color: var(--gold);
    font-size: .82rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.vintage-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.vintage-sub {
    color: rgba(255,255,255,.65);
    font-size: .95rem;
    margin: 0;
}

/* Horizontal scroll */
.timeline-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 16px;
    cursor: grab;
    /* scrollbar สวยงาม */
    scrollbar-width: thin;
    scrollbar-color: var(--orange) rgba(255,255,255,.1);
}
.timeline-scroll::-webkit-scrollbar { height: 4px; }
.timeline-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.1); border-radius: 4px; }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 4px; }

.timeline-item {
    flex-shrink: 0;
    width: 300px;
}

.timeline-img-wrap {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.timeline-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    /* sepia เล็กน้อยให้ดูเป็นรูปเก่า */
    filter: sepia(25%) contrast(1.05) brightness(.95);
    transition: filter .3s, transform .3s;
}
.timeline-item:hover .timeline-img-wrap img {
    filter: sepia(0%) contrast(1) brightness(1);
    transform: scale(1.03);
}

.timeline-year {
    font-size: .85rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.timeline-caption {
    font-size: .85rem;
    color: rgba(255,255,255,.75);
    line-height: 1.5;
}


/* ─── 05. Awards Gallery + Lightbox ─── */

/* Award card */
.award-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shd-sm);
    border: 1px solid var(--cream-dk);
    cursor: pointer;
    transition: box-shadow .25s, transform .25s;
    height: 100%;
}
.award-card:hover {
    box-shadow: var(--shd-md);
    transform: translateY(-4px);
}

.award-card-img {
    position: relative;
    overflow: hidden;
}
.award-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.award-card:hover .award-card-img img { transform: scale(1.05); }

.award-zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,.45);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    opacity: 0;
    transition: opacity .25s;
}
.award-card:hover .award-zoom-icon { opacity: 1; }

.award-card-body {
    padding: 16px 18px;
}
.award-card-body h6 {
    font-weight: 700;
    font-size: .95rem;
    color: var(--txt-dk);
    margin-bottom: 6px;
}
.award-card-body p {
    font-size: .83rem;
    color: var(--txt-mu);
    margin: 0;
    line-height: 1.55;
}

/* More awards bullet box */
.more-awards-box {
    background: var(--white);
    border-radius: 16px;
    padding: 28px 32px;
    border: 1px solid var(--cream-dk);
    box-shadow: var(--shd-sm);
    margin-top: 8px;
}

.more-awards-title {
    font-weight: 700;
    color: var(--txt-dk);
    font-size: 1rem;
    margin-bottom: 16px;
}
.more-awards-title i { color: var(--orange); margin-right: 8px; }

.more-awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.more-awards-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--cream-dk);
    font-size: .92rem;
    color: var(--txt-bd);
    line-height: 1.6;
}
.more-awards-list li:last-child { border-bottom: none; }
.more-awards-list li i {
    color: var(--orange);
    font-size: .55rem;
    margin-top: 9px;
    flex-shrink: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox.active { display: flex; }

.lightbox-inner {
    position: relative;
    max-width: 860px;
    width: 100%;
    text-align: center;
}
.lightbox-inner img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    color: rgba(255,255,255,.85);
    font-size: .92rem;
    margin-top: 14px;
}

.lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.lightbox-close:hover { background: var(--orange-dark); }


/* ─── 06. Full Profile Modal ─── */

.profile-modal { border-radius: 20px; overflow: hidden; }

.profile-modal-header {
    background: linear-gradient(120deg, var(--orange), var(--brown));
    color: #fff;
    border: none;
    padding: 20px 28px;
}
.profile-modal-header .modal-title { color: #fff; font-weight: 700; font-size: 1.1rem; }

.profile-modal-close {
    color: #fff;
    opacity: .8;
    text-shadow: none;
    font-size: 1.4rem;
}
.profile-modal-close:hover { opacity: 1; color: #fff; }

.profile-modal-body { padding: 28px; }

.modal-section { margin-bottom: 8px; }

.modal-section-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--txt-dk);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-section-title i { color: var(--orange); }

.modal-section-text {
    font-size: .93rem;
    color: var(--txt-bd);
    line-height: 1.75;
    margin-bottom: 16px;
}

.modal-img-wrap { margin-bottom: 16px; }
.modal-img {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: var(--shd-sm);
}
.modal-img-caption {
    font-size: .8rem;
    color: var(--txt-mu);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.modal-list {
    padding-left: 20px;
    margin: 0;
}
.modal-list li {
    font-size: .92rem;
    color: var(--txt-bd);
    line-height: 1.7;
    margin-bottom: 6px;
}

.modal-divider {
    border-color: var(--cream-dk);
    margin: 24px 0;
}

.profile-modal-footer {
    border-top: 1px solid var(--cream-dk);
    padding: 16px 28px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}


/* ─── 07. Clinic Closing CTA ─── */

.closing-section {
    background: var(--cream);
    padding: 80px 0;
}

.closing-box {
    background: var(--white);
    border-radius: 24px;
    padding: 52px 48px;
    text-align: center;
    box-shadow: var(--shd-md);
    border: 1px solid var(--cream-dk);
    max-width: 760px;
    margin: 0 auto;
}

.closing-icon {
    width: 64px;
    height: 64px;
    background: var(--cream-mid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--orange);
    font-size: 1.5rem;
}

.closing-title {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 800;
    color: var(--txt-dk);
    margin-bottom: 16px;
}

.closing-text {
    font-size: .97rem;
    color: var(--txt-bd);
    line-height: 1.8;
    margin-bottom: 12px;
}

.closing-subtext {
    font-size: .92rem;
    color: var(--txt-mu);
    margin-bottom: 28px;
}

.closing-cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ─── 08. Responsive ─── */

@media (max-width: 991px) {
    .closing-box { padding: 36px 24px; }
}

@media (max-width: 767px) {
    .page-hero { padding: 32px 0 24px; }
    .ab-section { padding: 52px 0; }
    .timeline-item { width: 240px; }
    .timeline-img-wrap img { height: 160px; }
    .award-card-img img { height: 150px; }
    .more-awards-box { padding: 20px; }
    .profile-modal-footer { flex-direction: column-reverse; }
    .profile-modal-footer .btn-main,
    .profile-modal-footer .btn-brown { width: 100%; justify-content: center; }
    .lightbox-close { top: 8px; right: 8px; }
}
