/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: 70px;
  height: 40px;
}

.app-brand-logo.demo svg {
  width: 35px;
  height: 24px;
}

.app-brand-logo img {
  max-height: 100%;
  width: 100%;
  object-fit: contain;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed
  .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu)
  .layout-page {
  padding-top: 78px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir="rtl"] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/* Dashboard Admin */
.body-dashboard {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f7fa;
  overflow: hidden;
  position: relative;
}

.body-dashboard::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  top: 5%;
  left: -50px;
  filter: blur(80px);
  animation: floating 6s infinite alternate ease-in-out;
}

.body-dashboard::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  bottom: 10%;
  right: -40px;
  filter: blur(60px);
  animation: floating 5s infinite alternate-reverse ease-in-out;
}

@keyframes floating {
  0% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(10px);
  }
}

/* Container utama dengan ukuran 80% dari viewport */
.dashboard-container {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  padding: 120px 100px; /* Tambah padding agar lebih lega */
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 80vw; /* Ukuran box diperbesar menjadi 80% dari viewport */
  max-width: 900px; /* Maksimal ukuran agar tidak terlalu besar di layar lebar */
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease-in-out;
}

/* Efek hover agar smooth */
.dashboard-container:hover {
  transform: scale(1.03);
}

/* Logo lebih besar */
.logo-dashboard {
  width: 200px; /* Perbesar logo agar proporsional dengan box */
  margin-bottom: 40px;
  animation: fadeIn 1s ease-in-out;
}

/* Teks "Selamat Datang, User" dengan efek fade-in dari bawah */
.welcome-text {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-in-out forwards;
}

/* Animasi teks fade-in dari bawah */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.news-container {
  position: relative;
  width: 100%;
  height: 450px; /* Sesuaikan tinggi */
  background-image: url("../img/backgrounds/04512907.png"); /* Ganti dengan gambar yang sesuai */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end; /* Menempatkan konten di bawah */
  padding: 40px;
  opacity: 1.2;
}

/* Overlay untuk membuat teks lebih terbaca */
.news-container::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Gelap sedikit */
  top: 0;
  left: 0;
}

/* Styling untuk NEWS */
.news-title {
  position: relative;
  font-size: 64px;
  font-weight: bold;
  color: white;
  z-index: 2;
}

/* Breadcrumb vertikal */
.news-breadcrumb {
  position: absolute;
  left: 45px;
  bottom: 20px;
  text-orientation: mixed;
  font-size: 16px;
  color: white;
  opacity: 0.8;
  z-index: 2;
}

.news-breadcrumb a {
  color: white;
  text-decoration: none;
}

.news-breadcrumb span {
  font-weight: bold;
}
/* NEWS Detail*/
.related-news {
  background: #f8f9fa;
  border-radius: 8px;
}

.news-img-fluid {
  height: auto;
  display: block;
  object-fit: cover;
}

.news-detail-content {
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
}
.news-img-fluid,
.news-detail-content {
  width: 100%;
  max-width: 100%;
}

.related-news h3 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related-card-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.related-card-body {
  flex: 1; /* Supaya teks memenuhi ruang yang tersedia */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.related-card-text {
  font-size: 0.85rem;
}

.related-news .row {
  gap: 5px;
}

.card-news {
  display: flex;
  flex-direction: column;
}
.card-body-news {
  flex-grow: 1;
}
.card-img-top-news {
  width: 100%;
  height: auto;
}

.ellipsis-title {
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ellipsis-content {
  display: -webkit-box;
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Client Logos */
.client-logo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15px, 1fr));
  gap: 30px;
  justify-content: center;
}

.client-logo img {
  max-width: 100px;
  height: auto;
}
/* Galeri */
.card-body-gl {
  background: #ffffff;
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-gl {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1); 
  border-radius: 10px;
}
.card-img-top-gl {
  height: 300px; 
  object-fit: cover;
  width: 100%;
}
.swiper-slide-gl {
  display: flex;
  justify-content: center;
  padding: 0 10px;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80vh;
  margin: auto;
  display: block;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.prev-gl,
.next-gl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  padding: 16px;
}

.prev-gl {
  left: 10px;
}
.next-gl {
  right: 10px;
}

/*Contact*/
.swal2-custom-loading {
  background: none;
  border: none;
  box-shadow: none;
}

.custom-loading {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.2);
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}