@font-face {
  font-family: 'Sarabun';
  src: url('../fonts/Sarabun-Thin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: 'Sarabun';
  src: url('../fonts/Sarabun-ExtraLight.woff2') format('woff2');
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: 'Sarabun';
  src: url('../fonts/Sarabun-Light.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Sarabun';
  src: url('../fonts/Sarabun-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Sarabun';
  src: url('../fonts/Sarabun-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Sarabun';
  src: url('../fonts/Sarabun-SemiBold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Sarabun';
  src: url('../fonts/Sarabun-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Sarabun';
  src: url('../fonts/Sarabun-ExtraBold.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --color-black-primary: #383838;
  --color-orange: #FFAB3B;
  --color-blue: #2C5A74;  
  --banner-height-mobile: 100px;
  --banner-height-tablet: 196px;
  --banner-height-desktop: 180px;
  --banner-height-desktop-xl: 280px;
  --max-width-mobile: 355px;
  --max-width-tablet: 728px;
  --max-width-desktop: 1000px;
  --footer-height-mobile: 240px;
  --footer-height-tablet: 320px;
  --footer-height-desktop: 380px;
  --footer-height-desktop-xl: 380px;
}

html {
    width: 100%;
    height: 100%;
    font-family: 'Sarabun', sans-serif;
}

#id {
  width: 100vw; 
  height: 100vh;
}

h1 {
  font-size: 32px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 48px !important;
}

.z-front {
  z-index: 23;
}

.pagination-icon {
  color: var(--color-black-primary);
}

.pagination-icon:hover,
.pagination-icon:active {
  color: var(--color-orange);
}

.pagination-current {
  margin: 0 12px;
}

/* Desktop XL screen section */
.app-container {
  background-color: #FFFFFF;
}

.app-container.template-2 {
  margin-top: 80px;
}

.fab {
  position: relative !important;
  transform: none !important;
  bottom: 0 !important;
  text-shadow: none !important;
  text-decoration: none !important;
}

#social-footer {
  margin: 10px auto;
}

.text-primary-blue {
  color: var(--color-blue);
}

.text-header {
  font-size: 80px;
  margin-bottom: 18px;
}

div#banner {
  max-height: var(--banner-height-desktop-xl);
  max-width: 100vw;
  position: relative;
  overflow: hidden;
}

div#banner > img.banner-bg {
  position: relative;
  object-fit: cover;
  width: 100%;
  max-height: var(--banner-height-desktop-xl);
  z-index: 10;    
}

div#banner > svg.banner-svg {
  position: absolute;    
  top: 0;
  right: 0;
  z-index: 11;
  background: transparent;
}

div#banner > svg.banner-svg > #t-white {
  fill: #FFFFFF;
}

div#banner > svg.banner-svg > #t-orange {
  fill: var(--color-orange);
}

div#banner > div.banner-inline-content {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}  

div#banner > div.banner-inline-content.set-center {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;  
}  

div#banner > div.banner-inline-content > div.banner-text-wrapper {  
  position: relative;
  z-index: 11;
  display: grid;
  max-width: var(--max-width-desktop);
  width: 100%;
  height: fit-content;
  /* margin: 85px auto 0; */
}

div#banner > div.banner-inline-content > div.banner-text-wrapper > span.banner-text {
  font-size: 70px;
  font-weight: bold;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

div#banner > div.banner-inline-content > div.banner-text-wrapper > span.banner-text.text-orange {
  color: var(--color-orange);
  position: relative;
  top: -36px;
}

div.section {
  max-width: var(--max-width-desktop);
  width: 100%;
  margin: 12px auto;  
}

div.section + div.section {
  margin-top: 48px;
}

div.section > h1 {
  color: var(--color-blue);
  text-align: center;
}

div.section > h1.text-left {
  color: var(--color-blue);
  text-align: left;
}


div.section > p.section-desc {
  margin: 12px 0 0; 
}

div.section > img.section-img {
  margin: 24px auto;
  width: 100%;
}

.img-shadow-1 {
  box-shadow: 0 3px 6px #00000029;
}

div.section > div.button-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

div.section > div.button-wrapper > * > button.section-button {  
  color: #FFFFFF;
  font-size: 20px;
  margin: 12px auto 0;
  padding: 12px 24px;
  background-color: var(--color-blue); 
  border: 2px solid var(--color-blue); 
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
}

div.section > div.button-wrapper > * > button.section-button:hover,
div.section > div.button-wrapper > * > button.section-button:active {
  cursor: pointer;
  background-color: #FFFFFF;
  color: var(--color-blue);  
}

div.section-news-home {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

div.top-news-text p {
  margin: 0;
}

span.top-news-badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  color: #FFFFFF;
  font-size: 22px;
  background-color: var(--color-orange);
  border-start-start-radius: 4px;
  padding: 4px 12px;
}

/* div.top-news-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40%px;
  background-color: rgba(0, 0, 0, 0.5);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  padding: 12px;
  font-size: 24px;  
  text-align: left;
}  

div.top-news:hover {
  opacity: 0.8;
}

div.top-news:hover .top-title {
  text-decoration: underline;
}

div.top-news-text .top-title {
  color: #FFFFFF;  
}

div.top-news-text .top-desc {
  margin-top: 12px;
  color: var(--color-orange);
} */

div.section.overlay {
  position: relative;
  height: 100px;
}

a.news-seemore {
  color: #383838;
  align-self: flex-end;
}

div.card-v1-grid {
  display: grid;
  grid-template-columns: repeat(4, 232px);
  gap: 24px;
}

div.card-v1-grid > div.card-v1 {
  display: flex;
  width: 100%;
  flex-direction: column;
}

div.card-v1:hover {
  cursor: pointer;
  background-color: rgba(255, 171, 59, 0.2);  
}

.img-top-news-wrap:before,
.card-v1 .card-img:before {
  content:"";
  position: absolute;
  top:0;
  left:0;
  height:100%;
  width:100%;
  z-index: 15;
  border-radius: 4px;
  background-color: rgba(25, 29, 38, 0.50);
}

.card-v1:hover .card-img:before {
  background-color: transparent;
}

.card-v1:hover .card-img .overlay, .card_news.hover .card-img .overlay {  
  transition: opacity 0.2s ease;
  opacity: 1;
}

a.card-link {
  text-decoration: none;
}

div.card-v1-grid > div.card-v1 img.card-v1-img {
  background-color: rgba(44, 90, 116, 0.5);
  object-fit: cover;
  width: 232px;
  height: 155px;
}

div.card-v1-grid > div.card-v1 div.card-v1-text-container {
  height: 120px;
  padding: 0 4px;
}

div.card-v1-grid > div.card-v1  div.card-v1-text-container > span.card-v1-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
  font-size: 16px;
  font-weight: bold;
  color: var(--color-blue);
}

div.card-v1-grid > div.card-v1 div.card-v1-text-container > span.card-v1-title:hover,
div.card-v1-grid > div.card-v1 div.card-v1-text-container > span.card-v1-title:active {
  color: var(--color-orange);
  text-decoration: underline;
  cursor: pointer;
}

div.card-v1-grid > div.card-v1 div.card-v1-text-container > span.card-v1-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
  text-align: left;
}

span.card-v1-desc > * {
  display: none;
}

span.card-v1-desc > p:first-child,
span.card-v1-desc > p:first-child > * {
  display: block;
  font-weight: 500;
  font-size: 16px;
  color: #383838;
  margin: 0;
}

div#footer {
  margin-top: 60px;
  max-height: var(--footer-height-desktop-xl);
  max-width: 100vw;
  position: relative;
  overflow: hidden;
}

div#footer > img.banner-bg {
  position: relative;
  object-fit: cover;
  width: 100%;  
  max-height: var(--footer-height-desktop-xl);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  z-index: 10;    
}

div#footer > svg.banner-svg {
  position: absolute;  
  top: 0;
  right: 0;
  z-index: 11;
  background: transparent;
}

div#footer > svg.banner-svg > #t-white {
  fill: #FFFFFF;
}

div#footer > svg.banner-svg > #t-orange {
  fill: var(--color-orange);
}

div#footer > div.footer-content {
  position: absolute;
  top: 80px;
  z-index: 20;
  width: 100%;
  height: 100%;  
  display: flex;  
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

div#footer > div.footer-content > a.facebook-icon{
  color: #FFFFFF;
  font-size: 60px;
}

div#footer > div.footer-content > span.footer-text,
div#footer > div.footer-content > div.footer-link > span.footer-text {    
  font-size: 20px;
  font-weight: bold;
}

div#footer > div.footer-content > div.footer-link {
  display: flex;
  gap: 16px;
}

div#footer > div.footer-content > div.footer-link > span.footer-text:hover,
div#footer > div.footer-content > div.footer-link > span.footer-text:active {
  text-decoration: underline;
  cursor: pointer;
}


/* Desktop screen section */
@media screen and (min-width: 1001px) {
  .text-header {
    margin-top: 50px;
    font-size: 60px;    
  }

  .nav-logo-mobile {
    display: none;
  }

  .nav-language-mobile {
    display: none;
  }

  div#banner {
    max-height: var(--banner-height-desktop);
  }

  div#banner > div.banner-inline-content {
    margin: 0 20px;
  }

  div#banner > div.banner-inline-content > div.banner-text-wrapper > span.banner-text {
    font-size: 60px;
  }    

  div.section {    
    max-width: 1000px;    
    width: 100%;
    margin: 20px auto;
  }

  div.section + div.section {
    margin-top: 24px;
  }

  div.top-news-text {
    position: absolute;
    bottom: 0;
    z-index: 20;
    width: 100%;
    height: 40%px;
    background-color: rgba(0, 0, 0, 0.5);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 12px;
    font-size: 24px;  
    text-align: left;
  }  
  
  div.top-news:hover {
    opacity: 0.8;
  }
  
  div.top-news:hover .top-title {
    text-decoration: underline;
  }
  
  div.top-news-text .top-title {
    color: #FFFFFF;  
  }
  
  div.top-news-text .top-desc {
    margin-top: 12px;
    color: var(--color-orange);
  }

  div.card-v1-grid {
    justify-content: center;
    justify-items: stretch;
    grid-template-columns: repeat(4, 232px);
  }
}

/*  */
@media screen and (max-width: 1000px) and (min-width: 768px) {
  .text-header {
    
    font-size: 60px;
  }

  .mobile-nav {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo-desktop {
    display: none;
  }

  .nav-logo-mobile {
    display: block;
  }

  .nav-language-mobile {
    display: block;
  }

  .right-nav-mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .navbar-collapse-mobile {
    display: none;
  }

  div#banner > div.banner-inline-content > div.banner-text-wrapper {
    margin: 0 20px;
  }

  div.top-news {
    max-width: 734px;
  }

  div.top-news:hover {
    opacity: 0.8;
  }

  div.top-news-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 12px;
    font-size: 24px;  
    text-align: left;
  }  

  
  div.top-news:hover .top-title {
    text-decoration: underline;
  }
  
  div.top-news-text .top-title {
    color: #FFFFFF;  
  }
  
  div.top-news-text .top-desc {
    margin-top: 12px;
    color: var(--color-orange);
  }

  div.section {
    max-width: calc(100vw - 40px);
  }

  div.card-v1-grid {
    justify-content: center;
    grid-template-columns: repeat(2, 355px);
    gap: 24px;
    text-align: left;
  }

  div.card-v1-grid > div.card-v1 img.card-v1-img {    
    width: 355px;
    height: 237px;
  }

  div.card-v1-grid > div.card-v1 div.card-v1-text-container {
    max-height: 120px;
    height: fit-content;
  }
}

/* Tablet screen section */
@media screen and (max-width: 767px) and (min-width: 476px) {
  .dropdown-menu.show {
    right: 20px;
  }

  .text-header {
    font-size: 60px;
  }

  .mobile-nav {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo-desktop {
    display: none;
  }

  .nav-logo-mobile {
    display: block;
  }

  .nav-language-mobile {
    display: block;
  }

  .right-nav-mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .app-container.template-2 {
    margin-top: 64px;
  }
  div.top-news-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 12px;
    font-size: 24px;  
    text-align: left;
  }  
  
  div.top-news:hover {
    opacity: 0.8;
  }
  
  div.top-news:hover .top-title {
    text-decoration: underline;
  }
  
  div.top-news-text .top-title {
    font-weight: bold;
    color: #FFFFFF;  
  }
  
  div.top-news-text .top-desc {
    margin-top: 12px;
    color: var(--color-orange);
  }

  div#banner {
    max-height: var(--banner-height-tablet);
    max-width: 100vw;
    position: relative;
    overflow: hidden;
  }

  div#banner > img.banner-bg {
    position: relative;
    object-fit: cover;
    width: 100%;
    max-height: var(--banner-height-tablet);
    z-index: 10;  
  }

  div#banner > svg.banner-svg {
    position: absolute;    
    top: 0;
    right: 0;
    z-index: 11;
    background: transparent;
  }

  div#banner > svg.banner-svg > #t-white {
    fill: #FFFFFF;
  }

  div#banner > svg.banner-svg > #t-orange {
    fill: var(--color-orange);
  }
  div#banner > div.banner-inline-content {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;    
    margin: 0 10px;
  }
    
  div#banner > div.banner-inline-content > div.banner-text-wrapper {
    position: relative;
    z-index: 11;
    display: grid;
    max-width: var(--max-width-tablet);
    width: 100%;
    height: fit-content;
    margin: 0 20px;
  }

  div#banner > div.banner-inline-content > div.banner-text-wrapper > span.banner-text {
    font-size: 40px;
    font-weight: bold;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  }

  div#banner > div.banner-inline-content > div.banner-text-wrapper > span.banner-text.text-orange {
    color: var(--color-orange);
    position: relative;
    top: -18px;
  }

  div.section {
    max-width: calc(100vw - 40px);
    min-width: var(--max-width-mobile);
    width: 100%;
    margin: 12px auto;    
  }

  div.section > img.section-img {
    margin: 20px auto;
  }

  div.card-v1-grid {
    grid-template-columns: repeat(2, calc(50vw - 40px));
    gap: 18px;
  }

  div.card-v1-grid > div.card-v1 img.card-v1-img {    
    width: calc(50vw - 40px);
    height: auto;
  }

  div.card-v1-grid > div.card-v1 div.card-v1-text-container {
    max-height: 120px;
    height: fit-content;
  }

  div.section.overlay {
    height: auto;
  }

  div#footer {
    margin-top: 48px;
    max-height: var(--footer-height-tablet);
    max-width: 100vw;
    position: relative;
    overflow: hidden;
  }
  
  div#footer > img.banner-bg {
    position: relative;
    object-fit: cover;
    width: 100%;  
    max-height: var(--footer-height-tablet);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    z-index: 10;    
  }
}

/* Mobile screen section */
@media screen and (max-width: 475px) {
  .help-we  {
    line-height: 42px;
  }

  .dropdown-menu.show {
    right: 20px;
  }

  .card-img .overlay .overlay-content {
    line-height: 170px;
  }

  .bg-all-app {
    height: auto;
    width: 90px;
  }

  .text-header {
    font-size: 32px;
  }

  .app-container.template-2 {
    margin-top: 48px;
  }

  .footer-app3 {
    flex-direction: column;
    align-items: center;
  }

  .app3 {
    width: 170px;
    height: 170px;
  }

  .img-top-news {
    height: 300px;
  }

  .mobile-nav {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo-desktop {
    display: none;
  }

  .nav-logo-mobile {
    display: block;
  }

  .nav-language-mobile {
    display: none;
  }

  div#banner {
    max-height: var(--banner-height-mobile);
    max-width: 100vw;
    position: relative;
    overflow: hidden;
  }

  div#banner > img.banner-bg {
    position: relative;
    width: 100%;
    max-height: var(--banner-height-mobile);
    z-index: 10;    
  }

  div#banner > svg.banner-svg {
    position: absolute;    
    top: 0;
    right: 0;
    z-index: 11;
    background: transparent;
  }

  div#banner > svg.banner-svg > #t-white {
    fill: #FFFFFF;
  }

  div#banner > svg.banner-svg > #t-orange {
    fill: var(--color-orange);
  }

  div#banner > div.banner-inline-content {
    position: absolute;
    top: -5px;
    width: 100%;
    height: 100%;
    display: flex;    
  }

  div#banner > div.banner-inline-content > div.banner-text-wrapper {
    position: relative;
    z-index: 11;
    max-width: var(--max-width-mobile);
    width: 100%;
    height: fit-content;
    display: grid;
  }

  div#banner > div.banner-inline-content > div.banner-text-wrapper > span.banner-text {
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  }

  div#banner > div.banner-inline-content > div.banner-text-wrapper > span.banner-text.text-orange {
    color: var(--color-orange);
    position: relative;
    top: -16px;
  }

  div.section {  
    max-width: var(--max-width-mobile);
    width: 100%;
    margin: 12px auto;    
  }

  div.section.all-news {
    margin-top: 12px !important;
  }

  div.section > img.section-img {
    margin: 16px auto;
  }

  div.section > div.button-wrapper > * > button.section-button {
    font-size: 18px;
  }

  div.section.overlay {
    height: 600px;
  }

  div.top-news-text {
    font-size: 16px;  
    text-align: left;    
    padding-bottom: 8px;
    border-bottom: 1px solid #D0D0D0;
  }  

  div.top-news-text .top-title {
    color: var(--color-blue);
    font-weight: bold;
    margin-top: 4px;
    text-decoration: underline;
  }

  div.top-news-text .top-desc {
    color: #383838;
  }

  div.card-v1-grid {
    max-width: calc(100vw - 12px);
    overflow: hidden;
    grid-template-columns: repeat(1, 352px);
    gap: 12px;
  }

  div.card-v1-grid > div.card-v1.all-news {
    text-align: left;
    padding-bottom: 8px;
    border-bottom: 1px solid #D0D0D0;
  }

  div.card-v1-grid > div.card-v1.all-news span.card-v1-title {
    text-decoration: underline;
  }

  div.card-v1-grid > div.card-v1.all-news div.card-img {    
    display: none;
  }

  div.card-v1-grid > div.card-v1 div.card-v1-text-container {
    max-height: 120px;
    height: fit-content;
  }

  .img-top-news-wrap:before {
    background-color: transparent !important;
  }

  #social-footer {
    margin: 4px auto;
  }

  div#footer {
    margin-top: 36px;
    max-height: var(--footer-height-mobile);
    max-width: 100vw;
    position: relative;
    overflow: hidden;
  }
  
  div#footer > img.banner-bg {
    position: relative;
    object-fit: cover;
    width: 100%;  
    max-height: var(--footer-height-mobile);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    z-index: 10;    
  }
  
  div#footer > div.footer-content {
    top: 30px;
  }

  div#footer > div.footer-content > span.footer-text,
  div#footer > div.footer-content > div.footer-link > span.footer-text {    
    font-size: 18px;
    font-weight: bold;
  }
}