﻿/* FML public site — modern professional layer (โหลดหลัง theme-public.css) */
:root{
  --fml-gold:#f2c335; --fml-gold-d:#d9a91a; --fml-gold-l:#ffe28a;
  --fml-ink:#2a2108; --fml-ink-2:#5b4a1a; --fml-mute:#8a7a4a;
  --fml-cream:#fffaf0; --fml-line:#f0e2b4;
  --fml-r:18px; --fml-shadow:0 1px 2px rgba(60,44,0,.06),0 8px 24px rgba(60,44,0,.08);
  --fml-shadow-h:0 2px 4px rgba(60,44,0,.08),0 18px 40px rgba(122,92,0,.20);
}
body{background:#fff;color:var(--fml-ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
::selection{background:var(--fml-gold);color:var(--fml-ink)}

/* ---------- Header ---------- */
.header{background:linear-gradient(100deg,#ffd75e 0%,#f6c21b 55%,#eed321 100%)!important;border-bottom:0!important;box-shadow:0 6px 24px rgba(122,92,0,.22)!important}
.header::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,#8a6a00,#fff3b8 50%,#8a6a00);opacity:.55}
.header__content{height:78px}
.header__logo{width:62px;margin-left:12px;transition:transform .25s}
.header__logo:hover{transform:scale(1.06) rotate(-2deg)}
.header__nav{gap:6px}
.header__nav-item{margin-right:0!important}
.header__nav-link{padding:9px 18px!important;border-radius:999px;color:var(--fml-ink)!important;font-weight:600;letter-spacing:.1px;transition:background .2s,color .2s,box-shadow .2s}
.header__nav-link::after{display:none}
.header__nav-link:hover{background:rgba(255,255,255,.55);box-shadow:0 2px 8px rgba(122,92,0,.15)}
.header__nav-link.is-active{background:var(--fml-ink);color:#fff3c2!important;box-shadow:0 4px 12px rgba(42,33,8,.35)}

/* ---------- Page head (hero band) ---------- */
.section--head{margin-top:78px!important;padding:46px 0 38px!important;border-top:0!important;position:relative;overflow:hidden;
  background:radial-gradient(1200px 260px at 85% -40%,rgba(246,194,27,.35),transparent 60%),linear-gradient(180deg,#fff7da 0%,#fffdf5 100%);
  border-bottom:1px solid var(--fml-line)}
.section--head::before{content:"";position:absolute;right:-60px;top:-70px;width:260px;height:260px;border-radius:50%;
  background:radial-gradient(circle,rgba(246,194,27,.28),transparent 70%)}
.section__title--head{position:relative;font-family:'Prompt',sans-serif;font-weight:600!important;font-size:38px!important;line-height:1.25!important;color:var(--fml-ink)!important;margin:0!important;padding-left:20px}
.section__title--head::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:6px;border-radius:6px;background:linear-gradient(180deg,var(--fml-gold),var(--fml-gold-d))}
.section{padding-top:36px}
.section--head+.section,.section--head+section{padding-top:40px}

/* ---------- News grid ---------- */
#detailNewsAll{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:26px;padding:0!important;max-width:100%!important;width:100%}
#detailNewsAll:empty{display:block!important;text-align:center;padding:70px 0;color:var(--fml-mute)}
#detailNewsAll:empty::before{content:"";display:block;width:44px;height:44px;margin:0 auto 14px;border-radius:50%;border:4px solid var(--fml-line);border-top-color:var(--fml-gold-d);animation:fmlspin .8s linear infinite}
#detailNewsAll:empty::after{content:"กำลังโหลดข่าว...";font-size:15px}
@keyframes fmlspin{to{transform:rotate(360deg)}}
#detailNewsAll .card{display:flex!important;flex-direction:column;width:auto!important;margin:0!important;padding:0 0 18px;background:#fff!important;border:1px solid var(--fml-line);border-radius:var(--fml-r);box-shadow:var(--fml-shadow);overflow:hidden;transition:transform .25s,box-shadow .25s,border-color .25s}
#detailNewsAll .card:hover{transform:translateY(-6px);box-shadow:var(--fml-shadow-h);border-color:var(--fml-gold)}
#detailNewsAll .card__cover{display:block;width:100%;border-radius:0!important;box-shadow:none!important;overflow:hidden;position:relative}
#detailNewsAll .card__cover img{width:100%;height:190px!important;object-fit:cover;transition:transform .6s}
#detailNewsAll .card:hover .card__cover img{transform:scale(1.07)}
#detailNewsAll .card__cover svg,#detailNewsAll .card__add,#detailNewsAll .card__rating{display:none!important}
#detailNewsAll .card__cover::after{content:"";position:absolute;inset:auto 0 0 0;height:60px;background:linear-gradient(0deg,rgba(0,0,0,.18),transparent);pointer-events:none}
#detailNewsAll .card__title{margin:16px 18px 6px!important;font-size:17px!important;line-height:1.45!important;font-weight:600}
#detailNewsAll .card__title a{color:var(--fml-ink)!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal!important;transition:color .15s}
#detailNewsAll .card:hover .card__title a{color:#8a6a00!important}
#detailNewsAll .card__list{margin:0 18px!important;padding:0!important;list-style:none!important}
#detailNewsAll .card__list li{display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:normal!important;font-size:14px;line-height:1.65;color:var(--fml-ink-2)!important}
#detailNewsAll .card__list li::before{display:none!important}

/* ---------- Contacts ---------- */
.fml-contact{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:22px;margin-bottom:34px}
.fml-contact__card{background:#fff;border:1px solid var(--fml-line);border-radius:var(--fml-r);padding:26px 26px 24px;box-shadow:var(--fml-shadow);transition:transform .25s,box-shadow .25s;position:relative;overflow:hidden}
.fml-contact__card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,var(--fml-gold),var(--fml-gold-d))}
.fml-contact__card:hover{transform:translateY(-4px);box-shadow:var(--fml-shadow-h)}
.fml-contact__icon{width:50px;height:50px;border-radius:14px;background:linear-gradient(135deg,#fff1bd,#f6c21b);display:flex;align-items:center;justify-content:center;margin-bottom:16px;box-shadow:0 6px 14px rgba(217,169,26,.35)}
.fml-contact__icon svg{width:26px;height:26px;fill:none;stroke:var(--fml-ink);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.fml-contact__card h3{font-family:'Prompt',sans-serif;font-size:19px;font-weight:600;color:var(--fml-ink);margin:0 0 4px}
.fml-contact__card .en{font-size:14px;color:var(--fml-mute);margin:0 0 12px}
.fml-contact__card p{margin:0;font-size:16px;line-height:1.7;color:var(--fml-ink-2)}
.fml-contact__tel{display:inline-flex;align-items:center;gap:8px;margin-top:6px;padding:8px 16px;border-radius:999px;background:var(--fml-ink);color:#fff3c2!important;font-weight:600;font-size:16px;text-decoration:none!important;transition:transform .15s,box-shadow .15s}
.fml-contact__tel:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(42,33,8,.35)}
.fml-contact__map{border-radius:var(--fml-r);overflow:hidden;border:1px solid var(--fml-line);box-shadow:var(--fml-shadow);margin-bottom:10px}
.fml-contact__map iframe{display:block;width:100%;height:380px;border:0}

/* ---------- Footer ---------- */
.footer{border-top:0!important;padding:56px 0 20px!important}
.footer::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;z-index:3;background:linear-gradient(90deg,#8a6a00,#f6c21b,#fff3b8,#f6c21b,#8a6a00)}
.footer h2{font-family:'Prompt',sans-serif;font-weight:600;font-size:22px!important;line-height:1.5}
.footer p{font-size:15px;line-height:1.8}
.footer img{border-radius:50%;box-shadow:0 4px 12px rgba(0,0,0,.35)}
.footer iframe{border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.4);max-width:100%}
.footer__copyright{color:#d9cfa5!important}

/* ---------- General polish ---------- */
.card__title a,.header__nav-link{text-decoration:none!important}
:focus-visible{outline:3px solid var(--fml-gold-d);outline-offset:2px;border-radius:6px}
@media (max-width:991px){
  .header__logo{margin-left:0}
  .section__title--head{font-size:30px!important}
  .section--head{padding:34px 0 28px!important}
}
@media (max-width:575px){
  #detailNewsAll{grid-template-columns:1fr;gap:18px}
  .fml-contact__map iframe{height:280px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* =====================================================================
   หน้าสืบค้นข้อมูล (/Home/Searching) — แสดงผลแบบแคตตาล็อกโปสเตอร์ (สไตล์เว็บดูหนัง)
   ===================================================================== */
.fml-sub{margin:8px 0 0 20px;font-size:16px;color:var(--fml-ink-2)}

/* แถบค้นหา: แคปซูลเดียว */
.fml-search .catalog__nav{position:sticky!important;top:84px!important;z-index:90;display:flex;align-items:center;gap:0;width:100%;max-width:100%;padding:8px;margin-top:-34px;border-radius:999px!important;background:#fff!important;border:1px solid var(--fml-line);box-shadow:0 14px 40px rgba(60,44,0,.16),0 2px 6px rgba(60,44,0,.06)}
.fml-search .catalog__nav::before{display:none!important}
.fml-search .catalog__nav .catalog__select-wrap{width:240px!important;flex:0 0 240px;margin:0!important;position:relative;border-right:1px solid var(--fml-line)}
.fml-search .catalog__nav .catalog__select-wrap .select2-container{width:100%!important}
.fml-search .catalog__nav .select2-container--default .select2-selection--single{height:48px!important;border:0!important;background:transparent!important;display:flex;align-items:center;box-shadow:none!important}
.fml-search .catalog__nav .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:48px!important;padding-left:22px!important;font-weight:600;color:var(--fml-ink)!important}
.fml-search .catalog__nav .select2-container--default .select2-selection--single .select2-selection__arrow{height:48px!important;right:12px!important}
.fml-search .catalog__nav .slider-radio{flex:1;width:auto!important;margin:0!important;padding:0!important;background:transparent!important;border-radius:0!important}
.fml-search .catalog__nav #txt_search{width:100%;height:48px;padding:0 22px 0 52px;border:0!important;border-radius:0!important;background:transparent!important url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7a4a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 20px center/22px no-repeat;color:var(--fml-ink);font-size:16px;box-shadow:none!important}
.fml-search .catalog__nav #txt_search:focus{box-shadow:none!important;outline:0}
.fml-search .catalog__nav .slider-btn{width:auto!important;margin:0 0 0 6px!important}
.fml-search .catalog__nav #btn_search{width:auto!important;min-width:120px;height:48px;margin:0!important;padding:0 28px;border-radius:999px!important;background:linear-gradient(180deg,#34290c,#1c1604)!important;color:#ffe9a0!important;font-weight:600;font-size:16px;letter-spacing:.3px;box-shadow:0 8px 18px rgba(28,22,4,.35);transition:transform .15s,box-shadow .15s}
.fml-search .catalog__nav #btn_search:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(28,22,4,.45)}

/* ชิปประเภทสื่อ */
.fml-chips{display:flex;flex-wrap:wrap;gap:10px;margin:26px 0 8px}
.fml-chip{padding:9px 20px;border-radius:999px;border:1.5px solid var(--fml-line);background:#fff;color:var(--fml-ink-2);font-family:'Prompt',sans-serif;font-size:15px;font-weight:500;cursor:pointer;transition:all .18s}
.fml-chip:hover{border-color:var(--fml-gold-d);background:#fff8dc;color:var(--fml-ink);transform:translateY(-1px)}
.fml-chip.is-active{background:var(--fml-ink);border-color:var(--fml-ink);color:#ffe9a0;box-shadow:0 6px 16px rgba(42,33,8,.3)}

/* ตาราง → กริดโปสเตอร์ */
#datatablesSearch_wrapper{margin-top:14px}
#datatablesSearch_wrapper #datatablesSearch{display:block;border:0!important;margin:0!important;border-spacing:0!important}
#datatablesSearch_wrapper #datatablesSearch thead{display:none}
#datatablesSearch_wrapper #datatablesSearch tbody{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:28px 22px;padding:10px 0 6px}
#datatablesSearch_wrapper #datatablesSearch tbody tr{position:relative;display:flex;flex-direction:column;background:transparent!important;box-shadow:none!important;transform:none;border:0}
#datatablesSearch_wrapper #datatablesSearch tbody tr:hover{background:transparent!important;transform:none;box-shadow:none!important}
#datatablesSearch_wrapper #datatablesSearch tbody td{display:block;padding:0!important;border:0!important;background:transparent!important;width:auto!important;text-align:left!important;font-weight:400}
/* ลำดับ: ซ่อน */
#datatablesSearch_wrapper #datatablesSearch tbody td:nth-child(1){display:none}
/* โปสเตอร์ */
#datatablesSearch_wrapper #datatablesSearch tbody td:nth-child(3){order:1}
#datatablesSearch_wrapper #datatablesSearch tbody td:nth-child(2){order:2;padding:12px 4px 0!important}
/* ป้ายประเภท มุมซ้ายบนของโปสเตอร์ */
#datatablesSearch_wrapper #datatablesSearch tbody td:nth-child(4){position:absolute;left:10px;top:10px;z-index:4;margin:0!important;padding:4px 12px!important;border-radius:999px;background:rgba(28,22,4,.78)!important;color:#ffe9a0!important;font-size:12px!important;font-weight:600!important;letter-spacing:.2px;backdrop-filter:blur(4px);white-space:nowrap}
#datatablesSearch_wrapper #datatablesSearch tbody td:nth-child(4):empty{display:none}
.fml-poster{position:relative;display:block;aspect-ratio:2/3;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,#fff7da,#f3e3a6);box-shadow:0 8px 22px rgba(60,44,0,.18);transition:transform .3s,box-shadow .3s}
.fml-poster img{width:100%!important;height:100%!important;object-fit:cover;display:block;transition:transform .6s}
.fml-poster img.is-fallback{object-fit:contain;padding:22%;opacity:.9}
.fml-poster::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(18,13,0,.65) 0%,rgba(18,13,0,0) 55%);opacity:0;transition:opacity .3s}
.fml-poster__play{position:absolute;left:50%;top:50%;width:58px;height:58px;margin:-29px 0 0 -29px;z-index:3;border-radius:50%;background:rgba(242,195,53,.95);display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(.7);transition:opacity .25s,transform .25s;box-shadow:0 10px 26px rgba(0,0,0,.35)}
.fml-poster__play svg{width:26px;height:26px;fill:#2a2108;margin-left:3px}
#datatablesSearch tbody tr:hover .fml-poster{transform:translateY(-8px);box-shadow:0 20px 40px rgba(122,92,0,.35)}
#datatablesSearch tbody tr:hover .fml-poster img{transform:scale(1.08)}
#datatablesSearch tbody tr:hover .fml-poster::after{opacity:1}
#datatablesSearch tbody tr:hover .fml-poster__play{opacity:1;transform:scale(1)}
.fml-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--fml-ink)!important;font-size:15.5px;font-weight:600;line-height:1.45;min-height:2.9em;text-decoration:none!important;transition:color .15s}
.fml-title:hover{color:#8a6a00!important}
.fml-id{display:block;margin-top:2px;font-size:12px;color:var(--fml-mute);letter-spacing:.3px}
#datatablesSearch td.dataTables_empty{grid-column:1/-1;display:block;text-align:center!important;color:var(--fml-mute);font-size:16px;padding:60px 0!important}
#datatablesSearch tbody tr:has(td.dataTables_empty){grid-column:1/-1}

/* สถานะกำลังค้นหา + เลขหน้า */
#datatablesSearch_wrapper .dataTables_processing{position:absolute;left:50%;top:80px;transform:translateX(-50%);z-index:20;padding:10px 22px;border-radius:999px;background:#2a2108;color:#ffe9a0;font-size:14px;box-shadow:0 10px 24px rgba(0,0,0,.3)}
#datatablesSearch_wrapper .dataTables_info{text-align:left;padding-top:22px!important;color:var(--fml-mute)}
#datatablesSearch_wrapper .pagination{flex-wrap:wrap;gap:6px;margin:16px 0 0!important}
#datatablesSearch_wrapper .page-item .page-link{min-width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:12px!important;border:1.5px solid var(--fml-line);background:#fff;color:var(--fml-ink);font-weight:500;padding:0 12px}
#datatablesSearch_wrapper .page-item .page-link:hover{background:#fff3c4;border-color:var(--fml-gold-d)}
#datatablesSearch_wrapper .page-item.active .page-link{background:var(--fml-ink);border-color:var(--fml-ink);color:#ffe9a0;box-shadow:0 6px 14px rgba(42,33,8,.3)}
#datatablesSearch_wrapper .page-item.disabled .page-link{opacity:.45}

@media (max-width:767px){
  .fml-search .catalog__nav{flex-wrap:wrap;border-radius:22px!important;top:78px!important;margin-top:-26px}
  .fml-search .catalog__nav .catalog__select-wrap{width:100%!important;flex:0 0 100%;border-right:0;border-bottom:1px solid var(--fml-line)}
  .fml-search .catalog__nav .slider-radio{flex:1 1 60%}
  #datatablesSearch_wrapper #datatablesSearch tbody{grid-template-columns:repeat(2,1fr);gap:20px 14px}
  .fml-sub{margin-left:20px;font-size:14px}
}

/* =====================================================================
   หน้าแรก — หัวแถวรายการ + slider อัตโนมัติ (fml-rows.js)
   ===================================================================== */
.catalog__nav:has(.slider-radio>.card__title){position:relative!important;top:auto!important;display:flex!important;align-items:center;justify-content:space-between;background:transparent!important;border-radius:0!important;padding:4px 4px 12px;margin:0 0 4px;border-bottom:2px solid var(--fml-line);z-index:2}
.catalog__nav:has(.slider-radio>.card__title)::before,.catalog__nav:has(.slider-radio>.card__title):before{display:none!important}
.catalog__nav:has(.slider-radio>.card__title) .catalog__select-wrap{width:auto!important;margin:0!important;display:flex;align-items:center}
.catalog__nav:has(.slider-radio>.card__title) .catalog__select-wrap .card__title{position:relative;margin:0!important;padding-left:18px}
.catalog__nav:has(.slider-radio>.card__title) .catalog__select-wrap .card__title::before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:6px;border-radius:6px;background:linear-gradient(180deg,var(--fml-gold),var(--fml-gold-d))}
.catalog__nav:has(.slider-radio>.card__title) .catalog__select-wrap .card__title a{font-size:26px!important;font-weight:600!important;color:var(--fml-ink)!important;line-height:1.3}
.catalog__nav:has(.slider-radio>.card__title) .slider-radio{width:auto!important;margin:0!important;padding:0!important;background:transparent!important;text-align:right!important}
.catalog__nav:has(.slider-radio>.card__title) .slider-radio .card__title{margin:0!important}
.catalog__nav:has(.slider-radio>.card__title) .slider-radio .card__title a{display:inline-flex;align-items:center;gap:6px;padding:8px 20px;border-radius:999px;background:#fff3c4;color:var(--fml-ink)!important;font-size:14px!important;font-weight:600!important;transition:background .2s,transform .2s,box-shadow .2s}
.catalog__nav:has(.slider-radio>.card__title) .slider-radio .card__title a::after{content:"\2192";font-size:16px;transition:transform .2s}
.catalog__nav:has(.slider-radio>.card__title) .slider-radio .card__title a:hover{background:var(--fml-gold);transform:translateY(-1px);box-shadow:0 6px 14px rgba(217,169,26,.35)}
.catalog__nav:has(.slider-radio>.card__title) .slider-radio .card__title a:hover::after{transform:translateX(3px)}

.fml-wrap{position:relative}
.fml-row{display:block!important;position:relative;width:100%}
.fml-track{display:flex!important;flex-wrap:nowrap;gap:20px;height:auto!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-behavior:auto!important;padding:18px 6px 26px;margin:0 -6px;scrollbar-width:none;-ms-overflow-style:none;cursor:grab;-webkit-overflow-scrolling:touch;outline:0}
.fml-track::-webkit-scrollbar{display:none}
.fml-track.is-drag{cursor:grabbing;user-select:none}
.fml-slide{flex:0 0 auto!important;width:auto!important;margin:0!important;float:none!important;position:relative}
.fml-slide .interview{margin-right:0!important}
.fml-slide .card{margin-bottom:0}
.fml-nav{position:absolute;top:calc(50% - 22px);z-index:6;width:46px;height:46px;border-radius:50%;border:0;background:#fff;color:var(--fml-ink);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 24px rgba(60,44,0,.28),0 0 0 1px var(--fml-line);transition:background .2s,transform .2s,box-shadow .2s,opacity .2s}
.fml-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.fml-nav--prev{left:-8px}
.fml-nav--next{right:-8px}
.fml-nav:hover{background:var(--fml-gold);transform:scale(1.08);box-shadow:0 12px 28px rgba(217,169,26,.5)}
.fml-nav.is-off{opacity:.55}
.fml-noscroll .fml-nav{display:none}
@media (max-width:767px){
  .fml-nav{width:38px;height:38px;top:calc(50% - 19px)}
  .fml-nav--prev{left:-4px}.fml-nav--next{right:-4px}
  .catalog__nav:has(.slider-radio>.card__title) .catalog__select-wrap .card__title a{font-size:21px!important}
}

/* ---------- เลขหน้า (หน้า ViewAll_*) ---------- */
.fml-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;margin:34px 0 10px;padding:14px 20px;background:#fff;border:1px solid var(--fml-line);border-radius:18px;box-shadow:var(--fml-shadow)}
.fml-pager__info{font-size:14px;color:var(--fml-mute)}
.fml-pager__list{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:0;list-style:none}
.fml-pager__list li{margin:0!important}
.fml-pager__list a,.fml-pager__list .is-gap span{display:flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border-radius:12px;border:1.5px solid var(--fml-line);background:#fff;color:var(--fml-ink)!important;font-size:15px;font-weight:500;text-decoration:none!important;transition:background .15s,border-color .15s,transform .15s,box-shadow .15s}
.fml-pager__list .is-gap span{border-color:transparent;background:transparent;min-width:28px;padding:0;color:var(--fml-mute)}
.fml-pager__list a:hover{background:#fff3c4;border-color:var(--fml-gold-d);transform:translateY(-1px)}
.fml-pager__list .is-active a{background:var(--fml-ink);border-color:var(--fml-ink);color:#ffe9a0!important;font-weight:600;cursor:default;box-shadow:0 6px 14px rgba(42,33,8,.3);transform:none}
.fml-pager__list .is-disabled a{opacity:.4;pointer-events:none}
.fml-pager__list svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.fml-pager__jump{display:flex;align-items:center;gap:8px;margin:0}
.fml-pager__jump label{margin:0;font-size:14px;color:var(--fml-ink-2)}
.fml-pager__jump input{width:76px;height:42px;padding:0 10px;text-align:center;border:1.5px solid var(--fml-line);border-radius:12px;font-size:15px;color:var(--fml-ink)}
.fml-pager__jump button{height:42px;padding:0 18px;border:0;border-radius:12px;background:linear-gradient(180deg,#f7cf4c,#eab820);color:var(--fml-ink);font-weight:600;cursor:pointer;box-shadow:0 6px 14px rgba(217,169,26,.35)}
@media (max-width:767px){.fml-pager{justify-content:center;text-align:center}.fml-pager__list a{min-width:38px;height:38px;padding:0 8px}}

/* =====================================================================
   หน้าแรก — การ์ดรายการ + ข้อความ detail ย่อ + แบนเนอร์ + ตัดช่องว่าง
   ===================================================================== */
.section--details-bg .banner{background:var(--fml-ink);overflow:hidden}
.section--details-bg .banner img{display:block;width:100%!important;height:auto!important;max-height:440px;object-fit:cover;object-position:center}

/* ตัดช่องว่างใต้แถว (inline height จาก owl เดิม) */
.section__carousel-wrap,.section__carousel-wrap .owl-stage-outer,.fml-wrap,.fml-row{height:auto!important;min-height:0!important}
.fml-wrap{margin-bottom:6px}
.section--pb0 .col-12 .col-12{padding-left:0;padding-right:0}

/* การ์ดรายการ */
.fml-slide .card,.fml-slide .interview{background:#fff;border:1px solid var(--fml-line);border-radius:var(--fml-r);padding:10px 10px 14px;box-shadow:0 4px 14px rgba(120,90,10,.10);transition:transform .25s,box-shadow .25s,border-color .25s;height:100%}
.fml-slide .card:hover,.fml-slide .interview:hover{transform:translateY(-4px);box-shadow:0 14px 28px rgba(120,90,10,.22);border-color:var(--fml-gold)}
.fml-slide .card__cover,.fml-slide .interview__cover{background:linear-gradient(135deg,#fff7d6,#f7e4a0)!important;border-radius:12px!important;overflow:hidden}
.fml-slide .card__cover img,.fml-slide .interview__cover img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;transition:transform .5s}
.fml-slide .card:hover .card__cover img,.fml-slide .interview:hover .interview__cover img{transform:scale(1.05)}
.fml-slide .card__title--subs,.fml-slide .interview .card__title{margin:12px 2px 4px!important;font-size:15px!important;font-weight:600;line-height:1.4}
.fml-slide .card__title--subs a,.fml-slide .interview .card__title a{color:var(--fml-ink)!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fml-slide .card__title--subs a:hover{color:var(--fml-gold-d)!important}
.fml-slide .card__add{display:none!important}

/* ข้อความ detail แบบย่อ */
.fml-desc{margin:0 2px;padding:0;width:0;min-width:100%;font-size:13px!important;line-height:1.55;color:var(--fml-ink-2)!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:normal!important;text-overflow:clip;word-break:break-word}
.litext.fml-desc{width:0!important;min-width:100%}
.fml-slide .card__list{margin:0;padding:0}
.fml-slide .card__list li{margin:0;padding:0}

/* ---------- จำนวนการเข้าชมรายไฟล์ ---------- */
.fml-views{display:inline-flex;align-items:center;gap:5px;margin:2px 2px 6px;padding:2px 10px 2px 8px;border-radius:999px;background:#fff3c4;color:var(--fml-ink-2);font-size:12px;line-height:1.6;font-style:normal;white-space:nowrap}
.fml-views svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fml-views b{font-weight:600;color:var(--fml-ink)}
.fml-views i{font-style:normal}
.fml-views--detail{margin:4px 0 14px;padding:4px 14px 4px 10px;font-size:14px}
.fml-views--detail svg{width:17px;height:17px}

/* ---------- แก้การ์ดข่าว/กิจกรรม (.interview ครอบ .card) ---------- */
.fml-slide .interview:has(>.card){background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;transform:none!important;width:320px!important;max-width:78vw;margin:0!important;height:auto}
.fml-slide .interview>.card{width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column}
.fml-slide .interview>.card .card__cover{display:block;width:100%!important;height:210px!important}
.fml-slide .interview>.card .card__cover img{object-fit:cover!important}
.fml-slide .interview>.card .card__list{list-style:none!important;margin:0!important;padding:0!important;width:100%}
.fml-slide .interview>.card .card__list li{display:block;list-style:none!important;width:100%}
.fml-slide .interview>.card .litext,.fml-slide .interview>.card .litext.fml-desc{width:100%!important;min-width:0!important;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;white-space:normal!important;overflow:hidden;font-size:13px;line-height:1.55;color:var(--fml-ink-2)!important;word-break:normal;overflow-wrap:anywhere}
.fml-slide .interview>.card .card__title--subs{width:100%}

/* ---------- ViewAll_* : เลขทะเบียน + detail ย่อ + จำนวนเข้าดู ---------- */
.fml-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 6px}
.fml-meta .fml-views{margin:0}
.fml-reg{display:inline-block;padding:2px 10px;border-radius:999px;background:var(--fml-ink);color:#ffe9a0;font-size:12px;line-height:1.6;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.interview .interview__title{margin-bottom:2px}
.interview .interview__title a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--fml-ink)!important;font-weight:600}
.interview>.fml-desc{width:auto;min-width:0}
.col-6>.interview .interview__cover{background:linear-gradient(135deg,#fff7d6,#f7e4a0)!important}
.col-6>.interview .interview__cover img{width:100%!important;height:238px!important;object-fit:cover!important}

/* ---------- Searching : เลขทะเบียน + detail ย่อ + จำนวนเข้าดู ---------- */
.fml-search .fml-meta{margin:3px 0 5px}
.fml-search .fml-meta .fml-id{display:inline-block;margin:0;padding:2px 10px;border-radius:999px;background:var(--fml-ink);color:#ffe9a0;letter-spacing:.2px}
.fml-search .fml-desc{display:-webkit-box;width:100%;min-width:0;margin:2px 0 0;font-size:13px;line-height:1.5;color:var(--fml-ink-2)}

/* =====================================================================
   หน้าแรก แบบโปสเตอร์เต็มใบ (สไตล์ hbomax) — ภาพปกเต็มการ์ด ไม่มีกรอบครอบ
   ===================================================================== */
.fml-slide>.card{width:210px!important;max-width:210px;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0;transform:none!important;height:auto}
.fml-slide>.card:hover{transform:none!important;box-shadow:none!important}
.fml-slide>.card .card__cover{display:block!important;position:relative;width:100%!important;height:auto!important;aspect-ratio:2/3;border-radius:10px!important;overflow:hidden;background:linear-gradient(135deg,#fff7d6,#f1d98a)!important;box-shadow:0 6px 16px rgba(60,44,0,.25);transition:transform .3s,box-shadow .3s}
.fml-slide>.card:hover .card__cover{transform:translateY(-5px) scale(1.03);box-shadow:0 16px 30px rgba(60,44,0,.40)}
.fml-slide>.card .card__cover img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;transition:transform .5s}
.fml-slide>.card .card__cover img[src$="logo.png"]{object-fit:contain!important;padding:14%;box-sizing:border-box}
.fml-slide>.card:hover .card__cover img{transform:scale(1.06)}
.fml-slide>.card .card__cover>svg,.fml-slide>.card .card__cover>span{display:none!important}
.fml-slide>.card .card__title--subs{margin:10px 2px 3px!important;font-size:14px!important;text-align:left!important;overflow-wrap:anywhere}
.fml-slide>.card .fml-meta{margin:2px 2px 4px}
.fml-slide>.card .fml-desc{margin:0 2px;overflow-wrap:anywhere}

/* วีดีทัศน์/ภาพแนวนอน: เต็มใบ 16:9 */
.fml-slide>.interview:not(:has(>.card)){background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;transform:none!important;width:320px!important;max-width:80vw}
.fml-slide>.interview:not(:has(>.card)) .interview__cover{display:block!important;position:relative;width:100%!important;height:auto!important;aspect-ratio:16/9;border-radius:10px!important;overflow:hidden;box-shadow:0 6px 16px rgba(60,44,0,.25);transition:transform .3s,box-shadow .3s}
.fml-slide>.interview:not(:has(>.card)):hover .interview__cover{transform:translateY(-5px) scale(1.02);box-shadow:0 16px 30px rgba(60,44,0,.40)}
.fml-slide>.interview:not(:has(>.card)) .interview__cover img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important}
.fml-slide>.interview:not(:has(>.card)) .interview__cover img[src$="logo.png"]{object-fit:contain!important;padding:10%;box-sizing:border-box}
.fml-slide>.interview:not(:has(>.card)) .card__title--subs,.fml-slide>.interview:not(:has(>.card)) .card__title{margin:10px 2px 3px!important;overflow-wrap:anywhere}
.fml-slide>.interview:not(:has(>.card)) .fml-desc{width:auto;min-width:0}

/* =====================================================================
   หน้า ViewAll_* — โปสเตอร์เต็มใบ (สไตล์ hbomax) เหมือนหน้าแรก
   ===================================================================== */
.fml-tile{margin-bottom:26px}
.fml-tile>.interview{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
.fml-tile .interview__cover{display:block!important;position:relative;width:100%!important;height:auto!important;aspect-ratio:2/3;border-radius:12px!important;overflow:hidden;background:linear-gradient(135deg,#fff7d6,#f1d98a)!important;box-shadow:0 6px 16px rgba(60,44,0,.25);transition:transform .3s,box-shadow .3s}
.fml-tile--land .interview__cover{aspect-ratio:16/9}
.fml-tile>.interview:hover .interview__cover{transform:translateY(-5px) scale(1.02);box-shadow:0 16px 30px rgba(60,44,0,.40)}
.fml-tile .interview__cover img{position:absolute!important;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;transition:transform .5s}
.fml-tile .interview__cover img[src$="logo.png"]{object-fit:contain!important;padding:14%;box-sizing:border-box}
.fml-tile>.interview:hover .interview__cover img{transform:scale(1.06)}
.fml-tile .interview__title{margin:10px 2px 2px!important}
.fml-tile .interview__title a{font-size:15px!important;overflow-wrap:anywhere}
.fml-tile .fml-desc{width:auto;min-width:0;margin:0 2px;overflow-wrap:anywhere}
.fml-tile .fml-meta{margin:3px 2px 5px}
@media (min-width:1200px){.fml-tile{max-width:20%;flex:0 0 20%}.fml-tile--land{max-width:25%;flex:0 0 25%}}
.owl-stage-outer>.owl-item.fml-tile{width:210px!important;max-width:210px;flex:0 0 210px;margin:0 20px 26px 0!important}

/* ---------- Searching : ให้เหมือนโปสเตอร์เต็มใบของหน้าแรก/ViewAll ---------- */
.fml-poster{border-radius:12px;box-shadow:0 6px 16px rgba(60,44,0,.25);background:linear-gradient(135deg,#fff7d6,#f1d98a)}
.fml-poster img.is-fallback,.fml-poster img[src$="logo.png"]{object-fit:contain;padding:14%;box-sizing:border-box;opacity:1}
#datatablesSearch tbody tr:hover .fml-poster{transform:translateY(-5px) scale(1.02);box-shadow:0 16px 30px rgba(60,44,0,.40)}
#datatablesSearch tbody tr:hover .fml-poster::after{opacity:0}
@media (min-width:1200px){#datatablesSearch_wrapper #datatablesSearch tbody{grid-template-columns:repeat(5,minmax(0,1fr));gap:28px 24px}}
.fml-title{overflow-wrap:anywhere}
.fml-search .fml-desc{overflow-wrap:anywhere}

/* =====================================================================
   หัวเว็บ (hero) สไตล์ hbomax — 5 รายการใหม่ล่าสุด เลื่อนได้
   ===================================================================== */
.fml-hero{position:relative;overflow:hidden;background:#120d00;color:#fff;min-height:200px}
.fml-hero__fallback img{display:block;width:100%;max-height:440px;object-fit:cover}
.fml-hero.has-items .fml-hero__fallback{display:none}
.fml-hero__track{position:relative;height:clamp(380px,56vw,620px)}
.fml-hero__slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .9s ease,visibility .9s}
.fml-hero__slide.is-active{opacity:1;visibility:visible;z-index:2}
.fml-hero__bg{position:absolute;inset:-20px;background-size:cover;background-position:center;filter:blur(26px) brightness(.55) saturate(1.2);transform:scale(1.08)}
.fml-hero__bg.is-empty{background:radial-gradient(circle at 70% 40%,#7a5c00,#120d00 70%);filter:none}
.fml-hero__shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,7,0,.92) 0%,rgba(10,7,0,.7) 38%,rgba(10,7,0,.05) 75%),linear-gradient(0deg,#120d00 0%,rgba(18,13,0,0) 28%)}
.fml-hero__poster{position:absolute;right:max(6%,calc((100% - 1300px)/2 + 40px));top:50%;height:80%;max-width:42%;transform:translateY(-50%);object-fit:contain;border-radius:14px;box-shadow:0 24px 60px rgba(0,0,0,.6)}
.fml-hero__inner{position:relative;z-index:3;height:100%;display:flex;align-items:flex-end;padding-bottom:78px}
.fml-hero__text{max-width:560px}
.fml-hero__badge{display:inline-block;margin-bottom:12px;padding:4px 14px;border-radius:999px;background:var(--fml-gold);color:var(--fml-ink);font-size:13px;font-weight:700;letter-spacing:.3px}
.fml-hero__title{margin:0 0 10px;color:#fff;font-size:clamp(26px,4.2vw,52px);font-weight:700;line-height:1.2;text-shadow:0 3px 18px rgba(0,0,0,.6);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.fml-hero__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-bottom:12px;color:#f3e6b5;font-size:14px}
.fml-hero__meta .fml-views{margin:0;background:rgba(255,255,255,.16);color:#fff}
.fml-hero__meta .fml-views b{color:#fff}
.fml-hero__desc{margin:0 0 20px;color:#f0eadb;font-size:16px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.fml-hero__btn{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;border-radius:10px;font-size:16px;font-weight:700;text-decoration:none!important;transition:transform .2s,box-shadow .2s,background .2s}
.fml-hero__btn svg{width:20px;height:20px;fill:currentColor}
.fml-hero__btn--main{background:#fff;color:#1c1604!important}
.fml-hero__btn--main:hover{background:var(--fml-gold);transform:translateY(-2px);box-shadow:0 10px 24px rgba(242,195,53,.45)}
.fml-hero__arrow{position:absolute;top:50%;z-index:6;width:48px;height:48px;margin-top:-24px;border:0;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity .25s,background .2s}
.fml-hero:hover .fml-hero__arrow{opacity:1}
.fml-hero__arrow:hover{background:var(--fml-gold);color:var(--fml-ink)}
.fml-hero__arrow svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.fml-hero__arrow--prev{left:18px}
.fml-hero__arrow--next{right:18px}
.fml-hero__dots{position:absolute;left:0;right:0;bottom:26px;z-index:6;display:flex;justify-content:center;gap:10px}
.fml-hero__dot{width:12px;height:12px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.4);cursor:pointer;transition:background .25s,transform .25s,width .25s}
.fml-hero__dot.is-active{width:30px;border-radius:8px;background:var(--fml-gold)}
.fml-hero.is-single .fml-hero__arrow,.fml-hero.is-single .fml-hero__dots{display:none}
@media (max-width:767px){
  .fml-hero__poster{display:none}
  .fml-hero__inner{padding-bottom:64px}
  .fml-hero__desc{font-size:14px;-webkit-line-clamp:2}
  .fml-hero__arrow{display:none}
}

/* ---------- ดูต่อ / ฟังต่อ ---------- */
.fml-resume-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:9999;display:flex;align-items:center;gap:14px;padding:12px 18px 12px 22px;border-radius:999px;background:#2a2108;color:#ffe9a0;font-size:15px;box-shadow:0 14px 34px rgba(0,0,0,.38);animation:fmlToast .35s ease}
.fml-resume-toast button{border:0;border-radius:999px;padding:6px 16px;background:var(--fml-gold);color:var(--fml-ink);font-weight:700;cursor:pointer}
@keyframes fmlToast{from{opacity:0;transform:translate(-50%,14px)}to{opacity:1;transform:translate(-50%,0)}}
.fml-resume-bar{position:absolute!important;left:0;right:0;bottom:0;height:5px;background:rgba(255,255,255,.35);z-index:5;display:block!important}
.fml-resume-bar i{display:block;height:100%;background:var(--fml-gold)}
.fml-slide>.card .card__cover>.fml-resume-play{display:flex!important;position:absolute;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:rgba(242,195,53,.95);align-items:center;justify-content:center;opacity:.92;z-index:4;box-shadow:0 8px 20px rgba(0,0,0,.35)}
.fml-resume-play svg{width:24px;height:24px;fill:#2a2108;margin-left:3px}
.fml-slide>.card{position:relative}
.fml-resume-x{position:absolute;right:6px;top:6px;z-index:7;width:28px;height:28px;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;font-size:18px;line-height:1;cursor:pointer;opacity:0;transition:opacity .2s}
.fml-slide>.card:hover .fml-resume-x{opacity:1}
.fml-resume-x:hover{background:#c0392b}

/* ---------- ป้ายชื่อหน่วยงานบน hero ---------- */
.fml-herowrap{position:relative}
.fml-brand{position:absolute;left:0;right:0;top:0;z-index:7;padding:26px 0 70px;pointer-events:none;background:linear-gradient(180deg,rgba(10,7,0,.82) 0%,rgba(10,7,0,.45) 55%,rgba(10,7,0,0) 100%)}
.fml-brand__eyebrow{display:inline-flex;align-items:center;gap:10px;margin-bottom:8px;color:var(--fml-gold);font-size:14px;font-weight:600;letter-spacing:2px;text-transform:uppercase}
.fml-brand__eyebrow::before{content:"";width:34px;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--fml-gold),var(--fml-gold-d))}
.fml-brand__name{margin:0;max-width:880px;color:#fff;font-size:clamp(18px,2.4vw,30px);font-weight:600;line-height:1.4;text-shadow:0 2px 14px rgba(0,0,0,.7)}
.fml-brand__name span{display:block;color:#ffe9a0;font-weight:500;font-size:.82em}
@media (max-width:767px){.fml-brand{padding:16px 0 50px}.fml-brand__eyebrow{font-size:12px}}

/* header ของเว็บเป็นแบบ fixed สูงประมาณ 78px ทับด้านบนของ hero -> ดันป้ายชื่อลงมาให้พ้น header */
.fml-herowrap{--fml-hdr:80px}
.fml-brand{padding-top:calc(var(--fml-hdr) + 22px);padding-bottom:90px}
.fml-hero__track{height:clamp(460px,58vw,700px)}
.fml-hero__inner{padding-bottom:78px}
@media (max-width:767px){.fml-herowrap{--fml-hdr:64px}.fml-brand{padding-bottom:60px}}

/* =====================================================================
   หน้า About — เกี่ยวกับเรา
   ===================================================================== */
.fml-about .section__title{display:block;margin:0 0 12px;color:var(--fml-ink)!important;font-size:clamp(24px,3vw,36px);font-weight:600;line-height:1.3;text-align:center}
.fml-about .section__text{display:block;margin:0 0 12px;color:#2f2a18;font-size:17px;line-height:1.85}
.fml-about .container-fluid{max-width:1240px;margin:0 auto;padding:56px 28px}
.fml-about .bg-grey{max-width:none;padding-left:0;padding-right:0;background:transparent}
.fml-about section:has(.bg-grey){background:linear-gradient(180deg,#fffaf0,#fff3d1)}
.fml-about section:has(.bg-grey)>.container-fluid>.row{max-width:1240px;margin:0 auto;padding:56px 28px}
.fml-about section>.container-fluid>.row{display:flex;flex-wrap:wrap;align-items:center;row-gap:24px}
.fml-about .col-sm-1{display:none}
.fml-about .col-sm-4,.fml-about .col-sm-6{flex:1 1 360px;max-width:100%;padding:0 18px}
.fml-about .col-sm-4{flex:0 1 430px}
.fml-about .col-sm-6{flex:1 1 440px}
.fml-about section .col-sm-6 .section__text strong{display:inline-block;padding-left:14px;border-left:5px solid var(--fml-gold);color:var(--fml-ink);font-size:21px;line-height:1.5}
.fml-about .fml-about__pic{display:block}
.fml-about .fml-about__pic img{display:block;width:100%;height:auto;border-radius:18px;background:#fff7d6;box-shadow:0 16px 40px rgba(90,64,0,.22);transition:transform .5s,box-shadow .5s}
.fml-about .col-sm-4 .fml-about__pic img:hover{transform:translateY(-4px) scale(1.01);box-shadow:0 22px 48px rgba(90,64,0,.32)}
.fml-about .col-12>.col-sm-12{max-width:900px;margin:0 auto 18px}
.fml-about .col-12>.col-sm-12 img{box-shadow:0 20px 50px rgba(90,64,0,.28)}
.fml-about .fml-li{position:relative;margin:0 0 10px!important;padding:12px 18px 12px 48px;background:#fff;border:1px solid var(--fml-line);border-radius:14px;box-shadow:0 3px 10px rgba(120,90,10,.08)}
.fml-about .fml-li::before{content:"";position:absolute;left:18px;top:21px;width:12px;height:12px;border-radius:3px;background:linear-gradient(135deg,var(--fml-gold),var(--fml-gold-d));transform:rotate(45deg)}
.fml-about .section--pb0 h1.section__title--head{position:relative;display:inline-block;padding-left:18px;text-align:left}
.fml-about .section--pb0 .col-12>h1.section__title--head::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:6px;border-radius:6px;background:linear-gradient(180deg,var(--fml-gold),var(--fml-gold-d))}
.fml-about .section--pb0 .container .section__text--small:first-of-type{text-indent:0}
.fml-about .fml-reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s ease}
.fml-about .fml-reveal.is-in{opacity:1;transform:none}
.fml-about section>.container-fluid:not(:has(img)) .section__text{max-width:none}
@media (max-width:767px){
  .fml-about .container-fluid{padding:34px 16px}
  .fml-about section:has(.bg-grey)>.container-fluid>.row{padding:34px 16px}
  .fml-about .col-sm-4,.fml-about .col-sm-6{flex:1 1 100%;padding:0}
  .fml-about .section__text{font-size:16px}
}
@media (prefers-reduced-motion:reduce){.fml-about .fml-reveal{opacity:1;transform:none;transition:none}}

/* =====================================================================
   หน้าแรก — เวอร์ชัน "Light" ที่เลือก: แถวเต็มขอบจอ, ชื่อซ้อนบนโปสเตอร์,
   รายละเอียดเด้งขึ้นเมื่อวางเมาส์, ลูกศรเลื่อนที่ขอบ
   ===================================================================== */
.fml-home{--fml-pad:max(4vw,16px)}
.fml-home>.container{max-width:none!important;width:100%;padding:0!important}
.fml-home>.container>.row{margin:0!important}
.fml-home .col-12{padding:0!important}
.fml-home .catalog__nav:has(.slider-radio>.card__title){margin:0 var(--fml-pad) 4px!important}
.fml-home .fml-track{padding:26px var(--fml-pad) 130px!important;margin:0 0 -90px!important;scroll-padding-left:var(--fml-pad)}

/* การ์ด: ภาพกับชื่ออยู่ช่องเดียวกัน (grid) ชื่อซ้อนที่ขอบล่างของโปสเตอร์ */
.fml-home .fml-slide>.card,.fml-home .fml-slide>.interview:not(:has(>.card)){display:grid!important;grid-template-columns:100%;position:relative;transition:transform .3s;z-index:1}
.fml-home .fml-slide>.card:hover,.fml-home .fml-slide>.interview:not(:has(>.card)):hover{transform:scale(1.1)!important;z-index:20}
.fml-home .fml-slide>.card>a.card__cover,.fml-home .fml-slide>.interview:not(:has(>.card))>a.interview__cover{grid-area:1/1}
.fml-home .fml-slide>.card>.card__title,.fml-home .fml-slide>.interview:not(:has(>.card))>.card__title,.fml-home .fml-slide>.interview:not(:has(>.card))>.interview__title{grid-area:1/1;align-self:end;z-index:3;margin:0!important;padding:54px 12px 11px!important;border-radius:0 0 10px 10px;background:linear-gradient(0deg,rgba(0,0,0,.84),rgba(0,0,0,0));pointer-events:none}
.fml-home .fml-slide .card__title a{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#fff!important;font-size:15px!important;font-weight:600;line-height:1.3;text-shadow:0 2px 10px rgba(0,0,0,.8);pointer-events:auto;overflow-wrap:anywhere}
.fml-home .fml-slide .card__title a:hover{color:var(--fml-gold-l)!important}

/* รายละเอียดเด้งใต้โปสเตอร์ตอนวางเมาส์ */
.fml-pop{position:absolute;left:0;right:0;top:100%;margin-top:-1px;z-index:4;padding:10px 12px 12px;border-radius:0 0 10px 10px;background:#fff;border:1px solid var(--fml-line);border-top:0;box-shadow:0 18px 30px rgba(90,64,0,.28);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .25s .05s,transform .25s .05s,visibility .25s .05s}
.fml-slide:hover .fml-pop,.fml-slide>*:hover>.fml-pop{opacity:1;visibility:visible;transform:none}
.fml-pop .fml-meta{margin:0 0 6px}
.fml-pop .fml-desc{margin:0!important;padding:0;width:auto!important;min-width:0!important;font-size:12.5px!important;line-height:1.5}
@media (hover:none) and (pointer:coarse){.fml-pop{display:none}}

/* ลูกศร: แถบไล่สีขาวที่ขอบ เห็นเมื่อวางเมาส์บนแถว */
.fml-home .fml-nav{top:14px!important;bottom:40px!important;height:auto!important;width:calc(var(--fml-pad) + 18px)!important;margin:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;background:linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,0))!important;color:var(--fml-ink);opacity:0}
.fml-home .fml-nav--prev{left:0!important}
.fml-home .fml-nav--next{right:0!important;background:linear-gradient(270deg,rgba(255,255,255,.96),rgba(255,255,255,0))!important}
.fml-home .fml-wrap:hover .fml-nav{opacity:1}
.fml-home .fml-wrap:hover .fml-nav.is-off{opacity:.25}
.fml-home .fml-nav:hover{color:var(--fml-gold-d)}
.fml-home .fml-nav svg{width:32px;height:32px;filter:drop-shadow(0 2px 6px rgba(255,255,255,.9))}
@media (max-width:820px){.fml-home .fml-nav{display:none!important}}

/* การ์ดข่าว (มีกรอบขาว): ชื่อเป็นสีเข้ม ไม่ใช่ตัวอักษรขาวแบบซ้อนบนโปสเตอร์ */
.fml-home .fml-slide>.interview>.card .card__title a{color:var(--fml-ink)!important;text-shadow:none!important;font-size:14.5px!important;pointer-events:auto}
.fml-home .fml-slide>.interview>.card .card__title a:hover{color:var(--fml-gold-d)!important}
.fml-home .fml-slide>.interview>.card .card__title{background:none!important;padding:0!important}
/* หัวแถวไม่ล้นขอบขวา (ปุ่ม "ดูทั้งหมด") */
.fml-home .catalog__nav:has(.slider-radio>.card__title){width:auto!important;max-width:none!important;box-sizing:border-box}

/* ---------- ปกที่ไม่มีรูป: พื้นไล่สีสวยๆ + โลโก้หอสมุดแห่งชาติ ---------- */
.fml-nc{position:relative}
.fml-nc img{object-fit:contain!important;padding:16%!important;box-sizing:border-box;filter:drop-shadow(0 6px 14px rgba(0,0,0,.35))}
.fml-nc.fml-poster img.is-fallback,.fml-nc.fml-poster img{opacity:1!important}
.fml-nc::before{content:"";position:absolute;inset:0;z-index:0;background:radial-gradient(circle at 78% 18%,rgba(255,255,255,.22),rgba(255,255,255,0) 55%);pointer-events:none}
.fml-nc img{position:relative;z-index:1}
.fml-hero__poster--logo{display:grid;place-items:center;aspect-ratio:2/3;height:70%;max-width:42%;background:linear-gradient(155deg,rgba(255,255,255,.16),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.22)}
.fml-hero__poster--logo img{width:58%;height:auto;max-width:none;filter:drop-shadow(0 8px 22px rgba(0,0,0,.45))}

/* กล่องรายละเอียด (เลขทะเบียน/detail ย่อ) ถูก .section{overflow:hidden} ตัด -> ปล่อยให้ล้นได้ และยกแถวที่กำลัง hover ขึ้นเหนือแถวถัดไป */
.fml-home{overflow:visible!important}
.fml-home:hover{z-index:15}
.fml-home .fml-track{padding-bottom:150px!important;margin-bottom:-110px!important}
.fml-pop{min-height:64px}

/* Hero: รายการไม่มีภาพปก -> พื้นหลังเรืองแสงตามสีประจำรายการ + โปสเตอร์ไล่สีพร้อมโลโก้ ป้ายประเภท และชื่อเรื่อง */
.fml-hero__bg.is-empty{background:radial-gradient(circle at 76% 45%,var(--c2,#7a5c00) 0,transparent 62%),linear-gradient(155deg,var(--c1,#3a2a00),#120d00)!important;filter:none!important;opacity:.95}
.fml-hero__poster--nc{display:block;overflow:hidden;aspect-ratio:2/3;height:80%;width:auto;max-width:42%;background:linear-gradient(155deg,var(--c1),var(--c2));border:0}
.fml-hero__poster--nc::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 18%,rgba(255,255,255,.24),rgba(255,255,255,0) 55%)}
.fml-hero__poster--nc::after{content:"";position:absolute;left:0;right:0;bottom:0;height:46%;background:linear-gradient(0deg,rgba(0,0,0,.72),rgba(0,0,0,0))}
.fml-hero__poster--nc>img{position:absolute;left:50%;top:40%;width:56%;height:auto;max-width:none;transform:translate(-50%,-50%);opacity:.92;filter:drop-shadow(0 8px 22px rgba(0,0,0,.45));z-index:1}
.fml-hero__cap{position:absolute;left:14px;right:14px;bottom:12px;z-index:2;display:block;color:#fff;text-align:left}
.fml-hero__cap small{display:block;color:var(--fml-gold);font-size:12px;font-weight:600}
.fml-hero__cap b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:17px;line-height:1.3}
.fml-hero__slide:not(.is-nopic) .fml-hero__poster--nc.is-alt{display:none}
.fml-hero__slide.is-nopic .fml-hero__bg{background:radial-gradient(circle at 76% 45%,var(--c2,#7a5c00) 0,transparent 62%),linear-gradient(155deg,var(--c1,#3a2a00),#120d00)!important;filter:none!important;opacity:.95}

/* สาเหตุที่กล่องรายละเอียดไม่โผล่: main.css ตั้ง .card{overflow:hidden} ตัดกล่องที่ยื่นออกนอกการ์ด → ปล่อยให้ล้นได้ (ภาพปกยังมีมุมโค้งของตัวเอง) */
.fml-home .fml-slide>.card,.fml-home .fml-slide>.interview:not(:has(>.card)),.fml-home .fml-slide{overflow:visible!important}
.fml-home .fml-slide>.card .card__cover,.fml-home .fml-slide>.interview:not(:has(>.card)) .interview__cover{overflow:hidden!important}
.fml-home .owl-item.fml-slide:hover{z-index:30}

/* ---------- Header: โลโก้ใหญ่ขึ้น + เมนูชิดซ้าย (ต่อจากโลโก้) ---------- */
@media (min-width:1200px){
  .header__content{justify-content:flex-start!important}
  .header__logo{width:74px;margin-left:0;margin-right:30px;flex:0 0 auto}
  .header__nav{padding-left:0!important;margin-left:0!important;margin-right:auto;justify-content:flex-start}
}
@media (max-width:1199px){
  .header__logo{width:68px}
}

/* ===== Responsive (มือถือ/แท็บเล็ต) — 2026-12 ===== */
/* header: ไอคอนเมนูไม่ทับโลโก้ + สีเข้มอ่านออกบนพื้นเหลือง + พื้นที่แตะใหญ่ขึ้น */
@media (max-width:1199px){
  .header__menu{left:2px;width:28px;height:22px;z-index:101}
  .header__menu::before{content:"";position:absolute;inset:-14px -12px}
  .header__menu span{background-color:#2a2108!important}
  .header__menu--active span{background-color:#2a2108!important}
  .header__logo{margin-left:48px!important}
  .header__nav{height:auto;top:-420px;padding:84px 20px 18px;gap:2px}
  .header__nav--active{top:0}
  .header__nav-item{width:100%}
  .header__nav-link{display:flex;width:100%;height:auto;min-height:44px;font-size:16px;line-height:1.4;align-items:center}
}
@media (max-width:767px){
  .header__content{height:64px}
  .header__menu{top:21px}
  .header__logo{width:52px}
  /* ป้ายชื่อหน่วยงานบน hero: เลิกวางทับสไลด์ ให้เป็นแถบเหนือสไลด์ */
  .fml-brand{position:relative;pointer-events:auto;padding:calc(var(--fml-hdr) + 12px) 0 14px;background:linear-gradient(180deg,#1a1303,#0a0700)}
  .fml-brand__eyebrow{font-size:11px;letter-spacing:1px;margin-bottom:4px}
  .fml-brand__eyebrow::before{width:22px}
  .fml-brand__name{font-size:clamp(15px,4.4vw,19px);line-height:1.35}
  .fml-brand__name span{font-size:.85em}
  .fml-hero__track{height:clamp(420px,112vw,540px)}
  .fml-hero__inner{padding-bottom:58px}
  .fml-hero__badge{font-size:12px;padding:3px 12px;margin-bottom:8px}
  .fml-hero__title{font-size:clamp(20px,6vw,26px);-webkit-line-clamp:3;margin-bottom:8px}
  .fml-hero__meta{font-size:12.5px;gap:4px 10px;margin-bottom:8px}
  .fml-hero__desc{font-size:13.5px;margin-bottom:14px}
  .fml-hero__btn{padding:10px 22px;font-size:15px}
  .fml-hero__dots{bottom:20px}
  .fml-hero__dot{width:10px;height:10px}
  .fml-hero__dot.is-active{width:26px}
}
/* กันหน้ากว้างเกินจอ */
html,body{max-width:100%;overflow-x:hidden}
img,video,iframe{max-width:100%}

/* ===== เมนูมือถือ/แท็บเล็ต (drawer) — 2026-12 ===== */
@media (max-width:1199px){
  /* ปุ่มเมนู: ตรึงกับ header เสมอ (ไม่ลอยตามความสูงของ drawer) และอยู่เหนือ drawer */
  .header__menu{position:fixed!important;left:14px!important;top:28px!important;z-index:102}
  /* drawer: ซ่อนพ้นจอจริง ๆ ตอนปิด, ไม่มีจุด bullet, ระยะห่างพอดี */
  .header__nav{list-style:none!important;margin:0!important;top:-110vh!important;padding:76px 18px 20px!important;gap:0!important;max-height:100vh;overflow-y:auto;box-shadow:0 10px 30px rgba(42,33,8,.25)}
  .header__nav--active{top:0!important}
  .header__nav-item{list-style:none!important;margin:0 0 4px!important;width:100%}
  .header__nav-item::marker{content:""}
  .header__nav-link{padding:12px 18px!important;min-height:48px;font-size:17px}
}
@media (max-width:767px){
  .header__menu{top:21px!important}
  .header__nav{padding-top:68px!important}
}
