/*
 Theme Name:   สะพานข้ามเขื่อนสิริกิติ์.com
 Theme URI:    สะพานข้ามเขื่อนสิริกิติ์.com
 Description:  สะพานข้ามเขื่อนสิริกิติ์.com
 Author:       Yosaki
 Author URI:   yoskai.com
*/
*,
::before,
::after {
  box-sizing: border-box;
}

@font-face {
  font-family: "avenir";
  src: url("fonts/DB_Heavent_lt_std_35_light.ttf") format("truetype"),
    url("fonts/DB_Heavent_lt_std_35_light.otf") format("opentype"),
    url("fonts/DB_Heavent_lt_std_35_light.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "avenir";
  src: url("fonts/DB_Heavent_lt_std_95_black.ttf") format("truetype"),
    url("fonts/DB_Heavent_lt_std_95_black.otf") format("opentype"),
    url("fonts/DB_Heavent_lt_std_95_black.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'DB_Heavent';
  src: url('fonts/DB_Heavent.woff2') format('woff2'),
    url('fonts/DB_Heavent.woff') format('woff'),
    url('fonts/DB_Heavent.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;

}

/********** Template CSS **********/
:root {
  --primary: #fff;
  --secondary: #000;
  --light: #fff;
  --dark: #000;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

.font-size-20 {
  font-size: 20px;
}

.font-size-22 {
  font-size: 22px;
}

.font-size-24 {
  font-size: 24px;
}

.font-size-25 {
  font-size: 25px;
}

.font-size-28 {
  font-size: 28px;
}

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

.font-size-35 {
  font-size: 35px;
}

.font-size-36 {
  font-size: 36px;
}

.font-size-48 {
  font-size: 48px;
}

.font-size-60 {
  font-size: 60px;
}
.font-size-70 {
  font-size: 70px;
}

p {
  font-family: DB_Heavent;
  font-size: 20px;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: DB_Heavent;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-family: DB_Heavent;
  font-weight: bold;
  transition: 0.5s;
}

.btn-outline-primary {
  background: rgb(75, 140, 119);
  background: linear-gradient(90deg,
      rgba(75, 140, 119, 1) 0%,
      rgba(39, 128, 158, 1) 100%);
  border: 0;
  color: #fff;
  border-radius: 50px;
}

.btn.btn-primary.back-to-top {
  color: var(--secondary);
}

.btn.btn-primary.back-to-top:hover,
.btn.btn-outline-primary.back-to-top:hover {
  color: var(--light);
  background: var(--dark);
}

.btn-primary.back-to-top:focus {
  color: var(--light);
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
  color: #ccc;
}

.btn.btn-primary:hover {
  color: var(--secondary);
  background: transparent;
}

.btn-check:focus+.btn-primary,
.btn-primary:focus {
  background: var(--dark);
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.fixed-top {
  transition: 0.5s;
}

.top-bar {
  height: 45px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

#footer-container {
  padding-bottom: 200px;
  padding-top: 20px;
}

.navbar .navbar-nav .nav-link {
  font-family: DB_Heavent;
  font-size: 28px;
  margin-right: 40px;
  padding: 25px 0;
  color: var(--primary);
  font-weight: 500;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover{
  color: #ccc;
}
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar .navbar-nav .nav-link.active {
  background-color: rgba(249, 174, 59, .3);
}


#schedule-bar {
  position: absolute;
  left: 50%;
  bottom: -50px;
  z-index: 99;
  transform: translateX(-50%);
}

@media (max-width: 1300px) {
  #footer-container {
    padding-top: 0;
    padding-bottom: 100px;
  }

  #schedule-bar {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 99;
    transform: none;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0;
  }
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav {
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    /* background: var(--light); */
  }

  .navbar .navbar-nav .nav-link {
    padding: 10px 0;
  }

  #footer-container {
    padding-bottom: 100px;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: 0.5s;
    opacity: 0;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.carousel-caption {
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0);
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--dark);
  border: 12px solid var(--dark);
  border-radius: 3rem;
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 300px;
  }

  .entry-content table tr {
    display: block;
  }

  .entry-content table tr td {
    display: block;
    margin: 20px auto;
  }

  /* #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    } */
}

.page-header {
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: linear-gradient(rgba(0, 29, 35, 0.8), rgba(0, 29, 35, 0.8)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
  color: #999999;
}

/*** Causes ***/
.causes-item .progress {
  height: 5px;
  border-radius: 0;
  overflow: visible;
}

.causes-item .progress .progress-bar {
  position: relative;
  overflow: visible;
  width: 0px;
  border-radius: 0;
  transition: 5s;
}

.causes-item .progress .progress-bar span {
  position: absolute;
  top: -7px;
  right: 0;
  width: 40px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: var(--primary);
  color: #ffffff;
}

.causes-item .causes-overlay {
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  transition: 0.5s;
}

.causes-item:hover .causes-overlay {
  height: 100%;
  opacity: 1;
}

/*** Service ***/
.service-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.06);
}

/*** Donate ***/
.donate {
  background: rgba(0, 29, 35, 0.8);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
  color: var(--primary);
  border-color: var(--primary);
}

/*** Team ***/
.team-item img {
  position: relative;
  top: 0;
  transition: 0.5s;
}

.team-item:hover img {
  top: -30px;
}

.team-item .team-text {
  position: relative;
  height: 100px;
  transition: 0.5s;
}

.team-item:hover .team-text {
  margin-top: -60px;
  height: 160px;
}

.team-item .team-text .team-social {
  opacity: 0;
  transition: 0.5s;
}

.team-item:hover .team-text .team-social {
  opacity: 1;
}

.team-item .team-social .btn {
  display: inline-flex;
  color: var(--primary);
  background: #ffffff;
  border-radius: 40px;
}

.team-item .team-social .btn:hover {
  color: #ffffff;
  background: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0) 100%);
  z-index: 1;
}

.testimonial-carousel::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(to left,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0) 100%);
  z-index: 1;
}

@media (min-width: 768px) {

  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 200px;
  }
}

@media (min-width: 992px) {

  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 300px;
  }
}

.testimonial-carousel .owl-item .testimonial-text {
  background: var(--light);
  transform: scale(0.8);
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
  background: var(--primary);
  transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
  color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
  background: var(--primary) !important;
}

.testimonial-carousel .owl-nav {
  position: absolute;
  width: 350px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: 0.5s;
  z-index: 1;
}

.testimonial-carousel2 .owl-nav {
  position: absolute;
  width: 350px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: 0.5s;
  z-index: 1;
  display: none;
}

.testimonial-carousel:hover .owl-nav {
  width: 300px;
  opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  position: relative;
  color: var(--light);
  font-size: 25px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
}

/*** Footer ***/

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--light);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .btn.btn-square {
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.footer .btn.btn-square:hover {
  color: var(--secondary);
  border-color: var(--light);
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--secondary);
}

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

header>div.wow {
  background-color: #402612 !important;
}

header>div.wow.bg-dark {
  background-color: rgba(64, 38, 18, .7) !important;
}

div.card {
  border-radius: 25px;
  border: none;
  box-shadow: 5px 8px 12px -7px rgba(0, 0, 0, 0.7);
}

.p-border {
  position: absolute;
  height: 1px;
  left: 30%;
  right: 30%;
  background: #000;
}

.owl-carousel .owl-dots,
.owl-carousel .owl-nav {
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 99;
  transform: translateX(-50%);
  min-width: 300px;
}

.navbar-toggler {
  border: 1px solid #fff;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.owl-carousel .owl-dots .owl-dot {
  display: inline-block;
  zoom: 1;
}

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel button.owl-dot {
  background: 0 0;
  color: inherit;
  border: none;
  padding: 0 !important;
  font: inherit;
}

.owl-carousel .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px 7px;
  background: #fff;
  display: block;
  -webkit-backface-visibility: visible;
  transition: opacity 0.2s ease;
  border-radius: 30px;
}

.owl-carousel .owl-dots .owl-dot.active span,
.owl-carousel .owl-dots .owl-dot:hover span {
  width: 12px;
  height: 12px;
  background: #fff;
}

#program a.btn-outline-dark {
  background: rgba(255, 255, 255, 0.6);
  border: 0;
  border-radius: 20px;
}

#program a.btn-outline-dark:hover {
  background: rgba(0, 0, 0, 0.6);
}

.testimonial-carousel::before,
.testimonial-carousel::after {
  display: none !important;
}

.entry-content h2,
.entry-content p b,
.entry-content h3,
.entry-content h1,
.entry-content strong {
  color: #008480;
}

.entry-content hr {
  width: 340px;
  height: 5px;
  margin: auto;
}

.entry-content h2 {
  font-size: 40px;
}

.grve-page-title .grve-wrapper,
#grve-feature-section .grve-wrapper {
  display: table;
  width: 100%;
  position: relative;
  z-index: 5;
}

.grve-page-title,
#grve-feature-section {
  position: relative;
  overflow: hidden;
  z-index: 5;
  clear: both;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
}

.grve-page-title .grve-content.show,
#grve-feature-section .grve-content.show {
  opacity: 1;
}

.grve-page-title .grve-content,
#grve-feature-section .grve-content {
  display: table-cell;
  width: 100%;
}

@media screen and (max-width: 1440px) {
  .grve-container {
    max-width: 1300px;
  }
}

.grve-background-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.grve-bg-image.grve-bg-center-center {
  background-position: center center;
}

.grve-bg-image.show {
  opacity: 1;
}

.grve-bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -webkit-transition: opacity 0.4s ease;
  -moz-transition: opacity 0.4s ease;
  -ms-transition: opacity 0.4s ease;
  -o-transition: opacity 0.4s ease;
  transition: opacity 0.4s ease;
}

.grve-title>span,
.grve-title.grve-clipping-animation .grve-clipping-wrapper {
  display: inline-block;
  vertical-align: top;
}

.grve-page-title .grve-title-content-wrapper.grve-content-medium,
#grve-feature-section .grve-title-content-wrapper.grve-content-medium {
  max-width: 600px;
}

.grve-page-title .grve-title-content-wrapper,
#grve-feature-section .grve-title-content-wrapper {
  display: inline-block;
  vertical-align: middle;
  position: relative;
}

.text-primary {
  color: #603813 !important;
}