@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');
:root{--primary:#0f766e;--secondary:#0ea5e9;--accent:#f59e0b;--dark:#0f172a;--light:#f8fafc;--muted:#64748b;--card:#ffffff;--border:#e2e8f0;--gradient:linear-gradient(135deg,#0f766e 0%,#0ea5e9 55%,#6366f1 100%)}
*{box-sizing:border-box}body{font-family:'Kanit','Sarabun',sans-serif;background:#f8fafc;color:#0f172a;overflow-x:hidden}.navbar{backdrop-filter:blur(12px);background:rgba(255,255,255,.94)!important;border-bottom:1px solid rgba(226,232,240,.9)}.navbar-brand{font-weight:700;color:var(--primary)!important}.nav-link{font-weight:500;color:#334155!important}.nav-link:hover,.nav-link.active{color:var(--primary)!important}.hero{position:relative;min-height:650px;background:var(--gradient);overflow:hidden;color:white}.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.22),transparent 30%),radial-gradient(circle at 80% 10%,rgba(245,158,11,.28),transparent 28%)}.hero .container{position:relative;z-index:2}.hero-title{font-size:clamp(2rem,3.15vw,3.55rem);font-weight:800;line-height:1.23;letter-spacing:-.3px;max-width:780px;text-wrap:balance;text-shadow:0 12px 30px rgba(15,23,42,.25)}.hero-sub{font-size:1.18rem;opacity:.95;max-width:760px}.glass{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);box-shadow:0 20px 60px rgba(15,23,42,.2);backdrop-filter:blur(14px);border-radius:28px}.carousel-card img{height:430px;object-fit:cover;border-radius:24px}.section-title{font-size:2.25rem;font-weight:800;color:var(--dark)}.section-kicker{color:var(--primary);font-weight:700;letter-spacing:.5px;text-transform:uppercase}.journal-card,.news-card,.article-card{background:var(--card);border:1px solid var(--border);border-radius:24px;box-shadow:0 14px 45px rgba(15,23,42,.07);transition:.28s;overflow:hidden;height:100%}.journal-card:hover,.news-card:hover,.article-card:hover{transform:translateY(-7px);box-shadow:0 25px 70px rgba(15,23,42,.13)}.journal-icon{width:78px;height:78px;border-radius:22px;background:linear-gradient(135deg,#ccfbf1,#dbeafe);display:flex;align-items:center;justify-content:center;font-size:2.2rem;color:var(--primary);margin-bottom:18px}.btn-main{background:var(--gradient);border:0;color:white;border-radius:999px;padding:.72rem 1.35rem;font-weight:600;box-shadow:0 10px 25px rgba(14,165,233,.25)}.btn-main:hover{color:white;filter:brightness(.96);transform:translateY(-1px)}.btn-soft{background:#ecfeff;color:#0f766e;border:1px solid #a5f3fc;border-radius:999px;font-weight:600}.news-img{height:220px;object-fit:cover;width:100%}.badge-date{background:#ecfeff;color:#0f766e;border:1px solid #99f6e4}.datepicker-box{background:#fff;border-radius:22px;padding:18px;border:1px solid var(--border);box-shadow:0 15px 45px rgba(15,23,42,.08)}.article-rank{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,#fef3c7,#cffafe);display:flex;align-items:center;justify-content:center;font-weight:800;color:#0f766e}.tci-strip{background:#fff;border-top:1px solid var(--border);border-bottom:1px solid var(--border);overflow:hidden}.marquee{display:flex;width:max-content;animation:marquee 30s linear infinite}.marquee:hover{animation-play-state:paused}.banner-item{display:flex;align-items:center;gap:14px;min-width:270px;margin:0 16px;padding:14px 22px;background:#f8fafc;border:1px solid var(--border);border-radius:18px;color:#0f172a;text-decoration:none}.banner-item:hover{border-color:#0ea5e9;color:#0f766e}.banner-item img{width:48px;height:48px;object-fit:contain}.footer{background:#0f172a;color:#cbd5e1}.footer h5{color:#fff}.stat-card{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:18px;text-align:center}.stat-card strong{display:block;color:#fff;font-size:1.7rem}.admin-sidebar{min-height:100vh;background:#0f172a}.admin-sidebar a{color:#cbd5e1;text-decoration:none;display:block;padding:12px 16px;border-radius:14px;margin:4px 0}.admin-sidebar a:hover,.admin-sidebar a.active{background:#1e293b;color:#fff}.admin-card{border:0;border-radius:22px;box-shadow:0 14px 35px rgba(15,23,42,.08)}.table thead th{background:#f1f5f9}.form-control,.form-select{border-radius:14px;padding:.72rem .9rem}.modal-content{border-radius:22px}.logo-badge{width:56px;height:56px;border-radius:18px;background:#fff;object-fit:cover;padding:6px}.floating-shape{position:absolute;border-radius:999px;background:rgba(255,255,255,.16);filter:blur(1px)}.shape-1{width:180px;height:180px;right:10%;bottom:7%}.shape-2{width:90px;height:90px;left:9%;top:18%}@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}@media(max-width:991px){.hero{min-height:auto;padding:80px 0}.carousel-card img{height:300px}.admin-sidebar{min-height:auto}.section-title{font-size:1.75rem}}

.dropdown-menu{padding:.6rem}.dropdown-item{border-radius:12px;padding:.65rem .9rem;font-weight:500}.dropdown-item:hover{background:#ecfeff;color:#0f766e}.navbar .dropdown:hover>.dropdown-menu{display:block;margin-top:0}.menu-help{font-size:.92rem;color:#64748b}

.page-hero{background:linear-gradient(135deg,#0f766e 0%,#0ea5e9 55%,#6366f1 100%);position:relative;overflow:hidden}.text-white-75{color:rgba(255,255,255,.78)}.team-card{background:#fff;border:1px solid var(--border);border-radius:26px;box-shadow:0 14px 45px rgba(15,23,42,.08);overflow:hidden;transition:.28s}.team-card:hover{transform:translateY(-7px);box-shadow:0 24px 70px rgba(15,23,42,.14)}.team-photo-wrap{height:230px;background:linear-gradient(135deg,#ecfeff,#eef2ff);display:flex;align-items:center;justify-content:center}.team-photo{width:100%;height:100%;object-fit:cover}.team-placeholder{display:flex;align-items:center;justify-content:center;color:#0f766e;font-size:5rem}.team-contact a{display:block;text-decoration:none;color:#334155;background:#f8fafc;border:1px solid var(--border);border-radius:14px;padding:.6rem .8rem;font-size:.95rem}.team-contact a:hover{color:#0f766e;border-color:#99f6e4;background:#ecfeff}.team-avatar-sm{width:54px;height:54px;border-radius:16px;background:#ecfeff;color:#0f766e;display:inline-flex;align-items:center;justify-content:center;font-size:1.5rem}


.contact-section{background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%)}
.contact-card,.map-card{background:#fff;border:1px solid var(--border);border-radius:28px;box-shadow:0 16px 50px rgba(15,23,42,.08);overflow:hidden}.contact-icon{width:76px;height:76px;border-radius:24px;background:linear-gradient(135deg,#ccfbf1,#dbeafe);display:flex;align-items:center;justify-content:center;color:#0f766e;font-size:2.2rem}.contact-list{display:grid;gap:14px}.contact-list>div{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--border);border-radius:18px;background:#f8fafc}.contact-list i{color:#0f766e;font-size:1.2rem;margin-top:2px}.contact-list a{color:#334155;text-decoration:none}.contact-list a:hover{color:#0f766e}.map-card iframe{display:block;width:100%;min-height:430px;border:0}.map-placeholder{min-height:430px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#64748b;background:linear-gradient(135deg,#ecfeff,#eef2ff);padding:30px}

/* Modern Admin Dashboard */
.dashboard-hero{position:relative;overflow:hidden;border-radius:30px;background:linear-gradient(135deg,#0f766e 0%,#0ea5e9 55%,#6366f1 100%);color:#fff;padding:34px;box-shadow:0 22px 70px rgba(14,165,233,.24)}
.dashboard-hero:before{content:"";position:absolute;right:-80px;top:-90px;width:280px;height:280px;border-radius:50%;background:rgba(255,255,255,.18)}
.dashboard-hero:after{content:"";position:absolute;left:38%;bottom:-120px;width:240px;height:240px;border-radius:50%;background:rgba(245,158,11,.22)}
.dashboard-hero>*{position:relative;z-index:1}.admin-kicker{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:8px 14px;font-weight:600}.dash-stat-card{position:relative;overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:26px;padding:22px;box-shadow:0 14px 40px rgba(15,23,42,.08);transition:.28s;min-height:172px}.dash-stat-card:hover{transform:translateY(-6px);box-shadow:0 26px 75px rgba(15,23,42,.14)}.dash-stat-card:after{content:"";position:absolute;right:-35px;top:-45px;width:120px;height:120px;border-radius:50%;opacity:.13;background:#0ea5e9}.dash-icon{width:58px;height:58px;border-radius:20px;display:flex;align-items:center;justify-content:center;font-size:1.75rem;margin-bottom:16px;background:#ecfeff;color:#0f766e}.dash-more{font-size:.92rem;color:#64748b;margin-top:10px;font-weight:600}.tone-primary .dash-icon{background:#e0f2fe;color:#0369a1}.tone-info .dash-icon{background:#dbeafe;color:#1d4ed8}.tone-success .dash-icon{background:#dcfce7;color:#15803d}.tone-warning .dash-icon{background:#fef3c7;color:#b45309}.tone-purple .dash-icon{background:#ede9fe;color:#6d28d9}.tone-danger .dash-icon{background:#fee2e2;color:#b91c1c}.tone-teal .dash-icon{background:#ccfbf1;color:#0f766e}.tone-dark .dash-icon{background:#e2e8f0;color:#0f172a}.visit-mini-card{height:100%;background:#fff;border:1px solid var(--border);border-radius:24px;padding:20px;box-shadow:0 12px 35px rgba(15,23,42,.07)}.visit-mini-card i{width:42px;height:42px;border-radius:16px;background:#ecfeff;color:#0f766e;display:flex;align-items:center;justify-content:center;font-size:1.25rem;margin-bottom:14px}.visit-mini-card span{display:block;color:#64748b;font-size:.92rem}.visit-mini-card strong{font-size:1.8rem;color:#0f172a}.modern-table{border-collapse:separate;border-spacing:0 8px}.modern-table thead th{border:0;color:#64748b;font-size:.88rem}.modern-table tbody tr{background:#fff;box-shadow:0 4px 18px rgba(15,23,42,.04)}.modern-table tbody td{border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7;padding:14px}.modern-table tbody td:first-child{border-left:1px solid #eef2f7;border-radius:16px 0 0 16px}.modern-table tbody td:last-child{border-right:1px solid #eef2f7;border-radius:0 16px 16px 0}
.about-icon{width:78px;height:78px;border-radius:24px;background:linear-gradient(135deg,#ccfbf1,#dbeafe);display:flex;align-items:center;justify-content:center;color:#0f766e;font-size:2.25rem}.modern-card{border-radius:28px;transition:.28s;overflow:hidden}.modern-card:hover{transform:translateY(-6px);box-shadow:0 24px 70px rgba(15,23,42,.13)!important}.hero-watermark{font-size:9rem;color:rgba(255,255,255,.22)}.about-content{white-space:normal;color:#334155}.line-clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.list-group-item.active{background:linear-gradient(135deg,#0f766e,#0ea5e9);border-color:transparent;color:#fff}


/* News & Activities: 2 rows x 3 images */
.news-activity-grid{align-items:stretch}.news-activity-card{min-height:100%}.news-activity-card .news-img{height:235px;object-fit:cover;background:#e2e8f0}.news-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3rem}@media(min-width:992px){.news-activity-grid>.col-lg-4:nth-child(n+4){margin-top:1.5rem}}@media(max-width:575px){.news-activity-card .news-img{height:200px}}

/* Indexed in TCI banner section */
.tci-strip{background:linear-gradient(180deg,#ffffff,#f8fafc);border-top:1px solid var(--border);border-bottom:1px solid var(--border);overflow:hidden}
.tci-marquee-wrap{width:100%;overflow:hidden;padding:8px 0 18px}
.marquee{display:flex;width:max-content;animation:marquee 30s linear infinite}
.marquee:hover{animation-play-state:paused}
.banner-item{display:flex;align-items:center;gap:14px;min-width:270px;margin:0 16px;padding:14px 22px;background:#fff;border:1px solid var(--border);border-radius:18px;color:#0f172a;text-decoration:none;box-shadow:0 10px 30px rgba(15,23,42,.06);transition:.2s}
.banner-item:hover{border-color:#0ea5e9;color:#0f766e;transform:translateY(-2px)}
.banner-item img{width:54px;height:54px;object-fit:contain;border-radius:10px;background:#f8fafc}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}


/* Homepage Academic Articles: 10 items with pagination */
.article-table tbody tr{transition:.18s}.article-table tbody tr:hover{background:#f8fafc}.article-pagination .btn{min-width:94px}.article-page-number{width:38px;height:38px;border-radius:14px;border:1px solid #bae6fd;background:#f8fafc;color:#0f766e;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.article-page-number.active{background:linear-gradient(135deg,#0f766e,#0ea5e9);color:#fff;border-color:transparent;box-shadow:0 8px 22px rgba(14,165,233,.2)}.article-page-number:hover{border-color:#0ea5e9;background:#ecfeff}.home-article-row.d-none{display:none!important}@media(max-width:767px){.article-pagination{width:100%;justify-content:center}.article-page-info{width:100%;text-align:center}}

/* Homepage News & Activities: 9 items with pagination, show 6 items per page */
.home-news-row.d-none{display:none!important}.news-pagination .btn{min-width:94px}.home-page-number{width:38px;height:38px;border-radius:14px;border:1px solid #bae6fd;background:#f8fafc;color:#0f766e;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.home-page-number.active{background:linear-gradient(135deg,#0f766e,#0ea5e9);color:#fff;border-color:transparent;box-shadow:0 8px 22px rgba(14,165,233,.2)}.home-page-number:hover{border-color:#0ea5e9;background:#ecfeff}@media(max-width:767px){.news-pagination{width:100%;justify-content:center}.news-page-info{width:100%;text-align:center}}

/* Center News & Activities pagination controls */
.news-pagination-wrap{width:100%;}
.news-pagination{justify-content:center!important;}
#newsPageButtons{justify-content:center;}
@media(max-width:575px){.news-pagination{flex-wrap:wrap}.news-pagination .btn{min-width:86px}}

/* =========================================================
   Modern Homepage & Menu Upgrade - Dr.Ket IADP CMS
   ========================================================= */
body{background:linear-gradient(180deg,#f8fafc 0%,#eef7fb 42%,#ffffff 100%)}
.navbar{min-height:76px;box-shadow:0 14px 34px rgba(15,23,42,.06)}
.navbar .container{background:rgba(255,255,255,.72);border:1px solid rgba(226,232,240,.65);border-radius:28px;padding:.45rem 1rem;box-shadow:0 12px 36px rgba(15,23,42,.06)}
.navbar-nav{align-items:center;gap:4px}.nav-link{border-radius:999px;padding:.62rem .88rem!important;transition:.22s ease}.nav-link:hover,.nav-link:focus{background:#ecfeff;color:#0f766e!important;transform:translateY(-1px)}
.navbar .dropdown-menu{border:1px solid rgba(14,165,233,.16);border-radius:22px;box-shadow:0 24px 70px rgba(15,23,42,.16);min-width:245px;background:rgba(255,255,255,.98)}
.navbar .dropdown-item{display:flex;align-items:center;gap:10px}.navbar .dropdown-item:before{content:"";width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,#0f766e,#0ea5e9);opacity:.55}.navbar .dropdown-item:hover:before{opacity:1}
.logo-badge{box-shadow:inset 0 0 0 1px rgba(14,165,233,.12),0 14px 28px rgba(15,23,42,.08)}
.hero{min-height:720px;background:linear-gradient(135deg,#063b4a 0%,#0f766e 38%,#0ea5e9 72%,#4f46e5 100%)}
.hero:before{background:radial-gradient(circle at 14% 18%,rgba(255,255,255,.28),transparent 24%),radial-gradient(circle at 82% 12%,rgba(255,255,255,.18),transparent 24%),radial-gradient(circle at 58% 78%,rgba(245,158,11,.26),transparent 25%)}
.hero-title{letter-spacing:-.6px}.hero .badge{box-shadow:0 12px 28px rgba(15,23,42,.12)}.hero-sub{max-width:720px}.hero-mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:620px}.hero-mini-stats>div{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);border-radius:22px;padding:14px 16px;backdrop-filter:blur(12px)}.hero-mini-stats strong{display:block;font-size:1.55rem;line-height:1;color:#fff}.hero-mini-stats span{font-size:.9rem;color:rgba(255,255,255,.78)}
.carousel-card{transform:rotate(1.2deg);transition:.28s}.carousel-card:hover{transform:rotate(0) translateY(-4px)}.carousel-card img{box-shadow:0 20px 60px rgba(15,23,42,.25)}
.section-title{letter-spacing:-.35px}.section-kicker{display:inline-flex;align-items:center;gap:8px}.section-kicker:before{content:"";width:34px;height:3px;border-radius:999px;background:linear-gradient(135deg,#0f766e,#0ea5e9)}
.quick-modules-section{position:relative;margin-top:-70px;z-index:4}.quick-modules-section .container{background:rgba(255,255,255,.94);border:1px solid rgba(226,232,240,.75);border-radius:34px;padding:34px;box-shadow:0 30px 90px rgba(15,23,42,.12);backdrop-filter:blur(16px)}
.module-card{position:relative;display:flex;align-items:center;gap:16px;min-height:126px;padding:22px;border-radius:28px;text-decoration:none;color:#0f172a;overflow:hidden;border:1px solid rgba(226,232,240,.8);background:#fff;box-shadow:0 16px 42px rgba(15,23,42,.07);transition:.28s ease}.module-card:before{content:"";position:absolute;right:-44px;top:-52px;width:150px;height:150px;border-radius:999px;background:rgba(14,165,233,.12);transition:.28s}.module-card:hover{transform:translateY(-8px);color:#0f172a;box-shadow:0 30px 80px rgba(15,23,42,.14);border-color:rgba(14,165,233,.35)}.module-card:hover:before{transform:scale(1.22)}.module-icon{position:relative;z-index:1;flex:0 0 auto;width:68px;height:68px;border-radius:24px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:2rem;background:linear-gradient(135deg,#0f766e,#0ea5e9);box-shadow:0 16px 34px rgba(14,165,233,.24)}.module-content{position:relative;z-index:1;display:block}.module-content strong{display:block;font-size:1.14rem;margin-bottom:5px}.module-content small{color:#64748b}.module-arrow{position:absolute;right:20px;bottom:18px;color:#94a3b8;transition:.22s}.module-card:hover .module-arrow{right:16px;bottom:22px;color:#0f766e}.module-card-b .module-icon{background:linear-gradient(135deg,#0891b2,#2563eb)}.module-card-c .module-icon{background:linear-gradient(135deg,#7c3aed,#0ea5e9)}.module-card-d .module-icon{background:linear-gradient(135deg,#f59e0b,#0f766e)}.module-card-e .module-icon{background:linear-gradient(135deg,#10b981,#6366f1)}.module-card-f .module-icon{background:linear-gradient(135deg,#ef4444,#f59e0b)}
.journal-card,.news-card,.article-card,.team-card,.contact-card,.map-card{border-radius:30px;border:1px solid rgba(226,232,240,.9);box-shadow:0 18px 50px rgba(15,23,42,.08)}.journal-card{position:relative}.journal-card:after{content:"";position:absolute;right:-30px;bottom:-44px;width:125px;height:125px;border-radius:999px;background:linear-gradient(135deg,rgba(15,118,110,.11),rgba(14,165,233,.08))}.journal-card>*{position:relative;z-index:1}.journal-icon{box-shadow:0 16px 36px rgba(14,165,233,.16)}
.news-activity-card{display:flex;flex-direction:column}.news-activity-card .p-4{display:flex;flex-direction:column;flex:1}.news-summary{min-height:54px}.news-card .btn-main{align-self:flex-start;margin-top:auto}.news-img{height:250px;transition:.35s}.news-card:hover .news-img{transform:scale(1.04)}
.article-card{background:rgba(255,255,255,.96)}.article-table thead th{background:#f1f8fb;border:0;padding:18px 14px}.article-table tbody td{padding:18px 14px}.article-rank{border-radius:18px;box-shadow:0 10px 24px rgba(15,118,110,.12)}
.tci-strip{background:linear-gradient(180deg,#ffffff 0%,#f0fdfa 100%)}.banner-item{min-height:86px}.contact-section{background:radial-gradient(circle at 15% 8%,rgba(14,165,233,.12),transparent 28%),linear-gradient(180deg,#f8fafc 0%,#fff 100%)}
.footer{background:radial-gradient(circle at 12% 0%,rgba(14,165,233,.18),transparent 26%),linear-gradient(135deg,#061826 0%,#0f172a 72%,#111827 100%)}.stat-card{transition:.22s}.stat-card:hover{transform:translateY(-4px);background:rgba(255,255,255,.12)}
.admin-sidebar{background:linear-gradient(180deg,#071426 0%,#0f172a 55%,#111827 100%);box-shadow:12px 0 40px rgba(15,23,42,.14)}.admin-sidebar h4{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);border-radius:22px;padding:16px}.admin-sidebar a{display:flex;align-items:center;gap:10px;border:1px solid transparent;transition:.18s}.admin-sidebar a:hover,.admin-sidebar a.active{background:rgba(14,165,233,.16);border-color:rgba(125,211,252,.16);transform:translateX(3px)}.admin-card{border-radius:28px;border:1px solid rgba(226,232,240,.9);box-shadow:0 18px 50px rgba(15,23,42,.08)}
@media(max-width:991px){.navbar .container{border-radius:0;background:rgba(255,255,255,.96)}.quick-modules-section{margin-top:0}.quick-modules-section .container{border-radius:0;padding:26px 16px}.hero-mini-stats{grid-template-columns:1fr}.hero{min-height:auto}.carousel-card{transform:none}}
@media(max-width:575px){.module-card{align-items:flex-start}.module-icon{width:58px;height:58px;border-radius:20px}.hero-title{font-size:2rem}.section-title{font-size:1.6rem}.news-img{height:210px}}

/* Beautiful smooth Back to Top button */
.back-to-top-btn{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:1090;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:10px 18px 10px 12px;
  border:0;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#0f766e 0%,#0ea5e9 58%,#6366f1 100%);
  box-shadow:0 18px 45px rgba(14,165,233,.30),0 8px 18px rgba(15,23,42,.12);
  font-family:'Kanit','Sarabun',sans-serif;
  font-weight:700;
  letter-spacing:.1px;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(18px) scale(.94);
  transition:opacity .28s ease, visibility .28s ease, transform .28s ease, box-shadow .28s ease, filter .28s ease;
}
.back-to-top-btn.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
}
.back-to-top-btn:hover,
.back-to-top-btn:focus{
  color:#fff;
  filter:brightness(1.04);
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 24px 58px rgba(14,165,233,.38),0 12px 26px rgba(15,23,42,.16);
  outline:none;
}
.back-to-top-btn:active{transform:translateY(-1px) scale(.98)}
.back-to-top-icon{
  width:30px;
  height:30px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.20);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
  font-size:1.35rem;
  line-height:1;
}
.back-to-top-text{white-space:nowrap}
@media(max-width:575px){
  .back-to-top-btn{right:14px;bottom:14px;min-height:44px;padding:9px 14px 9px 10px;font-size:.92rem}
  .back-to-top-icon{width:28px;height:28px;font-size:1.2rem}
}
@media(prefers-reduced-motion:reduce){
  .back-to-top-btn{transition:none}
  html:focus-within{scroll-behavior:auto}
}

/* Top menu admin login button */
.navbar .nav-admin-login{
  margin-left:4px;
  color:#fff!important;
  background:linear-gradient(135deg,#0f766e 0%,#0ea5e9 58%,#4f46e5 100%);
  box-shadow:0 12px 30px rgba(14,165,233,.25);
  font-weight:800;
}
.navbar .nav-admin-login:hover,.navbar .nav-admin-login:focus{
  color:#fff!important;
  background:linear-gradient(135deg,#0f766e 0%,#0284c7 54%,#4338ca 100%);
  box-shadow:0 18px 44px rgba(14,165,233,.34);
  transform:translateY(-2px);
}
.navbar .nav-admin-login i{margin-right:3px}
@media(max-width:991px){.navbar .nav-admin-login{display:inline-flex;margin-top:6px}}

/* Hero title readable width fix */
@media (min-width:1200px){
  .hero .row > .col-lg-6:first-child{flex:0 0 52%;max-width:52%;}
  .hero .row > .col-lg-6:last-child{flex:0 0 48%;max-width:48%;}
}
@media (max-width:575px){
  .hero-title{font-size:1.92rem;line-height:1.28;}
  .hero-sub{font-size:1rem;}
}

/* =========================================================
   Mekong River / Naga / Isan Culture Background Theme
   ฝังภาพพื้นหลังแม่น้ำโขง-พญานาค-วัฒนธรรมอีสาน ทั้งระบบ
   ========================================================= */
:root{
  --mekong-bg:url('../img/backgrounds/mekong-naga-isaan-bg.png');
  --mekong-deep:#064e4a;
  --mekong-teal:#0f766e;
  --mekong-blue:#0ea5e9;
  --naga-gold:#d6a441;
  --isan-cream:#fff7df;
}
html{scroll-behavior:smooth;}
body{
  background-image:
    linear-gradient(180deg,rgba(255,255,255,.72) 0%,rgba(240,253,250,.86) 36%,rgba(248,250,252,.94) 72%,rgba(255,255,255,.98) 100%),
    var(--mekong-bg)!important;
  background-size:cover!important;
  background-position:center top!important;
  background-attachment:fixed!important;
  background-repeat:no-repeat!important;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(circle at 14% 14%,rgba(214,164,65,.16),transparent 26%),
    radial-gradient(circle at 86% 18%,rgba(14,165,233,.12),transparent 24%),
    linear-gradient(90deg,rgba(15,118,110,.08),transparent 40%,rgba(214,164,65,.08));
}
.navbar .container,
.quick-modules-section .container,
.journal-card,
.news-card,
.article-card,
.team-card,
.contact-card,
.map-card,
.admin-card,
.dash-stat-card,
.visit-mini-card,
.datepicker-box{
  background:rgba(255,255,255,.92)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.hero{
  background-image:
    linear-gradient(135deg,rgba(6,59,74,.94) 0%,rgba(15,118,110,.88) 42%,rgba(14,165,233,.78) 72%,rgba(79,70,229,.76) 100%),
    var(--mekong-bg)!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}
.hero:after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:220px;
  pointer-events:none;
  background:linear-gradient(180deg,transparent 0%,rgba(255,255,255,.22) 62%,rgba(248,250,252,.92) 100%);
  z-index:1;
}
.hero .container{z-index:3;}
.page-hero{
  background-image:
    linear-gradient(135deg,rgba(6,78,74,.92),rgba(14,165,233,.74)),
    var(--mekong-bg)!important;
  background-size:cover!important;
  background-position:center center!important;
}
section,
.contact-section,
.tci-strip{
  background-color:rgba(255,255,255,.64);
}
.quick-modules-section .container,
.journal-card,
.news-card,
.article-card,
.team-card,
.contact-card,
.map-card{
  border-color:rgba(214,164,65,.22)!important;
  box-shadow:0 22px 70px rgba(6,78,74,.10),0 10px 28px rgba(214,164,65,.08)!important;
}
.section-kicker,
.navbar-brand,
.nav-link:hover,
.nav-link.active{
  color:var(--mekong-teal)!important;
}
.btn-main,
.navbar .nav-admin-login,
.module-icon,
.back-to-top-btn{
  background:linear-gradient(135deg,var(--mekong-deep) 0%,var(--mekong-teal) 42%,var(--mekong-blue) 78%,#6366f1 100%)!important;
}
.journal-icon,
.contact-icon,
.article-rank{
  background:linear-gradient(135deg,rgba(214,164,65,.22),rgba(204,251,241,.92),rgba(219,234,254,.92))!important;
}
.footer{
  background-image:
    linear-gradient(135deg,rgba(3,24,38,.96) 0%,rgba(6,78,74,.92) 62%,rgba(15,23,42,.96) 100%),
    var(--mekong-bg)!important;
  background-size:cover!important;
  background-position:center bottom!important;
}
.admin-sidebar{
  background-image:
    linear-gradient(180deg,rgba(7,20,38,.96) 0%,rgba(15,23,42,.94) 56%,rgba(6,78,74,.90) 100%),
    var(--mekong-bg)!important;
  background-size:cover!important;
  background-position:left center!important;
}
body.min-vh-100.d-flex.align-items-center{
  background-image:
    linear-gradient(135deg,rgba(6,59,74,.88),rgba(15,118,110,.72),rgba(14,165,233,.74)),
    var(--mekong-bg)!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}
@media(max-width:991px){
  body{background-attachment:scroll!important;}
  .hero{background-position:center top!important;}
}

/* =========================================================
   Background clarity enhancement
   ปรับภาพพื้นหลังแม่น้ำโขง-พญานาค-วัฒนธรรมอีสานให้เห็นชัดขึ้น
   ========================================================= */
body{
  background-image:
    linear-gradient(180deg,rgba(255,255,255,.34) 0%,rgba(240,253,250,.48) 34%,rgba(248,250,252,.68) 72%,rgba(255,255,255,.82) 100%),
    var(--mekong-bg)!important;
  background-size:cover!important;
  background-position:center top!important;
  background-attachment:fixed!important;
}
body:before{
  opacity:.62;
  background:
    radial-gradient(circle at 12% 15%,rgba(214,164,65,.12),transparent 24%),
    radial-gradient(circle at 88% 18%,rgba(14,165,233,.10),transparent 22%),
    linear-gradient(90deg,rgba(15,118,110,.04),transparent 44%,rgba(214,164,65,.04));
}
section,
.contact-section,
.tci-strip{
  background-color:rgba(255,255,255,.42)!important;
}
.quick-modules-section .container,
.navbar .container,
.journal-card,
.news-card,
.article-card,
.team-card,
.contact-card,
.map-card,
.admin-card,
.dash-stat-card,
.visit-mini-card,
.datepicker-box{
  background:rgba(255,255,255,.78)!important;
  backdrop-filter:blur(8px) saturate(1.12);
  -webkit-backdrop-filter:blur(8px) saturate(1.12);
  border-color:rgba(214,164,65,.32)!important;
}
.hero{
  background-image:
    linear-gradient(135deg,rgba(4,45,52,.78) 0%,rgba(15,118,110,.64) 38%,rgba(14,165,233,.50) 70%,rgba(79,70,229,.46) 100%),
    var(--mekong-bg)!important;
  background-size:cover!important;
  background-position:center center!important;
}
.hero:before{
  opacity:.42!important;
}
.hero:after{
  height:170px;
  background:linear-gradient(180deg,transparent 0%,rgba(255,255,255,.10) 54%,rgba(248,250,252,.58) 100%)!important;
}
.glass,
.carousel-card{
  background:rgba(255,255,255,.12)!important;
  backdrop-filter:blur(7px) saturate(1.12);
  -webkit-backdrop-filter:blur(7px) saturate(1.12);
  border-color:rgba(255,255,255,.28)!important;
}
.page-hero{
  background-image:
    linear-gradient(135deg,rgba(6,78,74,.70),rgba(14,165,233,.46)),
    var(--mekong-bg)!important;
}
.footer{
  background-image:
    linear-gradient(135deg,rgba(3,24,38,.84) 0%,rgba(6,78,74,.72) 62%,rgba(15,23,42,.86) 100%),
    var(--mekong-bg)!important;
}
.admin-sidebar{
  background-image:
    linear-gradient(180deg,rgba(7,20,38,.88) 0%,rgba(15,23,42,.82) 56%,rgba(6,78,74,.76) 100%),
    var(--mekong-bg)!important;
}
body.min-vh-100.d-flex.align-items-center{
  background-image:
    linear-gradient(135deg,rgba(6,59,74,.66),rgba(15,118,110,.48),rgba(14,165,233,.42)),
    var(--mekong-bg)!important;
}
@media(max-width:991px){
  body{background-image:linear-gradient(180deg,rgba(255,255,255,.48),rgba(255,255,255,.78)),var(--mekong-bg)!important;}
  .hero{background-position:center top!important;}
}


/* =========================================================
   Background clarity enhancement v2
   ปรับภาพพื้นหลังให้ชัดขึ้นอีกครั้ง
   ========================================================= */
body{
  background-image:
    linear-gradient(180deg,rgba(255,255,255,.18) 0%,rgba(240,253,250,.28) 30%,rgba(248,250,252,.44) 68%,rgba(255,255,255,.58) 100%),
    var(--mekong-bg)!important;
  background-size:cover!important;
  background-position:center top!important;
  background-attachment:fixed!important;
}
body:before{
  opacity:.82;
  background:
    radial-gradient(circle at 9% 14%,rgba(214,164,65,.15),transparent 21%),
    radial-gradient(circle at 90% 16%,rgba(14,165,233,.14),transparent 19%),
    linear-gradient(90deg,rgba(15,118,110,.03),transparent 48%,rgba(214,164,65,.05));
}
.navbar{background:rgba(255,255,255,.80)!important;backdrop-filter:blur(10px) saturate(1.08);}
.navbar .container,
.quick-modules-section .container,
.journal-card,
.news-card,
.article-card,
.team-card,
.contact-card,
.map-card,
.admin-card,
.dash-stat-card,
.visit-mini-card,
.datepicker-box{
  background:rgba(255,255,255,.68)!important;
  backdrop-filter:blur(5px) saturate(1.08);
  -webkit-backdrop-filter:blur(5px) saturate(1.08);
  border-color:rgba(214,164,65,.38)!important;
}
section,
.contact-section,
.tci-strip{
  background-color:rgba(255,255,255,.24)!important;
}
.hero{
  background-image:
    linear-gradient(135deg,rgba(3,37,44,.60) 0%,rgba(15,118,110,.44) 38%,rgba(14,165,233,.30) 70%,rgba(79,70,229,.28) 100%),
    var(--mekong-bg)!important;
  background-size:cover!important;
  background-position:center center!important;
}
.hero:before{opacity:.28!important;}
.hero:after{
  height:130px;
  background:linear-gradient(180deg,transparent 0%,rgba(255,255,255,.05) 54%,rgba(248,250,252,.34) 100%)!important;
}
.glass,
.carousel-card{
  background:rgba(255,255,255,.08)!important;
  backdrop-filter:blur(4px) saturate(1.08);
  -webkit-backdrop-filter:blur(4px) saturate(1.08);
  border-color:rgba(255,255,255,.22)!important;
}
.page-hero{
  background-image:
    linear-gradient(135deg,rgba(6,78,74,.54),rgba(14,165,233,.26)),
    var(--mekong-bg)!important;
}
.footer{
  background-image:
    linear-gradient(135deg,rgba(3,24,38,.74) 0%,rgba(6,78,74,.60) 62%,rgba(15,23,42,.76) 100%),
    var(--mekong-bg)!important;
}
.admin-sidebar{
  background-image:
    linear-gradient(180deg,rgba(7,20,38,.82) 0%,rgba(15,23,42,.74) 56%,rgba(6,78,74,.64) 100%),
    var(--mekong-bg)!important;
}
body.min-vh-100.d-flex.align-items-center{
  background-image:
    linear-gradient(135deg,rgba(6,59,74,.52),rgba(15,118,110,.34),rgba(14,165,233,.28)),
    var(--mekong-bg)!important;
}
@media(max-width:991px){
  body{background-image:linear-gradient(180deg,rgba(255,255,255,.30),rgba(255,255,255,.56)),var(--mekong-bg)!important;}
  .navbar{background:rgba(255,255,255,.88)!important;}
}

/* =========================================================
   Section spacing refinement
   ปรับช่องไฟระยะห่างระหว่างโมดูลบริการวิชาการกับหัวข้อวารสาร
   ========================================================= */
.quick-modules-section{
  padding-bottom:1.25rem!important;
}
#journals{
  padding-top:1.25rem!important;
}
#journals > .container{
  padding-top:.75rem!important;
}
#journals .text-center.mb-5{
  margin-bottom:2rem!important;
}
@media(max-width:991px){
  .quick-modules-section{padding-bottom:1rem!important;}
  #journals{padding-top:1rem!important;}
  #journals > .container{padding-top:.5rem!important;}
}

/* =========================================================
   Main page topic size refinement
   ลดขนาดหัวข้อใหญ่ของทุกโมดูลหน้าแรกให้พอดี สวยงาม อ่านง่าย
   ========================================================= */
#journals .section-title,
#team .section-title,
#news .section-title,
#articles .section-title,
#tci .section-title,
.quick-modules-section .section-title{
  font-size:clamp(1.55rem,2.15vw,2.08rem)!important;
  line-height:1.28!important;
  letter-spacing:-.2px!important;
  font-weight:800!important;
  text-wrap:balance;
}
#journals .section-kicker,
#team .section-kicker,
#news .section-kicker,
#articles .section-kicker,
#tci .section-kicker,
.quick-modules-section .section-kicker{
  font-size:clamp(.86rem,1vw,.98rem)!important;
  letter-spacing:.45px!important;
  margin-bottom:.35rem!important;
}
#team .section-title{
  max-width:980px;
}
#articles .section-title{
  max-width:930px;
}
#journals .section-title,
#news .section-title,
#tci .section-title{
  max-width:760px;
}
@media(max-width:991px){
  #journals .section-title,
  #team .section-title,
  #news .section-title,
  #articles .section-title,
  #tci .section-title,
  .quick-modules-section .section-title{
    font-size:clamp(1.35rem,4.4vw,1.75rem)!important;
    line-height:1.32!important;
  }
}
@media(max-width:575px){
  #journals .section-title,
  #team .section-title,
  #news .section-title,
  #articles .section-title,
  #tci .section-title,
  .quick-modules-section .section-title{
    font-size:1.28rem!important;
    line-height:1.36!important;
  }
  #journals .section-kicker,
  #team .section-kicker,
  #news .section-kicker,
  #articles .section-kicker,
  #tci .section-kicker,
  .quick-modules-section .section-kicker{
    font-size:.78rem!important;
  }
}


/* =========================================================
   Main page topic size refinement v2
   ลดขนาดหัวข้อใหญ่ทุกโมดูลหน้าแรกลงอีกครั้งตามภาพตัวอย่าง
   ========================================================= */
#journals .section-title,
#team .section-title,
#news .section-title,
#articles .section-title,
#tci .section-title,
.quick-modules-section .section-title{
  font-size:clamp(1.28rem,1.55vw,1.72rem)!important;
  line-height:1.32!important;
  letter-spacing:-.08px!important;
  font-weight:800!important;
  max-width:820px!important;
  text-wrap:balance;
}
#team .section-title,
#articles .section-title{
  font-size:clamp(1.22rem,1.48vw,1.62rem)!important;
  max-width:980px!important;
}
#news .section-title,
#journals .section-title,
#tci .section-title,
.quick-modules-section .section-title{
  max-width:760px!important;
}
#journals .section-kicker,
#team .section-kicker,
#news .section-kicker,
#articles .section-kicker,
#tci .section-kicker,
.quick-modules-section .section-kicker{
  font-size:clamp(.76rem,.86vw,.90rem)!important;
  letter-spacing:.65px!important;
  margin-bottom:.22rem!important;
}
#articles .section-title br{
  display:none!important;
}
@media(max-width:991px){
  #journals .section-title,
  #team .section-title,
  #news .section-title,
  #articles .section-title,
  #tci .section-title,
  .quick-modules-section .section-title{
    font-size:clamp(1.16rem,3.15vw,1.45rem)!important;
    line-height:1.34!important;
    max-width:100%!important;
  }
}
@media(max-width:575px){
  #journals .section-title,
  #team .section-title,
  #news .section-title,
  #articles .section-title,
  #tci .section-title,
  .quick-modules-section .section-title{
    font-size:1.12rem!important;
    line-height:1.38!important;
  }
  #journals .section-kicker,
  #team .section-kicker,
  #news .section-kicker,
  #articles .section-kicker,
  #tci .section-kicker,
  .quick-modules-section .section-kicker{
    font-size:.72rem!important;
  }
}


/* Footer developer credit align left */
.footer-credit-left{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:center;
  gap:10px 22px;
  text-align:left;
}
.footer-credit-left span{
  display:inline-flex;
  align-items:center;
}
@media(max-width:575px){
  .footer-credit-left{flex-direction:column;align-items:flex-start;gap:6px;}
}


/* Footer link management module */
.footer-social-links{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.footer-social-link{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;text-decoration:none;color:#e2e8f0;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);box-shadow:0 10px 25px rgba(0,0,0,.10);transition:.22s ease;font-weight:600}
.footer-social-link i{font-size:1.12rem;color:#f8d37b}.footer-social-link:hover{color:#fff;background:rgba(255,255,255,.18);transform:translateY(-3px);border-color:rgba(248,211,123,.36)}
@media(max-width:575px){.footer-social-link{width:100%;justify-content:center}}


/* Footer floating actions: admin button moved from top menu to footer area */
.footer-floating-actions{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:1090;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.footer-floating-actions .back-to-top-btn{
  position:static!important;
  right:auto!important;
  bottom:auto!important;
  z-index:auto;
}
.footer-admin-btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:48px;
  padding:10px 18px 10px 12px;
  border-radius:999px;
  color:#fff!important;
  text-decoration:none;
  background:linear-gradient(135deg,#064e4a 0%,#0f766e 45%,#0ea5e9 100%);
  box-shadow:0 18px 45px rgba(6,78,74,.28),0 8px 18px rgba(15,23,42,.12);
  border:1px solid rgba(255,255,255,.18);
  font-family:'Kanit','Sarabun',sans-serif;
  font-weight:800;
  letter-spacing:.05px;
  transition:transform .28s ease, box-shadow .28s ease, filter .28s ease;
}
.footer-admin-btn:hover,.footer-admin-btn:focus{
  color:#fff!important;
  filter:brightness(1.04);
  transform:translateY(-4px);
  box-shadow:0 24px 58px rgba(6,78,74,.36),0 12px 26px rgba(15,23,42,.16);
  outline:none;
}
.footer-admin-icon{
  width:30px;
  height:30px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.20);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
  font-size:1.05rem;
}
.footer-admin-text{white-space:nowrap}
@media(max-width:575px){
  .footer-floating-actions{right:14px;bottom:14px;gap:8px;max-width:calc(100% - 28px)}
  .footer-admin-btn{min-height:44px;padding:9px 13px 9px 10px;font-size:.9rem}
  .footer-admin-icon{width:28px;height:28px;font-size:1rem}
  .footer-admin-text{display:none}
}


/* =========================================================
   Team member image size refinement
   ปรับภาพบุคลากรให้เล็กลงและเห็นชัดเจนครึ่งตัว
   ========================================================= */
.team-photo-wrap{
  height:190px!important;
  padding:16px 16px 0!important;
  align-items:flex-start!important;
  overflow:hidden;
}
img.team-photo{
  width:78%!important;
  max-width:240px!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center top!important;
  border-radius:18px 18px 0 0!important;
  box-shadow:0 14px 34px rgba(15,23,42,.12);
  background:#fff;
}
.team-photo-wrap .team-placeholder{
  width:78%;
  max-width:240px;
  height:100%;
  border-radius:18px 18px 0 0;
  background:linear-gradient(135deg,#ecfeff,#eef2ff);
}
@media(max-width:991px){
  .team-photo-wrap{height:180px!important;}
  img.team-photo,.team-photo-wrap .team-placeholder{width:82%!important;max-width:220px!important;}
}
@media(max-width:575px){
  .team-photo-wrap{height:170px!important;padding:14px 14px 0!important;}
  img.team-photo,.team-photo-wrap .team-placeholder{width:84%!important;max-width:200px!important;}
}


/* =========================================================
   Team member image style v2 - circular portrait like sample
   ปรับภาพบุคลากรเป็นทรงวงกลมตามภาพตัวอย่าง
   ========================================================= */
.team-card{
  overflow:hidden;
}
.team-photo-wrap{
  height:220px!important;
  padding:22px 18px 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%)!important;
}
img.team-photo{
  width:170px!important;
  height:170px!important;
  max-width:none!important;
  border-radius:50%!important;
  object-fit:cover!important;
  object-position:center 18%!important;
  border:6px solid #e5e7eb!important;
  box-shadow:0 10px 28px rgba(15,23,42,.10)!important;
  background:#fff!important;
}
.team-photo-wrap .team-placeholder{
  width:170px!important;
  height:170px!important;
  max-width:none!important;
  border-radius:50%!important;
  border:6px solid #e5e7eb!important;
  background:linear-gradient(135deg,#ecfeff,#eef2ff)!important;
  box-shadow:0 10px 28px rgba(15,23,42,.08)!important;
}
@media(max-width:991px){
  .team-photo-wrap{height:205px!important;padding:20px 16px 8px!important;}
  img.team-photo,.team-photo-wrap .team-placeholder{width:158px!important;height:158px!important;}
}
@media(max-width:575px){
  .team-photo-wrap{height:195px!important;padding:18px 14px 8px!important;}
  img.team-photo,.team-photo-wrap .team-placeholder{width:148px!important;height:148px!important;}
}


/* =========================================================
   Team member text + circular portrait final fix
   แก้ข้อความอักขระเพี้ยน และปรับภาพบุคลากรเป็นทรงวงกลม
   ========================================================= */
.team-card .p-4{padding-top:1.25rem!important;}
.team-photo-wrap{
  height:230px!important;
  padding:20px 18px 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%)!important;
}
.team-photo-circle{
  width:176px;
  height:176px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.team-photo-wrap img.team-photo,
.team-photo-circle .team-photo{
  width:176px!important;
  height:176px!important;
  max-width:none!important;
  border-radius:50%!important;
  object-fit:cover!important;
  object-position:center 18%!important;
  border:6px solid #dbe4ea!important;
  box-shadow:0 10px 28px rgba(15,23,42,.10)!important;
  background:#fff!important;
}
.team-photo-circle .team-placeholder{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#0f766e;
  font-size:4.2rem;
  background:linear-gradient(135deg,#ecfeff,#eef2ff)!important;
}
@media(max-width:991px){
  .team-photo-wrap{height:214px!important;padding:18px 16px 8px!important;}
  .team-photo-circle,
  .team-photo-wrap img.team-photo,
  .team-photo-circle .team-photo{width:160px!important;height:160px!important;}
}
@media(max-width:575px){
  .team-photo-wrap{height:202px!important;padding:16px 14px 8px!important;}
  .team-photo-circle,
  .team-photo-wrap img.team-photo,
  .team-photo-circle .team-photo{width:148px!important;height:148px!important;}
}


/* =========================================================
   Team portrait refinement v3
   ปรับภาพบุคลากรในการ์ดให้เล็กลง เห็นครึ่งตัวตั้งแต่ศีรษะถึงหน้าอก และเป็นทรงวงกลม
   ========================================================= */
.team-photo-wrap{
  height:208px !important;
  padding:18px 16px 6px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%) !important;
}
.team-photo-circle{
  width:148px !important;
  height:148px !important;
  border-radius:50% !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#ffffff !important;
}
.team-photo-wrap img.team-photo,
.team-photo-circle .team-photo,
.team-photo-circle .team-placeholder{
  width:148px !important;
  height:148px !important;
  max-width:none !important;
  border-radius:50% !important;
}
.team-photo-wrap img.team-photo,
.team-photo-circle .team-photo{
  object-fit:cover !important;
  object-position:center 10% !important;
  border:5px solid #dbe4ea !important;
  box-shadow:0 8px 22px rgba(15,23,42,.10) !important;
  background:#fff !important;
}
.team-photo-circle .team-placeholder{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:3.8rem !important;
  color:#0f766e !important;
  border:5px solid #dbe4ea !important;
  box-shadow:0 8px 22px rgba(15,23,42,.08) !important;
  background:linear-gradient(135deg,#ecfeff,#eef2ff) !important;
}
@media (max-width: 991px){
  .team-photo-wrap{height:196px !important;padding:16px 14px 6px !important;}
  .team-photo-circle,
  .team-photo-wrap img.team-photo,
  .team-photo-circle .team-photo,
  .team-photo-circle .team-placeholder{
    width:138px !important;
    height:138px !important;
  }
}
@media (max-width: 575px){
  .team-photo-wrap{height:186px !important;padding:14px 12px 6px !important;}
  .team-photo-circle,
  .team-photo-wrap img.team-photo,
  .team-photo-circle .team-photo,
  .team-photo-circle .team-placeholder{
    width:128px !important;
    height:128px !important;
  }
}

/* News & Activities gallery 1-15 images */
.news-detail-cover{width:100%;max-height:480px;object-fit:cover;box-shadow:0 18px 48px rgba(15,23,42,.10)}
.news-detail-gallery .gallery-thumb{border:1px solid rgba(226,232,240,.9);box-shadow:0 12px 30px rgba(15,23,42,.08);background:#fff;transition:.25s ease}
.news-detail-gallery .gallery-thumb:hover{transform:translateY(-4px);box-shadow:0 20px 48px rgba(15,23,42,.14)}
.news-detail-gallery .gallery-thumb img{height:180px;object-fit:cover;display:block;transition:.3s ease}
.news-detail-gallery .gallery-thumb:hover img{transform:scale(1.04)}
@media(max-width:575px){.news-detail-gallery .gallery-thumb img{height:130px}}

/* =========================================================
   Final UI refresh + Loading Spinner + Thai BE DatePicker
   ========================================================= */
.home-modern-lift{position:relative;overflow:hidden;border-radius:34px;background:rgba(255,255,255,.74);border:1px solid rgba(214,164,65,.32);box-shadow:0 28px 90px rgba(6,78,74,.12);backdrop-filter:blur(7px) saturate(1.08)}
.btn .spinner-border,.btn-main .spinner-border{vertical-align:-.12em}.datepicker-be{background-image:linear-gradient(90deg,rgba(15,118,110,.06),rgba(14,165,233,.04));border-color:rgba(15,118,110,.18)!important;font-weight:600}.admin-sidebar a[href="backups.php"]{background:rgba(245,158,11,.10);border-color:rgba(245,158,11,.18)}
.backup-card{background:rgba(255,255,255,.82);border:1px solid rgba(214,164,65,.34);border-radius:28px;box-shadow:0 18px 50px rgba(15,23,42,.08)}
.quick-modules-section .container{box-shadow:0 36px 110px rgba(6,78,74,.14),0 16px 40px rgba(214,164,65,.10)!important}.module-card{border-color:rgba(214,164,65,.28)!important}.module-card:hover{transform:translateY(-9px) scale(1.01)}


/* =========================================================
   Article view counter badges
   ระบบแสดงจำนวนการอ่านบทความด้วยไอคอนดวงตา
   ========================================================= */
.article-view-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin:2px 4px 2px 0;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(236,254,255,.92);
  border:1px solid rgba(125,211,252,.65);
  color:#0f766e;
  font-size:.84rem;
  font-weight:700;
  white-space:nowrap;
}
.article-view-pill i{font-size:.95rem;color:#0f766e;}
.article-view-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(120px,1fr));
  gap:12px;
  margin:22px 0;
}
.article-view-stats span{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:108px;
  border-radius:24px;
  background:linear-gradient(135deg,rgba(236,254,255,.92),rgba(255,255,255,.74));
  border:1px solid rgba(214,164,65,.28);
  box-shadow:0 14px 35px rgba(15,23,42,.08);
}
.article-view-stats i{font-size:1.7rem;color:#0f766e;margin-bottom:4px;}
.article-view-stats strong{font-size:1.9rem;color:#0f172a;line-height:1;}
.article-view-stats small{color:#64748b;font-weight:700;margin-top:4px;}
.article-detail-title{font-size:clamp(1.55rem,2.5vw,2.35rem);font-weight:800;line-height:1.28;color:#0f172a;}
@media(max-width:767px){
  .article-view-stats{grid-template-columns:repeat(2,minmax(120px,1fr));}
  .article-view-pill{font-size:.78rem;padding:4px 8px;}
}


/* =========================================================
   Read meta toolbar: Thai date-time, views and print button
   แถบแสดงวันเดือนปีเวลา ยอดอ่าน และปุ่มพิมพ์หน้านี้
   ========================================================= */
.read-meta-toolbar{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin:12px 0 18px;
}
.read-meta-item,
.read-meta-pill,
.read-meta-print{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  padding:8px 14px;
  font-weight:600;
  line-height:1.2;
  background:rgba(248,250,252,.92);
  border:1px solid rgba(226,232,240,.95);
  color:#334155;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}
.read-meta-item i{color:#0f766e;}
.read-meta-pill{
  color:#334155;
  background:linear-gradient(180deg,#f8fafc,#eef6ff);
}
.read-meta-pill i{color:#2563eb;}
.read-meta-print{
  color:#2563eb;
  background:#fff;
  border:1px solid #3b82f6;
  cursor:pointer;
  transition:.22s ease;
}
.read-meta-print:hover{
  color:#fff;
  background:linear-gradient(135deg,#0f766e,#0ea5e9,#4f46e5);
  border-color:transparent;
  transform:translateY(-2px);
  box-shadow:0 14px 32px rgba(14,165,233,.20);
}
@media(max-width:575px){
  .read-meta-toolbar{gap:8px;}
  .read-meta-item,.read-meta-pill,.read-meta-print{width:100%;justify-content:center;font-size:.92rem;}
}
@media print{
  .navbar,.footer,.back-to-top-btn,.floating-admin-login,.read-meta-print,.btn{display:none!important;}
  body{background:#fff!important;color:#000!important;}
  .article-card{box-shadow:none!important;border:0!important;background:#fff!important;}
  .read-meta-toolbar{border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:8px 0;}
  .read-meta-item,.read-meta-pill{box-shadow:none!important;background:#fff!important;border:0!important;padding:4px 8px;}
}


/* Web Language Switcher */
.lang-switcher .nav-link{
  border:1px solid rgba(15,118,110,.16);
  background:rgba(236,254,255,.72);
  border-radius:999px;
  padding:.55rem .85rem!important;
  font-weight:800;
  color:#0f766e!important;
}
.lang-switcher .dropdown-item.active,
.lang-switcher .dropdown-item:active{
  background:linear-gradient(135deg,#0f766e,#0ea5e9);
  color:#fff!important;
}
.lang-switcher .dropdown-menu{min-width:210px;}
.language-admin-badge{display:inline-flex;align-items:center;gap:8px;border-radius:999px;background:#ecfeff;border:1px solid #99f6e4;color:#0f766e;padding:8px 14px;font-weight:700;}

/* Multi-language switcher */
.lang-switcher .dropdown-menu{min-width:210px;}
.lang-switcher .dropdown-item{font-weight:600;}


/* Google Translate style Web Language Switcher */
.google-translate-hidden{position:absolute!important;left:-9999px!important;top:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;}
.google-lang-switcher .nav-link{font-weight:800;background:rgba(236,254,255,.9);border:1px solid rgba(153,246,228,.75);}
.google-lang-switcher .dropdown-menu{min-width:210px;}
.google-lang-switcher .dropdown-item{display:flex;align-items:center;gap:6px;font-weight:700;}
.google-lang-switcher .dropdown-item.active{background:linear-gradient(135deg,#0f766e,#0ea5e9);color:#fff;}
.skiptranslate, .goog-te-banner-frame{display:none!important;}
body{top:0!important;}
.goog-logo-link,.goog-te-gadget span{display:none!important;}
.goog-te-gadget{height:0!important;overflow:hidden!important;color:transparent!important;}


/* Document Download Center */
.download-card{
  display:flex;
  gap:18px;
  padding:24px;
  border-radius:28px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(214,164,65,.32);
  box-shadow:0 18px 50px rgba(15,23,42,.08);
  backdrop-filter:blur(8px) saturate(1.08);
  transition:.25s ease;
}
.download-card:hover{transform:translateY(-6px);box-shadow:0 28px 78px rgba(15,23,42,.14)}
.download-icon{
  width:64px;height:64px;border-radius:22px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:2rem;
  background:linear-gradient(135deg,#064e4a,#0f766e,#0ea5e9);
  box-shadow:0 14px 34px rgba(14,165,233,.22);
}
.download-meta{display:grid;gap:7px;color:#64748b;font-size:.94rem}
.download-meta span{display:flex;align-items:center;gap:7px}
.download-meta i{color:#0f766e}
@media(max-width:575px){.download-card{flex-direction:column}.download-icon{width:56px;height:56px;font-size:1.7rem}}
