/* Guest pages — Start Bootstrap Creative theme */

:root {
  --creative-primary: #f4623a;
  --creative-primary-dark: #c34e2e;
  --dinkes-green: #006131;
  --dinkes-gold: #ffb000;
}

html {
  scroll-padding-top: calc(4.5rem - 1px);
}

body.guest-creative {
  font-family: Merriweather, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212529;
  background-color: #fff;
}

body.guest-creative h1,
body.guest-creative h2,
body.guest-creative h3,
body.guest-creative h4,
body.guest-creative h5,
body.guest-creative .h1,
body.guest-creative .h2,
body.guest-creative .h3,
body.guest-creative .h4,
body.guest-creative .h5 {
  font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.guest-creative a {
  text-decoration: none;
}

/* Navigation */
#mainNav {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #fff;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 1030;
}

#mainNav .navbar-brand {
  font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 1;
  min-width: 0;
}

#mainNav .navbar-brand img {
  height: 40px;
  width: auto;
  transition: opacity 0.2s ease;
}

#mainNav .navbar-brand-text {
  line-height: 1.2;
}

#mainNav .navbar-brand-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: #6c757d;
}

#mainNav .navbar-nav .nav-item .nav-link {
  color: #6c757d;
  font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

#mainNav .navbar-collapse {
  flex-grow: 1;
  justify-content: flex-end;
}

#mainNav .navbar-nav {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link:active {
  color: var(--creative-primary);
}

#mainNav .navbar-nav .nav-item .nav-link.active {
  color: var(--creative-primary) !important;
}

#mainNav .dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#mainNav .dropdown-item.active,
#mainNav .dropdown-item:active {
  background-color: var(--creative-primary);
}

/* Inner pages — always solid navbar with visible links */
body.guest-inner-page #mainNav,
body.guest-inner-page #mainNav.navbar-shrink {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #fff;
}

body.guest-inner-page #mainNav .navbar-brand {
  color: #212529;
}

body.guest-inner-page #mainNav .navbar-brand-text small {
  color: #6c757d;
}

body.guest-inner-page #mainNav .navbar-nav .nav-item .nav-link {
  color: #6c757d;
}

body.guest-inner-page #mainNav .navbar-nav .nav-item .nav-link:hover,
body.guest-inner-page #mainNav .navbar-nav .nav-item .nav-link.active {
  color: var(--creative-primary);
}

body.guest-inner-page #mainNav .dropdown-toggle::after {
  vertical-align: 0.15em;
}

@media (min-width: 992px) {
  body.guest-home-page #mainNav {
    box-shadow: none;
    background-color: transparent;
  }

  body.guest-home-page #mainNav .navbar-brand {
    color: rgba(255, 255, 255, 0.95);
  }

  body.guest-home-page #mainNav .navbar-brand-text small {
    color: rgba(255, 255, 255, 0.75);
  }

  body.guest-home-page #mainNav .navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0 1rem;
  }

  body.guest-home-page #mainNav .navbar-nav .nav-item .nav-link:hover,
  body.guest-home-page #mainNav .navbar-nav .nav-item .nav-link.active {
    color: #fff;
  }

  body.guest-home-page #mainNav.navbar-shrink {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #fff;
  }

  body.guest-home-page #mainNav.navbar-shrink .navbar-brand {
    color: #212529;
  }

  body.guest-home-page #mainNav.navbar-shrink .navbar-brand-text small {
    color: #6c757d;
  }

  body.guest-home-page #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link {
    color: #212529;
  }

  body.guest-home-page #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link:hover,
  body.guest-home-page #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link.active {
    color: var(--creative-primary);
  }

  #mainNav .navbar-nav .nav-item .nav-link {
    padding: 0 0.75rem;
    white-space: nowrap;
  }

  #mainNav .navbar-nav .nav-item:last-child .nav-link {
    padding-right: 0;
  }

  body.guest-inner-page #mainNav .navbar-brand {
    max-width: 42%;
  }
}

/* Page sections */
.page-section {
  padding: 6rem 0;
}

.page-section-sm {
  padding: 4rem 0;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

hr.divider {
  height: 0.2rem;
  max-width: 3.25rem;
  margin: 1.5rem auto;
  background-color: var(--creative-primary);
  opacity: 1;
  border: 0;
}

hr.divider-light {
  background-color: #fff;
}

.btn-xl {
  padding: 1.25rem 2.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 10rem;
}

body.guest-creative .btn-primary {
  background-color: var(--creative-primary);
  border-color: var(--creative-primary);
}

body.guest-creative .btn-primary:hover {
  background-color: var(--creative-primary-dark);
  border-color: var(--creative-primary-dark);
}

body.guest-creative .page-item.active .page-link {
  background-color: var(--creative-primary);
  border-color: var(--creative-primary);
}

body.guest-creative .page-link {
  color: var(--creative-primary);
}

/* Main content */
body.guest-creative .main-content {
  padding-top: 4.5rem;
}

body.guest-home-page .main-content {
  padding-top: 0;
}

body.guest-creative .content-tab {
  display: none;
  min-height: auto;
}

body.guest-creative .content-tab.active {
  display: block;
}

/* Inner page header banner */
.page-header-banner {
  padding: 8rem 0 4rem;
  background-color: #006131;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  color: #fff;
  margin-top: -4.5rem;
  padding-top: calc(8rem + 4.5rem);
}

.page-header-banner h1,
.page-header-banner h2 {
  color: #fff;
  font-weight: 700;
}

/* Profile */
.profile-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.profile-subtitle {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #212529;
}

.profile-text {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.profile-image {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 0.375rem;
}

.profile-list {
  list-style-type: disc;
  list-style-position: inside;
  color: #6c757d;
}

.profile-list-item {
  margin-bottom: 0.5rem;
}

/* Filters */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-button {
  background-color: #fff;
  border: 1px solid #dee2e6;
  padding: 0.5rem 1.25rem;
  border-radius: 10rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6c757d;
}

.filter-button:hover {
  background-color: #f8f9fa;
  color: var(--creative-primary);
}

.filter-button.active {
  background-color: var(--creative-primary);
  color: #fff;
  border-color: var(--creative-primary);
}

/* Info box (dokumen) */
.info-box {
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  border-radius: 0.375rem;
  background-color: #fff;
  display: flex;
  margin-bottom: 1rem;
  min-height: 80px;
  padding: 0.5rem;
  position: relative;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.5rem rgba(244, 98, 58, 0.15);
}

.info-box .info-box-icon {
  border-radius: 0.375rem;
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
  width: 70px;
}

.info-box .info-box-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.8;
  flex: 1;
  padding: 0 10px;
  overflow: hidden;
}

.info-box-text {
  font-weight: 700;
  color: #212529;
}

/* Cards */
body.guest-creative .card {
  border: none;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.guest-creative .card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

body.guest-creative .card-title a {
  color: #212529;
  transition: color 0.2s ease;
}

body.guest-creative .card-title a:hover {
  color: var(--creative-primary);
}

/* Contact */
.contact-container {
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.contact-subtitle {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #6c757d;
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--creative-primary);
  flex-shrink: 0;
}

.map-placeholder {
  background-color: #f8f9fa;
  height: 300px;
  border-radius: 0.375rem;
  overflow: hidden;
}

body.guest-creative .form-control:focus {
  border-color: var(--creative-primary);
  box-shadow: 0 0 0 0.25rem rgba(244, 98, 58, 0.25);
}

/* Footer */
.site-footer {
  background-color: #212529;
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}

.site-footer .footer-title {
  font-family: "Merriweather Sans", sans-serif;
  font-weight: 700;
  color: #fff;
}

.site-footer .footer-nav-link {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.site-footer .footer-nav-link:hover {
  color: var(--creative-primary);
}

.site-footer .footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 404 */
.error-page {
  min-height: calc(100vh - 4.5rem);
  background: linear-gradient(to bottom, rgba(92, 77, 66, 0.9) 0%, rgba(0, 97, 49, 0.9) 100%),
    url("../template/assets/img/bg-masthead.jpg");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.error-page h1 {
  color: #fff;
}

.error-page .btn-light {
  border-radius: 10rem;
  padding: 0.75rem 2rem;
  font-weight: 700;
}

/* Home — masthead / hero */
header.masthead {
  position: relative;
  padding: 0;
  min-height: 100vh;
  overflow: hidden;
}

header.masthead .carousel,
header.masthead .carousel-inner,
header.masthead .carousel-item {
  height: 100vh;
  min-height: 40rem;
}

header.masthead .carousel {
  position: relative;
}

header.masthead .carousel-item {
  position: relative;
}

header.masthead .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

header.masthead .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(92, 77, 66, 0.45) 0%, rgba(0, 97, 49, 0.55) 100%);
  pointer-events: none;
}

header.masthead .masthead-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  margin: 0;
  pointer-events: none;
}

header.masthead .masthead-caption-inner {
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
  pointer-events: auto;
}

header.masthead .masthead-title {
  color: #fff;
  font-size: calc(1.5rem + 1.5vw);
  font-weight: 700;
  margin-bottom: 0;
}

header.masthead .masthead-motto {
  color: var(--dinkes-gold);
  font-size: calc(1rem + 0.4vw);
  font-style: italic;
  font-weight: 400;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

header.masthead .masthead-logo {
  height: 100px;
  margin-bottom: -20px;
}

header.masthead .carousel-indicators,
header.masthead .carousel-control-prev,
header.masthead .carousel-control-next {
  z-index: 3;
}

@media (min-width: 992px) {
  header.masthead .masthead-title {
    font-size: 2.5rem;
  }

  header.masthead .masthead-motto {
    font-size: 1.5rem;
  }
}

@media (min-width: 1200px) {
  header.masthead .masthead-title {
    font-size: 3rem;
  }
}

/* Home — services */
#layanan-kami .service-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

#layanan-kami .service-link:hover {
  transform: translateY(-6px);
  color: inherit;
}

#layanan-kami .service-link:hover .service-icon-wrap {
  box-shadow: 0 0.5rem 1.5rem rgba(244, 98, 58, 0.25);
}

#layanan-kami .service-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease;
}

#layanan-kami .service-image {
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

#layanan-kami .service-image-jdih {
  max-width: 180px;
  max-height: 120px;
}

#layanan-kami .service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

#layanan-kami .service-description {
  color: #6c757d;
  margin-bottom: 0;
  padding: 0 0.5rem;
}

#instagram-section {
  background-color: #fff;
}

/* Modal (pemberitahuan) */
#pemberitahuan.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

#pemberitahuan .modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 5px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  max-height: 100vh;
  overflow-y: auto;
  border-radius: 0.375rem;
}

#pemberitahuan .close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

#pemberitahuan .close:hover,
#pemberitahuan .close:focus {
  color: #000;
  cursor: pointer;
}

body.guest-creative .table a {
  color: var(--creative-primary);
  font-weight: 700;
}

body.guest-creative .table a:hover {
  color: var(--creative-primary-dark);
}

body.guest-creative .list-group-item {
  border-left: 0;
  border-right: 0;
}

body.guest-creative .list-group-item:hover {
  background-color: rgba(244, 98, 58, 0.08);
}

@media (max-width: 991.98px) {
  #mainNav .navbar-brand {
    max-width: calc(100% - 3.5rem);
  }

  #mainNav .navbar-brand-text {
    font-size: 0.85rem;
  }

  #mainNav .navbar-collapse {
    background-color: #fff;
    padding: 0.75rem 0 0.25rem;
    margin-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  #mainNav .navbar-nav .nav-item .nav-link {
    color: #212529;
    padding: 0.65rem 0;
  }

  body.guest-home-page #mainNav .navbar-nav .nav-item .nav-link {
    color: #212529;
  }

  body.guest-home-page #mainNav .navbar-brand {
    color: #212529;
  }

  body.guest-home-page #mainNav .navbar-brand-text small {
    color: #6c757d;
  }
}

@media (max-width: 767px) {
  .hidden-on-mobile {
    display: none;
  }
}

/* Page transition loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.page-loader.is-active,
body.page-is-loading .page-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.page-loader-inner img {
  height: 72px;
  width: auto;
  max-width: min(280px, 80vw);
  object-fit: contain;
  animation: page-loader-pulse 1.4s ease-in-out infinite;
}

.page-loader-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(244, 98, 58, 0.2);
  border-top-color: var(--creative-primary, #f4623a);
  border-radius: 50%;
  animation: page-loader-spin 0.75s linear infinite;
}

@keyframes page-loader-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.06);
    opacity: 0.88;
  }
}

@keyframes page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}
