/*
 * Globals
 */
@font-face {
  src: url("https://fonts.googleapis.com/css?family=Montserrat");
  font-family: "Montserrat";
  font-style: Light;
  font-weight: 300;
}

body {
  /*text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
  box-shadow: inset 0 0 5rem rgba(0, 0, 0, .5);*/
  height: 100%;
  /* The image used */
  background-image: url("../img/bg.jpg");

  /* Full height */
  height: 100%;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-decoration: none;
}

.b-superior-logo {
  background-image: url(../img/logo_superior.svg);
  background-repeat: no-repeat;
  width: 200px;
  height: 45px;
  margin-left: 0px;
}

.lead {
  font-size: 1.75rem;
}

a {
  color: #c69671;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #916230;
  text-decoration: none;
  cursor: pointer;
}

.s-full {
  width: 100%;
  height: auto;
}

.b-divider-sm {
  background: #453213;
  width: 100%;
  height: 80px;
  /*background-color: rgba(0, 0, 0, .1);*/
  border: solid rgba(0, 0, 0, 0.15);
  border-width: 1px 0;
  box-shadow: inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1),
    inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
}

.b-divider-md {
  background: #453213;
  width: 100%;
  height: 100px;
  /*background-color: rgba(0, 0, 0, .1);*/
  border: solid rgba(0, 0, 0, 0.15);
  border-width: 1px 0;
  box-shadow: inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1),
    inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
}

.b-icon {
  background-color: #c69671;
  border-radius: 25px;
  margin-right: 5px;
}

.b-padding {
  padding: 40px;
}

.b-padding-top {
  padding-top: 30px;
}

.b-padding-bottom {
  padding-bottom: 30px;
}

.b-padding-sm {
  padding: 40px;
}

.b-padding-h4 {
  padding: 30px;
}

.b-margin-top {
  margin-top: 30px;
}

.list-group {
  border-radius: 0rem;
}

h4 {
  text-decoration: underline;
  text-underline-position: under;
  text-decoration-color: #c69671;
}

/* Tabs*/
section .section-title {
  text-align: center;
  margin-bottom: 10px;
  text-transform: uppercase;
}
#tabs {
  background: transparent;
}

#tabs .nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  background-color: transparent;
  border-color: transparent transparent #c69671;
  border-bottom: 2px solid !important;
  color: #c69671;
}
#tabs .nav-tabs .nav-link {
  border: 1px solid transparent;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  color: #c69671;
}
.nav-tabs {
  --bs-nav-tabs-border-width: transparent;
}
.nav-link {
  color: #c69671;
}

.nav-link.hover {
  color: #916230;
}

.nav {
  --bs-nav-link-color: #916230;
  --bs-nav-link-hover-color: #916230;
}

@media (min-width: 576px) {
  .row-cols-sm-2 {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* Custom default button */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
  color: #333;
  text-shadow: none; /* Prevent inheritance from `body` */
}

/*
 * Base structure
 */

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  --bs-gutter-x: 0rem;
  --bs-gutter-y: 0;
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-right: auto;
  margin-left: auto;
}

.cover-container {
  width: 100%;
  /* The image used */
  background-image: url("../img/bg.jpg");

  /* Full height */
  height: 100%;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cover-texture {
  width: 100%;
  /* The image used */
  background-image: url("../img/texture-bg.png");

  /* Full height */
  height: 100%;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.map {
  width: 100%;
  height: 400px;
}
/*
 * Header
 */

.nav-masthead .nav-link {
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 0.25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.nav-masthead .nav-link + .nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}

.s-primary-color {
  color: #453213;
}

.s-secondary-color {
  color: #916230;
}

.s-tertiary-color {
  color: #c69671;
}

.s-text-shadow {
  text-shadow: 2px 2px #000;
}

.s-font-500 {
  font-weight: 500;
}

.s-font-600 {
  font-weight: 600;
}

.sps-logo-1 {
  background-image: url("../img/SPS_logo1.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 135px;
  height: 48px;
}

.sps-logo-2 {
  background-image: url("../img/SPS_logo2.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 135px;
  height: 48px;
}

.sps-logo-3 {
  background-image: url("../img/SPS_logo3.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 135px;
  height: 48px;
}

.sps-line {
  width: 100%;
  text-align: center;
  border-bottom: 5px solid #0f0;
  line-height: 0.1em;
  margin: 10px 0 20px;
}

.sps-line span {
  background: #023f88;
  padding: 0 10px;
}

/* Small devices (landscape phones, 576px and up)*/
@media (max-width: 576px) {
  .b-superior-logo {
    width: 150px;
    height: 33px;
    margin-top: 10px;
    margin-left: 0px;
  }
  .s-margin {
    margin-top: -150px;
  }
  .lead {
    font-size: 1.25rem;
  }
  .s-full {
    width: 100%;
    height: auto;
  }
  .b-padding-h4 {
    padding: 20px;
  }
}

/* Medium devices (tablets, 768px and up)*/
@media (max-width: 768px) {
  .b-superior-logo {
    margin-left: 0px;
  }
  .s-full {
    width: 100%;
    height: auto;
  }
  .b-padding-h4 {
    padding: 20px;
  }
  /* ul {
    overflow: hidden;
    text-align: center;
  }
  ul:before,
  ul:after {
    background-color: #eab243;
    content: "";
    display: inline-block;
    height: 22px;
    position: relative;
    vertical-align: middle;
    width: 50%;
    margin: 20px 0 20px; 
  }
  ul:before {
    right: 0.5em;
    margin-left: -50%;
  }
  ul:after {
    left: 0.5em;
    margin-right: -50%;
  } */
}

/* Large devices (desktops, 992px and up)*/
@media (max-width: 992px) {
  .b-superior-logo {
    margin-left: 12px;
  }
  .s-full {
    min-width: 290px;
    height: 20rem;

    display: block;
    object-fit: cover;
    transition: transform 3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: relative;
    z-index: -1;
    overflow: hidden;
    border-radius: 0rem;
    flex: 1;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
    -moz-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
  }
  .b-padding-h4 {
    padding: 20px;
  }
}

/* X-Large devices (large desktops, 1200px and up)*/
@media (max-width: 1200px) {
}

/* XX-Large devices (larger desktops, 1400px and up)*/
@media (max-width: 1400px) {
}

/* Responsive CSS News Card */
.content-wrapper {
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  padding: 0.5rem;
}

.news-card {
  border: 0px solid aqua;
  margin: 0.5rem;
  position: relative;
  height: 20rem;
  overflow: hidden;
  border-radius: 0rem;
  flex: 1;
  min-width: 290px;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
}

@media (min-width: 900px) {
  .news-card {
    height: 20rem;
  }
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0)
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 80%);
  z-index: 0;
}

.news-card__card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /*  background: rgba(255,0,0,.5); */
}

.news-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: relative;
  z-index: -1;
}

.news-card__text-wrapper {
  position: absolute;
  bottom: 0rem;
  padding: 1rem;
  color: white;
  width: 100%;
  /*     background-color: rgba(0, 0, 0, 0.4); */
  transition: background-color 1.5s ease;
}

.news-card__title {
  transition: color 1s ease;
  margin-bottom: 0.5rem;
}

.news-card__post-date {
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.news-card__details-wrapper {
  max-height: 0;
  width: 100%;
  opacity: 0;
  transition: max-height 1.5s ease, opacity 1s ease;
}

@media (min-width: 900px) {
  .news-card:hover .news-card__details-wrapper {
    max-height: 20rem;
    opacity: 1;
  }
  .news-card:hover .news-card__text-wrapper {
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
  }
  .news-card:hover .news-card__title {
    color: #ffe800;
  }
  .news-card:hover .news-card__image {
    transform: scale(1.1);
    z-index: -1;
  }
}

.news-card__excerpt {
  font-weight: 300;
}

.news-card__read-more {
  background: black;
  color: #bbb;
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 0rem;
  margin-top: 1rem;
  border: 1px solid #444;
  font-size: 0.8rem;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  text-decoration: none;
  width: 7rem;
  margin-left: auto;
  position: relative;
  z-index: 5;
  text-align: center;
}

.news-card__read-more i {
  position: relative;
  left: 0.2rem;
  color: #888;
  transition: left 0.5s ease, color 0.6s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.news-card__read-more:hover i {
  left: 0.5rem;
  color: #ffe800;
}

/* Global Styles */
.navbar {
  background-color: #453213;
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
  z-index: 1030; /* z-index tinggi untuk navbar */
}

/* Tambahan z-index tinggi untuk dropdown menu */
.navbar-collapse {
  z-index: 1030;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  margin-left: 5px;
}

.brand-name {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
  line-height: 1;
}

.brand-tagline {
  color: #c69671;
  font-size: 0.8rem;
  line-height: 1;
}

.navbar-nav .nav-link {
  color: #c69671 !important;
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
  color: white !important;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.nav-icons .nav-item {
  margin-left: 10px;
}

.nav-icons img,
.nav-icons .icon {
  width: 27px;
  height: 27px;
}

/* Penyesuaian untuk Tampilan Desktop */
@media (min-width: 992px) {
  .navbar-nav {
    margin-right: 0 !important;
  }

  .nav-menu {
    display: flex;
    align-items: center;
  }

  .d-flex.flex-lg-row {
    justify-content: flex-end !important;
  }

  /* Perbaikan: Mengatur menu utama dan ikon di satu baris */
  .right-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .nav-icons {
    margin-left: 15px;
  }
}

/* Penyesuaian untuk Tampilan Mobile */
@media (max-width: 991px) {
  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-item {
    width: 100%;
    padding: 5px 0;
  }

  .navbar-nav .nav-item a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .nav-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 10px;
  }

  .nav-icons .nav-item {
    margin: 0 5px;
  }

  /* Perbaikan untuk dropdown mobile */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #453213;
    padding: 10px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
}

.dropdown-merek {
  background-color: #453213; /* warna background */
  border: none; /* hilangkan border bawaan bootstrap */
}

.dropdown-merek .dropdown-item {
  color: #c69671; /* warna tulisan */
}

.dropdown-merek .dropdown-item:hover,
.dropdown-merek .dropdown-item:focus {
  background-color: #5a4126; /* warna saat hover */
  color: #fff; /* warna tulisan saat hover */
}

/* Supaya tetap rapi di tampilan mobile */
@media (max-width: 767px) {
  .dropdown-merek {
    width: 100%; /* biar dropdown full lebar di mobile */
  }
  .dropdown-merek .dropdown-item {
    text-align: center; /* teks di tengah kalau mau */
  }
}
