/********** Template CSS **********/

/*** 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;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Button ***/
.btn {
  transition: 0.5s;
}

.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 ***/
.sticky-top {
  top: -150px;
  transition: 0.5s;
}

.navbar {
  padding: 15px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.navbar .navbar-nav .nav-link {
  margin-left: 30px;
  padding: 0;
  outline: none;
  color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
  color: var(--bs-white);
  background: var(--bs-primary);
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-left: 0;
    padding: 10px 0;
  }
  .sticky-top:has(.navbar-collapse.show) {
    background-color: #fff !important;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    right: -30px;
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    right: -30px;
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Hero Header ***/
.hero-header {
  margin-top: -100px;
  padding-top: 150px;
  background: url(../img/hero-bg.png) top center no-repeat;
  background-size: cover;
}

.hero-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

.header-carousel {
  position: relative;
  padding: 45px 90px 45px 0;
}

.header-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  width: calc(50% + 45px);
  height: 100%;
  background: var(--bs-primary);
  z-index: -1;
}

.header-carousel .owl-dots {
  position: absolute;
  top: 50%;
  right: 38px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 5px 0;
  width: 15px;
  height: 15px;
  border: 2px solid var(--bs-white);
  transition: 0.5s;
}

.header-carousel .owl-dot.active {
  height: 30px;
  background: var(--bs-white);
}

/*** About ***/
.about-img {
  position: relative;
  overflow: hidden;
}

.about-img::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url(../img/bg-about-img.png) top left no-repeat;
  background-size: contain;
}

/*** Project ***/
.project-item img {
  transition: 0.5s;
}

.project-item:hover img {
  transform: scale(1.2);
}

.project-overlay {
  position: absolute;
  padding: 25px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: linear-gradient(rgba(255, 255, 255, 0.1) 50%, var(--bs-dark));
  z-index: 1;
}

/*** Service ***/
.service-item {
  position: relative;
  padding: 30px 25px;
  transition: 0.5s;
}

.service-item.bg-primary:hover {
  background: var(--bs-light) !important;
}

.service-item.bg-primary p {
  color: var(--bs-light);
  transition: 0.5s;
}

.service-item.bg-primary:hover p {
  color: var(--bs-secondary);
}

.service-item.bg-light:hover {
  background: var(--bs-primary) !important;
}

.service-item.bg-light p {
  color: var(--bs-secondary);
  transition: 0.5s;
}

.service-item.bg-light:hover p {
  color: var(--bs-light);
}

.service-item .service-img h3 {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
  background: var(--bs-primary);
  color: var(--bs-white);
  transition: 0.5s;
}

.service-item.bg-primary:hover .service-img h3 {
  background: var(--bs-light);
  color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
  background: var(--bs-light);
  color: var(--bs-dark);
  transition: 0.5s;
}

.service-item.bg-light:hover .service-img h3 {
  background: var(--bs-primary);
  color: var(--bs-white);
}

/*** Our Team ***/
.team-item img {
  transition: 0.5s;
}

.team-item:hover img {
  transform: scale(1.2);
}

.team-overlay {
  position: absolute;
  padding: 30px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: linear-gradient(#ffffff1a 50%, var(--bs-dark));
  z-index: 1;
}

.team-overlay small {
  display: inline-block;
  padding: 3px 15px;
  color: var(--bs-white);
  background: var(--bs-primary);
}

/*** Testimonial ***/
.testimonial-img {
  position: relative;
  padding: 45px 0 45px 90px;
}

.testimonial-img::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: calc(50% + 45px);
  height: 100%;
  background: var(--bs-primary);
  z-index: -1;
}

.testimonial-text h5 {
  position: relative;
  padding-left: 45px;
}

.testimonial-text h5::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 40px;
  height: 2px;
  background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
  position: absolute;
  height: 17px;
  bottom: 0;
  right: 0;
  left: auto;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  width: 15px;
  height: 15px;
  background: var(--bs-white);
  border: 2px solid var(--bs-primary);
  transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
  width: 30px;
  background: var(--bs-primary);
}

@media (max-width: 768px) {
  .testimonial-carousel .owl-dots {
    left: 0;
    right: auto;
  }

  .testimonial-carousel .owl-dot {
    margin-right: 10px;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .event-carousel .owl-dots {
    left: 0;
    right: auto;
  }

  .event-carousel .owl-dot {
    margin-right: 10px;
    margin-left: 0;
  }
}

/*** Newsletter ***/
.newsletter {
  background: url(../img/hero-bg.png) bottom right no-repeat;
  background-size: cover;
}

@media (min-width: 992px) {
  .newsletter .container {
    max-width: 100% !important;
  }

  .newsletter .newsletter-text {
    padding-right: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .newsletter .newsletter-text {
    padding-right: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .newsletter .newsletter-text {
    padding-right: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Footer ***/
.footer .btn.btn-link {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  transition: 0.3s;
}

.footer .btn.btn-link:hover {
  color: var(--bs-white);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .copyright {
  padding: 25px 0;
  font-size: 14px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: rgba(255, 255, 255, 0.5);
}

.footer .copyright a:hover {
  color: var(--bs-white);
}

.footer .footer-menu a {
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .footer-menu a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

.narasi-singkat {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-justify {
  text-align: justify;
}

.limit-container {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 10px;
}

.cursor-pointer {
  cursor: pointer;
}

/* Menu Toko */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 500px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-img {
  height: 150px;
  object-fit: cover;
}

.card-body {
  font-size: 14px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
}

.text-warning.small {
  font-size: 12px;
}

.product-card2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 320px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card2:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card .card-title {
  min-height: 45px;
  font-size: 16px;
  font-weight: 600;
}

.product-card .text-muted.mb-1 {
  min-height: 25px;
  font-size: 14px;
}

.product-card h6 {
  margin: 5px 0;
  font-weight: bold;
}

.product-card .d-flex {
  margin-top: auto;
}

.banner-img {
  height: 100px;
  object-fit: cover;
}

/* Menu Tentang Kami */
.project-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding-bottom: 10px;
}

.project-grid {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-flow: column;
}

.project-item {
  width: 216px;
  height: 216px;
}

.project-overlay h4,
.project-overlay small {
  white-space: normal;
  word-wrap: break-word;
  margin: 0;
  line-height: 1.2em;
  text-shadow: 1px 1px 3px black;
}

.event-img {
  position: relative;
  padding: 45px 0 45px 90px;
}

.event-img::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: calc(50% + 45px);
  height: 100%;
  background: var(--bs-primary);
  z-index: -1;
}

.event-text h5 {
  position: relative;
  padding-left: 45px;
}

.event-text h5::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 40px;
  height: 2px;
  background: var(--bs-primary);
}

.event-carousel .owl-dots {
  text-align: center;
}

.event-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  width: 15px;
  height: 15px;
  background: var(--bs-white);
  border: 2px solid var(--bs-primary);
  transition: 0.5s;
}

.event-carousel .owl-dot.active {
  width: 30px;
  background: var(--bs-primary);
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3em;
}

.card-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3em;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.description-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.box-card {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
  margin-bottom: 45px;
  background: var(--color-initial);
  box-shadow: 0 4px 20px 10px #00000005;
  transition: transform 0.2s ease;
}

.box-card:hover {
  transform: translateY(-5px);
}

.box-card figure {
  position: relative;
  overflow: hidden;
  display: block;
  height: auto;
  margin: 8px;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
}

.box-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.box-card .fw-bold.text-dark {
  transition: color 0.3s ease;
}

.box-card:hover .fw-bold.text-dark {
  color: var(--bs-primary) !important;
}

.box-card .desc-card h5 {
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: 500;
}

.box-card .desc-card .motif {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}

.box-card .desc-card .price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.2;
  font-family: var(--font-2-bold);
}

.box-card .abs-btm {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 20px 20px;
}

.box-card .desc-card {
  padding: 12px 20px 0;
}

@media (max-width: 426px) {
  .box-card {
    padding-bottom: 65px;
  }

  .box-card .motif {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .box-card .price {
    font-size: 0.8rem !important;
  }

  .box-card .fw-semibold {
    font-size: 0.8rem !important;
  }
}

.short-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.full-text {
  white-space: normal;
}

.cardgaleri {
  transition: all 0.3s ease;
}

#peta-ntt text[font-size="11"],
#peta-ntt text:contains("Created with paintmaps.com") {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.gslide-description {
  background-color: transparent !important;
}

.gdesc-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.gslide-title {
  color: white !important;
}

#product-list {
  min-height: 200px;
  position: relative;
}

.loading-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

:root {
  --indigo: #15345b;
  --brick: #9e2a2b;
  --gold: #d4a017;
  --terra: #d97b38;
  --cream: #fff7ee;
  --muted: #6b6b6b;
}

/* Hero */
.hero-ntt {
  background: linear-gradient(
    135deg,
    rgba(21, 52, 91, 0.95),
    rgba(158, 42, 43, 0.9)
  );
  color: var(--cream);
  padding: 56px 0;
  position: relative;
  overflow: visible;
}

.hero-ntt .subtitle {
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.95;
}

/* floating card */
.detail-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(21, 52, 91, 0.12);
  padding: 28px;
  margin-top: -60px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-grid .thumb {
  border-radius: 12px;
  overflow: hidden;
  background: #f7f5f2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-grid .thumb:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

/* Info */
.kain-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--indigo);
}

.kain-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.makna {
  background: linear-gradient(
    90deg,
    rgba(217, 123, 56, 0.06),
    rgba(212, 160, 23, 0.04)
  );
  border-left: 4px solid var(--terra);
  padding: 14px 14px 4px 14px;
  border-radius: 10px;
  color: #333;
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  line-height: 1.5em;
  -webkit-line-clamp: 5; /* tampil 5 baris dulu */
  -webkit-box-orient: vertical;
  transition: all 0.3s ease;
}

.makna.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.toggle-makna {
  display: inline-block;
  color: #15345b;
  font-weight: 600;
  cursor: pointer;
  margin-top: 5px;
  user-select: none;
  font-size: 0.9rem;
}

.toggle-makna:hover {
  text-decoration: underline;
}

.specs td {
  padding: 6px 0;
  vertical-align: top;
}

.specs .label {
  color: var(--muted);
  width: 140px;
}

.price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brick);
  letter-spacing: 0.4px;
}

.cta-wrap .btn {
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
}

.btn-order {
  background: linear-gradient(90deg, var(--brick), var(--terra));
  color: #fff;
  border: none;
  box-shadow: 0 10px 30px rgba(158, 42, 43, 0.14);
}

.shopeeBtn img {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.18s;
}

.shopeeBtn img:hover {
  transform: translateY(-3px);
}

.btn-order:hover {
  transform: translateY(-3px);
  color: #fff;
}

/* share area */
.share-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.share-btn {
  background: #fff;
  border: 1px solid #eee;
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.18s;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(21, 52, 91, 0.06);
}

/* QR */
.qr-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.gallery-thumbs .owl-item.active.center img {
  border: 2px solid #9e2a2b;
  opacity: 1;
}

.gallery-thumbs img {
  opacity: 0.6;
  transition: all 0.3s ease;
}

.gallery-thumbs img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.gallery-thumbs .owl-nav {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.gallery-thumbs .owl-prev {
  padding: 5px 10px;
  background-color: #ffffff78;
  border: 1px solid gray;
  border-radius: 10px;
}

.gallery-thumbs .owl-next {
  padding: 5px 10px;
  background-color: #ffffff78;
  border: 1px solid gray;
  border-radius: 10px;
}

.gallery-thumbs .disabled {
  cursor: auto !important;
  opacity: 0.5;
}

.gallery-thumbs .owl-item.selected-thumb img {
  border: 2px solid #9e2a2b;
  opacity: 1;
}

/* responsive tweaks */
@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-card {
    padding: 18px;
    margin-top: -40px;
  }
}

@media (max-width: 575px) {
  .kain-title {
    font-size: 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .img-ori {
    height: 200px !important;
  }

  .img-thumb {
    height: 60px !important;
  }

  td {
    width: 50% !important;
  }

  .share-btn {
    width: 35% !important;
  }
}
