/* Theme stylesheet rebuilt for the static clone.
 * The original site styled its components with styled-components, which inject their CSS
 * through the CSSOM at runtime — nothing of it survived in the saved HTML, and the Next
 * CSS chunk that carried the rest (this file) was never captured. This is a light plain-CSS
 * replacement for the classes the saved markup actually uses, at the path the pages link.
 * Colours are taken from the pages' own markup (brand red #d53634, footer bar #f2f2f2). */

:root { --brin-red: #d53634; --brin-dark: #212529; --brin-muted: #6c757d; --brin-line: #efefef; }

body { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--brin-dark); background: #fff; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- header */
[class*="Header__"] { position: relative; }
[class*="Header__HeaderWithBackground"] { padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
[class*="Header__"] .bg-header {
  position: absolute; inset: 0 0 auto 0; height: 100%;
  background: #fff url(../../../../images/pattern-4.png) repeat-x center top / auto 100%;
  opacity: .5; z-index: 0;
}
[class*="Header__"] > .container { position: relative; z-index: 1; }
[class*="Header__"] .hader-title {
  font-size: 1.9rem; font-weight: 700; color: var(--brin-red);
  margin: 1.25rem 0 0; text-align: left;
}

[class*="LangSwitch__"] { display: flex; justify-content: flex-end; padding: .5rem 0; }
[class*="LangSwitch__"] .switch { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; }
[class*="LangSwitch__"] .switch input { margin: 0; }
[class*="LangSwitch__"] .switch .on { color: var(--brin-red); }
[class*="LangSwitch__"] .switch .off { color: var(--brin-muted); }

[class*="Navbar__"] .navbar { padding: .25rem .5rem; }
[class*="Navbar__"] .navbar-brand img { max-height: 54px; width: auto; }
[class*="Navbar__"] .navbar-nav { align-items: center; gap: .15rem; }
[class*="Navbar__"] .nav-link, [class*="Navbar__"] .dropdown-toggle.nav-link {
  color: var(--brin-dark); font-size: .86rem; font-weight: 600; padding: .5rem .55rem; white-space: nowrap;
}
[class*="Navbar__"] .nav-link:hover, [class*="Navbar__"] .nav-link.active { color: var(--brin-red); text-decoration: none; }
[class*="Navbar__"] .dropdown-toggle::after { display: none; }
[class*="Navbar__"] .dropdown-menu { font-size: .86rem; border: 1px solid var(--brin-line); border-radius: .25rem; }
[class*="Navbar__"] .dropdown-item:active { background: var(--brin-red); }
.brin-search { position: relative; align-items: center; }
.brin-search i { position: absolute; left: .6rem; color: var(--brin-muted); font-size: .8rem; }
.brin-search .form-control { padding-left: 1.8rem; border-radius: 2rem; font-size: .82rem; min-width: 150px; }

/* ---------------------------------------------------------------- layout */
[class*="Layout__"] { display: block; }
.content { padding-bottom: 2.5rem; }
[class*="pages__SectionWrapper"] { padding: 2rem 0; }
[class*="Breadcrumb__"] .breadcrumb { font-size: .82rem; background: none; padding: 0; margin-bottom: 1rem; }
[class*="Breadcrumb__"] .breadcrumb a { color: var(--brin-red); }
[class*="Breadcrumb__"] .breadcrumb-item.active span { color: var(--brin-muted); }

/* --------------------------------------------------------------- titles */
[class*="Title__TitleWrapper"] {
  display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 700;
  text-transform: uppercase; color: var(--brin-dark);
  border-bottom: 2px solid var(--brin-red); padding-bottom: .5rem; margin-bottom: 1rem;
}
[class*="Title__TitleWrapper"] .icon { color: var(--brin-red); }
[class*="Title__TitleWrapper"] .more { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--brin-red); text-transform: none; }

/* ------------------------------------------------------------ media list */
.media { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--brin-line); }
.media:last-child { border-bottom: 0; }
.media-list .media:first-child { padding-top: 0; }
.media-image { flex: 0 0 90px; max-width: 90px; }
.media-image:not(:has(img)) { display: none; }
.media-image img { width: 90px; height: 68px; object-fit: cover; border-radius: .25rem; }
.media-body { flex: 1 1 auto; min-width: 0; }
.media-title, .media-body h3, .media-body h5 { font-size: .92rem; font-weight: 600; line-height: 1.35; margin: 0 0 .3rem; }
.media-body a { color: var(--brin-dark); }
.media-body a:hover { color: var(--brin-red); }
.media-body .date, .media-body .time, .media-time { font-size: .75rem; color: var(--brin-muted); }

[class*="Grid__MainPostWrapper"] { height: 100%; }
[class*="Grid__MainPostWrapper"] .media { border-bottom: 1px solid var(--brin-line); }
.page-info { font-size: .8rem; color: var(--brin-muted); margin-bottom: 1rem; }

/* -------------------------------------------------------------- article */
.page-title h3, .news-title h3 { font-size: 1.6rem; font-weight: 700; line-height: 1.3; margin-bottom: .75rem; }
.news-time, .page-time { font-size: .8rem; color: var(--brin-muted); margin-bottom: 1rem; }
.news-image { margin-bottom: 1.25rem; }
.news-image:not(:has(img)) { display: none; }
.news-image img { width: 100%; border-radius: .35rem; }
.news-content, .page-content { font-size: .98rem; line-height: 1.8; text-align: justify; }
.news-content p:empty, .page-content p:empty { display: none; }
.news-content img, .page-content img { border-radius: .35rem; margin: .5rem 0; }
.article-references { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--brin-line); font-size: .85rem; }
.article-references .ref-intro { font-weight: 600; margin-bottom: .4rem; }
.article-references ol { padding-left: 1.2rem; margin: 0; }

/* -------------------------------------------------------------- sidebar */
.sidebar > * { margin-bottom: 2rem; }
.video-responsive iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: .35rem; }
[class*="Jumbotron__"] .jumbotron-img { width: 100%; border-radius: .35rem; }
[class*="Jumbotron__"] .jumbotron-box:not(:has(img)) { display: none; }

/* ------------------------------------------------------------- listings */
[class*="ArchiveNav__"] { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
[class*="ArchiveNav__"] li a { display: inline-block; padding: .3rem .7rem; border: 1px solid var(--brin-line); border-radius: 2rem; font-size: .8rem; color: var(--brin-dark); }
[class*="ArchiveNav__"] li.active a { background: var(--brin-red); border-color: var(--brin-red); color: #fff; }
[class*="Pagination__"] .pagination { flex-wrap: wrap; justify-content: center; font-size: .85rem; }
[class*="Pagination__"] .page-link { color: var(--brin-red); }
[class*="Pagination__"] .active > .page-link { background: var(--brin-red); border-color: var(--brin-red); color: #fff; }

/* ------------------------------------------------------- org list cards */
.ely-card { height: 100%; border: 1px solid var(--brin-line); border-radius: .4rem; padding: 1rem; background: #fff; }
.ely-card .ely-card-title { font-size: .95rem; font-weight: 700; margin-bottom: .25rem; }
.ely-card .ely-card-meta { font-size: .8rem; color: var(--brin-muted); line-height: 1.6; }
.ely-card .ely-card-meta a { color: var(--brin-red); }
.ely-logo { height: 54px; width: auto; object-fit: contain; margin-bottom: .6rem; }
.ely-partner { display: flex; align-items: center; justify-content: center; min-height: 86px; padding: .75rem; border: 1px solid var(--brin-line); border-radius: .4rem; background: #fff; text-align: center; font-size: .82rem; font-weight: 600; color: var(--brin-dark); height: 100%; }
.ely-partner img { max-height: 56px; width: auto; }
.ely-person { text-align: center; }
.ely-person .ely-person-photo:not(:has(img)) { display: none; }
.ely-person img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; margin-bottom: .5rem; }
.ely-person .ely-person-name { font-weight: 700; font-size: .95rem; }
.ely-person .ely-person-position { font-size: .8rem; color: var(--brin-muted); }

[class*="Affiliation__"] { padding: 2.5rem 0; background: #f8f9fa; }
[class*="Affiliation__"] .ely-affiliation-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }

/* ------------------------------------------------------- dewan pengarah */
.dewan-pengarah-item { text-align: center; padding: .5rem; }
.dewan-pengarah-item:not(:has(img)) img { display: none; }
.dewan-pengarah-item img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; }
.dewan-pengarah-title { font-size: .95rem; font-weight: 700; margin: 0; }
.dewan-pengarah-description { font-size: .8rem; color: var(--brin-muted); margin: 0; }
.box { display: flex; }

/* ---------------------------------------------------------------- footer */
[class*="Footer__"] { margin-top: 3rem; }
[class*="Footer__"] .footer-wrapper { padding: 2.5rem 0 2rem; }
.footer-title { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .35rem; }
.footer-nav a, [class*="Footer__"] a.text-white { font-size: .85rem; color: #fff; }
.tx-bold { font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.tx-small { font-size: .82rem; line-height: 1.7; margin-bottom: 0; }
.footer-bottom { font-size: .82rem; }
.footer-bottom a { font-size: 1.05rem; }
.ely-socmed { display: inline-flex; align-items: center; }
.ely-socmed svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------- mobile */
@media (max-width: 991.98px) {
  [class*="Affiliation__"] .ely-affiliation-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767.98px) {
  [class*="Header__"] .hader-title { font-size: 1.4rem; }
  [class*="Navbar__"] .navbar-nav { align-items: flex-start; gap: 0; }
  .brin-search { margin-top: .5rem; }
  .page-title h3, .news-title h3 { font-size: 1.25rem; }
  [class*="Affiliation__"] .ely-affiliation-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { margin-top: 2rem; }
  [class*="Footer__"] .footer-wrapper { padding: 1.5rem 0; }
}
