.pnbyw-maklumat-widget{
  width:100%;
}

.pnbyw-mak-img-link{
  position:relative;
  display:block;
  overflow:hidden;
  width:100%;
  margin-bottom:10px;
  border-radius:12px;
  background:#f3efe9;
  border:1px solid rgba(154,33,9,.12);
  box-shadow:0 3px 12px rgba(15,23,42,.06);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.pnbyw-mak-img-link::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg, transparent 58%, rgba(0,0,0,.18) 100%);
  opacity:.55;
  transition:opacity .22s ease;
}

.pnbyw-mak-img-link:hover{
  transform:translateY(-2px);
  border-color:rgba(154,33,9,.25);
  box-shadow:0 8px 22px rgba(154,33,9,.13);
}

.pnbyw-mak-img-link:hover::after{
  opacity:.35;
}

.pnbyw-mak-img-link img,
.pnbyw-mak-front-img{
  display:block;
  width:100%;
  height:auto;
  border-radius:0;
  object-fit:cover;
  transition:
    transform .28s ease,
    filter .28s ease;
}

.pnbyw-mak-img-link:hover img,
.pnbyw-mak-img-link:hover .pnbyw-mak-front-img{
  transform:scale(1.025);
  filter:saturate(1.04) contrast(1.02);
}

.pnbyw-mak-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin-bottom:8px;
  padding:9px 12px;
  border-radius:10px;
  font-family:inherit;
  font-size:11.5px;
  line-height:1.35;
  font-weight:750;
  text-align:center;
  text-decoration:none;
  border:1px solid rgba(154,33,9,.16);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}

.pnbyw-mak-btn.primary{
  background:linear-gradient(135deg,#9a2109,#c0300f);
  color:#fff;
  box-shadow:0 6px 14px rgba(154,33,9,.18);
}

.pnbyw-mak-btn.outline{
  background:#fff;
  color:#9a2109;
}

.pnbyw-mak-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(154,33,9,.16);
}

.pnbyw-mak-btn.primary:hover{
  background:linear-gradient(135deg,#741807,#9a2109);
  color:#fff;
}

.pnbyw-mak-btn.outline:hover{
  background:#f8ece7;
  border-color:rgba(154,33,9,.28);
  color:#741807;
}

.pnbyw-sidebar .pnbyw-maklumat-widget{
  width:100%;
}

.pnbyw-sidebar .pnbyw-mak-img-link{
  margin-bottom:8px;
  border-radius:10px;
}

.pnbyw-sidebar .pnbyw-mak-btn{
  font-size:10.8px;
  padding:8px 10px;
  border-radius:9px;
}

/* ==========================================================================
   2. MAKLUMAT BERANDA — Section dari Customizer
   ========================================================================== */

.pnbyw-home-maklumat{
  position:relative;
  z-index:2;
  overflow:hidden;
  padding:26px 24px 30px;
  background:
    radial-gradient(circle at 8% 20%, rgba(154,33,9,.075) 0%, transparent 28%),
    radial-gradient(circle at 92% 75%, rgba(212,160,23,.10) 0%, transparent 30%),
    linear-gradient(180deg,#ffffff 0%,#f8f4ef 100%);
  border-top:1px solid rgba(154,33,9,.10);
  border-bottom:1px solid rgba(154,33,9,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86);
}

.pnbyw-home-maklumat::before{
  content:'';
  position:absolute;
  inset:-40%;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 30%, rgba(154,33,9,.045) 0%, transparent 18%),
    radial-gradient(circle at 78% 58%, rgba(212,160,23,.08) 0%, transparent 22%),
    linear-gradient(120deg, transparent 0%, rgba(154,33,9,.025) 45%, transparent 75%);
}

.pnbyw-home-maklumat-head{
  position:relative;
  z-index:1;
  max-width:760px;
  margin:0 auto 18px;
  text-align:center;
}

.pnbyw-home-maklumat-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-bottom:7px;
  padding:5px 12px;
  border-radius:999px;
  background:rgba(154,33,9,.08);
  border:1px solid rgba(154,33,9,.12);
  color:var(--pnbyw-primary,#9a2109);
  font-size:10px;
  font-weight:800;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.pnbyw-home-maklumat-kicker::before{
  content:'';
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--pnbyw-gold,#D4A017);
  box-shadow:0 0 0 4px rgba(212,160,23,.16);
}

.pnbyw-home-maklumat-head h2{
  margin:0;
  color:var(--pnbyw-primary,#9a2109);
  font-size:clamp(1.15rem,2vw,1.55rem);
  font-weight:850;
  line-height:1.25;
  letter-spacing:.01em;
}

.pnbyw-home-maklumat-head h2::after{
  content:'';
  display:block;
  width:58px;
  height:3px;
  margin:8px auto 0;
  border-radius:999px;
  background:linear-gradient(90deg,var(--pnbyw-primary,#9a2109),var(--pnbyw-gold,#D4A017));
}

.pnbyw-home-maklumat-head p{
  max-width:620px;
  margin:9px auto 0;
  color:var(--pnbyw-muted,#6B7280);
  font-size:12.5px;
  line-height:1.65;
}

.pnbyw-home-maklumat-grid{
  position:relative;
  z-index:1;
  max-width:var(--pnbyw-wrap,1240px);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.pnbyw-home-maklumat-card{
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1fr);
  min-height:220px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(154,33,9,.12);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9),
    0 8px 24px rgba(15,23,42,.07);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.pnbyw-home-maklumat-card:hover{
  transform:translateY(-4px);
  border-color:rgba(154,33,9,.25);
  box-shadow:
    0 1px 0 rgba(255,255,255,.95),
    0 14px 34px rgba(154,33,9,.13);
}

.pnbyw-home-maklumat-image{
  position:relative;
  display:block;
  overflow:hidden;
  min-height:220px;
  background:#f3efe9;
}

.pnbyw-home-maklumat-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .28s ease, filter .28s ease;
}

.pnbyw-home-maklumat-card:hover .pnbyw-home-maklumat-image img{
  transform:scale(1.035);
  filter:saturate(1.04) contrast(1.02);
}

.pnbyw-home-maklumat-badge{
  position:absolute;
  z-index:2;
  top:12px;
  left:12px;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.93);
  color:var(--pnbyw-primary,#9a2109);
  font-size:10px;
  font-weight:800;
  line-height:1;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
}

.pnbyw-home-maklumat-body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  padding:18px;
}

.pnbyw-home-maklumat-body h3{
  margin:0 0 8px;
  color:#1f2937;
  font-size:15px;
  font-weight:850;
  line-height:1.35;
}

.pnbyw-home-maklumat-body p{
  margin:0 0 14px;
  color:#667085;
  font-size:12.5px;
  line-height:1.65;
}

.pnbyw-home-maklumat-btn{
  width:max-content;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:auto;
  padding:8px 13px;
  border-radius:999px;
  background:var(--pnbyw-primary,#9a2109);
  color:#fff !important;
  font-size:12px;
  font-weight:750;
  line-height:1;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(154,33,9,.20);
  transition:background .2s ease, transform .2s ease;
}

.pnbyw-home-maklumat-btn:hover{
  background:var(--pnbyw-primary-dk,#741807);
  transform:translateY(-1px);
}

/* ==========================================================================
   3. RESPONSIVE
   ========================================================================== */

@media(max-width:980px){
  .pnbyw-home-maklumat-card{
    grid-template-columns:1fr;
  }

  .pnbyw-home-maklumat-image{
    min-height:210px;
    aspect-ratio:16/9;
  }
}

@media(max-width:720px){
  .pnbyw-home-maklumat{
    padding:24px 16px 28px;
  }

  .pnbyw-home-maklumat-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .pnbyw-home-maklumat-head{
    margin-bottom:16px;
  }

  .pnbyw-home-maklumat-body{
    padding:16px;
  }
}

@media(max-width:640px){
  .pnbyw-mak-img-link{
    border-radius:10px;
  }

  .pnbyw-mak-btn{
    font-size:11px;
    padding:9px 10px;
  }
}

@media(prefers-reduced-motion:reduce){
  .pnbyw-mak-img-link,
  .pnbyw-mak-img-link img,
  .pnbyw-mak-front-img,
  .pnbyw-mak-btn,
  .pnbyw-home-maklumat-card,
  .pnbyw-home-maklumat-image img,
  .pnbyw-home-maklumat-btn{
    transition:none !important;
  }

  .pnbyw-mak-img-link:hover,
  .pnbyw-mak-btn:hover,
  .pnbyw-home-maklumat-card:hover,
  .pnbyw-home-maklumat-btn:hover{
    transform:none !important;
  }
}

/* ==========================================================================
   MAKLUMAT BERANDA — Gambar utuh + modal ringan dengan tombol X
   Tempelkan di bagian paling bawah:
   /assets/css/widgets/maklumat-widget.css
   ========================================================================== */

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat{
  position:relative;
  overflow:visible;
  padding:0 0 18px;
  margin:0 0 18px;
  background:transparent;
  border:0;
  box-shadow:none;
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat::before{
  display:none;
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-head{
  max-width:none;
  margin:0 0 14px;
  text-align:center;
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-kicker,
.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-head p,
.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-body,
.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-btn{
  display:none !important;
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-head h2{
  margin:0;
  color:#1f2937;
  font-size:15px;
  font-weight:850;
  line-height:1.3;
  text-transform:uppercase;
  letter-spacing:.055em;
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-head h2::after{
  content:'';
  display:block;
  width:54px;
  height:2px;
  margin:8px auto 0;
  border-radius:999px;
  background:linear-gradient(90deg,#9a2109,#d4a017);
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-grid{
  max-width:none;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:0;
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-card{
  position:relative;
  overflow:hidden;
  display:block;
  min-height:0;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(154,33,9,.14);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9),
    0 10px 26px rgba(15,23,42,.08);
  transform:translateZ(0);
  transition:
    transform .24s ease,
    box-shadow .24s ease,
    border-color .24s ease;
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-card:hover{
  transform:translateY(-4px);
  border-color:rgba(154,33,9,.28);
  box-shadow:
    0 1px 0 rgba(255,255,255,.95),
    0 18px 38px rgba(154,33,9,.15);
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-image{
  position:relative;
  display:block;
  overflow:hidden;
  width:100%;
  min-height:0 !important;
  aspect-ratio:auto !important;
  background:#f8f4ef;
  cursor:zoom-in;
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-image::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 58%, rgba(0,0,0,.24) 100%),
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,.18) 42%, transparent 58%);
  background-size:100% 100%, 240% 100%;
  background-position:center, -140% center;
  opacity:.68;
  transition:
    background-position .65s ease,
    opacity .24s ease;
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-card:hover .pnbyw-home-maklumat-image::before{
  background-position:center, 180% center;
  opacity:.80;
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-image img{
  display:block;
  width:100%;
  height:auto !important;
  max-height:none !important;
  object-fit:contain !important;
  transform:scale(1);
  transition:
    transform .34s ease,
    filter .34s ease;
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-card:hover .pnbyw-home-maklumat-image img{
  transform:scale(1.018);
  filter:saturate(1.04) contrast(1.02);
}

.pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-badge{
  position:absolute;
  z-index:4;
  top:12px;
  left:12px;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.95);
  color:#9a2109;
  font-size:10px;
  font-weight:850;
  line-height:1;
  box-shadow:0 7px 18px rgba(0,0,0,.13);
}

.pnbyw-home-maklumat-overlay{
  position:absolute;
  z-index:4;
  left:0;
  right:0;
  bottom:0;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:34px 14px 13px;
  color:#fff;
  background:linear-gradient(180deg, transparent 0%, rgba(0,0,0,.62) 100%);
  transform:translateY(100%);
  transition:transform .24s ease;
  pointer-events:none;
}

.pnbyw-home-maklumat-card:hover .pnbyw-home-maklumat-overlay,
.pnbyw-home-maklumat-image:focus-visible .pnbyw-home-maklumat-overlay{
  transform:translateY(0);
}

.pnbyw-home-maklumat-overlay strong{
  color:#fff;
  font-size:13px;
  font-weight:850;
  line-height:1.35;
}

.pnbyw-home-maklumat-overlay em{
  color:rgba(255,255,255,.84);
  font-style:normal;
  font-size:11px;
  line-height:1.3;
}

/* Modal Maklumat */
.pnbyw-maklumat-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.74);
  backdrop-filter:blur(5px);
}

.pnbyw-maklumat-modal.is-open{
  display:flex;
}

.pnbyw-maklumat-modal__dialog{
  position:relative;
  width:min(920px,94vw);
  max-height:90vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  box-shadow:0 24px 80px rgba(0,0,0,.35);
  overflow:hidden;
  animation:pnbywMakModalIn .18s ease-out;
}

.pnbyw-maklumat-modal__img{
  display:block;
  width:auto;
  max-width:94vw;
  max-height:82vh;
  height:auto;
  object-fit:contain;
  background:#fff;
}

.pnbyw-maklumat-modal__caption{
  width:100%;
  padding:10px 48px 12px 16px;
  color:#1f2937;
  font-size:12.5px;
  font-weight:750;
  line-height:1.4;
  background:#fff;
  border-top:1px solid rgba(154,33,9,.10);
}

.pnbyw-maklumat-modal__close{
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  background:#9a2109;
  color:#fff;
  font-size:24px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(154,33,9,.28);
  transition:background .18s ease, transform .18s ease;
}

.pnbyw-maklumat-modal__close:hover{
  background:#741807;
  transform:scale(1.04);
}

body.pnbyw-maklumat-modal-open{
  overflow:hidden;
}

@keyframes pnbywMakModalIn{
  from{
    opacity:0;
    transform:translateY(8px) scale(.985);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@media(max-width:720px){
  .pnbyw-home-standard .pnbyw-entry-body .pnbyw-home-maklumat-grid{
    grid-template-columns:1fr;
  }

  .pnbyw-home-maklumat-overlay{
    transform:translateY(0);
  }

  .pnbyw-maklumat-modal{
    padding:14px;
  }

  .pnbyw-maklumat-modal__dialog{
    width:96vw;
    border-radius:14px;
  }

  .pnbyw-maklumat-modal__img{
    max-width:96vw;
    max-height:78vh;
  }

  .pnbyw-maklumat-modal__close{
    top:8px;
    right:8px;
    width:36px;
    height:36px;
    font-size:22px;
  }
}

@media(prefers-reduced-motion:reduce){
  .pnbyw-home-maklumat-card,
  .pnbyw-home-maklumat-image::before,
  .pnbyw-home-maklumat-image img,
  .pnbyw-home-maklumat-overlay,
  .pnbyw-maklumat-modal__dialog{
    animation:none !important;
    transition:none !important;
  }

  .pnbyw-home-maklumat-card:hover,
  .pnbyw-home-maklumat-card:hover .pnbyw-home-maklumat-image img{
    transform:none !important;
  }
}

/* ==========================================================================
   MAKLUMAT LIGHTBOX FINAL — tidak terpotong, tetap di halaman, ada tombol X
   ========================================================================== */

.pnbyw-maklumat-modal{
  position:fixed !important;
  inset:0 !important;
  z-index:999999 !important;
  display:none;
  align-items:center !important;
  justify-content:center !important;
  padding:18px !important;
  background:rgba(15,23,42,.76) !important;
  backdrop-filter:blur(5px);
  overflow:auto !important;
}

.pnbyw-maklumat-modal.is-open{
  display:flex !important;
}

.pnbyw-maklumat-modal__dialog{
  position:relative !important;
  width:auto !important;
  max-width:calc(100vw - 36px) !important;
  max-height:none !important;
  display:block !important;
  border-radius:16px !important;
  background:transparent !important;
  box-shadow:0 24px 80px rgba(0,0,0,.35) !important;
  overflow:visible !important;
  animation:pnbywMakModalIn .18s ease-out;
}

.pnbyw-maklumat-modal__img{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:calc(100vw - 36px) !important;
  max-height:calc(92vh - 54px) !important;
  object-fit:contain !important;
  border-radius:16px 16px 0 0 !important;
  background:#fff !important;
}

.pnbyw-maklumat-modal__caption{
  display:block !important;
  width:100% !important;
  max-width:calc(100vw - 36px) !important;
  box-sizing:border-box !important;
  padding:10px 56px 12px 16px !important;
  border-radius:0 0 16px 16px !important;
  background:#fff !important;
  border-top:1px solid rgba(154,33,9,.10) !important;
  color:#1f2937 !important;
  font-size:12.5px !important;
  font-weight:750 !important;
  line-height:1.4 !important;
}

.pnbyw-maklumat-modal__close{
  position:absolute !important;
  top:-14px !important;
  right:-14px !important;
  z-index:5 !important;
  width:40px !important;
  height:40px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:3px solid #fff !important;
  border-radius:999px !important;
  background:#9a2109 !important;
  color:#fff !important;
  font-size:24px !important;
  font-weight:800 !important;
  line-height:1 !important;
  cursor:pointer !important;
  box-shadow:0 8px 18px rgba(154,33,9,.28) !important;
  transition:background .18s ease, transform .18s ease !important;
}

.pnbyw-maklumat-modal__close:hover{
  background:#741807 !important;
  transform:scale(1.04);
}

body.pnbyw-maklumat-modal-open{
  overflow:hidden !important;
}

@media(max-width:720px){
  .pnbyw-maklumat-modal{
    padding:12px !important;
  }

  .pnbyw-maklumat-modal__dialog{
    max-width:calc(100vw - 24px) !important;
    border-radius:14px !important;
  }

  .pnbyw-maklumat-modal__img{
    max-width:calc(100vw - 24px) !important;
    max-height:calc(90vh - 52px) !important;
    border-radius:14px 14px 0 0 !important;
  }

  .pnbyw-maklumat-modal__caption{
    max-width:calc(100vw - 24px) !important;
    padding:9px 48px 11px 14px !important;
    border-radius:0 0 14px 14px !important;
  }

  .pnbyw-maklumat-modal__close{
    top:-10px !important;
    right:-10px !important;
    width:38px !important;
    height:38px !important;
    font-size:22px !important;
  }
}