/* UNTAN Repository Home Media v108
   Scope: homepage Video + FAQ only.
   Goal: keep the YouTube frame proportional and prevent overlap on iPad/tablet widths. */

/* Keep the video itself geometrically stable at every width. */
.media-card{
  box-sizing:border-box!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  aspect-ratio:16 / 9!important;
  overflow:hidden!important;
}

.media-card iframe{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}

/* iPad / tablet landscape and narrower: do not force Video + FAQ into two narrow columns. */
@media (max-width:1100px){
  main > section > .container.split,
  .container.split{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:start!important;
    gap:40px!important;
    width:min(100% - 28px, 920px)!important;
    max-width:920px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  .container.split > .media-card{
    position:relative!important;
    width:min(100%,760px)!important;
    max-width:760px!important;
    margin:0 auto!important;
    border-radius:14px!important;
  }

  .container.split > .faq-panel{
    box-sizing:border-box!important;
    width:min(100%,760px)!important;
    max-width:760px!important;
    margin:0 auto!important;
    min-width:0!important;
  }
}

@media (max-width:900px){
  main > section > .container.split,
  .container.split{
    width:calc(100% - 20px)!important;
    max-width:760px!important;
    gap:32px!important;
  }

  .container.split > .media-card{
    width:100%!important;
    max-width:100%!important;
    margin:0 auto!important;
  }

  .container.split > .faq-panel{
    width:100%!important;
    max-width:100%!important;
  }
}

@media (max-width:640px){
  main > section > .container.split,
  .container.split{
    width:calc(100% - 18px)!important;
    gap:26px!important;
  }

  .container.split > .media-card{
    border-radius:12px!important;
  }
}

@media (max-width:360px){
  main > section > .container.split,
  .container.split{
    width:calc(100% - 14px)!important;
  }
}

/* UNTAN TEXT CLARITY UNIFIED V1 — HOMEPAGE */

/* Warna dasar konten */
body main {
  color: #09263a !important;
}

/* Deskripsi, paragraf, dan keterangan */
body main p,
body main li,
body main dd,
body main dt {
  color: #09263a !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Judul */
body main h1,
body main h2,
body main h3,
body main h4 {
  color: #041b2b !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

/* Metadata dan teks kecil */
body main small,
body main .latest small,
body main .stats small {
  color: #17364a !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

/* Tautan koleksi terbaru */
body main .latest a,
body main .latest a:visited {
  color: #064c91 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

/* FAQ */
body main .faq p,
body main .faq .answer,
body main .faq .faq-answer {
  color: #09263a !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

/* Metadata koleksi terbaru */
body main .latest p,
body main .latest li,
body main .latest small {
  color: #17364a !important;
  font-weight: 500 !important;
}

/* END UNTAN TEXT CLARITY UNIFIED V1 */

/* UNTAN TEXT CLARITY GLOBAL V2 — HOME */

html body main h1,
html body main h2,
html body main h3,
html body main h4 {
  color: #041b2b !important;
  font-weight: 700 !important;
}

html body main p,
html body main li,
html body main dd,
html body main dt,
html body main small {
  color: #09263a !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html body main .latest p,
html body main .latest li,
html body main .latest small,
html body main .faq p,
html body main .faq .answer,
html body main .faq .faq-answer {
  color: #17364a !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

html body main a,
html body main a:visited {
  color: #064c91 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

html body main a:hover {
  color: #003b76 !important;
}

/* END UNTAN TEXT CLARITY GLOBAL V2 */
