/* ==========================================================================
   BCNR Minimal Sky-Blue Responsive Theme (Mobile-First)
   Primary Sky Blue: #2c93d4 | Soft Sky: #f0f9ff | Clean Minimalist UI
   ========================================================================== */

@font-face {
  font-family: 'Noto Sans Thai';
  src: url('../fonts/noto-sans-thai/NotoSansThai-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Thai';
  src: url('../fonts/noto-sans-thai/NotoSansThai-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Thai';
  src: url('../fonts/noto-sans-thai/NotoSansThai-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Thai';
  src: url('../fonts/noto-sans-thai/NotoSansThai-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Thai';
  src: url('../fonts/noto-sans-thai/NotoSansThai-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Thai';
  src: url('../fonts/noto-sans-thai/NotoSansThai-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bcnr-primary: #2c93d4;
  --bcnr-primary-dark: #1d6fa5;
  --bcnr-primary-light: #42a7ff;
  --bcnr-primary-soft: #f0f9ff;
  --bcnr-primary-border: #bae6fd;
  --bcnr-text: #1e293b;
  --bcnr-muted: #64748b;
  --bcnr-surface: #ffffff;
  --bcnr-surface-alt: #f8fafc;
  --bcnr-border: #e2e8f0;
  --bcnr-radius: 10px;
  --bcnr-shadow: 0 2px 12px rgba(44, 147, 212, 0.06);
  --bcnr-shadow-hover: 0 8px 24px rgba(44, 147, 212, 0.13);
  --font-main: 'Noto Sans Thai', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body,
h1, h2, h3, h4, h5, h6,
p, a, span, li, input, button, select, textarea,
.button, .rd-nav-link, .rd-dropdown-link, .rd-megamenu-title, .rd-megamenu-list-link {
  font-family: var(--font-main);
}

body {
  color: var(--bcnr-text);
  background-color: var(--bcnr-surface);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--bcnr-primary);
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--bcnr-primary-dark);
}

/* ==========================================================================
1. Top Utility Bar (Minimal Sky-Blue)
   ========================================================================== */
.bcnr-topbar {
  background-color: var(--bcnr-primary);
  color: #ffffff;
  padding: 6px 0;
  font-size: 0.85rem;
}

.bcnr-topbar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

@media (min-width: 992px) {
  .bcnr-topbar-wrap {
    flex-direction: row;
    justify-content: end;
  }
}

.bcnr-topbar-info {
  display: none;
}

@media (min-width: 992px) {
  .bcnr-topbar-info {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .bcnr-topbar-info a {
    color: #ffffff;
    text-decoration: none;
  }
}

.bcnr-topbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.bcnr-topbar-nav li {
  display: inline-flex;
  align-items: center;
}

.bcnr-topbar-nav li:not(:last-child)::after {
  content: "·";
  color: rgba(255, 255, 255, 0.55);
  margin-left: 6px;
}

.bcnr-topbar-nav a {
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.bcnr-topbar-nav a:hover,
.bcnr-topbar-nav li.active a {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ==========================================================================
2. Minimal Navbar & Hamburger Menu (Mobile + iPad < 1200px)
   ========================================================================== */
.rd-navbar-classic.rd-navbar-fixed .rd-navbar-panel {
  background: #ffffff;
  border-bottom: 1px solid var(--bcnr-border);
  box-shadow: none;
}

.rd-navbar-classic.rd-navbar-static {
  background: #ffffff;
  border-bottom: 1px solid var(--bcnr-border);
}

.rd-navbar-brand img {
  max-height: 46px;
  width: auto;
}

@media (min-width: 1200px) {
  .rd-navbar-brand img {
    max-height: 58px;
  }
  .rd-navbar-classic.rd-navbar-static .rd-nav-link {
    font-size: 15px;
    font-weight: bold;
    color: var(--bcnr-text);
  }
  .rd-navbar-classic.rd-navbar-static .rd-nav-item.active .rd-nav-link,
  .rd-navbar-classic.rd-navbar-static .rd-nav-link:hover {
    color: var(--bcnr-primary);
  }
}

/* Replace Legacy Font Icons in RD-Navbar with Font Awesome 6 */
/* .rd-navbar-search-toggle::before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
  content: "\f002" !important;
} */
/* .rd-navbar-search.active .rd-navbar-search-toggle::before {
  content: "\f00d" !important;
} */
.rd-search-form-submit::before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
  content: "\f002" !important;
}
.rd-navbar-share-icon::before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
  content: "\f0ac" !important;
}
/* .rd-navbar-submenu-toggle::before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
  content: "\f107" !important;
} */

/* ==========================================================================
3. Minimal Buttons & Filter Pills (Sky-Blue Theme)
   ========================================================================== */
.button-primary,
.button-primary:focus {
  background-color: var(--bcnr-primary) !important;
  border-color: var(--bcnr-primary) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 500;
  box-shadow: none !important;
}

.button-primary:hover,
.button-primary:active {
  background-color: var(--bcnr-primary-dark) !important;
  border-color: var(--bcnr-primary-dark) !important;
}

.isotope-filters-list {
  padding: 0.75rem;
}

.isotope-filters-list a {
  border-radius: 99px !important;
  padding: 6px 16px !important;
  margin: 0.25rem 0;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--bcnr-muted) !important;
  background-color: var(--bcnr-surface-alt);
  border: 1px solid var(--bcnr-border);
}

.isotope-filters-list a:hover,
.isotope-filters-list a.active {
  background-color: var(--bcnr-primary) !important;
  border-color: var(--bcnr-primary) !important;
  color: #ffffff !important;
}

/* ==========================================================================
4. Section Headers & Minimal Cards (Mobile-First)
   ========================================================================== */
.bcnr-sec-header {
  margin-bottom: 1.75rem;
}

.bcnr-sec-header h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
  font-weight: 600;
  color: var(--bcnr-text);
  margin-bottom: 0.35rem;
}

.bcnr-sec-header h2 i {
  color: var(--bcnr-primary);
  padding-right: 1rem;
}

.bcnr-sec-line {
  width: 44px;
  height: 3px;
  border-radius: 99px;
  background-color: var(--bcnr-primary);
  margin: 0.6rem auto 0.85rem;
}

.bcnr-sec-line.left {
  margin-left: 0;
}

.bcnr-card {
  background: var(--bcnr-surface);
  border: 1px solid var(--bcnr-border);
  border-radius: var(--bcnr-radius);
  box-shadow: var(--bcnr-shadow);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.bcnr-card:hover {
  transform: translateY(-3px);
  border-color: var(--bcnr-primary-border);
  box-shadow: var(--bcnr-shadow-hover);
}

.bcnr-card-body {
  padding: 1.25rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
5. Minimal EBSCO Search Widget (Mobile-First)
   ========================================================================== */
.ebsco-card {
  background-color: var(--bcnr-primary-soft);
  border: 1px solid var(--bcnr-primary-border);
  border-radius: var(--bcnr-radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 2rem;
}

.ebsco-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.ebsco-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bcnr-text);
  margin: 0;
}

.ebsco-card-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .ebsco-card-form {
    flex-direction: row;
  }
  .ebsco-card-form select {
    max-width: 155px;
  }
}

.ebsco-card-form select,
.ebsco-card-form input {
  height: 44px;
  border: 1px solid var(--bcnr-primary-border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 0.925rem;
  background: #ffffff;
  color: var(--bcnr-text);
}

.ebsco-card-form select:focus,
.ebsco-card-form input:focus {
  outline: none;
  border-color: var(--bcnr-primary);
}

.ebsco-card-form button {
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 8px;
  background: var(--bcnr-primary);
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.ebsco-card-form button:hover {
  background: var(--bcnr-primary-dark);
}

/* ==========================================================================
6. Minimal Slider Caption & Tabs Override
   ========================================================================== */
.swiper-slide-caption .title-slide {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--bcnr-text) !important;
  border-left: 4px solid var(--bcnr-primary);
  border-radius: 8px !important;
  padding: 12px 20px !important;
  font-weight: 600;
}

.tabs-line .nav-link.active,
.tabs-line .nav-link:hover {
  color: var(--bcnr-primary) !important;
}

.tabs-line .nav-link::after {
  background: var(--bcnr-primary) !important;
}

/* ==========================================================================
7. Responsive Embeds & Legacy Table Auto-Fix
   ========================================================================== */
.bcnr-embed-16x9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--bcnr-radius);
  overflow: hidden;
  border: 1px solid var(--bcnr-border);
}

.bcnr-embed-16x9 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bcnr-embed-pdf {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 460px;
  border-radius: var(--bcnr-radius);
  overflow: hidden;
  border: 1px solid var(--bcnr-border);
}

.bcnr-embed-pdf iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Make old static-page <table> layouts stack cleanly on Mobile/iPad */
@media (max-width: 767.98px) {
  .fr-view table,
  .section table:not(.table) {
    display: block;
    width: 100% !important;
  }
  .fr-view table tbody,
  .fr-view table tr,
  .section table:not(.table) tbody,
  .section table:not(.table) tr {
    display: block;
    width: 100% !important;
  }
  .fr-view table td,
  .section table:not(.table) td {
    display: block;
    width: 100% !important;
    margin-bottom: 12px;
  }
}

/* ==========================================================================
8. Minimal Sky-Blue Footer
   ========================================================================== */
.footer-classic .bcnr-footer-gradient {
  background: linear-gradient(180deg, var(--bcnr-primary-soft) 0%, #e0f2fe 100%);
  border-top: 1px solid var(--bcnr-primary-border);
  /* padding: 3rem 0 2rem; */
  color: var(--bcnr-text);
}

.footer-classic .bcnr-footer-gradient h3,
.footer-classic .bcnr-footer-gradient h6,
.footer-classic .bcnr-footer-gradient .contact-classic-title {
  color: var(--bcnr-text) !important;
  font-weight: 600;
}

.footer-classic .bcnr-footer-gradient a {
  color: var(--bcnr-primary-dark);
}

.footer-classic .bcnr-footer-gradient a.icon {
  color: #FFF;
}

.footer-classic .bcnr-footer-gradient a:hover {
  color: var(--bcnr-primary);
  text-decoration: underline;
}

.footer-classic .footer-bottom-panel {
  /* background-color: #ffffff; */
  color: var(--bcnr-muted);
  /* border-top: 1px solid var(--bcnr-border); */
}
/* ==========================================================================
   9. Footer 3-Panel & Responsive Map
   ========================================================================== */
.bcnr-footer-map {
  position: relative;
  width: 100%;
  height: 210px;
  border-radius: var(--bcnr-radius);
  overflow: hidden;
  border: 1px solid var(--bcnr-primary-border);
  background-color: #ffffff;
}

.bcnr-footer-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-list-category {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list-category li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-list-category li a::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--bcnr-primary);
  font-size: 0.85rem;
}

.panel-2 .box-footer {
  padding-top: 1.5rem;
}

.panel-2 .box-footer h5 {
  color: #000;
}

/* ==========================================================================
   11. Language Switcher Flag Icons
   ========================================================================== */
.bcnr-lang-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.bcnr-flag-icon {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   12. Minimal Sky-Blue Pagination
   ========================================================================== */
.bcnr-pagination {
  gap: 6px;
  flex-wrap: wrap;
}

.bcnr-pagination .page-item .page-link {
  border-radius: 8px !important;
  border: 1px solid var(--bcnr-border);
  color: var(--bcnr-text);
  background-color: var(--bcnr-surface);
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  padding: 0 12px;
  box-shadow: none;
  transition: all 0.2s ease;
}

.bcnr-pagination .page-item .page-link:hover {
  background-color: var(--bcnr-primary-soft);
  border-color: var(--bcnr-primary-border);
  color: var(--bcnr-primary-dark);
}

.bcnr-pagination .page-item.active .page-link {
  background-color: var(--bcnr-primary) !important;
  border-color: var(--bcnr-primary) !important;
  color: #ffffff !important;
}

.bcnr-pagination .page-item.disabled .page-link {
  background-color: transparent;
  border-color: transparent;
  color: var(--bcnr-muted);
}

/* ==========================================================================
   13. Minimal Footer License Bar
   ========================================================================== */
.bcnr-license-wrap {
  padding: 6px 12px;
  font-family: var(--font-main);
  color: var(--bcnr-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.bcnr-license-wrap .rights {
  color: var(--bcnr-muted);
  margin: 0;
}

#chat-bubble,
#min-widget {
  display: none !important;
}

.tawk-flex,
.tawk-chat-message-container {
  display: none !important;
}

.date-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
