:root {
  --ink: #183149;
  --muted: #657687;
  --line: #dde8ee;
  --blue: #146c95;
  --blue-dark: #0e4e70;
  --pale: #f3f8fa;
}

html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans Thai', sans-serif; color: var(--ink); background: #fff; }
a { color: inherit; }
section[id] { scroll-margin-top: 88px; }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 1100; padding: 8px 14px; background: #fff; }
.skip-link:focus { top: 12px; }

.utility-bar { padding: 8px 0; background: #eaf3f7; color: #536f82; font-size: .76rem; }
.utility-bar a { color: inherit; text-decoration: none; }
.utility-bar a:hover { color: var(--blue); }
.site-header { background: rgba(255,255,255,.98); border-bottom: 1px solid #e7eef2; }

.navbar { padding: 15px 0; }
.brand-icon { display: block; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; object-fit: contain; background: #fff; }
.brand-copy strong, .brand-copy small { display: block; line-height: 1.35; }
.brand-copy strong { font-size: 1rem; font-weight: 800; }
.brand-copy small { color: var(--muted); font-size: .67rem; }
.nav-link { color: #435c6d; font-size: .88rem; font-weight: 600; }
.nav-link:hover { color: var(--blue); }
.dropdown-item { font-size: .85rem; padding: .6rem 1rem; }
.dropdown-item:hover, .dropdown-item:focus { color: var(--blue-dark); background: #eaf5f7; }
.btn { border-radius: 10px; font-weight: 700; }
.btn-brand { padding: .75rem 1.2rem; color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.btn-brand:hover { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }

.hero { min-height: 620px; display: flex; align-items: center; color: var(--ink); background: linear-gradient(90deg, rgba(243,248,250,.94) 0%, rgba(243,248,250,.86) 48%, rgba(243,248,250,.58) 100%), url('assets/home-hero.png') center center / cover; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); align-items: center; gap: clamp(40px, 8vw, 130px); padding-top: 78px; padding-bottom: 82px; }
.hero-copy { max-width: 690px; }
.hero-label { display: block; margin-bottom: 20px; color: var(--blue); font-size: .83rem; font-weight: 700; letter-spacing: .04em; }
.hero h1 { margin: 0 0 20px; font-size: clamp(2.5rem, 5.5vw, 4.7rem); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; }
.hero p { max-width: 610px; margin-bottom: 32px; color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
.hero-actions .btn { padding: .85rem 1.4rem; font-size: .9rem; }
.hero-glance { width: min(100%, 370px); justify-self: end; padding: 22px; color: var(--ink); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.7); border-radius: 18px; box-shadow: 0 24px 70px rgba(7,30,46,.12); backdrop-filter: blur(3px) brightness(1.04) saturate(.9); }
.hero-glance-heading { display: flex; align-items: center; gap: 12px; padding: 1px 0 17px; border-bottom: 1px solid rgba(24,49,73,.14); }
.hero-glance-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 12px; color: var(--blue); background: rgba(20,108,149,.1); font-size: 1.05rem; }
.hero-glance-heading span:not(.hero-glance-icon) { display: block; margin-bottom: 3px; color: var(--blue); font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.hero-glance-heading strong { display: block; font-size: .96rem; font-weight: 800; }
.hero-glance-link { display: flex; align-items: center; gap: 12px; padding: 14px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(24,49,73,.1); }
.hero-glance-link:last-child { padding-bottom: 2px; border-bottom: 0; }
.hero-glance-link-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; color: var(--blue); background: rgba(20,108,149,.08); }
.hero-glance-link > span:nth-child(2) { flex: 1; min-width: 0; }
.hero-glance-link strong, .hero-glance-link small { display: block; }
.hero-glance-link strong { font-size: .82rem; font-weight: 800; }
.hero-glance-link small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.hero-glance-link > i { color: #8296a3; font-size: .72rem; }
.hero-glance-link:hover { color: var(--blue); }
.hero-glance-link:hover > i { color: var(--blue); transform: translate(2px, -2px); }

.section { padding: 88px 0; }
.section-news { padding-top: 62px; }
.section-muted { background: var(--pale); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-head h2, #cpe h2, .membership-box h2 { margin: 0; color: var(--ink); font-weight: 800; line-height: 1.35; letter-spacing: -.025em; }
.section-head h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); }
.section-head > p { max-width: 350px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.content-panel, .cpe-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.content-panel { display: flex; flex-direction: column; padding: 26px; }
.panel-heading { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-bottom: 11px; }
.panel-symbol { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: #e7f4f8; color: var(--blue); }
.panel-kicker { color: var(--muted); font-size: .72rem; }
.panel-heading h3 { margin: 1px 0 0; color: var(--ink); font-size: 1.13rem; font-weight: 800; }
.content-list { flex-grow: 1; }
.content-item { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.content-item:last-child { border-bottom: 0; }
.item-number { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 8px; background: #e8f5f7; color: #137d94; font-size: .73rem; font-weight: 800; }
.content-item a, .question-item a { color: var(--ink); text-decoration: none; font-size: .91rem; font-weight: 700; line-height: 1.65; }
.content-item a:hover, .question-item a:hover { color: var(--blue); }
.item-meta { margin: 5px 0 0; color: #8495a2; font-size: .74rem; }
.panel-more { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 19px; color: var(--blue); font-size: .8rem; font-weight: 800; text-decoration: none; }
.panel-more:hover { color: var(--blue-dark); }
.video-section { padding-top: 0; }
.section-link { color: var(--blue); font-size: .83rem; font-weight: 800; text-decoration: none; }
.section-link:hover { color: var(--blue-dark); }
.video-panel { overflow: hidden; background: #102f45; border-radius: 18px; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; min-height: 0; background: #071a28; }
.video-preview { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.video-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-preview:after { content: ''; position: absolute; inset: 0; background: rgba(4, 25, 39, .18); transition: background .2s ease; }
.video-preview:hover:after, .video-preview:focus-visible:after { background: rgba(4, 25, 39, .3); }
.video-play { position: absolute; top: 50%; left: 50%; z-index: 1; display: grid; place-items: center; width: 76px; height: 76px; padding-left: 4px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: var(--blue); font-size: 1.45rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.video-copy { width: 100%; padding: clamp(28px, 4vw, 50px); color: #fff; }
.video-label { margin-bottom: 12px; color: #9ee0e8; font-size: .78rem; font-weight: 800; }
.video-copy h3 { margin-bottom: 15px; font-size: clamp(1.45rem, 2.5vw, 2.1rem); font-weight: 800; line-height: 1.45; }
.video-copy p { color: #c7dce5; font-size: .88rem; line-height: 1.8; }
.video-link { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 15px; color: #fff; font-size: .83rem; font-weight: 800; text-decoration: none; }
.video-link:hover { color: #9ee0e8; }
.question-item { height: 100%; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.question-item .item-meta { margin-top: 10px; }
#cpe h2 { font-size: clamp(1.85rem, 3vw, 2.45rem); }
.section-description { max-width: 340px; margin-top: 17px; color: var(--muted); line-height: 1.9; }
.cpe-login-btn { margin-top: 4px; }
.cpe-panel { padding: 28px; }
.cpe-panel h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 800; }
.cpe-panel .content-item { padding: 17px 0; }
.membership-section { padding-top: 0; }
.membership-box { padding: 36px 42px; background: #eaf5f7; border: 1px solid #d5e9ee; border-radius: 18px; }
.membership-box h2 { margin-bottom: 9px; font-size: clamp(1.45rem, 2.3vw, 2rem); }
.membership-box p:last-child { color: var(--muted); font-size: .91rem; }
footer { padding: 48px 0 20px; background: #102f45; color: #cad9e1; font-size: .82rem; line-height: 1.8; }
footer strong { display: block; margin-bottom: 9px; color: #fff; font-size: 1rem; }
.footer-brand { margin-bottom: 3px !important; font-size: 1.08rem !important; }
.footer-subtitle { margin: 0 0 15px; color: #9eb7c6; font-size: .78rem; }
.footer-address { color: #cad9e1; }
.footer-heading { margin: 0 0 15px; color: #fff; font-size: .9rem; font-weight: 800; }
.footer-contact-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.footer-contact-list i { width: 16px; margin-top: 5px; flex: 0 0 16px; color: #8fd7e3; text-align: center; }
.footer-contact-list a { overflow-wrap: anywhere; color: #cad9e1; text-decoration: none; }
.footer-contact-list a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 15px; border-top: 1px solid rgba(202,217,225,.18); color: #9eb7c6; font-size: .72rem; }
.footer-privacy-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 14px; }
.cookie-settings-button { padding: 0; border: 0; color: #b8ccd7; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cookie-settings-button:hover { color: #fff; }
#truehits_div { min-height: 14px; }
.cookie-consent { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1080; display: flex; align-items: center; justify-content: space-between; gap: 30px; width: 100%; padding: 18px max(24px, calc((100vw - 1320px) / 2)); color: #fff; background: rgba(8, 24, 34, .85); border-top: 1px solid rgba(255,255,255,.16); box-shadow: 0 -10px 35px rgba(3,20,31,.2); }
.cookie-consent[hidden] { display: none; }
.cookie-consent-copy { max-width: 920px; }
.cookie-consent strong { display: block; margin-bottom: 3px; color: #fff; font-size: .94rem; }
.cookie-consent p { color: #d5e1e7; font-size: .8rem; line-height: 1.7; }
.cookie-consent-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; }
.btn-cookie-accept, .btn-cookie-secondary { min-width: 104px; padding: 9px 16px; border-radius: 8px; font-size: .8rem; font-weight: 800; }
.btn-cookie-accept { color: #fff; border: 1px solid #4f9b36; background: #4f9b36; }
.btn-cookie-accept:hover { color: #fff; border-color: #3f822b; background: #3f822b; }
.btn-cookie-secondary { color: #fff; border: 1px solid rgba(255,255,255,.5); background: transparent; }
.btn-cookie-secondary:hover { color: #102c3c; border-color: #fff; background: #fff; }
.loading-state { min-height: 100px; display: flex; align-items: center; color: var(--muted); font-size: .82rem; }

.news-page-intro { padding: 38px 0 58px; background: linear-gradient(120deg, #edf7f9 0%, #f8fbfc 70%); border-bottom: 1px solid var(--line); }
.news-page-intro .breadcrumb { font-size: .78rem; }
.news-page-intro .breadcrumb a { color: var(--blue); text-decoration: none; }
.news-page-intro .breadcrumb-item.active { color: var(--muted); }
.news-page-intro h1 { margin: 0 0 12px; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.04em; }
.news-page-lead { max-width: 710px; margin: 0; color: var(--muted); line-height: 1.9; }
.news-archive-mark { display: inline-grid; place-items: center; width: 118px; height: 118px; border-radius: 28px; background: #dceef3; color: var(--blue); font-size: 3rem; }
.news-page-section { padding-top: 66px; }
.news-list-head { margin-bottom: 26px; }
.news-list-head h2 { margin: 0 0 4px; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.news-list-subtitle, .news-archive-end { color: var(--muted); font-size: .84rem; }
.news-search-wrap { position: relative; width: min(100%, 320px); }
.news-search-wrap > i { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); color: #7c91a0; }
.news-search-wrap .form-control { padding: 12px 14px 12px 44px; border-color: var(--line); border-radius: 10px; font-size: .86rem; }
.news-search-wrap .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(20,108,149,.12); }
.news-list { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.news-archive-item { display: flex; align-items: flex-start; gap: 22px; padding: 24px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.news-archive-item:last-child { border-bottom: 0; }
.news-archive-item:hover { background: #fbfdfe; }
.news-archive-item[hidden], .news-empty[hidden] { display: none !important; }
.news-archive-number { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 10px; background: #e8f5f7; color: #137d94; font-size: .82rem; font-weight: 800; }
.news-archive-content { flex: 1; min-width: 0; }
.news-archive-period { margin: 0 0 5px; color: var(--blue); font-size: .74rem; font-weight: 800; }
.news-archive-content h3 { margin: 0; font-size: 1.03rem; font-weight: 700; line-height: 1.65; }
.news-archive-content h3 a { text-decoration: none; }
.news-archive-content h3 a:hover { color: var(--blue); }
.news-archive-views { margin: 8px 0 0; color: #8495a2; font-size: .73rem; }
.news-archive-views i { margin-right: 3px; }
.news-archive-arrow { align-self: center; display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 50%; color: var(--blue); text-decoration: none; }
.news-archive-arrow:hover { background: #e8f5f7; }
.news-empty { padding: 34px; color: var(--muted); text-align: center; }
.news-archive-end { margin-top: 25px; }

.archive-intro { padding: 38px 0 60px; background: linear-gradient(120deg, #edf7f9, #f8fbfc 70%); border-bottom: 1px solid var(--line); }
.archive-intro .breadcrumb { font-size: .78rem; }
.archive-intro .breadcrumb a { color: var(--blue); text-decoration: none; }
.archive-intro .breadcrumb-item.active { color: var(--muted); }
.archive-intro h1 { margin: 0 0 12px; font-size: clamp(2.35rem, 4.8vw, 3.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.archive-lead { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.9; }
.archive-symbol { display: inline-grid; place-items: center; width: 118px; height: 118px; border-radius: 28px; background: #dceef3; color: var(--blue); font-size: 3rem; }
.archive-section { padding-top: 66px; }
.archive-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.archive-section-head h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.1rem); font-weight: 800; }
.archive-section-head > p { max-width: 400px; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.8; }
.archive-count { margin: 0 0 23px; color: var(--muted); font-size: .8rem; }
.issue-card { display: flex; align-items: stretch; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
.issue-card:hover { transform: translateY(-2px); border-color: #b9d8e2; box-shadow: 0 10px 26px rgba(12, 44, 66, .07); }
.issue-cover-link { display: block; width: 96px; min-width: 96px; align-self: flex-start; }
.issue-cover { display: block; width: 96px; height: 136px; object-fit: contain; background: #f8fbfc; border: 1px solid var(--line); border-radius: 5px; }
.issue-details { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; min-width: 0; }
.issue-code { display: grid; place-items: center; min-width: 59px; height: 40px; padding: 0 10px; border-radius: 10px; background: #e8f5f7; color: #137d94; font-size: .9rem; font-weight: 800; }
.issue-kicker { margin: 0 0 5px; color: var(--muted); font-size: .75rem; }
.issue-card h3 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.7; }
.issue-card h3 a { text-decoration: none; }
.issue-card h3 a:hover { color: var(--blue); }
.issue-open { margin-top: auto; color: var(--blue); font-size: .78rem; font-weight: 800; text-decoration: none; }
.issue-open:hover { color: var(--blue-dark); }
.archive-pagination { margin: 36px 0 0; }
.archive-pagination .page-link { min-width: 42px; padding: 9px 12px; color: var(--blue); text-align: center; border-color: var(--line); font-size: .82rem; font-weight: 700; }
.archive-pagination .page-item.active .page-link { color: #fff; background: var(--blue); border-color: var(--blue); }
.archive-pagination .page-item:first-child .page-link { border-radius: 9px 0 0 9px; }
.archive-pagination .page-item:last-child .page-link { border-radius: 0 9px 9px 0; }
.archive-source-link { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: .8rem; }
.archive-source-link a { color: var(--blue); font-weight: 800; text-decoration: none; }
.archive-ebooks { padding-top: 68px; }
.ebook-link { display: flex; align-items: center; gap: 14px; min-height: 116px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--blue); text-decoration: none; }
.ebook-link:hover { border-color: #b9d8e2; color: var(--blue-dark); }
.ebook-cover { width: 55px; height: 78px; flex: 0 0 55px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; }
.ebook-link strong, .ebook-link small { display: block; }
.ebook-link strong { color: var(--ink); font-size: .84rem; }
.ebook-link small { color: var(--muted); font-size: .7rem; }
.knowledge-list { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.knowledge-row { display: flex; align-items: flex-start; gap: 20px; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.knowledge-row:last-child { border-bottom: 0; }
.knowledge-row:hover { background: #fbfdfe; }
.knowledge-number { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 10px; background: #e8f5f7; color: #137d94; font-size: .8rem; font-weight: 800; }
.knowledge-row-content { flex: 1; min-width: 0; }
.knowledge-row-content .knowledge-category { margin: 0 0 5px; color: var(--blue); font-size: .73rem; font-weight: 800; }
.knowledge-row-content h3 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.65; }
.knowledge-row-content h3 a { text-decoration: none; }
.knowledge-row-content h3 a:hover { color: var(--blue); }
.knowledge-row-content .knowledge-views { margin: 7px 0 0; color: #8495a2; font-size: .73rem; font-weight: 400; }
.knowledge-views i { margin-right: 3px; }
.knowledge-views span { color: #9aa9b2; }
.knowledge-open { align-self: center; display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 50%; color: var(--blue); text-decoration: none; }
.knowledge-open:hover { background: #e8f5f7; }

.clip-archive-intro { position: relative; isolation: isolate; overflow: hidden; background: #edf7f9 url('assets/clip-hero.png') center 54% / cover no-repeat; }
.clip-archive-intro::before { position: absolute; z-index: -1; content: ''; inset: 0; background: linear-gradient(90deg, rgba(243,248,250,.96) 0%, rgba(243,248,250,.88) 46%, rgba(243,248,250,.48) 100%); }
.clip-archive-intro .archive-symbol { background: rgba(220,238,243,.84); }
.news-archive-intro, .knowledge-archive-intro, .book-archive-intro { position: relative; isolation: isolate; overflow: hidden; background-position: center 54%; background-size: cover; background-repeat: no-repeat; }
.news-archive-intro { background-image: url('assets/news-hero.png'); }
.knowledge-archive-intro { background-image: url('assets/knowledge-hero.png'); }
.book-archive-intro { background-image: url('assets/book-hero.png'); }
.ebook-archive-intro { position: relative; isolation: isolate; overflow: hidden; background: #edf7f9 url('assets/book-hero.png') center 54% / cover no-repeat; }
.news-archive-intro::before, .knowledge-archive-intro::before, .book-archive-intro::before { position: absolute; z-index: -1; content: ''; inset: 0; background: linear-gradient(90deg, rgba(243,248,250,.96) 0%, rgba(243,248,250,.88) 46%, rgba(243,248,250,.48) 100%); }
.ebook-archive-intro::before { position: absolute; z-index: -1; content: ''; inset: 0; background: linear-gradient(90deg, rgba(243,248,250,.96) 0%, rgba(243,248,250,.88) 46%, rgba(243,248,250,.48) 100%); }
.news-archive-intro .news-archive-mark, .knowledge-archive-intro .archive-symbol, .book-archive-intro .archive-symbol { background: rgba(220,238,243,.84); }
.ebook-archive-intro .archive-symbol { background: rgba(220,238,243,.84); }
.home-ebooks { padding-top: 70px; }
.ebook-archive-card { min-height: 150px; }
.qa-archive-intro { position: relative; isolation: isolate; overflow: hidden; background: #edf7f9 url('assets/knowledge-hero.png') center 54% / cover no-repeat; }
.qa-archive-intro::before { position: absolute; z-index: -1; content: ''; inset: 0; background: linear-gradient(90deg, rgba(243,248,250,.96) 0%, rgba(243,248,250,.88) 46%, rgba(243,248,250,.48) 100%); }
.qa-archive-intro .archive-symbol { background: rgba(220,238,243,.84); }
.qa-section { padding-top: 52px; }
.qa-service-note { display: flex; align-items: center; gap: 14px; margin-bottom: 46px; padding: 19px 22px; border: 1px solid #d8eaf0; border-radius: 14px; background: #f3f9fb; color: #536f82; font-size: .85rem; line-height: 1.8; }
.qa-service-note > p { flex: 1; }
.qa-ask-button { flex: 0 0 auto; white-space: nowrap; }
.qa-note-icon { color: var(--blue); font-size: 1.1rem; }
.qa-list-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.qa-page-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; width: min(100%, 650px); }
.qa-list-head h2 { margin: 0 0 6px; font-size: clamp(1.65rem, 3vw, 2.1rem); font-weight: 800; }
.qa-list-subtitle { margin: 0; color: var(--muted); font-size: .82rem; }
.qa-search { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(190px, auto) auto; align-items: center; gap: 9px; width: min(100%, 650px); }
.qa-search > i { display: none; }
.qa-search .form-control, .qa-search .form-select { min-height: 46px; border-color: var(--line); border-radius: 10px; font-size: .84rem; }
.qa-search .form-control:focus, .qa-search .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(20,108,149,.12); }
.qa-search .btn { min-height: 46px; padding: 0 20px; }
.qa-results-bar { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 13px; color: var(--muted); font-size: .78rem; }
.qa-list { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.qa-row { display: flex; align-items: center; gap: 18px; padding: 21px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.qa-row:last-child { border-bottom: 0; }
.qa-row:hover { background: #fbfdfe; }
.qa-row-number { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: #e8f5f7; color: #137d94; font-size: .78rem; font-weight: 800; }
.qa-row-content { flex: 1; min-width: 0; }
.qa-row-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; color: #8495a2; font-size: .7rem; }
.qa-category { padding: 3px 9px; border-radius: 20px; color: var(--blue-dark); background: #edf6f8; font-weight: 700; }
.qa-row h3 { margin: 0; font-size: .96rem; font-weight: 700; line-height: 1.65; }
.qa-row h3 a { text-decoration: none; }
.qa-row h3 a:hover { color: var(--blue); }
.qa-row-author { margin-top: 6px; color: #8999a4; font-size: .7rem; }
.qa-row-open { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; color: var(--blue); text-decoration: none; }
.qa-row-open:hover { background: #e8f5f7; }
.qa-empty { margin: 0; padding: 36px; color: var(--muted); text-align: center; }
.qa-source-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: .8rem; }
.qa-source-link a { color: var(--blue); font-weight: 800; text-decoration: none; }
.qa-modal { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; }
.qa-modal .modal-header, .qa-modal .modal-footer { padding: 20px 24px; border-color: var(--line); }
.qa-modal .modal-body { padding: 24px; }
.qa-modal .form-label { color: var(--ink); font-size: .84rem; font-weight: 700; }
.qa-modal .form-control, .qa-modal .form-select { border-color: var(--line); border-radius: 9px; font-size: .86rem; }
.qa-modal-notice { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; padding: 15px 17px; border: 1px solid #d8eaf0; border-radius: 12px; color: #536f82; background: #f3f9fb; font-size: .82rem; line-height: 1.8; }
.qa-modal-notice > i { margin-top: 4px; color: var(--blue); }
.qa-form-demo-note { color: var(--muted); font-size: .75rem; line-height: 1.7; }
.qa-captcha-box { max-width: 290px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfc; }
.qa-captcha-box .form-label { margin-bottom: 8px; }
.qa-captcha-answer { max-width: 130px; }
.qa-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.member-archive-intro { position: relative; isolation: isolate; overflow: hidden; background: #edf7f9 url('assets/book-hero.png') center 54% / cover no-repeat; }
.member-archive-intro::before { position: absolute; z-index: -1; content: ''; inset: 0; background: linear-gradient(90deg, rgba(243,248,250,.96) 0%, rgba(243,248,250,.88) 46%, rgba(243,248,250,.48) 100%); }
.member-archive-intro .archive-symbol { background: rgba(220,238,243,.84); }
.member-section { padding-top: 58px; }
.member-highlight { display: flex; align-items: center; gap: 20px; margin-bottom: 62px; padding: 26px 30px; border: 1px solid #d8eaf0; border-radius: 16px; background: #f3f9fb; }
.member-highlight-icon, .member-action-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 13px; color: var(--blue); background: #e3f1f5; font-size: 1.15rem; }
.member-highlight > div { flex: 1; }
.member-highlight h2 { margin: 0 0 6px; font-size: clamp(1.2rem, 2.4vw, 1.65rem); font-weight: 800; }
.member-highlight p:not(.eyebrow) { color: var(--muted); font-size: .84rem; line-height: 1.8; }
.member-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 20px; }
.member-section-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 800; }
.member-section-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.8; }
.member-rate-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.member-rate-table { min-width: 680px; color: var(--ink); font-size: .86rem; }
.member-rate-table thead th { padding: 15px 18px; border-bottom: 1px solid var(--line); background: #f3f8fa; color: #526b7c; font-size: .75rem; font-weight: 800; }
.member-rate-table tbody th, .member-rate-table tbody td { padding: 16px 18px; border-color: var(--line); }
.member-rate-table tbody th strong { color: var(--blue); font-size: .95rem; }
.member-bonus { display: inline-block; padding: 4px 10px; border-radius: 20px; color: #16748c; background: #e7f4f7; font-size: .76rem; font-weight: 800; }
.member-table-note, .member-source-note { margin: 14px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.8; }
.member-table-note i { color: var(--blue); }
.member-actions-section { padding-top: 76px; }
.member-action-card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.member-new-card { display: flex; flex-direction: column; }
.member-action-icon { margin-bottom: 18px; }
.member-action-card h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; }
.member-action-card h4 { margin: 0; font-size: 1.12rem; font-weight: 800; }
.member-action-card > p:not(.eyebrow) { min-height: 52px; margin-bottom: 22px; color: var(--muted); font-size: .84rem; line-height: 1.8; }
.member-action-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.member-action-links-stacked { align-items: stretch; flex-direction: column; }
.member-action-links .btn { border: 1px solid var(--blue); }
.member-action-links .btn-outline-brand { color: var(--blue); background: #fff; }
.member-action-links .btn-outline-brand:hover { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.member-new-card .member-rate-table-wrap { margin-bottom: 0; }
.member-new-card .member-rate-table { min-width: 590px; font-size: .78rem; }
.member-new-card .member-rate-table thead th { padding: 12px 10px; font-size: .68rem; }
.member-new-card .member-rate-table tbody th, .member-new-card .member-rate-table tbody td { padding: 12px 10px; }
.member-new-card .member-bonus { padding: 3px 7px; font-size: .68rem; }
.member-new-card .member-table-note { margin: 10px 0 18px; }
.member-new-card .member-section-heading { margin: 14px 0; }
.member-new-card .member-section-heading > p { max-width: 170px; font-size: .75rem; }
.member-new-card .member-action-links { margin-top: auto; }
.member-source-note { margin-top: 24px; text-align: center; }
.member-source-note a { color: var(--blue); font-weight: 800; text-decoration: none; }

/* Layout หลังยืนยันอีเมล: เนื้อหาด้านซ้ายและเมนูสมาชิกปัจจุบันด้านขวา */
.member-verified-email { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.member-verified-email i { color: #21966f; }
.current-member-menu { position: sticky; top: 105px; overflow: hidden; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(12,44,66,.07); }
.current-member-menu-head { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.current-member-menu-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--blue), #18a3ad); }
.current-member-menu-head p { margin: 0 0 2px; color: var(--blue); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.current-member-menu-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.current-member-code { margin: 0 0 15px; padding: 10px 12px; border-radius: 9px; color: var(--muted); background: #f5f8fa; font-size: .78rem; }
.current-member-code strong { color: var(--ink); }
.current-member-status { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 10px; margin: 0 0 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.current-member-status > span { color: var(--muted); font-size: .75rem; }
.current-member-status > strong { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; }
.current-member-status > strong.normal { color: #16805e; }
.current-member-status > strong.expired { color: #c34a43; }
.current-member-status > small { grid-column: 1 / -1; color: var(--muted); font-size: .67rem; }
.current-member-nav { display: grid; gap: 8px; }
.current-member-nav-link { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; color: var(--ink); font-size: .82rem; font-weight: 700; text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.current-member-nav-link > span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; color: var(--blue); background: #eaf5f8; }
.current-member-nav-link > i { color: #8ca1ae; font-size: .68rem; }
.current-member-nav-link:hover { transform: translateX(2px); color: var(--blue); border-color: #c9e1e8; background: #f6fbfc; }
.current-member-nav-link.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.current-member-nav-link.active > span { color: var(--blue); background: #fff; }
.current-member-nav-link.active > i { color: #fff; }

/* รายการสิทธิ์อ่านจากตาราง member_book */
.member-book-rights { margin-top: 24px; }
.member-book-rights + .member-book-rights { padding-top: 22px; border-top: 1px solid var(--line); }
.member-book-rights-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.member-book-rights-heading h3 { margin: 0; font-size: .98rem; font-weight: 800; }
.member-book-rights-heading span { flex: 0 0 auto; padding: 4px 9px; border-radius: 20px; color: var(--blue); background: #eaf5f8; font-size: .7rem; font-weight: 800; }
.member-book-right-list { display: flex; flex-wrap: wrap; gap: 9px; }
.member-book-right-item { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 11px; border: 1px solid #c7dfe6; border-radius: 9px; color: var(--blue); background: #f7fbfc; font-size: .78rem; font-weight: 800; text-decoration: none; }
.member-book-right-item:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.member-book-right-item i { font-size: .62rem; }
.member-book-right-item.unavailable { cursor: default; color: #83939d; border-color: #e0e7ea; background: #f4f6f7; }
.member-book-empty { margin: 0; padding: 12px; border-radius: 9px; color: var(--muted); background: #f6f8f9; font-size: .8rem; }

/* ตัวอย่างสลิปก่อนส่งและประวัติสลิปที่ส่งแล้ว */
.slip-preview { overflow: hidden; padding: 16px; border: 1px solid #bfdce5; border-radius: 12px; background: #f4fafc; }
.slip-preview-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.slip-preview-heading span { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.slip-preview img, .slip-preview iframe { display: block; width: 100%; border: 0; border-radius: 9px; background: #fff; }
.slip-preview img { max-height: 520px; object-fit: contain; }
.slip-preview iframe { height: 520px; }
.slip-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.slip-section-heading h2 { margin: 0 0 5px; font-weight: 800; }
.slip-section-heading p { margin: 0; color: var(--muted); font-size: .8rem; }
.slip-count { flex: 0 0 auto; padding: 5px 10px; border-radius: 20px; color: var(--blue); background: #e8f5f8; font-size: .75rem; font-weight: 800; }
.slip-history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.slip-history-item { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.slip-history-preview { display: grid; place-items: center; min-height: 190px; color: var(--blue); text-decoration: none; background: #f5f8fa; }
.slip-history-preview img { display: block; width: 100%; height: 220px; object-fit: contain; }
.slip-history-preview-pdf { align-content: center; gap: 8px; }
.slip-pdf-icon { font-size: 2.8rem; color: #c94343; }
.slip-history-detail { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; }
.slip-history-detail strong { font-size: .88rem; }
.slip-history-detail span { color: var(--muted); font-size: .75rem; }
.slip-history-detail a { color: var(--blue); font-size: .78rem; font-weight: 700; }

@media (max-width: 767.98px) {
  .slip-history-grid { grid-template-columns: 1fr; }
  .slip-preview-heading, .slip-section-heading { flex-direction: column; }
  .slip-preview iframe { height: 380px; }
}

@media (max-width: 991.98px) {
  .current-member-menu { position: static; }
}

.clip-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
.clip-card:hover { transform: translateY(-2px); border-color: #b9d8e2; box-shadow: 0 10px 26px rgba(12,44,66,.08); }
.clip-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; color: #fff; text-decoration: none; background: radial-gradient(circle at 80% 15%, rgba(42,151,175,.6), transparent 32%), linear-gradient(135deg, #123f5b, #147b96); }
.clip-thumb::before, .clip-thumb::after { position: absolute; content: ''; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.clip-thumb::before { width: 240px; height: 240px; right: -72px; bottom: -150px; }
.clip-thumb::after { width: 170px; height: 170px; right: -38px; bottom: -116px; }
.clip-thumb-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.clip-thumb.has-thumbnail::before { z-index: 1; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: linear-gradient(180deg, rgba(4,25,38,.04), rgba(4,25,38,.38)); }
.clip-thumb.has-thumbnail::after { display: none; }
.clip-thumb.has-thumbnail:hover .clip-thumb-image { transform: scale(1.035); }
.clip-thumb-icon { position: relative; z-index: 2; display: grid; place-items: center; width: 62px; height: 62px; padding-left: 4px; border-radius: 50%; color: var(--blue); background: #fff; box-shadow: 0 7px 24px rgba(3,25,39,.2); transition: transform .2s; }
.clip-thumb:hover .clip-thumb-icon { transform: scale(1.08); }
.clip-thumb-label { position: absolute; z-index: 2; right: 15px; bottom: 13px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; color: #fff; background: rgba(9,40,58,.68); font-size: .68rem; }
.clip-card-body { display: flex; flex-direction: column; align-items: flex-start; min-height: 210px; padding: 21px; }
.clip-card-meta { margin: 0 0 8px; color: var(--blue); font-size: .72rem; font-weight: 700; }
.clip-card h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; line-height: 1.65; }
.clip-card h3 a { text-decoration: none; }
.clip-card h3 a:hover { color: var(--blue); }
.clip-card-description { margin: 0 0 15px; color: var(--muted); font-size: .8rem; line-height: 1.75; }
.clip-card .issue-open { margin-top: auto; }

@media (max-width: 991.98px) {
  .navbar-nav { padding-top: 15px; }
  .section-head { align-items: start; flex-direction: column; gap: 10px; }
  .hero { background-position: 58% center; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(270px, .72fr); gap: 30px; }
  .archive-section-head { align-items: start; flex-direction: column; gap: 10px; }
  .qa-list-head { align-items: stretch; flex-direction: column; }
  .member-highlight { align-items: flex-start; flex-wrap: wrap; }
  .member-highlight > div { flex-basis: calc(100% - 70px); }
  .member-section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .qa-search { width: 100%; }
  .qa-page-actions { align-items: stretch; width: 100%; }
  .qa-service-note { align-items: flex-start; flex-wrap: wrap; }
  .qa-service-note > p { flex-basis: calc(100% - 34px); }
  .qa-ask-button { margin-left: 34px; }
}
@media (max-width: 575.98px) {
  .utility-bar { font-size: .67rem; }
  .utility-links { gap: 9px !important; }
  .utility-links a:last-child { display: none; }
  .brand-copy small { font-size: .57rem; }
  .hero { min-height: 0; }
  .hero-inner { display: block; padding-top: 68px; padding-bottom: 44px; }
  .hero-glance { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: .94rem; }
  .section { padding: 65px 0; }
  .section-news { padding-top: 48px; }
  .membership-box { padding: 28px; }
  .cookie-consent { align-items: stretch; flex-direction: column; gap: 14px; padding: 18px; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { flex: 1; }
  .news-page-intro { padding: 27px 0 45px; }
  .news-archive-mark { display: none; }
  .news-archive-item { gap: 13px; padding: 19px 17px; }
  .news-archive-number { width: 32px; height: 32px; flex-basis: 32px; font-size: .7rem; }
  .news-archive-content h3 { font-size: .93rem; }
  .news-archive-arrow { display: none; }
  .archive-intro { padding: 27px 0 45px; }
  .archive-symbol { display: none; }
  .archive-source-link { flex-direction: column; text-align: center; }
  .knowledge-row { gap: 13px; padding: 18px 17px; }
  .knowledge-number { width: 32px; height: 32px; flex-basis: 32px; font-size: .7rem; }
  .knowledge-row-content h3 { font-size: .93rem; }
  .knowledge-open { display: none; }
  .qa-search { grid-template-columns: 1fr; }
  .qa-modal .modal-header, .qa-modal .modal-footer, .qa-modal .modal-body { padding: 18px; }
  .qa-row { gap: 12px; padding: 18px 15px; }
  .qa-row-number { width: 32px; height: 32px; flex-basis: 32px; font-size: .7rem; }
  .qa-row h3 { font-size: .9rem; }
  .qa-row-open { display: none; }
  .qa-results-bar { align-items: start; flex-direction: column; gap: 3px; }
  .qa-source-link { align-items: center; flex-direction: column; text-align: center; }
  .member-highlight { padding: 22px; }
  .member-highlight .btn { width: 100%; }
  .member-action-card { padding: 22px; }
  .member-action-links { align-items: flex-start; flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}

.article-detail {max-width: 1000px; overflow-wrap: anywhere;}
.article-detail img {max-width:100%;height:auto;}
.article-detail table {display:block;max-width:100%;overflow-x:auto;}
.article-detail td,.article-detail th {padding:.5rem;border:1px solid #ddd;}
.article-detail h2 {margin-top:2rem;}
