@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@200;300;400;500;600;700;800;900&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

:root {
  --primary-color: #d36612;
  --primary-hover-color: #c25708;
  --footer-color: #222529;
  --tertiary-color: #f0eded;
}
*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.cursor-pointer {
  cursor: pointer;
}

.text-primary {
  color: var(--primary-color) !important;
}
.bg-primary {
  background: var(--primary-color) !important;
}

.bg-tertiary {
  background-color: #f0eded;
}

.btn-primary {
  background: var(--primary-color);
  border-color: transparent !important;
}
.btn-primary:hover {
  background: var(--primary-hover-color);
  opacity: 0.9;
}
.btn-outline-primary {
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
}
.btn-outline-primary:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
}

.text-justify {
  text-align: justify;
}

.fw-600 {
  font-weight: 600;
}

body {
  font-family: "Fira Sans", sans-serif;
}

.header {
  transition: 0.3s ease;
  background: #fffa;
}
.header .navbar-nav {
  gap: 10px;
}
.header .navbar-nav > .nav-item > .nav-link {
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 500;
}
.header .navbar-nav > .nav-item > .nav-link.active {
  font-weight: 600;
  color: var(--primary-color);
}
.header.floating {
  background: #fffa;
  backdrop-filter: blur(10px);
  box-shadow: 0px 10px 50px -20px #0001;
}
.header .dropdown-menu {
  border: none;
  box-shadow: 0px 10px 40px -20px #0003;
}
.home-about-image {
  position: relative;
}
.home-about-image a.btn-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: crimson;
  font-size: 5rem;
  background: #fffa;
  backdrop-filter: blur(3px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 6rem;
  height: 6rem;
  padding: 0;
  line-height: 1;
  box-shadow: 0px 10px 30px #0003;
  animation: 1s buttonFLoating ease infinite alternate;
}
@keyframes buttonFLoating {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    box-shadow: 0px 10px 30px #0003;
  }
  100% {
    transform: translate(-50%, -60%) scale(1);
    box-shadow: 0px 30px 50px #000a;
  }
}
.row-fitur .card {
  border: none;
  background: #f4e3ad;
  border-radius: 20px;
}
.row-fitur div:nth-child(2) .card,
.row-fitur div:nth-child(3) .card {
  background: #f6d184;
}
.card-berita {
  border-radius: 20px;
  overflow: hidden;
  border: none;
  box-shadow: 0px 10px 50px -20px #0003;
}
.card-berita .card-body {
  padding: 20px;
}
.card-berita .card-body a {
  text-decoration: none;
}
.card-berita .card-image img {
  width: 100%;
  height: 250px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.card-survey {
  border: none;
  background: #f4e3ad;
  border-radius: 20px;
}
.card-survey .card-body {
  padding: 30px 50px;
}
.card-statistik {
  background: var(--primary-color);
  border: none;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
}
.card-statistik .row > div:nth-child(1) {
  background: #f4e3ad;
  color: #333;
}
.card-statistik .row > div {
  padding: 30px;
}
.card-statistik .title {
}
.section-statistik {
  position: relative;
}
.section-statistik:before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: var(--footer-color);
}
footer {
  background: var(--footer-color);
  color: #fff;
}
footer .item-address .icon {
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: #fff;
  border-radius: 50%;
  color: var(--primary-color);
}
footer .item-address .text {
  padding-top: 4px;
}
footer .social-icon a {
  display: block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  background: #fff;
  border-radius: 50%;
  font-size: 24px;
  color: var(--primary-color);
}
footer .copyright {
  background: var(--primary-color);
  color: #fff;
}
.page-header {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  position: relative;
}
.page-header:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/background/bg-header.jpg) no-repeat center bottom;
  background-size: cover;
  opacity: 0.5;
}
.page-header:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 100%;
  background: linear-gradient(#0000, var(--primary-color));
  z-index: 2;
}
.page-header .container {
  position: relative;
  z-index: 10;
}
.header-search {
  position: relative;
}
.header-search:before {
  content: "";
  background: var(--primary-color);
  position: absolute;
  inset: 0 0 auto;
  height: 50%;
}
.header-search .card {
  border: none;
  border-radius: 20px;
  box-shadow: 0px 10px 50px -20px #0003;
}
.header-search .card input.form-control,
.header-search .card .form-select {
  border: none;
  height: 60px;
}
.header-search .card .col-lg-8 {
  border-right: 1px solid #eee;
}
.accordion-button:not(.collapsed) {
  background: var(--primary-color) !important;
  color: #fff !important;
}

.icon-profil-container {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: var(--tertiary-color);
  display: flex;
}

@media screen and (max-width: 1024px) {
  .navbar-nav .nav-item .nav-link {
    font-size: 0.7rem !important;
    text-wrap: nowrap;
  }
}

@media (max-width: 800px) {
  .header {
    background: #fff !important;
    backdrop-filter: none !important;
  }
  .header .navbar-brand img {
    height: 50px !important;
  }
  .header .navbar-nav > .nav-item > .nav-link {
    font-size: 1rem;
  }
  .header .dropdown-menu {
    box-shadow: none;
    background: #eee;
    border-radius: 10px;
  }
  .header .navbar-toggler {
    border: none;
  }
  .header .nav-link.dropdown-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }
  .offcanvas-header {
    background: #f5f5f5;
  }
  .offcanvas-header img {
    height: 50px !important;
  }
}

/* Slider Style */

/*********** Baseline, reset styles ***********/
.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

/* Removes default focus */
.custom-slider:focus {
  outline: none;
}

/******** Chrome, Safari, Opera and Edge Chromium styles ********/
/* slider track */
.custom-slider::-webkit-slider-runnable-track {
  background-color: #ffdcbd;
  border-radius: 2px;
  height: 4px;
}

/* slider thumb */
.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  margin-top: -6px; /* Centers thumb on the track */
  background-color: #d36612;
  border-radius: 2px;
  height: 16px;
  width: 16px;
}

.custom-slider:focus::-webkit-slider-thumb {
  outline: 3px solid #d36612;
  outline-offset: 0.125rem;
}

/*********** Firefox styles ***********/
/* slider track */
.custom-slider::-moz-range-track {
  background-color: #ffdcbd;
  border-radius: 2px;
  height: 4px;
}

/* slider thumb */
.custom-slider::-moz-range-thumb {
  background-color: #d36612;
  border: none; /*Removes extra border that FF applies*/
  border-radius: 2px;
  height: 16px;
  width: 16px;
}

.custom-slider:focus::-moz-range-thumb {
  outline: 3px solid #d36612;
  outline-offset: 0.125rem;
}

/* tooltip */
[data-tooltip]:hover {
  position: relative;
}

[data-tooltip]:hover::before {
  all: initial;
  display: inline-block;
  padding: 6px;
  background-color: #1a1a1a;
  border-radius: 4px;
  content: attr(data-tooltip);
  color: #fafafa;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 0);
  margin-bottom: 10px;
  text-align: center;
  font-size: 0.75rem;
  white-space: nowrap;
  font-family: "Fira Sans", sans-serif;
}

[data-tooltip]:hover::after {
  all: initial;
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #1a1a1a;
  position: absolute;
  bottom: 100%;
  content: "";
  left: 50%;
  transform: translate(-50%, 0);
  margin-bottom: 5px;
}
