/* -----------------------------------
   DEFAULT STATE (semua halaman)
----------------------------------- */
body:not(.airlimbah-page) .airlimbah-menu-item {
  display: none !important;
}
body:not(.airlimbah-page) .main-menu-item {
  display: flex !important;
  align-items: center !important;
}

/* -----------------------------------
   HALAMAN AIR LIMBAH
----------------------------------- */
body.airlimbah-page .main-menu-item {
  display: none !important;
}
body.airlimbah-page .airlimbah-menu-item {
  display: flex !important;
  align-items: center !important;
}

body:not(.airlimbah-page) .airlimbah-menu-item {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.airlimbah-page .main-menu-item {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* -----------------------------------
   VIDEO GRID MODULE
----------------------------------- */

.video-grid-card {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

.video-grid-card__media .item-image {
  display: block;
  width: 150px;
  border-radius: 12px;
}

.video-grid-card__media .item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .video-grid-card__body {
  display: grid;
  gap: 1rem;
} */

.video-grid-title,
.mod-articles-category-title {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  align-items: center;
}

@media (min-width: 768px) {
  .video-grid-card {
    flex-direction: row;
    align-items: center;
  }

  .video-grid-card__media {
    flex: 0 0 40%;
  }

  .video-grid-card__body {
    flex: 1 1 auto;
  }
}

@media (min-width: 992px) {
  .video-grid-title {
    font-size: 1.75rem;
  }
}

/* Sembunyikan tombol "Air Limbah" di Main Menu saat di halaman Air Limbah */
/* body.airlimbah-page .main-menu-item a[href*="air-limbah"],
body.airlimbah-page .main-menu-item.menu-item-airlimbah {
  display: none !important;
} */

.image-bubble-left-top .acm-features .feature-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 24px 999px 999px 999px;
}
.image-bubble-right-top .acm-features .feature-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 999px 24px 999px 999px;
}
.image-bubble-right-bottom .acm-features .feature-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 999px 999px 24px 999px;
}
.image-bubble-left-bottom .acm-features .feature-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 999px 999px 999px 24px;
}

/* Alternative class name for flexibility */
.image-bubble-container .acm-features .feature-media img,
.image-bubble-shape .acm-features .feature-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 24px 999px 999px 999px;
}

/* PDF Layout and for pdfviewer joomla */
.pdfviewer,
.pdfviewer iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 90vh !important; /* atau sesuaikan */
}

/* Full image styling for PDF layout */
.item-page.layout-default.no-sidebar .full-image-pdf {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
}

.item-page.layout-1.no-sidebar .full-image-pdf {
  margin-left: -1rem;
  margin-right: -1rem;
}

@media (min-width: 1400px) {
  .item-page.layout-1.no-sidebar .full-image-pdf {
    margin-left: auto;
    margin-right: auto;
    max-width: 1600px;
  }
}

.item-page.layout-1.no-sidebar .full-image-pdf .item-image,
.item-page.layout-1.no-sidebar .full-image-pdf img {
  border-radius: 0;
  max-height: 600px;
}

.item-page.layout-2 .top-article-info .full-image-pdf .item-image {
  float: none;
  margin: 0;
}

@media (min-width: 1200px) {
  .item-page.layout-2 .top-article-info .full-image-pdf .item-image {
    height: 0;
    padding-bottom: 100%;
    position: relative;
  }

  .item-page.layout-2 .top-article-info .full-image-pdf .item-image img {
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center center;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
  }
}

/* -----------------------------------
   VIDEO ARTICLE LAYOUT
----------------------------------- */
.item-page.video-layout .video-hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.item-page.video-layout .video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
}

.item-page.video-layout .video-player iframe,
.item-page.video-layout .video-player video,
.item-page.video-layout .video-player img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.item-page.video-layout .video-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.item-page.video-layout .video-hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--headings-color);
}

.item-page.video-layout .video-hero__channel {
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.item-page.video-layout .video-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.item-page.video-layout .video-channel__avatar {
  width: clamp(42px, 6vw, 56px);
  height: clamp(42px, 6vw, 56px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}

.item-page.video-layout .video-channel__info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.item-page.video-layout .video-channel__name {
  font-weight: 600;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: var(--headings-color);
}

.item-page.video-layout .video-channel__stats {
  display: flex;
  gap: clamp(0.6rem, 2vw, 0.9rem);
  flex-wrap: wrap;
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  color: var(--body-color);
}

.item-page.video-layout .video-channel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.8vw, 0.85rem);
}

.item-page.video-layout .video-channel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(0.45rem, 1.5vw, 0.75rem) clamp(1.1rem, 3vw, 1.85rem);
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(0.85rem, 2.4vw, 0.98rem);
  background: #ff0033;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.item-page.video-layout .video-channel__button:hover,
.item-page.video-layout .video-channel__button:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 0, 51, 0.28);
  color: #fff;
}

.item-page.video-layout .video-channel__button--secondary {
  background: rgba(15, 23, 42, 0.08);
  color: var(--headings-color);
  box-shadow: none;
}

.item-page.video-layout .video-channel__button--secondary:hover,
.item-page.video-layout .video-channel__button--secondary:focus {
  background: rgba(15, 23, 42, 0.12);
  color: var(--headings-color);
}

.item-page.video-layout .video-channel__stats span:not(:first-child)::before {
  content: "•";
  margin-right: 0.5rem;
}

.item-page.video-layout .video-hero + .video-article__content {
  margin-top: 1.5rem;
}

/* .item-page.video-layout .video-article {
  padding-bottom: 3rem;
} */

.item-page.video-layout .video-article__main {
  display: flex;
  flex-direction: column;
}

.item-page.video-layout .video-article > .row.g-5 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 2rem;
}

.item-page.video-layout .video-article__media .full-image {
  margin-bottom: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
}

.item-page.video-layout .video-article__media .full-image .item-image {
  aspect-ratio: 16 / 9;
  background: #000;
}

.item-page.video-layout .video-article__media .full-image .item-image,
.item-page.video-layout .video-article__media .full-image img,
.item-page.video-layout .video-article__media .full-image iframe {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}

.item-page.video-layout .top-article-info {
  margin-bottom: 0;
}

.item-page.video-layout .top-article-info .page-header {
  margin-bottom: 1.25rem;
}

.item-page.video-layout .top-article-info .page-header h1,
.item-page.video-layout .top-article-info .page-header h2 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.item-page.video-layout .top-article-info .desc-article {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--body-color);
}

.item-page.video-layout .bottom-meta {
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
}

.item-page.video-layout .bottom-meta .review-item {
  margin-left: auto;
}

.item-page.video-layout .video-article__content .article-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.item-page.video-layout .video-article__content .article-body {
  font-size: 1.0625rem;
  line-height: 1.9;
}

.item-page.video-layout .video-article__content .article-body img {
  border-radius: 16px;
}

.item-page.video-layout .video-article__sidebar {
  margin-top: 4rem;
}

@media (min-width: 992px) {
  .item-page.video-layout .video-article__sidebar {
    margin-top: 0;
  }

  .item-page.video-layout .video-article__sidebar .siderbar-article {
    position: sticky;
    top: 120px;
  }
}

.item-page.video-layout .video-article__widgets {
  margin-bottom: 2.5rem;
}

.item-page.video-layout .video-related {
  background: transparent;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.item-page.video-layout .video-related .section-heading {
  margin-bottom: 1rem;
  text-align: left;
}

.item-page.video-layout .video-related .section-heading .mod-title {
  border: 0;
  padding: 0 0 1rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body-link-hover-color);
}

.item-page.video-layout .video-related .category-module {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.item-page.video-layout .video-related .category-module .item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
}

.item-page.video-layout .video-related .category-module .item-media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.item-page.video-layout .video-related .category-module .item-media img {
  height: 100%;
}

.item-page.video-layout .video-related .category-module .item-title {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.item-page.video-layout .video-related .category-module .item-title a {
  color: var(--headings-color);
}

.item-page.video-layout .video-related .category-module .item-title a:hover,
.item-page.video-layout .video-related .category-module .item-title a:focus {
  color: var(--body-link-hover-color);
}

.item-page.video-layout .video-related .category-module .item-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.item-page.video-layout .video-related .category-module .item-introtext {
  font-size: 0.9375rem;
  color: var(--body-color);
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .item-page.video-layout .video-related {
    /* padding: 1.5rem; */
  }

  .item-page.video-layout .video-related .category-module .item {
    grid-template-columns: 1fr;
  }

  .item-page.video-layout .video-related .category-module .item-media {
    height: 180px;
  }
}
