/* html {
  filter: grayscale(80%) brightness(100%) contrast(95%);
  transition: filter 0.3s ease;
} */

.ribbon_mourning {
  position: fixed;
  top: 0px;
  left: 30px;
  z-index: 60;
}

/*-----CustomerInfo-----*/
.addr-set-1 {
  background-image: url(../images/contact/ct_imgbgadd-1.png);
}
.addr-set-2 {
  background-image:
    url(../../images/contact/ct_imgbgadda-2.png),
    url(../../images/contact/ct_imgbgaddb-2.png);
  background-position:
    -110px -50px,
    -600px 130%;
  background-repeat: no-repeat, no-repeat;
}
/* LOGO */
.addr-logo {
  background-image: url(../image/customerinfo/ct_logo.png);
}
.orgleader-bg-1 {
  background-image: url(../images/contact/ct_imgbgpsd-1.png);
}
.orgleader-bg-2 {
  background-image:
    url(../images/contact/ct_imgbg-psda-2.png),
    url(../images/contact/ct_imgbg-psdb-2.png);
  background-position:
    left top,
    center bottom;
  background-repeat: no-repeat, no-repeat;
}
.orgleader-icon {
  mask: url(../../images/contact/ct_icontel.svg) no-repeat center;
  -webkit-mask: url(../../images/contact/ct_icontel.svg) no-repeat center;
}
.orgleader-bg-spct-3 {
  background-image: url(../images/contact/ct_imgbgpsd-3.png);
}
/* LEADER PROFILE */
.orgleader-img-psd {
  background-image: url(../image/customerinfo/ct_president.png);
}
.orgleader-img-dpt {
  background-image: url(../image/customerinfo/ct_deputy.png);
}
/*-----END CustomerInfo-----*/

/* information obt */
.container {
  max-width: 90%;
  position: relative;
  margin: 0 auto;
}
.box-container {
  border: 1px solid #dddddd;
  border-radius: 20px;
  padding: 2rem;
  margin-top: 40px;
}
.box-container:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.system-title {
  font-family: "THSarabunPSKRegular";
  font-weight: bold;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2b96f3;
}
.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.content-item {
  display: flex;
  align-items: flex-start;
  padding: 5px 0px 5px 10px;
  border-bottom: 1px solid #ddd;
  gap: 10px;
  position: relative;
}
.content-item:hover {
  background-image: linear-gradient(90deg, #ffffff, #eaeaea, #ffffff);
}
.content-item img {
  margin-right: 0;
  max-width: 50px;
  height: auto;
  vertical-align: top;
  margin-top: 6px;
}
.content-item span {
  font-family: "THSarabunPSKRegular";
  font-weight: bold;
  flex-grow: 1;
  font-size: 13px;
  color: #333333;
  text-align: left;
}
.content-item a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.7rem;
  color: #2b96f3;
  background-color: #ffffff;
  padding: 0px 10px;
  border: 1px solid #dddddd;
  border-radius: 10px;
  transition: all 0.3s ease;
  min-width: 66px;
}
.content-item a:hover {
  color: #ffffff;
  background-image: linear-gradient(0deg, #2b96f3, #72cbfa);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.content-item a.fix-obt-link {
  display: inline;
  font-size: 12px;
  color: #333333;
  background-image: none;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
}
.content-item a.fix-obt-link:hover {
  color: #ff6600;
  background-image: none;
}

/* link */
a.link-blend:link,
a.link-blend:visited {
  text-decoration: none;
  color: inherit;
}
a.link-blend:hover {
  filter: hue-rotate(180deg) saturate(1.3);
}

/* electtion pop right */
.election-container {
  position: fixed;
  border: 1px solid #ccc;
  border-radius: 15px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 170px;
  height: auto;
  top: 330px;
  right: 200px;
  text-align: center;
  background: linear-gradient(
    to bottom,
    #face4c 0px,
    #face4c 125px,
    #2e388d 125px,
    #2e388d 100%
  );
  max-width: 200px;
  height: auto;
  padding: 20px 10px 20px 10px;
  z-index: 50;
}

.bg-text-white {
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: center;
  width: 179px;
  height: 70px;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: skewX(-15deg);
  transform: skewY(-10deg);
  top: 25px;
  left: -10px;
}

.bg-text-white::after {
  content: "";
  position: absolute;
  bottom: -10px;
  /* ห่างจากขอบล่างของกล่อง */
  left: 2%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 0px solid transparent;
  border-top: 10px solid black;
}

.election-popclose a {
  padding-top: 2px;
  border-radius: 100%;
  background-color: #face4c;
  font-size: 12px;
  position: absolute;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  width: 25px;
  height: 25px;
  right: -10px;
  top: -55px;
}

.election-mascot {
  position: absolute;
  background-image: url(../images/dynamic/election-mascot.png);
  width: 100px;
  height: 136px;
  right: -20px;
  top: -30px;
}

.election-liveicon {
  position: absolute;
  background-image: url(../images/dynamic/election-liveicon.png);
  width: 80px;
  height: 36px;
  left: -10px;
  top: -10px;
}

.election-imgtext {
  position: absolute;
  background-image: url(../images/dynamic/election-text.png);
  width: 100px;
  height: 68px;
  left: 0px;
  top: 30px;
}

.election-text {
  position: relative;
  font-size: 16px;
  font-family: "Sarabun", sans-serif;
  color: #ffffff;
  flex: 1;
  left: 0px;
  margin: 95px 0px 0px 0px;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px 0px 10px 0px;
}

.election-btn {
  background-image: linear-gradient(0deg, #ffffff, #f8f8f8);
  position: relative;
  color: #333333;
  border: 0;
  width: 60px;
  height: 25px;
  /* top: 220px; */
  font-family: "Sarabun", sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
}

.election-btn {
  transition: 100ms ease-in-out;
}

.election-btn:hover {
  width: calc(60px + 10px);
  height: calc(25px * 1.2);
  font-size: calc(16px * 1.2);
  font-weight: 600;
  color: black;
  background-color: white;
  border: 1px solid black;
}

.election-btn:active {
  width: calc(60px + 15px);
  height: calc(25px * 1.5);
  font-size: calc(16px * 1.5);
  border: 1px solid black;
}
/* link-obt */
.container-pop {
  position: fixed;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  flex-wrap: wrap;
  width: fit-content;
  right: 200px;
  top: 0px;
  gap: 0.5rem;
  padding-top: 10px;
  z-index: 102;
}
.item-popup {
  position: relative;
  background-image: url("../bof_v2.1/public/png/bg_popup.png");
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  border-radius: 10px;
  width: 160px;
  color: #111111;
}
.item-popup a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  padding: 5px;
  gap: 0.5rem;
}
.item-popup .icon {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 100%;
  border: 2px solid #ffffff;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  margin: auto;
}
.item-popup .text {
  font-family: "Sarabun", sans-serif;
  font-size: 14px;
  color: #111111;
  text-align: center;
}
.item-popup .close {
  position: absolute;
  display: inline-block;
  background-image: linear-gradient(0deg, #ff7900 20%, #ffffff 100%);
  border-radius: 100%;
  border: 2px solid #ff7300;
  cursor: pointer;
  color: #000000;
  font-family: "Sarabun", "THSarabunPSKRegular", sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  width: 25px;
  height: 25px;
  left: -30px;
  top: 0px;
}

/* Google Map Location */
.map-wrapper {
  border-radius: 0.5rem;
  box-shadow:
    0 20px 30px -10px rgba(0, 0, 0, 0.1),
    0 8px 20px -5px rgba(0, 0, 0, 0.1);
}

.map-frame {
  position: absolute;
  inset: 0;
  transition: filter 500ms ease;
}

.map-frame iframe {
  border: 0;
}

/* invisible overlay sizing */
.map-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
}

/* button position */
.map-btn-wrapper {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  z-index: 50;
}

/* backdrop-blur (Bootstrap ไม่มี) */
.map-btn {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    background-color 200ms ease,
    color 200ms ease;
  font-size: 14px !important;
}

/* default color classes */
a.map-btn-default {
  color: #333333;
  background-color: rgba(255, 255, 255, 0.9);
}

a.map-btn-default:hover {
  background-color: #333333;
  color: #ffffff;
}

.map-pin-tooltip {
  top: calc(50% - 80px);
  /* dynamic position */
  background-color: rgba(255, 255, 255, 0.8);
  /* bg-opacity ไม่มี 95 */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 15px;
  color: #1e293b;
  transition:
    opacity 400ms ease,
    transform 400ms ease;
}

.map-pin-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.8);
}

/* Strategy Additional File */
.pdf-hover {
  transition: all 0.25s ease;
}

a.pdf-hover:hover {
  box-shadow: inset 3px 3px 5px rgba(0, 0, 0, 0.3);
}

/* Banner Web */
.banner-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
  margin: 0 auto;
}

.banner-container {
  position: relative;
  width: 225px;
  aspect-ratio: 225 / 150;
  outline: 3px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border-radius: 15px;
  transition: transform 0.2s ease-in-out;
}
.banner-container:hover {
  transform: scale(1.04);
}
.banner-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
