/*
  style-new3l.css
  Override สำหรับ index_new3l.php
  โหลดหลัง style.css เพื่อ override ทั้งหมด
*/

/* ════════════════════════════════════════
   1. SLIDER — Responsive & Modern Design
   ════════════════════════════════════════ */

/* wrapper */
#slider-container.slider-area {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  background: #001a38;
}

/* ── slide: ใช้ vh แทน fixed px → scale ตาม viewport จริง ── */
.single-slide {
  width: 100%;
  height: 68vh !important;
  min-height: 300px !important;
  max-height: 750px !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: block !important;
  position: relative !important;
}

/* gradient overlay ด้านล่างของทุก slide */
.single-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 55%,
    rgba(0, 20, 50, 0.55) 100%
  );
  pointer-events: none;
}

/* owl containers ตาม single-slide */
.slider-area .owl-carousel,
.slider-area .owl-stage-outer,
.slider-area .owl-stage,
.slider-area .owl-item {
  height: 68vh !important;
  min-height: 300px !important;
  max-height: 750px !important;
}

/* ── Responsive breakpoints ── */
@media (max-width: 991.98px) {
  .single-slide { height: 55vw !important; min-height: 240px !important; max-height: 480px !important; }
  .slider-area .owl-carousel,
  .slider-area .owl-stage-outer,
  .slider-area .owl-stage,
  .slider-area .owl-item { height: 55vw !important; min-height: 240px !important; max-height: 480px !important; }
}
@media (max-width: 575.98px) {
  .single-slide { height: 56vw !important; min-height: 200px !important; max-height: 340px !important; }
  .slider-area .owl-carousel,
  .slider-area .owl-stage-outer,
  .slider-area .owl-stage,
  .slider-area .owl-item { height: 56vw !important; min-height: 200px !important; max-height: 340px !important; }
}

/* ── Modern Navigation Arrows ── */
.slider-area .owl-nav {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 0 !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  margin: 0 !important;
  z-index: 50 !important;
}
.slider-area .owl-nav .owl-prev,
.slider-area .owl-nav .owl-next {
  pointer-events: auto !important;
  position: absolute !important;
  top: 0 !important;
  transform: translateY(-50%) !important;
  width: 46px !important;
  height: 46px !important;
  line-height: 46px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 2px solid rgba(255, 255, 255, 0.55) !important;
  color: #fff !important;
  font-size: 20px !important;
  text-align: center !important;
  transition: background 0.25s, border-color 0.25s, transform 0.2s !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  z-index: 50 !important;
}
.slider-area .owl-nav .owl-prev { left: 16px !important; }
.slider-area .owl-nav .owl-next { right: 16px !important; left: auto !important; }
.slider-area .owl-nav .owl-prev:hover,
.slider-area .owl-nav .owl-next:hover {
  background: rgba(255, 255, 255, 0.38) !important;
  border-color: #fff !important;
  transform: translateY(-50%) scale(1.1) !important;
}
@media (max-width: 575.98px) {
  .slider-area .owl-nav .owl-prev,
  .slider-area .owl-nav .owl-next {
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 15px !important;
  }
  .slider-area .owl-nav .owl-prev { left: 8px !important; }
  .slider-area .owl-nav .owl-next { right: 8px !important; }
}

/* ── Modern Dots ── */
.slider-area .owl-dots {
  position: absolute !important;
  bottom: 18px !important;
  left: 0;
  width: 100%;
  text-align: center;
  height: auto !important;
  margin: 0 !important;
  z-index: 10;
}
.slider-area .owl-dots .owl-dot {
  display: inline-block !important;
  margin: 0 5px !important;
}
.slider-area .owl-dots .owl-dot span {
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.45) !important;
  border: 2px solid rgba(255, 255, 255, 0.7) !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
}
.slider-area .owl-dots .owl-dot.active span {
  background: #fff !important;
  width: 28px !important;
  border-radius: 5px !important;
  border-color: #fff !important;
}
@media (max-width: 575.98px) {
  .slider-area .owl-dots { bottom: 10px !important; }
  .slider-area .owl-dots .owl-dot span { width: 8px !important; height: 8px !important; }
  .slider-area .owl-dots .owl-dot.active span { width: 22px !important; }
}

/* ════════════════════════════════════════
   2. GOOGLE TRANSLATE — ป้องกัน gap
   ════════════════════════════════════════ */
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
body > .skiptranslate {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
html { margin-top: 0 !important; }
body,
body.translated-ltr,
body.translated-rtl { top: 0 !important; margin-top: 0 !important; }
/* หมายเหตุ: ไม่ใช้ position:relative บน body เพราะจะทำให้ top:-40px ของ GT มีผล
   แทนที่ด้วย JS removeProperty('top') ซึ่งลบ inline style ออกเลย               */
header.top {
  margin-top: -24px !important;
  padding-top: 0 !important;
  display: block !important;
}
.header-top { margin-top: 0 !important; }

/* ════════════════════════════════════════
   3. LANGUAGE BAR
   ════════════════════════════════════════ */
#lang-bar {
  background: #042C53;
  padding: 6px 16px;
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  position: relative;
  z-index: 9999;
  margin-bottom: 0 !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.30) !important;
}
.lang-btn {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s;
  font-family: 'Prompt', sans-serif;
  white-space: nowrap;
}
.lang-btn:hover, .lang-btn.active {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.6);
}
#google_translate_element {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
}

/* ════════════════════════════════════════
   4. RESPONSIVE — layout ทั่วไป
   ════════════════════════════════════════ */
img { max-width: 100%; height: auto; }
.blog-img img, .blog-img2 img { max-width: 100%; height: auto; }

@media (max-width: 767.98px) {
  .about-area .col-md-6 { margin-bottom: 20px; }
  .notice-area .col-md-6 { margin-bottom: 20px; }
}
@media (max-width: 575.98px) {
  #lang-bar { justify-content: center; padding: 5px 10px; }
  .lang-btn { font-size: 12px; padding: 4px 9px; }
  .blog-area .nav-tabs .nav-link { font-size: 12px; padding: 6px 8px; }
}

/* ════════════════════════════════════════
   5. HEADER — Responsive & Modern
   ════════════════════════════════════════ */

/* ── header-top bar ── */
.header-top {
  background: linear-gradient(90deg, #0a3d6b 0%, #1565C0 60%, #0288d1 100%) !important;
  position: relative !important;
  padding: 0 !important;
}

/* ซ่อน pseudo-element diagonal เดิม */
.header-top::before,
.header-top::after { display: none !important; }

/* ข้อความใน header-top
   — padding อยู่ที่ container ไม่ใช่ที่ text เพื่อรองรับข้อความทุกภาษา */
.header-top .container {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
.header-top .row { min-height: 0 !important; }

.header-top-left p,
.header-top-right ul li a {
  font-size: 13px !important;
  font-family: 'Prompt', sans-serif !important;
  color: rgba(255, 255, 255, 0.92) !important;
  line-height: 1.5 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  text-transform: none !important;
}
.header-top-right { position: static !important; }
.header-top-right::after { display: none !important; }
.header-top-right ul { margin: 0 !important; padding: 0 !important; }
.header-top-right ul li {
  margin-right: 0 !important;
  list-style: none;
}
.header-top-right ul li a {
  color: rgba(255, 255, 255, 0.92) !important;
  transition: color 0.2s !important;
  white-space: nowrap;
  text-align: right !important;
}
.header-top-right ul li a:hover { color: #fff !important; text-decoration: none !important; }
.header-top-right ul li a i { margin-right: 5px; }

/* tablet: ลด font เล็กลง */
@media (max-width: 991.98px) {
  .header-top .container { padding-top: 10px !important; padding-bottom: 10px !important; }
  .header-top-left p,
  .header-top-right ul li a { font-size: 12px !important; }
}

/* mobile: stack สองบรรทัด — text center */
@media (max-width: 767.98px) {
  .header-top .container { padding-top: 8px !important; padding-bottom: 8px !important; }
  .header-top .col-12:first-child { border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 6px; margin-bottom: 4px; }
  .header-top-left p,
  .header-top-right ul li a {
    font-size: 11.5px !important;
    text-align: center !important;
    white-space: normal !important;
  }
  .header-top-right { text-align: center !important; }
  .header-top-right ul li a { text-align: center !important; }
}

/* ── logo area ── */
/* desktop: header height = 22+75+22 = 119px — ต้องตรงกับ nav line-height */
.header-area.two .logo {
  padding: 22px 0 !important;
  transition: padding 0.3s ease !important;
}
.header-area.two .logo img {
  max-height: 75px;
  max-width: 240px;
  width: auto;
  height: auto;
  display: block;
}
.header-area.two.sticky .logo {
  padding: 10px 0 !important;
}
.header-area.two.sticky .logo img {
  max-height: 55px;
  max-width: 180px;
}

/* tablet/mobile: meanmenu ทำงานแทน nav → ปรับ logo อิสระ */
@media (max-width: 991.98px) {
  .header-area.two .logo { padding: 14px 0 !important; }
  .header-area.two .logo img { max-height: 60px; max-width: 200px; }
}
@media (max-width: 575.98px) {
  .header-area.two .logo { padding: 10px 0 !important; }
  .header-area.two .logo img { max-height: 48px; max-width: 160px; }
}

/* ── nav ul: flex เพื่อกัน whitespace และรองรับข้อความทุกภาษา ── */
.header-area.two .main-menu nav > ul {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

/* ── nav link ── */
.header-area.two .main-menu nav > ul > li > a {
  line-height: 119px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.25px !important;
  white-space: nowrap !important;
  position: relative !important;
  transition: color 0.2s !important;
}

/* ── animated underline on hover ── */
.header-area.two .main-menu nav > ul > li > a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 20px !important;
  left: 12px !important;
  right: 12px !important;
  height: 2.5px !important;
  background: #1565C0 !important;
  border-radius: 2px !important;
  transform: scaleX(0) !important;
  transform-origin: center !important;
  transition: transform 0.25s ease !important;
}
.header-area.two .main-menu nav > ul > li:hover > a::after {
  transform: scaleX(1) !important;
}

/* ── Google Translate <font> tag — inherit ค่าจาก <a> parent ── */
.header-area.two .main-menu nav > ul > li > a font,
.header-area.two .main-menu nav > ul > li > a font font {
  display: inline !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
  font-size: inherit !important;
  color: inherit !important;
}

/* ── sticky mode ── */
.header-area.two.sticky .main-menu > nav > ul > li > a {
  line-height: 75px !important;
}
.header-area.two.sticky .main-menu nav > ul > li > a::after {
  bottom: 8px !important;
}

/* ── hamburger (≤1199px) meanmenu activate ที่ ≤1199px ── */
@media (max-width: 1199.98px) {
  .content-wrapper { margin-right: 56px !important; }
  /* ซ่อน desktop nav — meanmenu แสดงแทน */
  .header-area.two .main-menu { display: none !important; }
}
/* desktop ≥1200px: desktop nav กลับมา */
@media (min-width: 1200px) {
  .header-area.two .main-menu { display: inline-block !important; }
  .content-wrapper { margin-right: 0 !important; }
}

/*
  meanmenu reveal button อยู่ใน .mobile-menu (col-12 row ที่ 2)
  logo row height = 22(pt) + 75(img) + 22(pb) = 119px
  center = 119/2 + 30/2 = 59.5 + 15 = -75px ≈ -77px
*/
.header-area.two .mean-container a.meanmenu-reveal {
  margin-top: -77px !important;
  top: 0 !important;
  transform: none !important;
  right: 0 !important;
  border: 2px solid #1565C0 !important;
  color: #1565C0 !important;
  width: 36px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 14px !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
}
.header-area.two .mean-container a.meanmenu-reveal span {
  background-color: #1565C0 !important;
  display: block !important;
  height: 3px !important;
  margin-top: 5px !important;
  border-radius: 2px !important;
}

/* tablet (≤991px): logo height = 14+60+14 = 88px → center = 88/2+15 = -59px */
@media (max-width: 991.98px) {
  .header-area.two .mean-container a.meanmenu-reveal {
    margin-top: -59px !important;
  }
}

/* mobile (≤575px): logo height = 10+48+10 = 68px → center = 68/2+15 = -49px */
@media (max-width: 575.98px) {
  .header-area.two .mean-container a.meanmenu-reveal {
    margin-top: -49px !important;
    width: 32px !important;
    height: 28px !important;
  }
}

/* sticky: logo เล็กลง height = 10+55+10 = 75px → center ≈ -53px */
.header-area.two.sticky .mean-container a.meanmenu-reveal {
  margin-top: -53px !important;
  border-color: #1565C0 !important;
  color: #1565C0 !important;
}

/* meanmenu dropdown styling */
.mean-container .mean-nav {
  background: #fff !important;
}
.mean-container .mean-nav ul li a {
  color: #333 !important;
  border-top-color: #eee !important;
  font-family: 'Prompt', sans-serif !important;
  font-size: 13px !important;
}
.mean-container .mean-nav ul li a.mean-expand {
  background: #f5f5f5 !important;
  color: #1565C0 !important;
}
.mean-container .mean-nav ul li a:hover { color: #1565C0 !important; }
.mean-container .mean-bar {
  background: #fff !important;
  padding: 0 !important;
  min-height: 0 !important;
}
.mean-container .mean-bar::after { display: none !important; }

/* ════════════════════════════════════════
   6. FOOTER — footer-new3l.php
   ════════════════════════════════════════ */

/* ── wave divider ── */
.fn3l-footer {
  background: #eef3f9;
  color: #4a5568;
  font-family: 'Prompt', sans-serif;
  margin-top: 0;
}
.fn3l-wave {
  display: block;
  line-height: 0;
  background: #fff;
}
.fn3l-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ── main content ── */
.fn3l-main {
  padding: 60px 0 40px;
}

/* ── column spacing ── */
.fn3l-col { padding-right: 30px; }
@media (max-width: 767.98px) {
  .fn3l-col { padding-right: 15px; border-bottom: 1px solid #d0dde9; padding-bottom: 28px; margin-bottom: 8px; }
  .fn3l-col:last-child { border-bottom: none; }
}

/* ── brand column ── */
.fn3l-logo img {
  max-height: 80px;
  width: auto;
  margin-bottom: 18px;
}
.fn3l-tagline {
  font-size: 13.5px;
  line-height: 1.75;
  color: #5d7289;
  margin-bottom: 22px;
}

/* ── social icons ── */
.fn3l-social { display: flex; gap: 10px; flex-wrap: wrap; }
.fn3l-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #c5d5e8;
  color: #1565C0;
  font-size: 15px;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(21,101,192,0.08);
}
.fn3l-social a:hover {
  background: #1565C0;
  border-color: #1565C0;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(21,101,192,0.25);
}

/* ── section title ── */
.fn3l-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fn3l-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2.5px;
  background: #1565C0;
  border-radius: 2px;
}

/* ── sitemap links ── */
.fn3l-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fn3l-links li { margin-bottom: 9px; }
.fn3l-links li a {
  color: #5d7289;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.fn3l-links li a::before {
  content: '›';
  margin-right: 7px;
  color: #1565C0;
  font-size: 16px;
  line-height: 1;
}
.fn3l-links li a:hover {
  color: #1565C0;
  padding-left: 4px;
}

/* ── contact list ── */
.fn3l-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fn3l-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 13px;
  font-size: 13.5px;
  color: #5d7289;
  line-height: 1.55;
}
.fn3l-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1.5px solid #c5d5e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1565C0;
  font-size: 13px;
  margin-top: 1px;
  box-shadow: 0 2px 4px rgba(21,101,192,0.08);
}
.fn3l-contact li a {
  color: #1565C0;
  text-decoration: none;
  transition: color 0.2s;
}
.fn3l-contact li a:hover {
  color: #0a3d6b;
  text-decoration: underline;
}

/* ── bottom bar ── */
.fn3l-bottom {
  background: #1565C0;
  padding: 14px 0;
  border-top: 3px solid #0a3d6b;
}
.fn3l-bottom p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  font-family: 'Prompt', sans-serif;
  line-height: 1.8;
}
.fn3l-bottom a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.fn3l-bottom a:hover { opacity: 0.8; text-decoration: underline; }

@media (max-width: 767.98px) {
  .fn3l-main { padding: 40px 0 24px; }
  .fn3l-wave svg { height: 36px; }
  .fn3l-bottom p { font-size: 12px; }
}

/* ════════════════════════════════════════
   7. COURSES SECTION — text wrap ป้องกัน overlap เมื่อแปลภาษา
   ════════════════════════════════════════ */

/* หัวข้อและข้อความในหลักสูตร — รองรับข้อความยาวทุกภาษา */
.single-notice-left h3,
.single-notice-right h3 {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto;
  font-size: 15px !important;
  line-height: 1.45 !important;
  margin-bottom: 6px !important;
}
.single-notice-left h3 a,
.single-notice-right h3 a {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  display: inline !important;
  white-space: normal !important;
}
.single-notice-left p,
.single-notice-right p {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  margin-bottom: 0 !important;
}

/* ลด padding ระหว่าง icon col และ text col */
.single-notice-left .row,
.single-notice-right .row {
  align-items: flex-start !important;
}
.single-notice-left .col-3,
.single-notice-right .col-3 {
  padding-right: 6px !important;
}
.single-notice-left .col-9,
.single-notice-right .col-9 {
  padding-left: 6px !important;
  min-width: 0 !important;   /* ป้องกัน flex item ไม่ shrink */
}

/* h3 section header (ปริญญาตรี / บัณฑิตศึกษา) */
.notice-left > h3,
.notice-right > h3 {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

/* icon กลาง */
.course-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* mobile: two-col notice side-by-side → stack */
@media (max-width: 767.98px) {
  .notice-area .col-md-6 { width: 100% !important; }
  .single-notice-left h3,
  .single-notice-right h3 { font-size: 14px !important; }
}

/* ════════════════════════════════════════
   8. GENERAL CONTENT — overflow ป้องกัน
   ════════════════════════════════════════ */

/* about / blog section heading wrap */
.about-content h2,
.about-content p {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

/* blog nav-tabs wrap on small screens */
@media (max-width: 575.98px) {
  .nav-tabs .nav-link { font-size: 11.5px !important; padding: 6px 6px !important; }
}

/* ════════════════════════════════════════
   9. BLOG / NEWS CARDS — text wrap & clamp
   ════════════════════════════════════════ */

/* ── card row: equal height columns ── */
.blog-area .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

/* card container — full height flex column */
.single-blog {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: box-shadow 0.25s, transform 0.25s;
}
.single-blog:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}

/* ── blog image: fixed height, cover crop ── */
.blog-img,
.blog-img2 {
  overflow: hidden;
  height: 200px !important;
  flex-shrink: 0;
  background: #e8edf3;
}
.blog-img img,
.blog-img2 img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.single-blog:hover .blog-img img,
.single-blog:hover .blog-img2 img {
  transform: scale(1.05);
}

/* ── blog content: flex column, ดัน READ MORE ลงล่าง ── */
.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 14px !important;
}

/* date */
.blog-top {
  flex-shrink: 0;
}
.blog-top p {
  font-size: 12.5px !important;
  color: #888 !important;
  margin-bottom: 6px !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

/* title — clamp 3 บรรทัด, flex: 1 ดันพื้นที่ */
.blog-bottom {
  flex: 1;
}
.blog-content h2,
.blog-content h2 a {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  color: #1a2a3a !important;
}
.blog-bottom h2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}

/* READ MORE — ติดล่างเสมอ */
.blog-bottomlink {
  margin-top: auto;
  padding-top: 10px;
  flex-shrink: 0;
}
.blog-bottomlink a {
  font-size: 13px !important;
  color: #1565C0 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.blog-bottomlink a:hover {
  color: #0a3d6b !important;
  text-decoration: underline !important;
}

/* ── news tab labels — wrap เมื่อแปล ── */
#nav-tab .nav-item.nav-link {
  word-break: break-word !important;
  white-space: normal !important;
  hyphens: auto;
  font-size: 14px !important;
  line-height: 1.4 !important;
  padding: 10px 8px !important;
  text-align: center !important;
}
@media (max-width: 1199.98px) {
  #nav-tab .nav-item.nav-link { font-size: 13px !important; padding: 8px 6px !important; }
}
@media (max-width: 991.98px) {
  #nav-tab .nav-item.nav-link { font-size: 12px !important; padding: 8px 4px !important; }
}

/* mobile: image เล็กลง */
@media (max-width: 575.98px) {
  .blog-img, .blog-img2 { height: 170px !important; }
}
