/* Homepage rebuild — struktur bersih, konten sama */

#SITE_BACKGROUND,
#SITE_BACKGROUND_current_mainPage_kiiv2bdy_bg,
.siteBackgroundcurrent,
body.prewarmup,
#site-root,
#SITE_CONTAINER,
#PAGES_CONTAINER {
  background: #ffffff !important;
}

/* Sembunyikan grid Wix lama hanya setelah konten baru ada */
#mainPageinlineContent:has(#pdb-home) #mainPageinlineContent-gridWrapper,
#mainPageinlineContent:has(#pdb-home) #mainPageinlineContent-gridContainer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Layout homepage — center 980px, hilangkan strip merah Wix */
#mainPage {
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  max-width: 980px !important;
  left: 0 !important;
}

#mainPagebg,
#SITE_BACKGROUND_current_mainPage_kiiv2bdy_bg {
  display: none !important;
}

#mainPageinlineContent {
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  position: relative !important;
  left: 0 !important;
  height: auto !important;
  min-height: 200px !important;
  overflow: visible !important;
}

body:has(#mainPage) #PAGES_CONTAINER {
  width: 100% !important;
  min-width: 0 !important;
}

body:has(#mainPage) #PAGES_CONTAINERcenteredContent {
  width: 100% !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.pdb-home {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 0 40px;
  font-family: avenir-lt-w01_35-light1475496, sans-serif;
  color: #333;
}

/* Hero */
.pdb-home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  margin-bottom: 0;
  background: linear-gradient(135deg, #e21c21 0%, #b51218 100%);
}

.pdb-home-hero img {
  max-width: min(420px, 90%);
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* CTA strip */
.pdb-home-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: #ff66c4;
}

.pdb-home-cta a {
  flex: 1 1 18%;
  min-width: 110px;
  max-width: 24%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  color: #fff;
}

.pdb-home-cta img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.pdb-home-cta span {
  font-size: 12px;
  line-height: 1.3;
  font-family: avenir-lt-w01_85-heavy1475544, sans-serif;
}

/* Partner logos */
.pdb-home-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 32px;
  padding: 12px 0 28px;
}

.pdb-home-partners a {
  display: block;
  line-height: 0;
}

.pdb-home-partners img {
  height: 72px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

/* News */
.pdb-home-news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.pdb-home-news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdb-home-news-card--pink { background: #f5a8a0; }
.pdb-home-news-card--cyan { background: #a8f0ef; }
.pdb-home-news-card--yellow { background: #f2e88a; }

.pdb-home-news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.pdb-home-news-card .badge {
  display: inline-block;
  align-self: center;
  margin: 12px 0 8px;
  padding: 6px 20px;
  background: #5ec4c3;
  color: #fff;
  font-size: 13px;
  font-family: avenir-lt-w01_85-heavy1475544, sans-serif;
  border: none;
  cursor: default;
}

.pdb-home-news-card h3 {
  margin: 0 16px 6px;
  font-size: 22px;
  font-family: avenir-lt-w01_85-heavy1475544, sans-serif;
  text-align: center;
  color: #000;
}

.pdb-home-news-card .date {
  margin: 0 16px 10px;
  font-size: 14px;
  text-align: center;
  color: #ed1566;
  font-family: avenir-lt-w01_85-heavy1475544, sans-serif;
}

.pdb-home-news-card p {
  margin: 0 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  color: #545454;
}

.pdb-home-news-card a {
  color: #545454;
  text-decoration: underline;
}

.pdb-home-news-more {
  text-align: center;
  margin-bottom: 32px;
}

.pdb-home-news-more a {
  display: inline-block;
  padding: 12px 32px;
  background: #5ec4c3;
  color: #fff;
  text-decoration: none;
  font-family: avenir-lt-w01_85-heavy1475544, sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.pdb-home-news-more a:hover {
  background: #4ab3b2;
}

/* Feature tiles */
.pdb-home-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 32px;
}

.pdb-home-tile {
  position: relative;
  min-height: 200px;
  padding: 24px 16px 48px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pdb-home-tile h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-family: futura-lt-w01-book, sans-serif;
  letter-spacing: 0.08em;
  color: #fff;
}

.pdb-home-tile p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
}

.pdb-home-tile .arrow {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
}

.pdb-home-tile--yellow { background: #f2bf5e; color: #333; }
.pdb-home-tile--yellow h3,
.pdb-home-tile--yellow p { color: #333; }
.pdb-home-tile--red { background: #ff6161; }
.pdb-home-tile--blue { background: #536eb7; }
.pdb-home-tile--green { background: #75cba8; }

/* Blog highlight */
.pdb-home-blog {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
  padding: 20px;
  background: #fafafa;
  border: 1px solid #eee;
}

.pdb-home-blog img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  flex-shrink: 0;
}

.pdb-home-blog-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-family: avenir-lt-w01_85-heavy1475544, sans-serif;
  color: #000;
}

.pdb-home-blog-body .date {
  margin: 0 0 12px;
  font-size: 13px;
  color: #888;
}

.pdb-home-blog-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #545454;
}

/* Gallery */
.pdb-home-gallery {
  margin-bottom: 32px;
}

.pdb-home-gallery h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-family: avenir-lt-w01_85-heavy1475544, sans-serif;
  text-align: center;
  color: #333;
}

.pdb-home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pdb-home-gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.pdb-home-gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.pdb-home-gallery-grid a:hover img {
  transform: scale(1.03);
}

.pdb-home-gallery-grid span {
  display: block;
  padding: 6px 0;
  font-size: 12px;
  text-align: center;
  color: #666;
}

/* Videos */
.pdb-home-videos {
  margin-bottom: 24px;
}

.pdb-home-videos h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-family: avenir-lt-w01_85-heavy1475544, sans-serif;
  color: #333;
}

.pdb-home-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pdb-home-video-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.pdb-home-video-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #ddd;
}

.pdb-home-video-card h4 {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: normal;
  color: #333;
}

.pdb-home-video-card:hover h4 {
  color: #e21c21;
}

@media (max-width: 768px) {
  .pdb-home-news {
    grid-template-columns: 1fr;
  }

  .pdb-home-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .pdb-home-cta a {
    flex: 1 1 42%;
    max-width: 48%;
  }

  .pdb-home-gallery-grid {
    grid-template-columns: 1fr;
  }

  .pdb-home-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pdb-home-blog {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
