@font-face {
  font-family: Prompt;
  src: url("Prompt-Regular.ttf");
}
@font-face {
  font-family: Prompt-thin;
  src: url("Prompt-Thin.ttf");
}
@font-face {
  font-family: Prompt-light;
  src: url("Prompt-Light.ttf");
}

:root {
  --primary-color: #3498db; /* สีหลัก */
  --secondary-color: #2ecc71; /* สีรอง */
  --text-color: #333; /* สีข้อความ */
  --background-color: #f4f4f4; /* สีพื้นหลัง */
  --bgbody:#d7d4d4;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: Prompt;
  font-size: 16px;
  background-color: var(--bgbody);
  color: var(--fontbody-dark);
}
a:link,
a:hover,
a:visited {
  text-decoration: none;
  text-shadow: none;
  color: var(--fontbody-dark);
}
a:hover {
  color: var(--linkhovercolor);
}

a[download] {
  position: relative;
  background-color: var(--download-btn-bg);
  color: var(--download-btn);
  padding: 0.2rem 0.5rem 0.2rem 2.5em;
  border-radius: 0.3rem;
  font-size: 0.9em;
  line-height: 2em;
  -webkit-border-radius: 0.3rem;
  -moz-border-radius: 0.3rem;
  -ms-border-radius: 0.3rem;
  -o-border-radius: 0.3rem;
}
a[download]::before {
  text-align: center;
  position: absolute;
  display: block;
  width: 30px;
  height: 30px;
  top: 50%;
  left: 0;
  margin: 0 0 0 5px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  content: "";
  background-image: url("../images/icon_download_white.png");
  background-position: center;
  background-size: 15px 15px;
  background-repeat: no-repeat;
  /*background-color: red;
  */ /*z-index: 1000;
  :;
      */
}
a[download]:hover {
  filter: brightness(120%);
  -webkit-filter: brightness(120%);
}
button {
  background-color: #456b96;
  color: white;
  padding: 0.2em;
  border-radius: 0.2em;
  -webkit-border-radius: 0.2em;
  -moz-border-radius: 0.2em;
  -ms-border-radius: 0.2em;
  -o-border-radius: 0.2em;
}
figcaption {
  padding: 0.625em;
  background-color: var(--figcaptionbg);
  color: var(--figcaptioncolor);
  border-bottom-left-radius: 0.5em;
  border-bottom-right-radius: 0.5em;
  height: 100%;
  font-size: 0.9em;
}
h1 {
  font-size: 2em;
}
h2 {
  font-size: 1.8em;
}
h3 {
  font-size: 1.6em;
}
h4 {
  font-size: 1.4em;
}
h5 {
  font-size: 1.2em;
}
input,
select {
  border: 1px solid var(--g-border-color);
  padding: 5px 20px;
  margin: 0;
  border-radius: 0.3em;
  -webkit-border-radius: 0.3em;
  -moz-border-radius: 0.3em;
  -ms-border-radius: 0.3em;
  -o-border-radius: 0.3em;
}
select option {
  font-size: 0.85em;
}
input:focus,
select:focus {
  background-color: var(--input-focus-bg);
}
input:focus-visible,
select:focus-visible {
  border: 2px solid var(--input-focus-visible-border);
  outline: none;
  box-shadow: 0px 0px 3px var(--input-focus-visible-border);
}
::-webkit-input-placeholder {
  /* Edge */
  font-size: 0.85em;
  font-style: italic;
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  font-size: 0.85em;
  font-style: italic;
}
::-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  font-size: 0.85em;
  font-style: italic;
}
::placeholder {
  font-size: 0.85em;
  font-style: italic;
}
.icon-input {
  position: relative;
}
.icon-input input {
  padding-left: 40px;
}
.showicon {
  background-size: 20px auto;
  background-position: center center;
  position: absolute;
  left: 10px;
  top: 0;
  width: 20px;
  height: 100%;
  content: "xxx";
  background-repeat: no-repeat;
}
.icon-login {
  background-image: url(../images/icon_login_color.png);
}
.icon-password {
  background-image: url(../images/icon_password.png);
}
.fa-login {
  position: absolute;
  top: 20px;
  left: 16px;
}
.dropdown-item {
  text-align: start;
  font-size: 0.85em;
}
.dropdown-header {
  font-size: 1.1em;
  font-style: italic;
  color: var(--dropdown-header);
}
a.dropdown-item.dropdown-header {
  color: var(--dropdown-header);
}
a.dropdown-item.dropdown-header:hover {
  color: var(--dropdown-item-hover);
  background-color: var(--dropdown-item-hover-bg);
}
.dropdown-menu {
  background-color: var(--dropdown-menu-bg);
  border-color: var(--dropdown-border);
  box-shadow: 0px 0px 5px var(--dropdown-box-shadow);
}
.dropdown-divider {
  border-top-color: var(--dropdown-border);
}
.dropdown-item:focus,
.dropdown-item:hover {
  color: var(--dropdown-item-hover);
  background: var(--dropdown-item-hover-bg);
}
.fig-news div:first-child {
  height: 150px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left top;
  filter: var(--filter-bg);
  -webkit-filter: var(--filter-bg);
}
.fig-news div:last-child {
  height: 90px;
  overflow: hidden;
  position: relative;
}
.fig-news div:last-child div {
  position: absolute;
  text-align: end;
  right: 0;
  bottom: 3px;
  color: var(--figcaptioncolor);
  width: 100%;
  height: auto;
  font-size: 0.7em;
  margin-right: 1em;
}
.biggerFont {
  font-size: larger;
}
.font-bold {
  font-weight: bold;
}
.font-warning {
  color: coral !important;
  font-size : 1.1em;
}
.greeting {
  font-weight: bold;
  font-size: 20px;
  color: darkgreen
}
.headlinenews {
  font-weight: bold;
  font-size: 16px;
  color: rgb(15, 15, 15);
}
.emphasize-font {
  font-size: 2em;
  font-style: italic;
  font-weight: bold;
}
.content_width {
  max-width: 1200px;
}
.datename {
  color: var(--dropdown-header);
  font-weight: bold;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}
.head-menu {
  position: relative;
  width: 100%;
  height: 150px;
  background-image: url("../images/bg1.png");
  background-repeat: repeat-x;
}
.head-menu::after {
  position: absolute;
  content: " ";
  bottom: 0;
  left: 0;
  /* background-color: var(--head-menu-bg); 3044a0 556ac7 208dcd*/
  background-color: transparent;
  height: 30px;
  width: 100%;
}

.head-menu::before {
  position: absolute;
  content: " ";
  top: 0;
  left: 0;
  background-image: url("../images/bg_layer1.png");
  background-position: right center;
  background-repeat: no-repeat;
  height: 150px;
  width: 100%;
  filter: var(--filter-bg);
  -webkit-filter: var(--filter-bg);
}
.head-menu > div {
  position: absolute;
  z-index: 100;
  width: 100%;
}

.head-image-section1 {
  background-image: url("../images/logo1.png");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: auto 130px;
  height: 150px;
}
.head-image-section1:hover {
  cursor:pointer;
}
.hospital-name {
  color: white;
  font-size: 1.2em;
  font-weight: bold;
}
.info-warning-font {
  font-size: 1.5em;
  font-style: italic;
}
.myiframe {
  width: 100%;
  height: 250px;
}

/* =========== content section =========== */
.main-content-1block,
.main-content-1block-full,
.loginSection {
  display: block;
  margin-bottom: 1.5em;
}
.loginSection {
  margin-top: 6em;
  margin-bottom: 6em;
}
.loginSection > div {
  position: relative;
  text-align: center;
  background-color: var(--bgwhite);
  width: 300px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5em 2em;
  border-radius: 0.3em;
  -webkit-border-radius: 0.3em;
  -moz-border-radius: 0.3em;
  -ms-border-radius: 0.3em;
  -o-border-radius: 0.3em;
}
.searchResult > div {
  background-color: var(--bgwhite);
  border-radius: 0.3em;
  -webkit-border-radius: 0.3em;
  -moz-border-radius: 0.3em;
  -ms-border-radius: 0.3em;
  -o-border-radius: 0.3em;
}
.loginSection input {
  margin: 10px 0;
}
.main-content-1block-full {
  margin: 0;
  background-color: var(--bgwhite);
  /* padding-top: 20px;
  padding-bottom: 20px; */
  color: var(--fontwhite);
}
.linkSection,
.detailSection,
.conferenceSection,
.showpicActivity .officerSection,
.residentSection,
.logoutSection,
.listTopic,
.listOrganization,
.paging,
.bhumibol-hospital,
.searchResult {
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
  margin-bottom: 2.5em;
}
.detailSection,
.conferenceSection,
.showpicActivity,
.logoutSection,
.officerSection,
.residentSection {
  font-family: Prompt;
}
.paging {
  text-align: end;
}
.paging li {
  margin: 0 0.2em;
}
.medicshift {
  background-image: url("../images/bg2.png");
  background-position: center center;
  background-size: cover;
  filter: var(--filter-bg);
  -webkit-filter: var(--filter-bg);
}
.medicshift h2,
.medicshift h3 {
  font-family: Prompt-light;
}
.medicshift-content {
  margin-left: 10%;
  margin-right: 10%;
}
.news {
  background-color: var(--news--bg);
  font-size: 1.0em;
}

.news h2,
.news h3 {
  font-family: Prompt;
  font-style: italic;
}
.listnews > div {
  height: 150px;
  overflow: hidden;
}
.listnews img,
.listnews-firstpage img {
  width: 100%;
  max-width: 267px;
}
.listnews-firstpage > div:not(:first-child):not(:last-child) {
  height: 180px;
  overflow: hidden;
}
.main-content-1block .news,
.linkSection {
  /*padding: 20px;*/
  border-radius: 0.5em;
  -webkit-border-radius: 0.5em;
  -moz-border-radius: 0.5em;
  -ms-border-radius: 0.5em;
  -o-border-radius: 0.5em;
}
.rootnavigator {
  color: var(--rootnavigator);
  font-size: 0.85em;
}
.rootnavigator a {
  color: var(--rootnavigator);
}
.rootnavigator a:hover {
  filter: brightness(120%);
  -webkit-filter: brightness(120%);
}
.rootnavigator div {
  display: inline-block;
  width: fit-content;
}
/* =========== news template =========== */
.news-template1,
.news-template2,
.news-template3,
.news-template4 {
  background-color: var(--news--bg);
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.news-template3-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  padding: 1em 2em 0 2em;
}

.news-template3-firstnews,
.news-template4-firstnews {
  text-align: center;
  padding: 8px 5px;
  grid-row: span 2;
}
.news-template3-firstnews > div {
  height: 450px;
}
.news-template4-firstnews > div {
  position: relative;
  height: 50vh;
}
.news-template4-firstnews > div div {
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  background-repeat: no-repeat;
  background-position: top left;
  background-size: cover;
}
.news-template4-caption {
  text-align: center;
  display: flex;
  align-items: center;
  font-size: 1.5em;
  font-weight: 900;
  padding-left: 1em;
  /* background-color: var(--figcaptionbg4); */
  color: var(--figcaptioncolor4);
  position: relative;
}
.news-template4-caption div {
  position: absolute;
  bottom: 0px;
  right: 0px;
  left: 0px;
  height: 30px;
  color: var(--figcaptioncolor4);
  text-align: end;
  padding: 0 10px 10px 0;
  font-size: 13.6px;
  font-weight: normal;
}
.news-template3-othernews {
  text-align: center;
  padding: 8px 5px;
  background-color: var(--news--bg);
}

.news-template3-othernews > div {
  height: 100%;
}

.news-template3-firstnews > div a > div:first-child,
.news-template3-othernews > div a > div:first-child {
  height: 80%;
  background-repeat: no-repeat;
  background-size: cover;
}

.news-template3-othernews > div a > div:first-child {
  height: 75%;
}

.news-template3-firstnews > div a > div:last-child,
.news-template3-othernews > div a > div:last-child {
  background-color: var(--figcaptionbg1);
  height: 20%;
  position: relative;
  color: var(--figcaptioncolor);
  text-align: start;
  padding: 10px;
}

.news-template3-othernews > div a > div:last-child {
  height: 25%;
  font-family: Prompt-light;
  font-size: 0.8em;
  padding: 5px 10px;
}

.news-template3-firstnews > div a > div:last-child div,
.news-template3-othernews > div a > div:last-child div {
  position: absolute;
  bottom: 0px;
  right: 0px;
  left: 0px;
  height: 30px;
  color: var(--figcaptioncolor);
  text-align: end;
  padding: 0 10px 10px 0;
  font-size: 0.7em;
}

.news-template3-othernews > div a > div:last-child div {
  height: 20px;
  padding-right: 10px;
}
.news-template3-seeallnews {
  font-style: italic;
  font-weight: bold;
  text-align: end;
  padding: 1em 2em;
  font-size: 1em;
  height: fit-content;
}
.news-template3-seeallnews-backup,
.news-template4-seeallnews,
.seeall-font {
  font-style: italic;
  font-weight: bold;
  text-align: end;
  padding: 0 0 1em 0;
  font-size: 1em;
  height: fit-content;
}
.news-template4-seeallnews {
  padding-top: 1em;
}
.seeall-font {
  padding: 0.5em 0.5em 0 0;
  font-size: 1em;
}
.news-template4-headnews,
.news-template3-headnews,
.news-template2-headnews,
.news-template1-headnews {
  font-weight: bold;
  padding: 2em 2em 0;
  height: fit-content;
  position: relative;
  z-index: 1;
  background-image: url(../images/line-background1.png);
  background-repeat: repeat-x;
  background-size: contain;
}
.news-template4-headnews h1,
.news-template3-headnews h1,
.news-template2-headnews h1 {
  font-weight: 900;
  font-style: italic;
}
.news-template4-content {
  padding: 1em 1em 0 1em;
}
/* =============== footer section =============== */
.footer-sect {
  background-color: var(--bgfooter);
  color: var(--fontfooter);
  padding: 20px;
  font-family: Prompt-light;
  font-size: 0.85em;
}
.footer-sect img {
  height: 30px;
  margin-left: 5px;
  margin-right: 5px;
  margin-bottom: 10px;
}
.showSmallNews {
  background-color: transparent;
}
.light-border {
  border: 1px solid var(--primary-dark-border);
}

/* =============== Link Page =============== */
.list-linksite,
.listTopic-item,
.listOrganization .searchResult-item,
.list-download {
  padding-left: 0;
}
.listTopic-item {
  background-color: var(--fontwhite);
  border-radius: 0.3em;
  -webkit-border-radius: 0.3em;
  -moz-border-radius: 0.3em;
  -ms-border-radius: 0.3em;
  -o-border-radius: 0.3em;
}
.list-linksite ul,
.list-download ul,
.listTopic-item ul,
.listTopic-item ol,
.searchResult-item ul,
.searchResult-item ol {
  padding-left: 0;
  margin-left: 0.6em;
}

.list-linksite li {
  list-style: none;
  background-color: var(--list-linksite-bg);
  padding: 0.5em 1em;
  margin-bottom: 0.5em;
  box-shadow: 0px 0px 5px lightgray;
  border-radius: 0.3em;
  -webkit-border-radius: 0.3em;
  -moz-border-radius: 0.3em;
  -ms-border-radius: 0.3em;
  -o-border-radius: 0.3em;
}
.list-download li {
  list-style: none;
  background-color: var(--list-linksite-bg);
  padding: 0.5em 1em;
  margin-bottom: 0.5em;
  box-shadow: 0px 0px 5px lightgray;
  border-radius: 0.3em;
  -webkit-border-radius: 0.3em;
  -moz-border-radius: 0.3em;
  -ms-border-radius: 0.3em;
  -o-border-radius: 0.3em;
}
.list-download li h1,
.list-download li h2,
.list-download li h3,
.list-download li h4,
.list-download li h5 {
  margin-top: 1em;
}
.list-vdo,
.list-conference,.list-research-item {
  position: relative;
  margin-bottom: 1em;
  background-color: var(--bgwhite);
  border-radius: 0.5rem;
  padding: 10px;
  -webkit-border-radius: 0.5rem;
  -moz-border-radius: 0.5rem;
  -ms-border-radius: 0.5rem;
  -o-border-radius: 0.5rem;
  z-index: 0;
}
.list-research-item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: " ";
  /* background-color: var(--bgwhite); */
  background-image: url(../images/icon_research.png);
  background-size: 40% auto;
  background-repeat: no-repeat;
  background-position: top left;
  opacity: 0.08;
  z-index: -1;
}
.list-research-item::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: " ";
  background-color: var(--bgwhite);
  z-index: -2;
}
.list-research-item div:first-child {
  font-size: 1.2em;
  text-decoration: underline;
}
.list-research-item div:nth-child(2) {
  font-size: 1.2em;
  font-weight: bold;
}
/* .list-research-item div:nth-child(3) {
  height: 80px;
  overflow-y: hidden;
  font-size: 1.1em;
  font-weight: bold;
  font-style: italic;
} */
.list-vdo > div div {
  min-height: 250px;
}
.list-conference > div div:first-child {
  /* height : 200px; */
  height: 25vh;
  overflow: hidden;
}
.list-conference > div div:nth-child(2) {
  font-style: italic;
  font-size: smaller;
  margin-top: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--border-general);
}
.list-conference > div div:nth-child(3) {
  font-size: small;
}
.list-conference > div div img {
  width: 105%;
  object-fit: cover;
}
.listTopic li h1,
.searchResult li h1,
.listTopic li h2,
.searchResult li h2,
.listTopic li h3,
.searchResult li h3,
.listTopic li h4,
.searchResult li h4,
.listTopic li h5,
.searchResult li h5 {
  color: #be4e85;
}

.listTopic-item li,
.searchResult-item li {
  list-style: none;
  padding: 1em 0;
  margin-bottom: 0.5em;
}
.listOrganization-item {
  background-color: var(--bgwhite);
  border-radius: 0.3em;
  -webkit-border-radius: 0.3em;
  -moz-border-radius: 0.3em;
  -ms-border-radius: 0.3em;
  -o-border-radius: 0.3em;
  -webkit-border-radius: 0.3em;
}
.listTopic li p,
.searchResult li p {
  margin-top: 1em;
  margin-bottom: 1em;
}
.listOrganization-item > div > div {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.listOrganization-item > div > div:not(:last-child) {
  border-bottom: 3px double var(--border-general);
}
.listOrganization-item > div > div:not(:first-child) {
  margin-top: 10px;
}
.listOrganization-item img {
  width: 100%;
  max-width: 300px;
}
.listOrganization-item-graduation {
  margin-left: 50%;
  transform: translateX(-50%);
  width: fit-content;
}
.listTopic-item li:not(:last-child),
.listTopic-item ol:not(:last-child),
.searchResult-item li:not(:last-child),
.searchResult-item ol:not(:last-child) {
  border-bottom: 1px solid #eaa2c5;
}
.list-linksite li:hover {
  background-color: var(--list-linksite-hover-bg);
}
.list-linksite a:hover {
  color: var(--fontwhite);
}
/* =========== Detail Page =========== */

.detailSection img:first-child {
  /* min-width: 400px;
  max-height: 500px; */
  /* กำหนดขนาดภาพแรกสุดของหน้า */
  text-align: center;
}
.conferenceSection img:first-child {
  /* กำหนดขนาดภาพแรกสุดของหน้า */
  text-align: center;
}
.detailSection img,
.conferenceSection img {
  /* กำหนดขนาดภาพทั่วไปที่อยู่ใน content */
  width: 100%;
  margin: 0 auto;
  margin-bottom: 1em;
}
.showpicActivity img {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
  display: block;
}
.logoutSection img {
  width: 150px;
}
.residentSection img,
.officerSection img {
  width: 100%;
}

/* =========== Nav & Menu section =========== */
.navbar-sect {
  position: relative;
}
.navbar-sect .btn {
  margin-right: 0.5em;
  color: var(--fontwhite);
  background-color: #be4e85;
  border: none;
}
.search-menu .dropdown-toggle::after {
  display: none;
}
.navbar-sect img:hover {
  filter: brightness(150%);
  -webkit-filter: brightness(150%);
}
.nav-section {
  position: absolute;
  width: fit-content;
  /* bottom: 8px; */
  bottom: 0px;
  left: 50%;
  font-size: 0.9em;
  color: var(--fontwhite);
  padding: 4px 5px;
  background-color: var(--dropdown-header-bg);
  border-radius: 50px;
  text-align: center;
  z-index: 200;
  height: 45px;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  box-shadow: 2px 2px 5px #be4e85;
}

a#navbarDropdown,
a.nav-link {
  color: white !important;
}

.slideBanner {
  width: 100%;
}
/* ===================== Special Class ===================== */
.landscape {
  height: 100%;
}

.portrait {
  height: 100%;
  width: auto;
}
.border-bottom1 {
  border-bottom: 1px solid var(--dropdown-border);
}
.beautyfont1 {
  font-family: TS-kaewpet;
  font-size: 4em;
}
.topic-header {
  font-style: italic;
  font-weight: bold;
  margin-bottom: 1em;
  margin-top: 1em;
}
.error-page-img {
  width: 150px;
}
.double-line {
  border-top: 1px solid;
  border-bottom: 1px solid;
}
.bhumibol-hospital h1,
.bhumibol-hospital h2,
.bhumibol-hospital h3,
.bhumibol-hospital h4,
.bhumibol-hospital h5 {
  font-style: italic;
}
.bhumibol-hospital-important {
  border: 10px solid;
  border-radius: 2em;
  padding: 40px 30px;
  border-color: var(--bhumibol-hospital-border);
}
.bhumibol-hospital-important img {
  max-width: 300px;
  float: right;
  margin-top: -1em;
}
.unit-name {
  font-size: 40px;
  font-weight: bold;
  font-style: italic;
  font-stretch: extra-expanded;
  color: var(--fontwhite);
  position: relative;
}
.unit-name-1 {
  position: absolute;
  left: 0;
  top: 40%;
  margin-left: 15px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}
.unit-name-2 {
  position: absolute;
  right: 0;
  color: var(--fontwhite);
  top: 40%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}
.unit-name-2 span:first-child {
  font-size: 0.75em;
}
.unit-name-2 span:last-child {
  font-size: 1em;
}
.smallerFont {
  font-size: smaller;
}

.top-icon-header {
  position: absolute;
  text-align: end;
  top: 0;
  max-width: 1100px;
  left: 10%;
  right: 10%;
  color: var(--fontwhite);
  font-weight: 100;
  font-size: 0.85em;
  padding: 5px;
}
.top-icon-header img {
  width: 20px;
}
.top-icon-header a {
  color: var(--fontwhite);
  font-style: normal;
  text-decoration: none;
}
.center-content,
.center-content-info {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}
.center-content-info {
  left: 50%;
  width: fit-content;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
}
/* =============== All templates =============== */
/* === templete for history === */
/* === template-3 for show all pictures === */
/* === template-4 for show news detail === */
.template-1,
.template-2,
.template-3,
.template-4 {
  background-color: var(--bgwhite);
  border-radius: 0.5rem;
  -webkit-border-radius: 0.5rem;
  -moz-border-radius: 0.5rem;
  -ms-border-radius: 0.5rem;
  -o-border-radius: 0.5rem;
}
.template-1 img {
  max-width: 400px;
  margin-top: 1em;
  margin-bottom: 1em;
}
.template-1 h1,
.template-1 h2,
.template-1 h3,
.template-1 h4,
.template-1 h5 {
  margin-top: 1em;
}
.template-2,
.template-4,
.template-3 {
  padding-left: 2em;
  padding-right: 2em;
}
.template-3 {
  padding-bottom: 2em;
}
.template-3 > div:not(:first-child) {
  height: 160px;
  text-align: center;
}
.template-3 .picture-portriat {
  height: 100%;
  width: auto !important;
  max-width: 100%;
}
.template-3 .picture-landscape {
  width: 100% !important;
  height: auto;
}
.template-3 .a2 {
  background-image: url("../images/blur_bg_grey.jpg");
  background-size: cover;
  background-position: center center;
  content: " ";
  display: block;
}
.template-2 .listitem {
  background-color: var(--bgwhite);
  overflow: hidden;
}
.template-2 .listitem:nth-child(8n + 1),
.template-2 .listitem:nth-child(8n + 2),
.template-2 .listitem:nth-child(8n + 3),
.template-2 .listitem:nth-child(8n + 4) {
  background-color: var(--lightbluebg);
}
.template-2 .listitem3:nth-child(6n + 1),
.template-2 .listitem3:nth-child(6n + 2),
.template-2 .listitem3:nth-child(6n + 3) {
  background-color: var(--lightbluebg);
}
.template-2 .listitem5:nth-child(10n + 1),
.template-2 .listitem5:nth-child(10n + 2),
.template-2 .listitem5:nth-child(10n + 3),
.template-2 .listitem5:nth-child(10n + 4),
.template-2 .listitem5:nth-child(10n + 5) {
  background-color: var(--lightbluebg);
}

.template-2 .listitem-header {
  background-color: var(--bgwhite);
}
.template-2 .listitem img,
.template-2 .listitem5 img {
  height: 100px;
  width: auto;
}
.template-4 div p {
  overflow: auto;
}
.template-4-headpicture img {
  width: 100%;
}
/* .template-4 div p:first-child {
  font-weight: bold;
} */
#showToast {
  z-index: 1000;
  padding: 10px 20px;
  background-color: var(--toast-bg);
  color: var(--toast-color);
  box-shadow: 1px 1px 5px var(--shadow-color);
  border: 1px solid var(--input-border-color);
  border-radius: 0.2rem;
  width: 700px;
  height: 50px;
  position: fixed;
  display: none;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  -webkit-border-radius: 0.2rem;
  -moz-border-radius: 0.2rem;
  -ms-border-radius: 0.2rem;
  -o-border-radius: 0.2rem;
}
#showToast img {
  width: 30px;
  height: 30px;
}
#showAlert {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #00000060;
  display: none;
}
#showAlert > div {
  padding: 5px 20px;
  background-color: var(--alert-bg);
  color: var(--alert-color);
  box-shadow: 1px 1px 5px var(--shadow-color);
  border: 1px solid var(--alert-bg);
  border-radius: 0.2rem;
  min-width: 400px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  -webkit-border-radius: 0.2rem;
  -moz-border-radius: 0.2rem;
  -ms-border-radius: 0.2rem;
  -o-border-radius: 0.2rem;
}
#showAlert > div div:first-child {
  text-align: center;
  display: block;
}
#showAlert > div div:nth-child(2) {
  text-align: center;
  display: block;
  padding: 1.5em 10px;
}
#showAlert > div div:last-child {
  text-align: center;
  display: block;
}
#showAlert button {
  padding-left: 20px;
  padding-right: 20px;
}
#showAlert img {
  width: 80px;
  height: 80px;
  margin-top: -30px;
}
/* =============== สำหรับ page ที่มีการแสดงภาพ =============== */
.showFullPicture {
  position: fixed;
  background-color: rgba(51, 51, 51, 0.9);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  z-index: 200;
  display: none;
}

.showFullPicture > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent;
  width: 90%;
  height: 90%;
  overflow: hidden;
}

.showFullPicture > div > div {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  background-color: white;
  font-size: 2em;
  opacity: 0.5;
}

.showFullPicture > div > img {
  width: 100%;
  height: auto;
}
.spinner-border {
  width: 4rem;
  height: 4rem;
}
#spinner {
  z-index: 1000;
  position: fixed;
  top: 50%;
  left: 50%;
  display: none;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%, -50%);
  -moz-transform: translateX(-50%, -50%);
  -ms-transform: translateX(-50%, -50%);
  -o-transform: translateX(-50%, -50%);
}
/* =============== Customize Carousel =============== */
.carousel-inner .carousel-item {
  opacity: 0;
  transition: none;
  transform: translate3d(0, 0, 0) !important;
}
.carousel-inner .active {
  transition: opacity 3s ease-in-out;
  opacity: 1;
}
.carousel-control-prev-icon {
  background-image: url(../images/icon_previous.png);
}
.carousel-control-next-icon {
  background-image: url(../images/icon_next.png);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 4rem;
  height: 4rem;
}
/* =============== Customize Paging ===============  */
.page-item.active .page-link {
  background-color: var(--pagelink-active);
  border-color: var(--dropdown-border);
}
.page-link {
  border-color: var(--g-border-color);
  background-color: var(--bgwhite);
  border-color: var(--dropdown-border);
}
.page-link:hover {
  color: #f6cbe0;
  background-color: var(--darkpinkcolor);
}
/* =============== Customize Button =============== */
#scrollBtn {
  display:none;
  border: none;
  outline: none;
  position: fixed;
  width: 60px;
  height: 60px;
  right: 2em;
  bottom: 2em;
  z-index: 1000;
  background-color: transparent;
}
#scrollBtn img {
  width:100%;
  height: auto;
  filter: opacity(0.5);
  -webkit-filter: opacity(0.5);
}
#scrollBtn img:hover {
  filter:opacity(1);
  -webkit-filter:opacity(1);
}
.btn-ok,
.btn-green,
.btn-submit,
.btn-cancel,
.btn-submit-no-w100 {
  background-color: var(--darkpinkcolor);
  color: var(--fontwhite);
  width: 100%;
  padding: 10px;
  border: none;
}
.btn-green {
  background-color: var(--btn-green-bg);
}
.btn-cancel {
  background-color: var(--btn-cancel-bg);
}
a.btn-vdoclip {
  color: white;
  background-color: rgba(2, 11, 129, 0.671);
  border-radius: 0.2rem;
  -webkit-border-radius: 0.2rem;
  -moz-border-radius: 0.2rem;
  -ms-border-radius: 0.2rem;
  -o-border-radius: 0.2rem;
}
.btn-vdoclip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--lightbluebg);
  padding: 10px;
  border: none;
  display: block;
  text-align: center;
}
.btn-submit-no-w100 {
  width: fit-content;
  margin: 0 5px;
}
.btn-fitcontent {
  width: fit-content;
  margin: 0 5px;
}
.btn-ok:hover,
.btn-submit:hover,
.btn-submit-no-w100:hover,
button:hover {
  filter: brightness(120%);
  -webkit-filter: brightness(120%);
  font-weight: normal;
  text-decoration: none;
  text-shadow: none;
}
/* Customize color */
.primary_color {
  color: #98b4d4;
}
.primary_dark_color {
  color: #456b96;
}
.primary_light_color {
  color: #c6d8ec;
}
.secondary1_color {
  color: #eaa2c5;
}
.secondary1_dark_color {
  color: #be4e85;
}
.secondary1_light_color {
  color: #f6cbe0;
}
.secondary2_color {
  color: #d9f6aa;
}
.secondary2_dark_color {
  color: #a4d457;
}
.secondary2_light_color {
  color: #eafbcf;
}
.complement_color {
  color: #ffe0b1;
}
.complement_dark_color {
  color: #e6b05f;
}
.border-red {
  border: 1px solid red;
}
.border-yellow {
  border: 1px solid yellow;
}
.border-green {
  border: 1px solid green;
}
.fix-bgcolor-grey {
  background-color: #999999;
}
@media screen and (max-width: 540px) {
  /* ====== Mobile Screen Size ====== */
  .template-4 {
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    -ms-border-radius: 0px;
    -o-border-radius: 0px;
  }
  .listOrganization-item img {
    width: 100%;
    max-width: none;
  }
  .listOrganization-item-graduation {
    width: 100%;
    margin-left: 0;
    text-align: center;
    transform: none;
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    -o-transform: none;
  }
  .news-template4-content {
    padding: 1em 5px 0 5px;
  }
  .news-template4-firstnews > div {
    width: 100%;
    height: 230px;
  }
  .news-template4-firstnews > div div {
    background-position-x: center;
  }
  .news-template4-caption {
    text-align: left;
    display: block;
    font-size: 1em;
    font-weight: normal;
    padding: 10px;
    margin-bottom: 1em;
    background-color: var(--figcaptionbg);
    color: var(--figcaptioncolor);
    height: 100px;
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem
  }
  .news-template4-caption a {
    color: inherit;
  }

  .news-template4-caption div {
    color: var(--figcaptioncolor);
    height: 20px;
  }
  #scrollBtn {
    display:none;
  }
}
@media screen and (min-width: 991px) {
  .fig-news div:first-child {
    height: 190px;
  }
  .fig-news div:last-child {
    height: 85px;
  }
}

@media screen and (min-width: 767px) and (max-width: 991px) {
  .nav-section {
    position: relative;
    box-shadow: none;
    bottom: 0px;
    height: auto;
    width: 100%;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    border-radius: inherit;
    -webkit-border-radius: inherit;
    -moz-border-radius: inherit;
    -ms-border-radius: inherit;
    -o-border-radius: inherit;
  }
  .loginSection {
    margin-top: 4em;
    margin-bottom: 4em;
  }
  .unit-name-2 {
    top: 40%;
  }
  .fig-news div:first-child {
    height: 100px;
  }
  .fig-news div:last-child {
    height: 90px;
  }
  .news-template3-firstnews > div,
  .news-template4-firstnews > div {
    height: 250px;
  }

  .news-template3-firstnews > div a > div:first-child {
    height: 65%;
  }

  .news-template3-firstnews > div a > div:last-child {
    height: 35%;
  }

  .news-template3-othernews > div a > div:last-child {
    overflow: hidden;
  }

  .news-template3-othernews > div a > div:last-child div {
    display: none;
  }
}

@media screen and (max-width: 767px) and (orientation: portrait) {
  .nav-section {
    position: relative;
    box-shadow: none;
    width: 100%;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    bottom: 0px;
    height: auto;
    border-radius: inherit;
    -webkit-border-radius: inherit;
    -moz-border-radius: inherit;
    -ms-border-radius: inherit;
    -o-border-radius: inherit;
  }
  .bhumibol-hospital-important {
    border: none;
    margin-top: 2em;
    margin-bottom: 2em;
    box-shadow: none;
  }
  .bhumibol-hospital-important img {
    max-width: 200px;
    display: none;
  }
  .beautyfont1 {
    font-size: 3em;
  }
  .detailSection img:first-child {
    width: 100%;
    min-width: auto;
    margin-bottom: 0;
  }
  .showpicActivity img {
    width: 100%;
    min-width: auto;
    margin-bottom: 0;
  }
  .detailSection img {
    width: 100%;
    min-width: auto;
    margin-bottom: 0;
  }
  .top-icon-header {
    left: 0;
    right: 0;
  }
  .template-1 img {
    width: 100%;
  }
  .template-2 {
    padding-left: 1em;
    padding-right: 1em;
  }
  .unit-name {
    font-size: 30px;
    white-space: nowrap;
  }
  .unit-name-1 {
    margin-left: 0;
    top: 45%;
  }
  .unit-name-2 {
    top: 30%;
  }
  .unit-name-2 span:first-child {
    font-size: 0.6em;
    white-space: nowrap;
  }
  .unit-name-2 span:last-child {
    font-size: 0.7em;
    white-space: nowrap;
    display: none;
  }
  .fig-news div:first-child {
    height: 230px;
  }
  .fig-news div:last-child {
    height: 90px;
  }
  figcaption {
    font-size: 1em;
  }
  .showFullPicture > div {
    position: absolute;
    background-color: transparent;
    width: 100%;
    height: 100%;
  }
  .showFullPicture > div > div {
    top: 3px;
    right: 3px;
    opacity: 0.5;
  }
  .listnews > div {
    height: 90px;
  }
  .listnews .smallerFont {
    font-size: 0.75em;
  }
  .listnews .center-content {
    top: 0;
    transform: none;
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    -o-transform: none;
  }
  .listnews .center-content h5 {
    font-size: 0.9rem;
  }
  .listitem-header {
    display: none;
  }
  .listnews-firstpage .position-relative {
    height: 80px !important;
  }
  .listnews-firstpage .position-relative h5 {
    font-size: 1em;
  }
  .listnews-firstpage .position-relative .center-content {
    top: 0;
    text-align: start;
    transform: none;
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    -o-transform: none;
  }
  .news-template4,
  .news-template2,
  .news-template3 {
    box-shadow: none;
    border-radius: 0;
  }
  .news-template4-headnews,
  .news-template2-headnews,
  .news-template3-headnews {
    font-weight: bold;
    padding: 1em 0 0 0;
    font-size: 1.0em;
    height: fit-content;
    text-align: center;
  }
  .news-template3-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .news-template3-firstnews > div a > div:first-child,
  .news-template3-othernews > div a > div:first-child {
    height: 230px;
  }

  /* ช่องคำบรรยายภาพ */
  .news-template3-firstnews > div a > div:last-child,
  .news-template3-othernews > div a > div:last-child {
    height: 100px;
  }
  .news-template3-firstnews > div {
    height: auto;
  }

  .news-template3-othernews > div {
    height: auto;
  }

  .news-template3-firstnews {
    grid-row: span 1;
  }

  .grid-item > div {
    height: 200px;
  }
  /* ช่องบอกวันที่ update */
  .news-template3-firstnews > div a > div:last-child div {
    height: 20px;
  }

  .news-template3-othernews > div a > div:last-child {
    font-family: Prompt;
    font-size: 1em;
    padding: 10px;
  }
  .error-page-img {
    width: 100px;
  }
}
