/* =========================================================
   Global header — one row + working dropdowns
   ========================================================= */

:root {
  --header_height: 100px;
}

#sp-header.header-with-modal-menu {
  height: 100px !important;
  min-height: 100px !important;
  overflow: visible !important;
  z-index: 9999 !important;
}

#sp-header.header-with-modal-menu > .container,
#sp-header.header-with-modal-menu .container-inner {
  height: 100%;
}

#sp-header.header-with-modal-menu .container-inner > .row,
#sp-header.header-with-modal-menu .container-inner > .row.align-items-center {
  flex-wrap: nowrap !important;
  align-items: center !important;
  height: 100px !important;
  margin-left: 0;
  margin-right: 0;
}

#sp-header.header-with-modal-menu #sp-logo {
  flex: 0 0 auto !important;
  max-width: 220px;
  height: 100px !important;
  display: flex;
  align-items: center;
}

#sp-header.header-with-modal-menu #sp-logo .logo {
  height: 100px !important;
  display: inline-flex !important;
  align-items: center !important;
}

#sp-header.header-with-modal-menu #logo-right {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  height: 100px !important;
  align-items: center !important;
  overflow: visible !important;
}

#sp-header.header-with-modal-menu #logo-right .sp-module {
  display: block !important;
  height: 100px !important;
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible !important;
}

#sp-header.header-with-modal-menu #logo-right .sp-module-content {
  height: 100px !important;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: visible !important;
}

/* Top-level menu only — horizontal */
#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end;
  height: 100px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  width: 100%;
  overflow: visible !important;
}

#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list > li {
  position: relative !important;
  display: block !important;
  float: none !important;
  height: 100px !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
}

#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list > li > a,
#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list > li > span {
  display: flex !important;
  align-items: center !important;
  height: 100px !important;
  line-height: 1.2 !important;
  padding: 0 11px !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 500;
}

#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list > li.active > a,
#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list > li.current > a,
#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list > li > a:hover {
  color: #00cbd1 !important;
}

/*
  Arrow fix: theme uses a:before + float:right, but our flex layout
  ignores float so the chevron jumps to the LEFT of the label.
  Move it to a:after (right side) and style it softer.
*/
#sp-header.header-with-modal-menu #logo-right .sp-module ul.mod-menu li.menu-parent > a::before,
#sp-header .sp-module .menu li.menu-parent > a::before {
  content: none !important;
  display: none !important;
}

#sp-header.header-with-modal-menu #logo-right .sp-module ul.mod-menu li.menu-parent > a::after {
  content: "\f078" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-size: 8px !important;
  line-height: 1 !important;
  margin-left: 8px !important;
  margin-right: 0 !important;
  opacity: 0.4;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 12px;
  height: 12px;
  transform: none !important;
  position: relative;
  top: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

#sp-header.header-with-modal-menu #logo-right .sp-module ul.mod-menu li.menu-parent:hover > a::after,
#sp-header.header-with-modal-menu #logo-right .sp-module ul.mod-menu li.menu-parent.active > a::after,
#sp-header.header-with-modal-menu #logo-right .sp-module ul.mod-menu li.menu-parent.current > a::after {
  opacity: 0.95;
  color: #00cbd1 !important;
  transform: none !important;
}

/* Hide unused empty toggler in desktop header (dropdown uses hover) */
#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list > li > a > .menu-toggler {
  display: none !important;
}

/* Hide nested submenu by default — show as dropdown on hover */
#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list ul,
#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list .mod-menu__sub {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 10050 !important;
  min-width: 220px;
  margin: 0 !important;
  padding: 10px 0 !important;
  list-style: none !important;
  background: #151a25 !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  white-space: normal;
}

#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list > li:hover > ul,
#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list > li:hover > .mod-menu__sub,
#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list > li:focus-within > ul,
#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list > li:focus-within > .mod-menu__sub {
  display: block !important;
}

#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list ul > li,
#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list .mod-menu__sub > li {
  display: block !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  white-space: normal;
}

#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list ul > li > a,
#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list .mod-menu__sub > li > a {
  display: block !important;
  height: auto !important;
  padding: 10px 16px !important;
  line-height: 1.4 !important;
  color: #fff !important;
  font-size: 13px !important;
  white-space: nowrap;
}

#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list ul > li > a:hover,
#sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list .mod-menu__sub > li > a:hover {
  color: #00cbd1 !important;
  background: rgba(0, 203, 209, 0.08);
}

#sp-header.header-with-modal-menu #modal-menu-toggler {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 100px;
  margin-left: 8px !important;
}

#sp-header.header-with-modal-menu #modal-menu:not(.active) {
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden;
  pointer-events: none;
}

#sp-header.header-with-modal-menu #modal-menu:not(.active) .sp-megamenu-parent {
  display: none !important;
}

@media (max-width: 1199.98px) {
  #sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list > li > a,
  #sp-header.header-with-modal-menu #logo-right ul.mod-menu.mod-list > li > span {
    padding: 0 7px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 991.98px) {
  #sp-header.header-with-modal-menu #logo-right .sp-module {
    display: none !important;
  }
}

/* =========================================================
   Blog news page — wider, readable, balanced layout
   ========================================================= */

/* Widen the main content area on blog listing */
body.itemid-312.layout-fluid #sp-main-body > .container,
body.itemid-312 #sp-main-body > .container {
  max-width: 1320px;
  width: 100%;
}

body.itemid-312 #sp-main-body {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

/* Page title banner — styles ONLY on .sp-page-title (inner),
   never on #sp-page-title section (flex on section shrinks the row) */
body.itemid-312 #sp-page-title {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
}

body.itemid-312 #sp-page-title > .row {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

body.itemid-312 #sp-page-title #sp-title,
body.itemid-312 #sp-page-title .sp-column {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

body.itemid-312 .sp-page-title {
  position: relative;
  width: 100% !important;
  min-height: 360px !important;
  height: auto !important;
  padding: 80px 0 90px !important;
  display: flex !important;
  align-items: center !important;
  background-repeat: no-repeat !important;
  background-position: 88% 18% !important;
  background-size: cover !important;
  overflow: hidden;
}

body.itemid-312 .sp-page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.75) 42%,
    rgba(255, 255, 255, 0.15) 72%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

body.itemid-312 .sp-page-title .container {
  position: relative;
  z-index: 1;
  max-width: 1320px;
}

body.itemid-312 .sp-page-title .sp-page-title-heading {
  color: #1a2233 !important;
  font-size: clamp(2rem, 3.8vw, 3rem) !important;
  line-height: 1.25 !important;
  max-width: 580px !important;
  font-weight: 700;
}

body.itemid-312 .sp-page-title .sp-page-title-heading::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 0.85rem;
  background: linear-gradient(90deg, #00cbd1, rgba(0, 203, 209, 0.2));
  border-radius: 2px;
}

body.itemid-312 .sp-page-title .sp-page-title-sub-heading {
  color: #3a4558 !important;
  font-size: clamp(1rem, 1.4vw, 1.15rem) !important;
  line-height: 1.55 !important;
  max-width: 520px !important;
  width: auto !important;
  padding-left: 0 !important;
  margin-top: 0.95rem !important;
}

@media (max-width: 767.98px) {
  body.itemid-312 .sp-page-title {
    min-height: 260px !important;
    padding: 52px 0 60px !important;
    background-position: 70% center !important;
  }

  body.itemid-312 .sp-page-title::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.7) 55%,
      rgba(255, 255, 255, 0.35) 100%
    );
  }
}

/* =========================================================
   Theme tokens — dark (default) / light
   ========================================================= */
:root,
html.hu-theme-dark,
body.hu-theme-dark {
  --blog-page-bg: transparent;
  --blog-title: #ffffff;
  --blog-sub: #9aa3b2;
  --blog-card-bg: linear-gradient(180deg, #1a2130 0%, #151a25 100%);
  --blog-card-border: rgba(255, 255, 255, 0.08);
  --blog-card-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  --blog-card-title: #ffffff;
  --blog-card-text: #a7b0bf;
  --blog-card-meta: #00cbd1;
  --blog-sidebar-bg: #1a2130;
  --blog-sidebar-border: rgba(255, 255, 255, 0.08);
  --blog-sidebar-title: #ffffff;
  --blog-sidebar-link: #d7dde8;
  --blog-sidebar-divider: rgba(255, 255, 255, 0.06);
  --blog-pagination-border: rgba(255, 255, 255, 0.08);
  --article-text: #d7dde8;
  --article-heading: #ffffff;
  --content-pad-end: 1.25rem;
}

html.hu-theme-light,
body.hu-theme-light {
  --blog-page-bg: #eef1f6;
  --blog-title: #152033;
  --blog-sub: #475569;
  --blog-card-bg: #ffffff;
  --blog-card-border: rgba(21, 32, 51, 0.14);
  --blog-card-shadow: 0 8px 24px rgba(21, 32, 51, 0.12);
  --blog-card-title: #152033;
  --blog-card-text: #334155;
  --blog-card-meta: #0a9ea4;
  --blog-sidebar-bg: #ffffff;
  --blog-sidebar-border: rgba(21, 32, 51, 0.1);
  --blog-sidebar-title: #152033;
  --blog-sidebar-link: #334155;
  --blog-sidebar-divider: rgba(21, 32, 51, 0.08);
  --blog-pagination-border: rgba(21, 32, 51, 0.1);
  --article-text: #334155;
  --article-heading: #152033;
  --content-pad-end: 1.5rem;
}

/* Mode switcher — bottom-right, ไม่บังเนื้อหาด้านขวา */
.template-options {
  top: auto !important;
  bottom: 18px !important;
  right: 12px !important;
  transform: none !important;
  opacity: 0.95;
  z-index: 900 !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
}

.template-options .option-section {
  transform: none !important;
}

.template-options .form-switch .form-check-input {
  width: 72px !important;
  height: 28px !important;
}

/* ไอคอน sun/moon เคยหมุนชดเชยแนวตั้ง — ตอนนี้วางแนวนอนแล้ว */
.template-options .form-switch:before {
  transform: none !important;
  top: 4px !important;
  right: 6px !important;
}

.template-options .mode-switch-wrap.active:before {
  top: 4px !important;
  right: 46px !important;
}

@media (max-width: 991.98px) {
  .template-options {
    bottom: 20px !important;
    right: 10px !important;
    opacity: 0.92;
    transform: scale(0.9) !important;
    transform-origin: bottom right !important;
  }
}

@media (max-width: 575.98px) {
  .template-options {
    bottom: 16px !important;
    right: 8px !important;
    transform: scale(0.82) !important;
  }
}

/* ให้เนื้อหาไม่ชนสวิตช์โหมด */
#sp-main-body > .container,
#sp-main-body > .container-fluid,
body.itemid-312 #sp-main-body .container {
  padding-right: max(12px, env(safe-area-inset-right));
  padding-left: max(12px, env(safe-area-inset-left));
}

@media (min-width: 992px) {
  #sp-main-body > .container,
  body.itemid-312 #sp-main-body .container {
    padding-right: 15px;
  }
}

/* เผื่อพื้นที่ด้านล่างไม่ให้สวิตช์บังเนื้อหา */
#sp-main-body {
  padding-bottom: 2.5rem;
}

/* Light mode — พื้นหลังและข้อความทั่วไปให้อ่านง่าย */
html.hu-theme-light body,
html.hu-theme-light .body-wrapper,
html.hu-theme-light #sp-main-body {
  background-color: var(--blog-page-bg) !important;
  color: var(--article-text) !important;
}

html.hu-theme-light h1,
html.hu-theme-light h2,
html.hu-theme-light h3,
html.hu-theme-light h4,
html.hu-theme-light .article-details .article-header h1,
html.hu-theme-light .article-details .article-header h2 {
  color: var(--article-heading);
}

html.hu-theme-light .article-details,
html.hu-theme-light .article-details .article-fulltext,
html.hu-theme-light .article-details .article-introtext {
  color: var(--article-text) !important;
}

html.hu-theme-light body.itemid-312 #sp-main-body {
  background-color: var(--blog-page-bg) !important;
}

.blog-news-list,
.blog.blog-page-wide {
  width: 100%;
  max-width: 100%;
}

.blog-news-list .blog-section-head {
  margin-bottom: 1.75rem;
}

.blog-news-list .intro-articles-top-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--blog-title) !important;
}

.blog-news-list .blog-section-sub {
  margin: 0;
  color: var(--blog-sub) !important;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 42rem;
}

/* Cards */
.blog-news-list .blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--blog-card-bg);
  border: 1px solid var(--blog-card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(21, 32, 51, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

html.hu-theme-light .blog-news-list .blog-card {
  box-shadow: 0 4px 18px rgba(21, 32, 51, 0.08);
}

.blog-news-list .blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 203, 209, 0.45);
  box-shadow: var(--blog-card-shadow);
}

.blog-news-list .blog-card .intro-article-img-wrapper,
.blog-news-list .blog-card .item-image {
  margin: 0;
  position: relative;
  background: rgba(0, 0, 0, 0.04);
}

.blog-news-list .blog-card .intro-article-img-wrapper img,
.blog-news-list .blog-card .item-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-news-list .blog-card .article-body {
  padding: 1.1rem 1.15rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-news-list .blog-card .article-info,
.blog-news-list .blog-card .article-header {
  margin-bottom: 0.55rem;
}

.blog-news-list .blog-card .article-info,
.blog-news-list .blog-card .article-info a,
.blog-news-list .blog-card .category-name a {
  color: var(--blog-card-meta) !important;
  font-size: 0.82rem;
}

.blog-news-list .blog-card .article-info .published,
.blog-news-list .blog-card .article-info time,
.blog-news-list .blog-card .article-info .create {
  color: var(--blog-sub) !important;
}

.blog-news-list .blog-card h2,
.blog-news-list .blog-card .item-title,
.blog-news-list .blog-card .item-title a {
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--blog-card-title) !important;
  margin: 0 0 0.65rem;
}

.blog-news-list .blog-card .article-introtext {
  color: var(--blog-card-text) !important;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 0 auto;
  max-height: calc(1.55em * 3);
}

.blog-news-list .blog-card .article-introtext p {
  margin: 0;
  padding: 0;
  color: inherit !important;
}

.blog-news-list .blog-card .readmore {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0.25rem;
}

.blog-news-list .blog-card .readmore a,
.blog-news-list .blog-card .readmore .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #0b1220 !important;
  background: #00cbd1 !important;
  border: 1px solid #00cbd1 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-news-list .blog-card .readmore a:hover,
.blog-news-list .blog-card .readmore .btn:hover {
  background: transparent !important;
  color: #00a8ad !important;
  border-color: #00a8ad !important;
}

html.hu-theme-light .blog-news-list .blog-card .readmore a:hover,
html.hu-theme-light .blog-news-list .blog-card .readmore .btn:hover {
  color: #0a9ea4 !important;
  border-color: #0a9ea4 !important;
}

/* Sidebar */
.blog-news-list .blog-sidebar {
  position: sticky;
  top: 96px;
}

.blog-news-list .blog-sidebar .sp-module,
.blog-news-list .blog-sidebar .module {
  background: var(--blog-sidebar-bg);
  border: 1px solid var(--blog-sidebar-border);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: none;
}

html.hu-theme-light .blog-news-list .blog-sidebar .sp-module,
html.hu-theme-light .blog-news-list .blog-sidebar .module {
  box-shadow: 0 4px 16px rgba(21, 32, 51, 0.06);
}

.blog-news-list .blog-sidebar .sp-module-title,
.blog-news-list .blog-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
  color: var(--blog-sidebar-title) !important;
}

.blog-news-list .blog-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-news-list .blog-sidebar ul li {
  margin: 0;
  border-bottom: 1px solid var(--blog-sidebar-divider);
}

.blog-news-list .blog-sidebar ul li:last-child {
  border-bottom: 0;
}

.blog-news-list .blog-sidebar ul li a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  color: var(--blog-sidebar-link) !important;
  font-size: 0.92rem;
  line-height: 1.4;
}

.blog-news-list .blog-sidebar ul li a:hover {
  color: #00cbd1 !important;
}

/* Keep ad module full width of sidebar, no crop */
.blog-news-list .blog-sidebar .mod-sppagebuilder {
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-section,
.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-row-container,
.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-row,
.blog-news-list .blog-sidebar .mod-sppagebuilder [class*="sppb-col-"],
.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-column,
.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-column-addons,
.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-addon-wrapper,
.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-addon,
.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-addon-content,
.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-addon-single-image,
.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-addon-single-image-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-row-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.blog-news-list .blog-sidebar .mod-sppagebuilder img,
.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-img-responsive {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: top center !important;
  display: block !important;
  border-radius: 14px;
}

/* disable any image-shape crop masks on the ad */
.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-addon-image-shape,
.blog-news-list .blog-sidebar .mod-sppagebuilder .sppb-addon-image-shape img {
  clip-path: none !important;
  -webkit-clip-path: none !important;
  border-radius: 14px !important;
  mask: none !important;
}

/* Pagination */
.blog-news-list .pagination-wrapper {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--blog-pagination-border);
}

.blog-news-list .pagination-wrapper .pagination {
  margin: 0;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.blog-news-list .pagination-wrapper .page-item .page-link,
.blog-news-list .pagination-wrapper a,
.blog-news-list .pagination-wrapper span {
  min-width: 2.4rem;
  text-align: center;
  border-radius: 8px !important;
}

html.hu-theme-light .blog-news-list .pagination-wrapper .page-link,
html.hu-theme-light .blog-news-list .pagination-wrapper a {
  color: #152033 !important;
  background: #fff !important;
  border-color: rgba(21, 32, 51, 0.15) !important;
}

html.hu-theme-light .blog-news-list .pagination-wrapper .active .page-link,
html.hu-theme-light .blog-news-list .pagination-wrapper .active span {
  background: #00cbd1 !important;
  border-color: #00cbd1 !important;
  color: #0b1220 !important;
}

/* Hide leftover empty author blocks if any */
.blog-news-list .blog-card .author-info:empty {
  display: none;
}

@media (max-width: 991.98px) {
  .blog-news-list .blog-sidebar {
    position: static;
    margin-top: 0.5rem;
  }

  .blog-news-list .blog-card .intro-article-img-wrapper img,
  .blog-news-list .blog-card .item-image img {
    height: 190px;
  }

  .blog-news-list .row {
    margin-left: -8px;
    margin-right: -8px;
  }

  .blog-news-list [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 575.98px) {
  body.itemid-312 #sp-main-body {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }

  .blog-news-list .blog-section-head {
    margin-bottom: 1.15rem;
  }

  .blog-news-list .intro-articles-top-title {
    font-size: 1.35rem;
  }

  .blog-news-list .blog-card .article-body {
    padding: 0.95rem 1rem 1.1rem;
  }

  .blog-news-list .blog-card .intro-article-img-wrapper img,
  .blog-news-list .blog-card .item-image img {
    height: 168px;
  }

  .blog-news-list .blog-sidebar .sp-module,
  .blog-news-list .blog-sidebar .module {
    padding: 1rem;
  }
}
