/* index */
body {
  font-family: "Inter", sans-serif;
}

.page-header {
  background-color: #0ee011;
  padding: 4rem 0;
}

#hero-video-section {
    position: relative; 
    width: 100%;
    height: 100vh; 
    overflow: hidden; 
    background-color: #333; 
}

#hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1; 
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover; 
}


.hero-text-overlay {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-with-video .hero-text-overlay {
    background-color: rgba(41, 50, 72, 0.555);
}

.hero-with-image .hero-text-overlay {
    background-color: rgba(35, 50, 77, 0.649);
}

/* .hero-text-overlay {
    position: relative;
    z-index: 2; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(45, 55, 81, 0.555); 
} */

.hero-section {
  background-image: linear-gradient(
      rgba(30, 42, 53, 0.7),
      rgba(30, 42, 53, 0.7)
    ),
    url("assets\img\slide1.jpg"); 
  background-size: cover;
  background-position: center;
  min-height: 90vh;
}

.section-title {
  font-weight: 700;
  color: #001529;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Mengatur tinggi dan posisi untuk seluruh section */
#hero-carousel-section {
  position: relative;
  height: 90vh;
}

#heroCarousel,
.carousel-inner,
.carousel-item {
  height: 100%;
}

/* Mengatur gambar latar belakang dan lapisan gelap untuk setiap slide */
.carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}


/* .carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(43, 57, 79, 0.758);
} */

#slide1 {
  background-image: url("../img/1.jpg");
}
#slide2 {
  background-image: url("../img/2.jpg");
}

/* Mengatur posisi teks di tengah slider */
.hero-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2; 
  display: flex;
  align-items: center;
  justify-content: center;
}

nav .nav-link {
  transition: color 0.2s ease-in-out;
}

nav .nav-link:hover {
  color: #000000 !important;
}

nav .nav-link.active {
  color: #000000 !important;
  font-weight: 600;
}

nav .btn-primary {
  background-color: #d11a2d; 
  border-color: #d11a2d;
  color: #ffffff; 
}

nav .btn-primary:hover {
  background-color: #d11a2d; 
  border-color: #d11a2d;
}

nav .btn-primary.active {
  background-color: #d11a2d;
  border-color: #d11a2d;
}

/* STYLE UNTUK KONTAINER VIDEO */

.video-container-wrapper {
  position: relative;
  border: 1px solid #dee2e6; 
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.video-container-wrapper::after {
  content: "";
  position: absolute;
  bottom: -10px; 
  right: -10px; 
  width: 30%;
  height: 5px; 
  background-color: #d11a2d; 
  border-radius: 5px;
}

.video-container-wrapper .ratio {
  border-radius: 0.25rem;
  overflow: hidden; 
}


.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; 
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.news-card .card-img-top {
  height: 200px;
  object-fit: cover; 
}

.news-card .card-body {
  padding: 1rem 1.25rem;
}

.news-slider-nav .btn {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* CSS UNTUK LOGO SCROLLER KLIEN */
.logo-scroller-container {
  max-width: 100%;
  overflow: hidden; 
  padding: 2rem 0;
  -webkit-mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 10%,
    hsl(0 0% 0% / 1) 90%,
    hsl(0 0% 0% / 0)
  );
  mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 10%,
    hsl(0 0% 0% / 1) 90%,
    hsl(0 0% 0% / 0)
  );
}

.scroller-track {
  display: flex;
  width: fit-content; 
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 40s; 
}

.top-track {
  animation-name: scroll-left;
  margin-bottom: 1.5rem;
}

.bottom-track {
  animation-name: scroll-right;
  animation-direction: reverse; 
}

.logo-scroller-container:hover .scroller-track {
  animation-play-state: paused;
}

/* Keyframes untuk animasi bergerak */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.scroller-track img {
  height: 70px;
  width: auto;
  margin: 0 3rem;
  object-fit: contain;
  /* filter: grayscale(1); Membuat logo berwarna abu-abu */
  opacity: 0.8;
  transition: all 0.1s ease;
}

.scroller-track img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* COMPANY */

/* CSS UNTUK MEGAMENU DROPDOWN */

.dropdown-megamenu {
  position: static;
}

.megamenu-content {
  background-color: #fff;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding: 2rem;
  width: 500px;
  margin-top: 1rem !important;
  transform: translateX(100%);
}

.dropdown-item-megamenu {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.dropdown-item-megamenu:hover {
  background-color: #f8f9fa;
  color: #d11a2d;
}

.dropdown-item-megamenu .icon-megamenu {
  font-size: 1.5rem;
  color: #d11a2d;
}

@media (max-width: 991.98px) {
  .dropdown-megamenu .megamenu-content {
    width: 100%;
    box-shadow: none;
    padding: 1rem;
    transform: none; 
    left: auto; 
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; 
}

.header-with-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  z-index: 1;
  background-image: url("../img/3.jpg");
  min-height: 80vh; 
  display: flex;
  align-items: center;
}

.header-with-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 42, 53, 0.7);
  z-index: -1; 
}

.text-justify-force {
  text-align: justify !important;
}

.vision-mission-title {
  font-weight: 700;
  font-size: 2.25rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.vision-mission-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px; 
  height: 4px; 
  background-color: #d11a2d; 
  border-radius: 2px;
}

.vision-mission-image {
  position: relative;
  padding: 0.75rem;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  width: 100%;      
  height: 350px;    
  overflow: hidden;
}

.vision-mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Opsional: agar fokus gambar selalu di tengah */
}

.vision-mission-image::after {
  content: "";
  position: absolute;
  z-index: -1;
  background-color: #d11a2d;
  width: 100px;
  height: 4px;
  border-radius: 2px;
  bottom: -15px;
  right: -15px;
}

.vision-mission-image.alt-pos::after {
  right: auto;
  left: -15px;
}

/* CSS FINAL UNTUK GALERI SERTIFIKASI */

/* --- BAGIAN 1: STYLE UNTUK KARTU THUMBNAIL --- */

.certificate-card {
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.certificate-card:hover {
  transform: translateY(-5px);
}

.certificate-img-wrapper {
  background-color: #fff;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  overflow: hidden;
}

.certificate-img-wrapper img {
  width: 100%;
  height: 250px;
  object-fit: contain;
}

.certificate-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
}

#certification .certificate-title {
  color: #fff;
}

/*  BAGIAN 2: STYLE UNTUK MODAL DETAIL GAMBAR (LIGHTBOX)  */

#certificateDetailModal .modal-dialog {
  max-width: 90%;
}

#certificateDetailModal .modal-content {
  background-color: rgba(0, 0, 0, 0.85);
}

/* Toolbar */
.lightbox-toolbar {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1056;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  padding: 0.25rem;
  display: flex;
}

.lightbox-tool-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lightbox-tool-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#image-pan-zoom-container {
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#detailCertificateImage {
  transition: transform 0.3s ease;
  cursor: grab;
  max-width: 100%;
  max-height: 100%;
}

#detailCertificateImage.is-panning {
  cursor: grabbing;
}

.section-full-width {
  width: 100vw; 
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* HISTORY */

/* #history {
  background-image: url("../img/3.jpg");
} */

.history-card {
  background-color: #fff;
  color: #333;
  padding: 2rem;
  border-radius: 0.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.history-year {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.history-title {
  font-size: 1.1rem;
  flex-grow: 1; 
}

.history-slider-nav {
  text-align: center;
  margin-top: 2rem;
}

.history-slider-nav .btn {
  font-size: 2rem;
  color: #fff;
  padding: 0 0.5rem;
}

.history-slider-nav .btn:hover {
  color: #d11a2d; 
}

.management-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.management-img {
  width: 100%;
  height: 250px; 
  display: block;
  object-fit: cover; 
  object-position: top; 
  transition: transform 0.3s ease; 
}

.management-card:hover .management-img {
  transform: scale(1.05);
}

.management-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 1.5rem 1rem 0.75rem 1rem;
  text-align: center;
}

.management-caption .name {
  font-weight: 600;
  margin-bottom: 0.1rem;
  font-size: 0.9rem;
}

.management-caption .title {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.csr-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.csr-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.csr-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.csr-slider-nav {
  text-align: center;
  margin-top: 2rem;
}

.csr-slider-nav .btn {
  font-size: 2rem;
  color: #fff;
  padding: 0 0.5rem;
}

.csr-slider-nav .btn:hover {
  color: #d11a2d; 
}

/* CSS UNTUK HALAMAN PRODUK */

.header-with-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.header-with-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 42, 53, 0.7);
  z-index: -1;
}

/* .product-map-container {
  position: relative;
  width: 100%;
}

.product-map-bg {
  width: 100%;
  height: auto;
  display: block;
} */

/* .hotspot {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 2rem;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hotspot:hover {
  background-color: #d11a2d;
  color: white;
  transform: translate(-50%, -50%) scale(1.05);
} */

.product-card-img {
  height: 350px;
  object-fit: cover; /
}

/* .modal-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.modal-product-card img {
  max-width: 200px;
  margin-bottom: 1rem;
}

.modal-product-detail {
  display: flex;
  gap: 2rem;
}
.modal-product-detail img {
  max-width: 250px;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .modal-product-detail {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
} */

.card-img-top {
  height: 250px; 
  object-fit: cover; 
}

.category-card-img {
  height: 400px; 
  object-fit: cover; 
  width: 100%; 
}

.fancybox__container {
  z-index: 1070; 
}

.fancybox__slide--image .fancybox__content {
  max-width: 100%;   
  max-height: 100%;  
}

.main-product-image {
  height: 350px; 
  width: 100%;   
  object-fit: cover; 
}

/* Services */

.service-image-fixed {
        width: 100%; 
        height: 300px; 
        object-fit: cover; 
        border-radius: .5rem; 
      }



/* optional */
/* .service-image-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: .5rem;
} */


/* .service-image-bottom {
    width: 100%;
    height: 450px; 
    object-fit: cover;
    border-radius: .5rem;
} */

/* Projects */

.project-image-wrapper {
  position: relative;
  padding: 0.75rem;
  border: 1px solid #d11a2d;
  border-radius: 1rem;
}

.project-image-wrapper {
  height: 300px;
  overflow: hidden; 
  border-radius: 1rem;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

/* Aksen garis merah */
.project-image-wrapper::after {
  content: "";
  position: absolute;
  background-color: #d11a2d;
  width: 100px;
  height: 4px;
  border-radius: 2px;
  bottom: -15px;
  right: -15px;
}

/* Detail Header */
.project-detail-header {
  height: 60vh;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  display: flex;
  align-items: flex-end;
}

.project-detail-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.project-detail-title {
  position: relative;
  z-index: 2;
}

.project-stats-bar {
  background-color: #d11a2d;
  color: white;
}

.project-description {
text-align: justify;
}

/* News */

.filter-btn {
  border: 1px solid #dee2e6;
  border-radius: 2rem; /* Membuat tombol jadi kapsul */
  padding: 0.5rem 1.5rem;
  margin: 0 0.25rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.filter-btn:hover {
  background-color: #f8f9fa;
}

.filter-btn.active {
  background-color: #d11a2d; /* Warna merah */
  color: #fff;
  border-color: #d11a2d;
}

.news-item {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.news-content {
    text-align: justify;
}

/* .news-image-fixed {
    width: 300px; 
    height: auto; 
    float: left; 
    margin-right: 1.5rem;
    margin-bottom: 1rem;
} */

.news-image-fixed-box-left {
    width: 400px;      
    height: 300px;     
    object-fit: cover; 
    float: left; 
    /* margin-right: rem;  */
    /* margin-bottom: 1rem; */
}

.news-image-fixed-box-right {
    width: 400px;      
    height: 300px;     
    object-fit: cover; 
    float: right; 
    /* margin-left: 1.5rem; 
    margin-bottom: 0.5rem; */
}


.news-image-left {
    width: 400px;      
    height: 300px;     
    object-fit: cover; 
    float: left;
    margin-right: 1.5rem;
    /* margin-bottom: rem; */
}

.news-image-right {
    width: 400px;      
    height: 300px;     
    object-fit: cover; 
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-thumbnail {
            width: 100px;
            height: 70px;
            object-fit: cover;
            border-radius: 6px;
        }
