/* Custom syles for Cthai Chemicals Theme */

:root {
  --primary-color: #f69123;
  --secondary-color: #1a2256;
  --secondary-color2: #2B3990;
  --background-headmain: #070707;
  --background-footermain: #0d0f17;
  --background-main: #12151f;
  --background-main2: #1c1f29;
  --background-green: #a6d719;
  --thrid-color: #6B74B1;
  --white-color: #fff;
  --content-color: #475467;
  --gray-text-color: #d1caca;
  --graygreen-bg-color: #F2F4F7;
  --textlink-color: #4da6ff;
  --textlink-color2: #c59d00;
  --primay-sub-color: rgba(170, 176, 211, 1);
  --main-font-size: 16px;
  --bigger-font-size: 20px;
  --mini-font-size: 14px;
  --blockquote-font-size: 24px;
  --font-family-mixed-head: "Kanit";
  --font-family-mixed-content: "Sarabun";
}

* {
  font-family: var(--font-family-mixed-content);
}

#masthead {
  position: relative;
  z-index: 99;
}

#masthead.headmenufront {
  /* background: rgba(26, 34, 86, 0.05); */
  background-color: var(--background-headmain);
  transition: ease-in-out 0.3s;
}

#masthead.headmenufront:hover {
  background-color: var(--background-headmain);
}

#masthead.headmenufront #mega-menu-wrap-menu-1 {
  background-color: transparent;
}

#masthead {
  background-color: var(--background-headmain);
}

#masthead:before {
  content: '';
  display: none;
  width: 300px;
  height: 15px;
  background-color: var(--background-headmain);
  position: absolute;
  bottom: -14px;
  left: calc(50% - 150px);
  clip-path: polygon(0% 0%, 100% 0%, 95% 100%, 5% 100%);
}

.site-branding a img {
  height: 30px;
  width: auto;
  margin-top: 8px;
  margin-bottom: 8px;
}

.main-navigation,
#mega-menu-wrap-menu-1 {
  display: inline-block !important;
  vertical-align: top;
  margin-bottom: -1px;
}

.langswitchcover {
  color: var(--white-color);
  margin-top: 24px;
}

.site-footer {
  color: var(--white-color);
  position: relative;
  background-color: var(--background-footermain);
}

.site-footer:before {
  content: '';
  display: inline-block;
  width: 300px;
  height: 15px;
  background-color: var(--background-footermain);
  position: absolute;
  top: -14px;
  left: calc(50% - 150px);
  clip-path: polygon(5% 0%, 95% 0%, 100% 100%, 0% 100%);
}

.footerinfo {
  padding-top: 30px;
  padding-bottom: 40px;
}

.disclaimer {
  font-size: var(--mini-font-size);
}

.footercopyright {
  border-top: 1px solid #222;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: var(--mini-font-size);
  color: var(--gray-text-color);
}


.topadsarea {
  background-color: #000;
  padding-top: 16px;
  padding-bottom: 4px;
  text-align: center;
}


.wrapper {
  position: relative;
  padding-top: 42.15714285714286%;
  /* 21:9 */
}

.wrapper iframe,
.wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}






#page {
  overflow: hidden;
}

.display {
  font-family: "Petit Formal Script", cursive;
  font-weight: 400;
  font-size: 64px;
  line-height: 86px;
}

p {
  font-family: var(--font-family-mixed-content);
  font-size: var(--main-font-size);
  line-height: 32px;
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--font-family-mixed-head);
  font-size: 52px;
  line-height: 64px;
  font-weight: 400;
}

h1.head {
  font-size: 52px;
  line-height: 88px;
}

h2 {
  font-family: var(--font-family-mixed-head);
  font-size: 44px;
  font-weight: 400;
  line-height: 58px;
}

h3 {
  font-family: var(--font-family-mixed-head);
  font-size: 38px;
  line-height: 52px;
  font-weight: 500;
}

h4 {
  font-family: var(--font-family-mixed-head);
  font-size: 32px;
  line-height: 42px;
  font-weight: 500;
}

h5 {
  font-family: var(--font-family-mixed-head);
  font-size: 26px;
  line-height: 32px;
  font-weight: 500;
  position: relative;
}

h6 {
  font-family: var(--font-family-mixed-head);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}

dl,
ol,
ul {
  margin-bottom: 1.5rem;
  margin-left: 8px;
}

li {
  line-height: 32px;
}


.button.outline {
  border: 1px solid var(--white-color);
  text-decoration: none !important;
  color: var(--white-color);
  border-radius: 8px;
  padding: 12px 36px 16px;
  font-weight: bold;
  display: inline-block;
}

.button.outline:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}

.sidebarmain {
  width: 350px;
}



ul.slick-dots {
  margin-left: 0px;
  padding-left: 0px;
  position: absolute;
  bottom: -35px;
  margin-bottom: 0px;
  left: 0px;
  right: 0px;
  text-align: center;
}

ul.slick-dots li {
  display: inline-block;
  vertical-align: top;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--white-color);
  overflow: hidden;
  margin-left: 5px;
  margin-right: 5px;
}

ul.slick-dots li:hover {
  cursor: pointer;
}

ul.slick-dots li.slick-active {
  background-color: #F04438;
}

ul.slick-dots li button {
  display: none;
}

.slick-prev {
  position: absolute;
  top: 48%;
  left: -80px;
  width: 48px;
  height: 48px;
  background: rgba(120, 193, 182, 0.2);
  color: transparent !important;
  overflow: hidden;
  border-radius: 50%;
  border: 0px !important;
  background-image: url('images/arrow-left-line.svg');
  background-repeat: no-repeat;
  background-position: 7px 8px;
}

.slick-prev:hover,
.slick-next:hover {
  background-color: rgba(120, 193, 182, 0.4);
}

.slick-next {
  position: absolute;
  top: 48%;
  right: -80px;
  width: 48px;
  height: 48px;
  background: rgba(120, 193, 182, 0.2);
  color: transparent !important;
  overflow: hidden;
  border-radius: 50%;
  border: 0px !important;
  background-image: url('images/arrow-right-line.svg');
  background-repeat: no-repeat;
  background-position: 7px 8px;
}




/*Seed Social*/
article {
  position: relative;
}

.seed-social {
  position: absolute;
  left: -140px;
  top: 2px;
  margin-top: 0px;
}

.seed-social:before {
  content: 'Share';
  text-align: center;
  font-weight: bold;
  display: block;
  font-size: var(--main-font-size);
  margin-bottom: 52px;
}

.seed-social:after {
  content: '';
  display: inline-block;
  width: 2px;
  background-color: var(--secondary-color);
  position: absolute;
  top: 34px;
  left: 39px;
  height: 35px;
}

.seed-social>li {
  display: block;
  margin-right: 0px;
  margin-bottom: 16px;
}

.seed-social>li a {
  background-color: transparent !important;
}

.seed-social svg,
.seed-social span {
  color: var(--primary-color);
}

.seed-social span {
  display: none !important;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  width: 1rem;
  height: 1rem;
}


/*Article*/
.secondarymenucover.swallowedstar {
  background-color: var(--background-footermain);
}

.postcontent.swallowedstar {
  background-color: var(--background-main);
}

.postcontent {
  position: relative;
  padding-bottom: 60px;
}

.postcontent>.container {
  z-index: 5;
  position: relative;
}

.entry-header {
  margin-top: 24px;
}

.entry-header h1 {
  display: flex;
  color: var(--white-color);
  font-size: 40px;
  position: relative;
  padding-left: 36px;
  align-items: center;
  margin-bottom: 24px;
}

.entry-header h1:before {
  position: absolute;
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  top: 25px;
  left: 0px;
  background-color: var(--background-green);
  transform: rotate(45deg);
}

.entry-header h1:after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #a3cf06;
  margin-left: 15px;
  margin-top: 4px;
}

.entry-header .newscat {
  color: #fff;
  padding: 1px 12px 3px;
  display: inline-block;
  font-size: var(--main-font-size);
  font-weight: 300;
  background-color: var(--secondary-color);
  border-radius: 4px;
}

.entry-header .newsdate {
  color: var(--thrid-color);
  display: inline-block;
  vertical-align: top;
  padding-left: 40px;
  background-image: url('images/calendar-line.svg');
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: 14px 3px;
  margin-top: 2px;
}

h2.entry-title {
  margin-top: 24px;
  color: var(--primary-color);
  margin-bottom: 36px;
}


.entry-content {
  padding-bottom: 4rem;
}

.entry-content ol,
.entry-content ul,
.entry-content dl {
  margin-top: 0px;
}

.entry-content ol li ol,
.entry-content ol li ul,
.entry-content ol li dl,
.entry-content ul li ol,
.entry-content ul li ul,
.entry-content ul li dl,
.entry-content dl li ol,
.entry-content dl li ul,
.entry-content dl li dl {
  margin-top: 0px;
}

.entry-content h1~ol,
.entry-content h2~ol,
.entry-content h3~ol,
.entry-content h4~ol,
.entry-content h5~ol,
.entry-content h6~ol,
.entry-content h1~ul,
.entry-content h2~ul,
.entry-content h3~ul,
.entry-content h4~ul,
.entry-content h5~ul,
.entry-content h6~ul,
.entry-content h1~dl,
.entry-content h2~dl,
.entry-content h3~dl,
.entry-content h4~dl,
.entry-content h5~dl,
.entry-content h6~dl {
  margin-top: 0px;
}

ul li p:has(+ ul, + ol),
ol li p:has(+ ul, + ol) {
  margin-bottom: 0px;
}

.entry-content,
.entry-content p,
.entry-content li {
  font-family: var(--font-family-mixed-content);
  color: var(--gray-text-color);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--font-family-mixed-head);
  color: var(--white-color) !important;
  margin-bottom: 24px;
  position: relative;
}

.entry-content h4,
.entry-content h5 {
  padding-left: 20px;
  margin-top: 2.5rem;
}

.entry-content h4:before,
.entry-content h5:before {
  position: absolute;
  content: '';
  display: inline;
  width: 100%;
  height: 1px;
  bottom: -8px;
  left: 0px;
  border-top: 1px solid #555;
}

.entry-content h4:after,
.entry-content h5:after {
  position: absolute;
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  top: 12px;
  left: 0px;
  background-color: var(--background-green);
}

.entry-content h6 {
  padding-left: 20px;
  margin-bottom: 8px;
  margin-top: 2rem;
}

.entry-content h6:after {
  position: absolute;
  content: '';
  display: inline-block;
  width: 13px;
  height: 2px;
  top: 12px;
  left: 0px;
  background-color: var(--background-green);
}

.entry-content b,
.entry-content strong {
  color: var(--white-color);
}

.entry-content a {
  text-decoration: none;
  color: var(--textlink-color2) !important;
}

.entry-content a:hover {
  text-decoration: underline;
}

.breadcrumb a {
  color: var(--gray-text-color);
  font-size: 12px;
}

.ccbyca {
  background: var(--background-main2);
  font-size: 12px;
  padding: 16px;
  margin-top: 36px;
}

.breadcrumb {
  display: block;
  font-size: 12px;
  margin-top: 12px;
  margin-bottom: 8px;
  color: var(--gray-text-color);
}

blockquote {
  display: block;
  color: var(--white-color);
  padding: 0px 24px 0px 24px;
  position: relative;
  margin-top: 24px;
  margin-bottom: 24px;
  border-left: 5px solid var(--background-green);
}

.entry-content blockquote p {
  color: var(--white-color);
}


.sidebarmaininner {
  background-color: var(--background-main2);
  text-align: center;
  padding: 18px 12px 12px 12px;
  margin-top: 20px;
}

.spinfoblockoutter {
  background-color: var(--background-main2);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.spinfoblocklisthead {
  color: var(--white-color);
  padding-top: 6px;
  padding-bottom: 6px;
  font-weight: 600;
}

.spinfoblocklisttext {
  padding-top: 6px;
  padding-bottom: 6px;
}



/*Privacy*/
.privacycover {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--graygreen-bg-color);
  position: relative;
  background-repeat: no-repeat;
  background-size: 500px;
  background-position: top right calc(50% - 588px);
}

.privacycover .ctaelementa1 {
  content: '';
  display: inline-block;
  z-index: 1;
  left: calc(50% - 920px);
  top: 520px;
  background-repeat: no-repeat;
  background-size: cover;
  width: 520px;
  height: 350px;
  position: absolute;
  opacity: 0.6;
  transform: rotate(-90deg);
}

.privacycover .ctaelementa2 {
  content: '';
  display: inline-block;
  z-index: 1;
  right: calc(50% - 820px);
  bottom: 220px;
  background-repeat: no-repeat;
  background-size: cover;
  width: 520px;
  height: 350px;
  position: absolute;
  opacity: 0.6;
}

.privacymenucol {
  background-color: var(--graygreen-bg-color);
  box-shadow: -1px -3px 24px 1px rgba(234, 235, 244, 1);
  position: relative;
  z-index: 3;
}

.privacycontentcol {
  background: linear-gradient(180deg, rgba(252, 252, 252, 1) 2.1%, #FFFFFF 100%);
  position: relative;
  z-index: 3;
}

ul.privacymenu {
  margin-left: 0px;
  margin-bottom: 0px;
  padding-left: 0px;
  padding-top: 12px;
}

ul.privacymenu li,
ul.privacymenu li a {
  list-style: none;
  display: block;
}

ul.privacymenu li a {
  text-decoration: none !important;
  color: var(--secondary-color);
  font-weight: normal;
  padding: 16px;
  font-size: 18px;
  border-radius: 8px;
  font-family: var(--font-family-mixed-head);
}

ul.privacymenu li.current_page_item a {
  color: var(--secondary-color);
  background-color: var(--white-color);
}

ul.privacymenu li a:hover {
  color: var(--thrid-color);
}

.privacycontentcover {
  padding: 48px 48px 24px;
  color: var(--content-color);
}


.privacymenufooter ul {
  padding-top: 0px;
}

.privacymenufooter ul li {
  display: inline-block;
  vertical-align: top;
  line-height: 20px;
}

.privacymenufooter ul li a {
  display: inline-block;
  padding: 0px 4px;
  font-size: 12px;
  font-weight: 400;
  border-radius: 0px;
  color: var(--gray-text-color);
}

#menu-about-us-footer li a {
  font-size: 16px;
}

.privacymenufooter ul li a:hover {
  color: var(--primary-color) !important;
  text-decoration: underline !important;
}

.privacymenufooter ul.privacymenu li.current_page_item a {
  background: transparent;
  color: var(--gray-text-color);
}

.privacycontentcover h5,
.privacycontentcover h6 {
  margin-top: 32px;
}

table {
  width: 100%;
  font-size: 14px;
  background: var(--background-main2);
  border: 0px;
}

table thead tr th {
  background-color: var(--background-main);
  padding: 8px 8px;
  color: #fff;
  text-align: left;
  font-weight: bold;
  border-top: 1px solid #555;
  border-bottom: 1px solid #555;
}

table tbody tr td {
  padding: 8px 8px;
  color: #fff;
  border-bottom: 1px solid #333;
  text-align: left;
}

.error-404 h1 {
  font-size: 260px;
  line-height: 260px;
}



/*Home Hero*/


/*Spa*/
.homeherocover {
  position: relative;
  height: 720px;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.heroimagebg {
  height: 720px;
  position: absolute !important;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  background-repeat: no-repeat;
  background-size: cover;
}

.heroimagebgin img {
  width: 100%;
}

.homeherocover:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(-89.07deg, rgba(21, 5, 6, 0) 60%, rgba(8, 15, 31, 0.6) 99.12%);
  z-index: 3;
}

.homeherocontentcover {
  position: absolute;
  top: 0px;
  margin-left: auto;
  margin-right: auto;
  bottom: 0px;
  left: 0px;
  right: 0px;
  z-index: 5;
}

.homeherocontentcover>.row {
  height: 100%;
}

.homeherocontent {
  color: var(--white-color);
}

.homeherocontent {
  text-shadow: 1px 1px 4px #000;
}

.homeaboutcontent p:last-child {
  margin-bottom: 8px;
}

.homeherolink {
  margin-top: 30px;
}

.heroimagebgin {
  padding-top: 720px;
}

.heroimagebgin img {
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  top: 0;
  -o-object-fit: cover;
  font-family: "object-fit:cover";
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.ctcheroimagebg {
  height: 780px;
  position: absolute !important;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  background-repeat: no-repeat;
  background-size: cover;
}

.ctchomeherocover.generalcover {
  height: 620px;
  margin-top: 0px;
  position: relative;
}

.ctchomeherocover.generalcover .ctcheroimagebg {
  height: 620px;
  margin-top: 0px;
  background-position: top;
}

.ctchomeherocover.generalcover .homeherocontentcover {
  margin-top: 260px;
}

/*Contact*/
.contactcover {
  padding-top: 0px;
  padding-bottom: 80px;
  background-color: var(--graygreen-bg-color);
  margin-top: -270px;
}

.contactcoverin {
  background-color: var(--background-main2);
  padding-top: 60px;
  padding-bottom: 60px;
  position: relative;
  color: var(--white-color);
  padding-left: 48px;
  padding-right: 48px;
  border-left: 3px solid var(--primary-color);
  border-right: 3px solid var(--primary-color);
  border-top: 3px solid var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  z-index: 6;
}

.contactcoverin:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 300px;
  background-color: var(--primary-color);
  position: absolute;
  top: 30px;
  left: -10px;
  clip-path: polygon(0% 5%, 100% 0%, 100% 100%, 0% 95%);
}

.contactcoverin:after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 300px;
  background-color: var(--primary-color);
  position: absolute;
  bottom: 30px;
  right: -10px;
  clip-path: polygon(0% 0%, 100% 5%, 100% 95%, 0% 100%);
}

.contactcoverin .generalblocktext h6 {
  margin-top: 60px;
  color: var(--primary-color);
}

.contactformcover {
  background-color: var(--white-color);
  padding: 30px 30px 0px 30px;
  border: 1px solid #F9FAFB;
}

.contactformcover h5 {
  color: var(--background-main);
  text-align: center;
}

.cthfield {
  position: relative;
}

.cthfield .forminator-label {
  display: none !important;
}

.cthfield input,
.cthfield textarea {
  outline: 0px !important;
}

.cthfield input[type="text"],
.cthfield input[type="email"] {
  border-radius: 6px !important;
  border: 1px solid #C4CDD5 !important;
  height: 48px !important;
  padding: 11px 12px 13px 12px !important;
}

.cthfield textarea {
  border-radius: 6px !important;
  border: 1px solid #C4CDD5 !important;
  padding: 11px 12px 13px 12px !important;
}

.cthfield .forminator-is_active input[type="text"],
.cthfield .forminator-is_active input[type="email"],
.cthfield .forminator-is_active textarea {
  border: 1px solid var(--primary-color) !important;
}

.cthfield input[type="text"]::placeholder,
.cthfield input[type="email"]::placeholder,
.cthfield textarea::placeholder {
  color: #919EAB !important;
  font-size: 14px;
  transition: ease-in-out 0.3s;
}

.cthfield input[type="text"]:focus::placeholder,
.cthfield input[type="email"]:focus::placeholder,
.cthfield textarea:focus::placeholder {
  opacity: 0;
}

.cthfieldcheck .forminator-label {
  color: var(--primary-color);
  font-size: var(--main-font-size) !important;
}

.cthfieldcheck.yourfile .forminator-label {
  color: var(--primary-color);
  font-size: var(--main-font-size) !important;
  margin-bottom: 10px !important;
}

.cthfieldcheck.yourfile .forminator-file-upload span {
  color: var(--gray-text-color);
}

.cthfieldcheck .forminator-checkbox-label {
  font-size: var(--main-font-size) !important;
  color: #475467 !important;
}

.cthfieldcheck .forminator-checkbox-box,
.cthfield .forminator-checkbox-box {
  border-color: #2B3990 !important;
  background-color: transparent !important;
}

.cthfieldcheck .forminator-checkbox-box:before,
.cthfield .forminator-checkbox-box:before {
  color: #2B3990 !important;
}

.cthfieldcheck .forminator-is_checked .forminator-checkbox-label {
  color: #2B3990 !important;
  font-weight: 600;
}

.cthfield .forminator-description {
  color: var(--gray-text-color);
  position: absolute;
  bottom: -24px;
  right: 15px;
}

.cthfield .forminator-checkbox-box {
  vertical-align: top;
  margin-top: 5px;
}

.cthfield.consent {
  margin-top: 12px !important;
}

.cthfield .forminator-consent__label p {
  color: #667085;
  font-size: 14px !important;
  line-height: 22px;
  margin-top: 4px;
}

.cthfield .forminator-consent__label p a {
  color: #667085 !important;
  text-decoration: underline !important;
}

.forminator-edit-module {
  display: none;
}

.cthfield.sendsubmit {
  background: linear-gradient(107.67deg, var(--primary-color) 4.5%, var(--primary-color) 68.92%) !important;
  width: 100% !important;
  border-radius: 8px !important;
  text-align: center !important;
  color: var(--white-color);
  height: 56px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-top: 20px !important;
  position: relative;
}

.cthfield.sendsubmit:before {
  position: absolute;
  top: 16px;
  left: calc(50% + 60px);
  display: inline-block;
  content: '';
  width: 24px;
  height: 24px;
  background-image: url('images/mail-send-line.svg');
  background-repeat: no-repeat;
  background-size: 24px;
  opacity: 0;
  transition: ease-in-out 0.1s;
}

.cthfield.sendsubmit:hover {
  box-shadow: none !important;
  background: linear-gradient(107.67deg, var(--primary-color) 4.5%, var(--primary-color) 68.92%) !important;
}

.cthfield.sendsubmit:hover:before {
  opacity: 1;
}

.contactcover .generalblocktext,
.contactcover .generalblocktext h3 {
  color: var(--white-color);
}

.contactcover .generalblocktext a {
  text-decoration: none;
  color: var(--textlink-color2) !important;
}

.contactcover .generalblocktext a {
  text-decoration: underline;
}

/**Featured*/
.homefeatured {
  padding-top: 60px;
  padding-bottom: 60px;
}


/*maincontent*/
.maincontent h3 {
  position: relative;
  padding-left: 24px;
  margin-bottom: 24px;
}

.maincontent h3:before {
  content: '';
  width: 7px;
  background-color: var(--primary-color);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  clip-path: polygon(0% 0%, 100% 10%, 100% 90%, 0% 100%);
}

.story-content img {
  max-width: 50px;
  margin: 0px 8px;
}

.story-content a {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  color: var(--white-color);
  background-color: var(--primary-color);
  padding: 8px 24px;
  border-radius: 8px;
  margin-top: 24px;
}

#mega-menu-wrap-menu-1 .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated-inner,
#mega-menu-wrap-menu-1 .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated-inner::before,
#mega-menu-wrap-menu-1 .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated-inner::after,
#mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle .mega-toggle-block-2 .mega-toggle-animated-inner,
#mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle .mega-toggle-block-2 .mega-toggle-animated-inner::before,
#mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle .mega-toggle-block-2 .mega-toggle-animated-inner::after {
  border-radius: 0px !important;
}

.wp-caption.alignnone {
  width: 100% !important;
}




/*Swallowed Star*/
.swmenulogo a img {
  margin-top: -6px;
  margin-right: 24px;
}

.mega-sticky-wrapper .swmenulogo a img {
  height: 70%;
}

.sws-accordion-container {
  margin: 20px auto;
}

.sws-toggle-input {
  display: none;
}

.sws-accordion-item {
  margin-top: -1px;
  overflow: hidden;
}

.sws-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 12px 0px;
  cursor: pointer;
  user-select: none;
  transition: ease-in-out 0.3s;
  border-top: 1px solid transparent;
}

#sws_row_1~.sws-accordion-header {
  border-top: 1px solid transparent !important;
}

.sws-accordion-header:hover .sws-name {
  color: var(--background-green);
}

.sws-accordion-header:hover .sws-name span {
  color: var(--white-color);
}

.sws-accordion-header:hover .sws-arrow {
  border-right: 2px solid var(--background-green);
  border-bottom: 2px solid var(--background-green);
}

.sws-listheader {
  width: 100%;
  position: relative;
  color: var(--white-color);
  border-bottom: 1px solid #999;
  padding: 12px 12px;
  margin-bottom: 12px;
  background: #1c212f;
}

.sws-listheader-rank {
  position: absolute;
  display: inline-block;
  top: 12px;
}

.sws-listheader-name {
  vertical-align: top;
  display: inline-block;
  padding-left: 48px;
}

.sws-listheader-lifespan {
  position: absolute;
  display: inline-block;
  top: 12px;
  right: 70px;
  width: 260px;
  text-align: center;
}

.sws-header-text {
  position: relative;
  width: 100%;
}

.sws-rank {
  color: #a6d719;
  font-weight: 600;
  width: 60px;
  height: 30px;
  display: inline-block;
  text-align: center;
  line-height: 28px;
  font-size: 20px;
  position: absolute;
  left: 0px;
  top: -2px;
}

.sws-name {
  color: var(--white-color);
  display: inline-block;
  padding-left: 60px;
}

.sws-name span {
  font-size: 13px;
  display: block;
  font-weight: 300;
}

.sws-life {
  display: flex;
  position: absolute;
  right: 50px;
  top: 0px;
  bottom: 0px;
  font-size: 13px;
  color: #999;
  text-align: center;
  width: 260px;
  justify-content: center;
  align-self: center;
}

/* ลูกศรด้านขวา */
.sws-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
  transition: transform 0.3s;
  position: absolute;
  right: 12px;
  top: 14px;
}

/* ส่วนเนื้อหา (ซ่อนไว้เริ่มต้น) */
.sws-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.sws-content-inner {
  padding: 00px 20px 20px 60px;
  border-bottom: 1px solid #555;
  line-height: 1.6;
}

.sws-toggle-input:checked~.sws-accordion-content {
  max-height: 3000px;
}

.sws-toggle-input:checked~.sws-accordion-header .sws-arrow {
  transform: rotate(-135deg);
  margin-top: 5px;
}

.sws-toggle-input:checked~.sws-accordion-header .sws-name {
  color: #a6d719;
}

.sws-toggle-input:checked~.sws-accordion-header .sws-name span {
  color: var(--white-color);
}

.sws-toggle-input:checked~.sws-accordion-header {
  border-top: 1px solid #555;
  padding-top: 30px;
}

.sws-controls {
  position: absolute;
  right: 12px;
  top: 12px;
}

.sws-controls button {
  padding: 0px 0px;
  cursor: pointer;
  color: var(--white-color);
  border: none;
  transition: all 0.3s ease;
  background-color: transparent;
}

.sws-controls button:hover {
  color: var(--background-green);
}

.swsrelatedtopmenucover a {
  display: block;
  background: var(--background-footermain);
  border: 1px solid var(--background-main2);
  text-decoration: none;
  padding: 6px 12px;
  color: var(--gray-text-color);
  border-radius: 6px;
  position: relative;
  height: 100%;
  align-content: center;
}

.swsrelatedtopmenucover a:hover {
  color: var(--background-green);
  background: var(--background-main2);
}

.swsrelatedtopmenucover span {
  display: block;
  background: var(--background-main2);
  border: 1px solid var(--background-main2);
  text-decoration: none;
  padding: 6px;
  color: var(--background-green);
  border-radius: 6px;
  height: 100%;
  align-content: center;
}

.swsrelatedtopmenucover .hasarrow:first-child a:before {
  content: "\f141";
  font-family: dashicons;
  position: absolute;
  left: 12px;
  top: calc(50% - 12px);
}

.swsrelatedtopmenucover .hasarrow:last-child a:after {
  content: "\f139";
  font-family: dashicons;
  position: absolute;
  right: 12px;
  top: calc(50% - 12px);
}





.infozone {
  padding: 16px;
  color: var(--gray-text-color);
  text-align: left;
  border-bottom: 1px solid #333;
  margin-bottom: 16px;
}

.infozone.middleads {
  border-top: 1px solid #333;
}

.infozone h6 {
  color: var(--background-green);
  text-align: left;
  margin-bottom: 12px;
}

.infozone ul.updated-post-list {
  list-style-type: none;
  margin-left: 0px;
  padding-left: 0px;
  margin-bottom: 0px;
}

.infozone ul li {
  padding-left: 24px;
}

.infozone ul li strong {
  font-weight: 500;
  display: block;
  padding-left: 0px;
  position: relative;
}

.infozone ul li strong:before {
  content: '';
  position: absolute;
  left: -20px;
  top: 16px;
  height: 1px;
  width: 10px;
  background-color: var(--background-green);
}

.infozone ul li strong a {
  font-weight: 500;
  display: block;
  color: var(--white-color) !important;
  text-decoration: none !important;
}

.infozone ul li strong a:hover {
  color: var(--primary-color) !important;
}

.infozone ul li small {
  margin-top: -10px;
  display: block;
}

.infozone a {
  color: var(--white-color);
  text-decoration: none;
}

.infozone a:hover {
  color: var(--primary-color);
}

.infozone a[target="_blank"]:after {
  content: "\f504";
  font-family: 'dashicons';
  font-size: 12px;
  display: inline-block;
  font-weight: 100;
  margin-left: 6px;
  color: var(--primary-color);
}

.sidebarmaininner .infozone:last-child {
  border-bottom: 0px;
}

.sidebarmaininner .infozone:last-child p:last-child {
  margin-bottom: 0px;
}

.adszone {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
  text-align: center;
}

.adszone::after {
  content: 'Advertisement';
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-text-color);
}

.adszone.adsmidcontent {
  margin-top: 20px;
}

figure {
  margin-bottom: 0px;
}

#mega-menu-wrap-menu-1 .mega-menu-toggle.mega-menu-open~button.mega-close,
#mega-menu-wrap-menu-1 .mega-menu-toggle~button.mega-close {
  right: 10px;
  top: 10px !important;
}

li.mega-mobilelogo a.mega-menu-logo {
  margin-top: 40px !important;
}

/*Cookie Consent*/
#cookieadmin_reject_button, 
#cookieadmin_notice_title{
  display: none;
}
.cookieadmin_notice_group{
  width: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}
#cookieadmin_notice{
  margin-bottom: 0px;
}
#cookieadmin_notice a{
  color: var(--primary-color);
}
#cookieadmin_accept_button, 
#cookieadmin_accept_modal_button{
  border: 1px solid var(--primary-color);
}
.cookieadmin_desc{
  font-size: 14px;
}
.cookieadmin_types[aria-labelledby="cookieadmin-necessary-heading"] #cookieadmin-necessary-heading{
  display: none;
}
.cookieadmin_types[aria-labelledby="cookieadmin-necessary-heading"] .cookieadmin_header > span:after {
  content: 'คุกกี้ที่จำเป็น';
  font-weight: 600;
}
.cookieadmin_types[aria-labelledby="cookieadmin-necessary-heading"] .cookieadmin_desc:before {
    content: 'คุกกี้ที่มีความจำเป็นช่วยให้คุณใช้งานเว็บไซต์ได้อย่างราบรื่น เช่น การเข้าสู่ระบบอย่างปลอดภัย หรือการจดจำการตั้งค่าความเป็นส่วนตัวของคุณ คุกกี้เหล่านี้ไม่มีการจัดเก็บข้อมูลที่สามารถระบุตัวตนของคุณได้';
    display: block;
    font-size: 14px;
}

.cookieadmin_types[aria-labelledby="cookieadmin-functional-heading"] #cookieadmin-functional-heading{
  display: none;
}
.cookieadmin_types[aria-labelledby="cookieadmin-functional-heading"] .cookieadmin_header > span:after {
  content: 'คุกกี้เพื่อการใช้งาน';
  font-weight: 600;
}
.cookieadmin_types[aria-labelledby="cookieadmin-functional-heading"] .cookieadmin_desc:before {
    content: 'คุกกี้เพื่อการทำงานช่วยสนับสนุนฟีเจอร์ต่างๆ ของเว็บไซต์ เช่น การแชร์เนื้อหาไปยังโซเชียลมีเดีย การรวบรวมข้อเสนอแนะ และการใช้งานเครื่องมือจากภายนอก (Third-party tools) เพื่อเพิ่มประสิทธิภาพในการใช้งาน';
    display: block;
    font-size: 14px;
}

.cookieadmin_types[aria-labelledby="cookieadmin-analytics-heading"] #cookieadmin-analytics-heading{
  display: none;
}
.cookieadmin_types[aria-labelledby="cookieadmin-analytics-heading"] .cookieadmin_header > span:after {
  content: 'คุกกี้เพื่อการวิเคราะห์';
  font-weight: 600;
}
.cookieadmin_types[aria-labelledby="cookieadmin-analytics-heading"] .cookieadmin_desc:before {
    content: 'คุกกี้เพื่อการวิเคราะห์ใช้สำหรับติดตามพฤติกรรมการใช้งานเว็บไซต์ของผู้เข้าชม เพื่อให้เราเข้าใจถึงประสิทธิภาพของเว็บไซต์ผ่านตัวชี้วัดต่างๆ เช่น จำนวนผู้เข้าชม, อัตราการออกจากหน้าเว็บทันที (Bounce Rate) และแหล่งที่มาของปริมาณการเข้าใช้งาน';
    display: block;
    font-size: 14px;
}

.cookieadmin_types[aria-labelledby="cookieadmin-marketing-heading"] #cookieadmin-marketing-heading{
  display: none;
}
.cookieadmin_types[aria-labelledby="cookieadmin-marketing-heading"] .cookieadmin_header > span:after {
  content: 'คุกกี้เพื่อการโฆษณา';
  font-weight: 600;
}
.cookieadmin_types[aria-labelledby="cookieadmin-marketing-heading"] .cookieadmin_desc:before {
    content: 'คุกกี้เพื่อการโฆษณาใช้เพื่อนำเสนอโฆษณาที่ตรงกับความสนใจของคุณ โดยวิเคราะห์จากประวัติการเข้าชมเว็บไซต์ก่อนหน้า และช่วยประเมินประสิทธิภาพของแคมเปญโฆษณาต่างๆ เพื่อให้คุณได้รับข้อมูลที่ตอบโจทย์ความต้องการมากที่สุด';
    display: block;
    font-size: 14px;
}

.cookieadmin-cookie-card{
  background: none;
  border-radius: 0px;
  box-shadow: none;
  padding: 0px;
  margin: 0px;
  font-family: var(--font-family-mixed-content);
}

.cookieadmin_footer{
  padding: 0px;
  bottom: 0px;
}


@media (max-width: 1399.98px) {}

/*Horizantal Tablet*/
@media (max-width: 1199.98px) {

  h1 {
    font-size: 44px;
    line-height: 64px;
  }

  h2 {
    font-size: 32px;
    line-height: 48px;
  }

  h3 {
    font-size: 28px;
    line-height: 40px;
  }

  h4 {
    font-size: 24px;
    line-height: 34px;
  }

  h5 {
    font-size: 20px;
    line-height: 30px;
  }

  h6 {
    font-size: 18px;
    line-height: 28px;
  }

  .entry-content h4:after,
  .entry-content h5:after {
    top: 11px;
  }

  .entry-content h6:after {
    top: 14px;
  }

  .homeherocover,
  .heroimagebg {
    height: 540px;
  }

  .heroimagebgin {
    padding-top: 540px;
  }

  .ctchomeherocover.generalcover,
  .ctchomeherocover.generalcover .ctcheroimagebg {
    height: 520px;
  }

  .ctchomeherocover.generalcover .homeherocontentcover {
    margin-top: 180px;
  }

  .sws-life {
    width: 135px;
    right: 60px;
  }

  .sws-listheader-lifespan {
    width: 135px;
    right: 80px;
  }

}


/*Vertical Tablet*/
@media (max-width: 991.98px) {
  h1 {
    font-size: 40px;
    line-height: 44px;
  }

  h2 {
    font-size: 32px;
    line-height: 40px;
  }

  h3 {
    font-size: 28px;
    line-height: 34px;
  }

  h4 {
    font-size: 24px;
    line-height: 30px;
  }

  h5 {
    font-size: 20px;
    line-height: 28px;
  }

  h6 {
    font-size: 16px;
    line-height: 24px;
  }

  p {
    line-height: 30px;
    margin-bottom: 1rem;
  }

  .entry-header h1 {
    font-size: 32px;
  }

  .entry-header h1:before {
    top: 13px;
  }

  .entry-content h4:after,
  .entry-content h5:after {
    top: 10px;
  }

  .entry-content h6:after {
    top: 12px;
  }

  .homeherocover,
  .heroimagebg {
    height: 420px;
  }

  .heroimagebgin {
    padding-top: 420px;
  }

  .ctchomeherocover.generalcover,
  .ctchomeherocover.generalcover .ctcheroimagebg {
    height: 480px;
  }

  .ctchomeherocover.generalcover .homeherocontentcover {
    margin-top: 160px;
  }

  .contactcoverin {
    padding: 40px !important;
  }

  .contactcoverin .generalblocktext h6 {
    margin-top: 40px;
  }

  .sidebarmain {
    width: 100%;
  }

  .seed-social {
    left: -83px;
  }

  .privacymenucol ul.privacymenu li,
  .privacymenucol ul.privacymenu li a {
    display: inline-block;
  }

  .privacymenucol {
    padding-bottom: 10px;
  }

  .privacycontentcover {
    padding: 40px 24px 24px;
  }

  .privacycover {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .error-404 h1 {
    font-size: 160px;
    line-height: 160px;
  }

  .headmenufront .site-branding a img {
    height: 24px;
  }

  #mega-menu-wrap-menu-1 .mega-menu-toggle {
    height: 39px;
  }

  .site-branding a img {
    height: 20px;
  }

  .homefeatured {
    padding-top: 40px;
  }

  .story-content img {
    max-width: 30px;
  }

  .infozone {
    display: inline-block;
    vertical-align: top;
    width: 300px;
    border-bottom: 0px;
  }
}

/*Mobile*/
@media (max-width: 767.98px) {

  .entry-header h1 {
    font-size: 28px;
    line-height: 34px;
  }

  .entry-header h1:before {
    top: 9px;
  }

  .homeherocover,
  .heroimagebg {
    height: 240px;
  }

  .heroimagebgin {
    padding-top: 240px;
  }

  .ctchomeherocover.generalcover,
  .ctchomeherocover.generalcover .ctcheroimagebg {
    height: 240px;
  }

  .ctchomeherocover.generalcover .homeherocontentcover {
    margin-top: 100px;
  }

  .contactcover {
    margin-top: -90px;
  }

  .contactcoverin {
    padding: 24px !important;
  }

  .contactformcover {
    padding: 24px 12px 0px 12px;
  }

  .seed-social {
    position: relative;
    text-align: center;
    left: unset;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px 16px 24px 16px;
  }

  .seed-social:before {
    margin-bottom: 8px;
  }

  .seed-social>li {
    display: inline-block;
    margin-bottom: 0px;
  }

  .seed-social:after {
    display: none;
  }

  .postcontent {
    padding-bottom: 10px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .privacycontentcol {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
  }

  .error-404 h1 {
    font-size: 100px;
    line-height: 100px;
  }


  .sws-listheader-lifespan,
  .sws-life {
    display: none;
  }

  .sws-arrow {
    right: 0px;
  }

  .sws-content-inner {
    padding: 0px 20px 20px 20px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}