/* HMPS Pendidikan Fisika - gaya halaman utama (menimpa template di vendor.css) */

/* ==========================================================================
   TEMA HMPS (override template di atas)
   ========================================================================== */

.home {
  background: #14213d
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600'><g fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.5'><ellipse cx='620' cy='300' rx='300' ry='110'/><ellipse cx='620' cy='300' rx='300' ry='110' transform='rotate(60 620 300)'/><ellipse cx='620' cy='300' rx='300' ry='110' transform='rotate(120 620 300)'/></g><circle cx='620' cy='300' r='14' fill='%23FFC93C' fill-opacity='.85'/><circle cx='920' cy='300' r='7' fill='%23FFC93C' fill-opacity='.6'/></svg>")
    no-repeat right center;
  background-size: cover;
}
.home .overlay {
  background: linear-gradient(90deg, rgba(20, 33, 61, 0.92), rgba(20, 33, 61, 0.4));
}

:root {
  --bg: #ffffff;
  --s: #f6f7fb;
  --s2: #eef0f7;
  --bd: #dfe3ee;
  --ac: #ffba50;
  --mr: #7a1424;
  --mr2: #5e0f1b;
  --tx: #0d1130;
  --soft: #4a5270;
  --mut: #7a8199;
  --fd: "DM Serif Display", Georgia, serif;
  --fb: "DM Sans", system-ui, sans-serif;
  --fm: "DM Sans", system-ui, sans-serif;
}
html,
body {
  background: var(--bg);
  color: var(--soft);
  font-family: var(--fb);
  font-size: 16px;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--fd);
  font-weight: 400;
  color: var(--tx);
}
p {
  color: var(--soft);
  line-height: 1.7;
}
em {
  color: var(--mr);
  font-style: italic;
}
.mono {
  font-family: var(--fm);
}
a {
  color: var(--mr);
}
a:hover {
  color: var(--mr2);
}
.head_title h3 {
  color: var(--tx);
  font-size: 2.2rem;
}
.separator {
  background: var(--bd);
}
.separator:after {
  background: var(--ac);
}
.btn,
.btn-primary {
  background: var(--ac);
  color: #06091a !important;
  border: 1px solid var(--ac);
  border-radius: 999px;
  font-weight: 600;
  padding: 11px 28px;
}
.btn:hover,
.btn-primary:hover,
.btn-primary:focus {
  background: #ffd28a;
  border-color: #ffd28a;
  color: #0d1130;
}
.btn-ghost {
  background: var(--mr);
  color: #fff !important;
  border: 1px solid var(--mr);
}
.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--mr2);
  border-color: var(--mr2);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 3px;
}
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--ac);
  z-index: 100000;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
.cursor,
.cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 100001;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ac);
  transition:
    width 0.2s,
    height 0.2s,
    background 0.2s;
}
.cursor.hover {
  width: 54px;
  height: 54px;
  background: rgba(255, 186, 80, 0.12);
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--mr);
}
body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}
body.has-cursor .cursor,
body.has-cursor .cursor-dot {
  display: block;
}
.menu-scroll {
  background: rgba(255, 255, 255, 0.96) !important;
}
.main_menu_bg .navbar-nav > li > a {
  color: var(--tx);
  font-size: 0.8rem;
}
.navbar-default .navbar-nav > li > a:hover,
.main_menu_bg .navbar-default .navbar-nav > .active > a,
.main_menu_bg .navbar-default .navbar-nav > .active > a:hover,
.main_menu_bg .navbar-default .navbar-nav > .active > a:focus {
  color: var(--mr);
  border-bottom: 1px solid var(--mr);
  background: transparent;
}
.navbar-default .navbar-toggle {
  border-color: var(--bd);
}
.navbar-default .navbar-toggle .icon-bar {
  background: var(--tx);
}
.navbar-default .navbar-collapse {
  background: transparent !important;
  border: 0;
  box-shadow: none;
}
@media (max-width: 767px) {
  .navbar-default .navbar-collapse {
    background: var(--s) !important;
    border-top: 1px solid var(--bd);
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--tx);
  font: 400 1.25rem var(--fd);
}
.brand img {
  height: 38px;
  width: auto;
}
.brand b {
  color: var(--mr);
  font-weight: 400;
}
.home {
  background: var(--bg);
}
.home .overlay {
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(255, 186, 80, 0.22), transparent),
    radial-gradient(50% 50% at 10% 90%, rgba(122, 20, 36, 0.08), transparent);
  position: relative;
  overflow: hidden;
  height: auto;
  padding-bottom: 110px;
}
.home .overlay:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bd) 1px, transparent 1px), linear-gradient(90deg, var(--bd) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.home .container {
  position: relative;
  z-index: 2;
}
.home .main_home h1 {
  font-family: var(--fd);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  text-transform: none;
  color: var(--tx);
}
.home .main_home p {
  color: var(--soft);
  font-size: 1.15rem;
  max-width: 46rem;
  padding-bottom: 0;
}
.home .main_home {
  padding-top: 170px;
}
@media (max-width: 768px) {
  .home .main_home {
    padding-top: 120px;
  }
}
.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  border: 1px solid var(--bd);
  background: var(--s);
  border-radius: 999px;
  padding: 6px 16px;
  font: 0.78rem var(--fm);
  color: var(--soft);
  margin-bottom: 24px;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ac);
}
.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 48px auto 0;
  border: 1px solid var(--bd);
  background: var(--s);
  border-radius: 16px;
  overflow: hidden;
}
.hero-stat {
  flex: 1 1 25%;
  min-width: 50%;
  padding: 18px 10px;
  border-right: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
}
@media (min-width: 640px) {
  .hero-stat {
    min-width: 0;
    border-bottom: 0;
  }
}
.hero-stat:last-child {
  border-right: 0;
}
.hero-stat b {
  display: block;
  font: 600 2rem var(--fb);
  color: var(--mr);
}
.hero-stat > span {
  font-size: 0.82rem;
  color: var(--soft);
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--ac);
  pointer-events: none;
  animation: pf 10s ease-in-out infinite;
}
@keyframes pf {
  50% {
    transform: translateY(-34px) scale(1.3);
    opacity: 0.7;
  }
}
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--bd);
  background: var(--s);
  padding: 16px 0;
  white-space: nowrap;
}
.marquee div {
  display: inline-block;
  animation: mq 30s linear infinite;
}
.marquee span {
  font: 1.3rem var(--fd);
  color: var(--tx);
  margin: 0 18px;
}
.marquee .d {
  color: var(--ac);
  font-size: 0.9rem;
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}
section.sec {
  padding: 90px 0;
}
.alt {
  background: #fff;
  border-block: 1px solid var(--bd);
}
.about .single_about .single_ab_icon i {
  background: var(--s2);
  border: 1px solid var(--bd);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  line-height: 70px;
  color: var(--mr);
  font-size: 1.5rem;
}
.about .single_about:hover .single_ab_icon i {
  background: var(--mr);
  color: #fff;
}
.about .single_ab_text h3 {
  color: var(--tx);
  font-size: 1.4rem;
}
.ab_border_right {
  display: none;
}
.tc-visual {
  position: relative;
  height: 360px;
  max-width: 360px;
  margin: 20px auto;
}
.tc-visual .ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px solid var(--bd);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.r1 {
  width: 340px;
  height: 340px;
}
.r2 {
  width: 240px;
  height: 240px;
  animation-direction: reverse;
}
.r3 {
  width: 140px;
  height: 140px;
}
.tc-visual svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 110px;
  height: 110px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.tc-stat {
  position: absolute;
  background: var(--s2);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 8px 14px;
  text-align: center;
}
.tc-stat b {
  display: block;
  font: 600 1.5rem var(--fb);
  color: var(--mr);
}
.tc-stat span {
  font-size: 0.75rem;
  color: var(--soft);
}
.ts1 {
  top: 10px;
  right: -10px;
}
.ts2 {
  bottom: 40px;
  left: -10px;
}
.ts3 {
  bottom: 0;
  right: 20px;
}
.service .service_tabe_menu,
.ptabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 0;
  margin-bottom: 30px;
}
.service .nav-tabs > li,
.ptabs > li {
  float: none;
  flex: 1 1 140px;
  margin: 0;
}
.service .nav-tabs > li > a,
.ptabs > li > a {
  width: 100%;
  margin: 0;
  height: auto;
  padding: 16px 8px;
  text-align: center;
  background: var(--s);
  border: 1px solid var(--bd);
  border-radius: 14px;
  color: var(--tx);
  font-size: 0.82rem;
}
.service .nav-tabs > li > a i,
.ptabs > li > a i {
  font-size: 1.5rem;
  color: var(--mr);
  margin-bottom: 6px;
}
.service .nav-tabs > li.active > a,
.service .nav-tabs > li.active > a:hover,
.service .nav-tabs > li.active > a:focus,
.service .nav-tabs > li > a:hover,
.ptabs > li.active > a,
.ptabs > li.active > a:hover,
.ptabs > li.active > a:focus,
.ptabs > li > a:hover {
  background: var(--ac);
  border-color: var(--ac);
  color: #06091a;
  height: auto;
}
.service .nav-tabs > li.active > a i,
.service .nav-tabs > li > a:hover i,
.ptabs > li.active > a i,
.ptabs > li > a:hover i {
  color: #06091a;
}
.service .single_tab_content p {
  font-size: 1.02rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tag {
  border: 1px solid var(--mr);
  border-radius: 8px;
  padding: 4px 12px;
  font: 600 0.8rem var(--fb);
  color: var(--mr);
}
.tag.hot {
  background: var(--ac);
  border-color: var(--ac);
  color: #0d1130;
}
.tab_icon {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--s2), var(--s));
  border: 1px solid var(--bd);
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(255, 186, 80, 0.12);
}
.tab_icon i {
  font-size: 5.5rem;
  color: var(--mr);
}
.tilt {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bcard {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--s);
  border: 1px solid var(--bd);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
}
.bcard:hover {
  border-color: var(--ac);
}
.bimg {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #1e2456, #6a3d9a);
}
.bimg.b2 {
  background: linear-gradient(135deg, #0f3d3e, #1e2456);
}
.bimg.b3 {
  background: linear-gradient(135deg, #5a3b10, #1e2456);
}
.bimg.b4 {
  background: linear-gradient(135deg, #3b1e56, #0d1130);
}
.bbody {
  padding: 22px;
}
.bcat {
  font: 0.75rem var(--fm);
  color: var(--mr);
}
.bbody h3,
.bbody h4 {
  margin: 8px 0;
  font-size: 1.35rem;
}
.bdate {
  font: 0.78rem var(--fm);
  color: var(--mut);
}
.bsm {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
}
.bsm .bimg {
  width: 84px;
  height: 84px;
  font-size: 1.8rem;
  border-radius: 10px;
  flex: none;
}
.bsm h4 {
  font-size: 1.05rem;
  margin: 4px 0;
}
.pg {
  background: var(--s2);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.pg:hover {
  border-color: var(--ac);
}
.pg .av {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 1.5rem var(--fd);
  color: #0d1130;
  background: var(--c);
}
.pg h4 {
  font-size: 1.15rem;
  margin: 0;
}
.pg p {
  margin: 4px 0 10px;
}
.badge2 {
  font: 0.72rem var(--fm);
  color: var(--soft);
  border: 1px solid var(--bd);
  border-radius: 999px;
  padding: 2px 10px;
}
.cta {
  position: relative;
  overflow: hidden;
  background: var(--s);
  border: 1px solid var(--bd);
  border-radius: 24px;
  padding: 64px 28px;
  text-align: center;
}
.cta:before,
.cta:after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
}
.cta:before {
  background: var(--ac);
  top: -140px;
  left: -100px;
}
.cta:after {
  background: #7a1424;
  bottom: -160px;
  right: -100px;
}
.cta > * {
  position: relative;
  z-index: 1;
}
.cta h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}
.cta-info {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 0.9rem;
}
.cta-info i {
  color: var(--mr);
  margin-right: 6px;
}
.footer_widget,
.footer {
  background: #fff !important;
  border-top: 1px solid var(--bd);
}
.video_overlay {
  background: transparent;
}
.single_widget ul li a,
.copyright_text p {
  color: var(--soft);
}
.single_widget ul li a:hover {
  color: var(--mr);
}
/* layanan yang linknya belum diisi */
.single_widget ul li a.soon,
.single_widget ul li a.soon:hover {
  color: var(--mut);
  cursor: default;
}
.single_widget ul li a.soon::after {
  content: " \00b7  segera";
  font-size: 0.75rem;
}
.footer_title h4 {
  color: var(--tx);
}
.footer .flowus a i {
  border-color: var(--bd);
  color: var(--tx);
}
.footer .flowus a i:hover {
  border-color: var(--mr);
  color: var(--mr);
  background: transparent;
}
.footer_logos img {
  height: 54px;
  margin-right: 10px;
}
.scrollup {
  background: var(--ac);
}
.scrollup i {
  color: #06091a;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.on {
  opacity: 1;
  transform: none;
}
header#main_menu {
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bd);
}
.header .main_menu_bg,
.header .row,
.nave_menu,
.header .navbar-default,
.header .navbar-default .container-fluid {
  background: transparent !important;
  border: 0;
  box-shadow: none;
}
.header .container {
  width: 100%;
  max-width: 1440px;
  padding: 0 32px;
}
.header .row {
  margin: 0;
}
.nave_menu {
  padding: 0;
}
.main_menu_bg .navbar-default {
  margin: 0;
}
.header .navbar-default .container-fluid {
  padding: 0;
}
.navbar-right {
  margin-right: 0;
}
.navbar-default .navbar-brand,
.navbar-default .navbar-brand:hover {
  color: var(--tx);
  padding: 10px 0;
  height: auto;
}
@media (max-width: 768px) {
  .header .container {
    padding: 0 16px;
  }
}
.menu-scroll {
  box-shadow: 0 1px 12px rgba(13, 17, 48, 0.08) !important;
}
.head_title {
  margin-bottom: 36px;
}
.about .single_about {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin: 0 0 26px !important;
  overflow: visible;
}
.about .single_about .single_ab_icon {
  float: none !important;
  width: auto !important;
  flex: none;
  position: static;
}
.about .single_about .single_ab_text {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}
.about .single_ab_text h3 {
  margin: 4px 0 6px;
}
.about .single_ab_text p {
  margin: 0;
}
.bcard:hover {
  color: inherit;
}
.bimg.has {
  background-size: cover;
  background-position: center;
  height: 240px;
}
.bsm {
  display: flex;
}
.bsm .bimg.has {
  height: 84px;
}
.bfeat .bbody h3,
.bsm h4 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blink {
  color: var(--mr);
  font-weight: 600;
  font-size: 0.92rem;
}
.bmore {
  margin-top: 14px;
}
.bsrc {
  font-size: 0.82rem;
  color: var(--mut);
  margin-top: 10px;
}
.ketum {
  max-width: 320px;
  margin: 10px auto 0;
}
.ketum-frame {
  aspect-ratio: 3/4;
  border-radius: 20px;
  background: var(--s2);
  box-shadow: 12px 12px 0 var(--ac);
  overflow: hidden;
}
.ketum img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ketum figcaption {
  margin-top: 28px;
  text-align: center;
}
.ketum figcaption b {
  display: block;
  font: 600 1.05rem var(--fb);
  color: var(--tx);
}
.ketum figcaption span {
  font-size: 0.9rem;
  color: var(--soft);
}
@media (max-width: 768px) {
  .ketum {
    max-width: 240px;
    margin-top: 34px;
  }
}
.pcat h3 {
  font-size: 1.9rem;
  margin: 0 0 10px;
}
.pcat p {
  max-width: 30ch;
}
.plist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--bd);
}
.plist li {
  padding: 20px 0;
  border-bottom: 1px solid var(--bd);
}
.plist h4 {
  font-size: 1.2rem;
  margin: 0 0 4px;
}
.plist p {
  margin: 0;
}
.tab-content > .tab-pane.active {
  animation: tin 0.35s ease;
}
@keyframes tin {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (max-width: 991px) {
  .pcat {
    margin-bottom: 22px;
  }
}
.subh {
  font: 600 1.1rem var(--fb);
  color: var(--tx);
  margin: 30px 0 16px;
}
.inti {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.inti .pg {
  margin: 0;
}
.pg .av {
  position: relative;
  overflow: hidden;
}
.pg .av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  margin: 0 0 30px;
}
.btabs > li {
  float: none;
  margin: 0;
}
.btabs > li > a {
  margin: 0;
  border: 1px solid var(--bd);
  border-radius: 999px;
  padding: 8px 18px;
  background: #fff;
  color: var(--tx);
  font-size: 0.9rem;
}
.btabs > li.active > a,
.btabs > li.active > a:hover,
.btabs > li.active > a:focus,
.btabs > li > a:hover {
  background: var(--ac);
  border-color: var(--ac);
  color: #0d1130;
}
/* template: .nav-tabs>li.active>a:focus memaksa 250x180px; kembalikan ukuran pil saat diklik/fokus */
.btabs > li > a,
.btabs > li.active > a,
.btabs > li.active > a:hover,
.btabs > li.active > a:focus {
  width: auto;
  height: auto;
}
.bhead {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
}
.bhead h3 {
  margin: 0;
  font-size: 1.7rem;
}
.bhead span {
  color: var(--mut);
  font-size: 0.9rem;
}
.mgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 24px;
}
.mem {
  margin: 0;
  text-align: center;
}
.mph {
  aspect-ratio: 3/4;
  max-width: 200px;
  margin: 0 auto 12px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--s2);
}
.mph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mem b {
  display: block;
  font: 600 0.98rem var(--fb);
  color: var(--tx);
  line-height: 1.3;
}
.mem span {
  font-size: 0.85rem;
  color: var(--soft);
}
.mem span.lead {
  color: var(--mr);
  font-weight: 600;
}
@media (max-width: 768px) {
  .mgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tab-content > .tab-pane.active {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee div,
  .ring,
  .particle {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
@media (max-width: 768px) {
  .tc-visual {
    transform: scale(0.85);
  }
  .head_title h3 {
    font-size: 1.7rem;
  }
  section.sec {
    padding: 60px 0;
  }
}

.subh.subh-2 {
  margin-top: 56px;
}

.cta .cta-lead {
  max-width: 52ch;
  margin: 14px auto 26px;
}

.main_widget.footer-main {
  padding: 50px 0 20px;
}

/* Kontainer fluid: ikut lebar layar sampai 1440px, sejajar dengan header.
   Menimpa lebar tetap Bootstrap 3 (750/970/1170px). */
.container {
  width: 100%;
  max-width: 1440px;
  padding-right: 32px;
  padding-left: 32px;
}
@media (max-width: 767px) {
  .container {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* menu bertambah (7 item): rapatkan jarak antar menu di layar sedang */
@media (min-width: 768px) and (max-width: 1199px) {
  .main_menu_bg .navbar-nav > li > a {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* narahubung bidang dan keterangan program (tab Program Kerja) */
.nh {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 30ch;
  margin-top: 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 14px;
}
.nh span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
}
.nh b {
  color: var(--tx);
}
.nh-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--tx);
  background: var(--s);
  border: 1px solid var(--bd);
  border-radius: 999px;
}
.nh-btn:hover {
  background: var(--ac);
  border-color: var(--ac);
  color: #06091a;
  text-decoration: none;
}
.nh-btn i {
  color: var(--mr);
}
.nh-btn:hover i {
  color: #06091a;
}
.plist p.pmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--mut);
}
.pmeta b {
  font-weight: 600;
  color: var(--tx);
}

/* ==========================================================================
   PERAPIAN TAMPILAN (jarak, kesejajaran, tampilan HP)
   ========================================================================== */

/* Tentang: beri jarak antara paragraf dan daftar nilai */
#tentang {
  margin-bottom: 0;
}
#tentang p {
  max-width: none;
  margin: 0 0 16px;
  line-height: 1.85;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
#tentang + .about-more {
  margin: 28px 0 0;
}
#tentang p:last-child {
  margin-bottom: 0;
}

/* hilangkan elemen kosong bawaan Bootstrap yang menggeser tab (ikut menghitung jarak flex) */
.service .service_tabe_menu::before,
.service .service_tabe_menu::after,
.btabs::before,
.btabs::after {
  display: none;
}

/* Tab bidang (Program Kerja): ukuran seragam */
.service .nav-tabs > li {
  display: flex;
}
.service .nav-tabs > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  line-height: 1.3;
}
.service .nav-tabs > li > a i {
  display: block;
}

/* Program Kerja: daftar lipat-buka */
.plist li {
  padding: 0;
}
.pitem > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}
.pitem > summary::-webkit-details-marker {
  display: none;
}
.pitem > summary h4 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}
.pitem > summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font: 400 1.2rem/1 var(--fb);
  color: var(--mr);
  border: 1px solid var(--bd);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
.pitem > summary:hover::after {
  background: var(--ac);
  border-color: var(--ac);
  color: #06091a;
}
.pitem[open] > summary::after {
  content: "\2013";
}
.pitem[open] > summary h4 {
  color: var(--mr);
}
.pitem > summary:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}
.pitem > p {
  max-width: 70ch;
  padding: 0 46px 4px 0;
  line-height: 1.75;
}
.pitem > p:last-child {
  padding-bottom: 20px;
}
.pitem > p.pmeta {
  padding-bottom: 20px;
}
.pitem > p:not(.pmeta):not(:last-child) {
  padding-bottom: 0;
}

/* Pengurus inti: kartu sejajar */
.inti .pg {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 20px;
}
.inti .pg h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7em;
  font-size: 1.05rem;
  line-height: 1.3;
}
.inti .pg p {
  margin: 8px 0 14px;
}
.inti .pg .badge2 {
  margin-top: auto;
}
.mgrid {
  gap: 40px 28px;
}

/* Footer: tautan "Semua Layanan" */
.single_widget ul li a.all {
  font-weight: 600;
  color: var(--mr);
}
.single_widget ul li a.all:hover {
  color: var(--mr2);
}

/* ---------- HP dan tablet kecil ---------- */
@media (max-width: 767px) {
  /* tab bisa digeser ke samping, tidak menumpuk berbaris-baris */
  .service .service_tabe_menu,
  .btabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -16px;
    margin-left: -16px;
    padding: 2px 16px 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .service .service_tabe_menu::before,
  .service .service_tabe_menu::after {
    display: none;
  }
  .service .nav-tabs > li {
    flex: 0 0 132px;
    scroll-snap-align: start;
  }
  .service .nav-tabs > li > a {
    min-height: 80px;
  }
  .btabs > li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .btabs > li > a {
    white-space: nowrap;
  }

  /* statistik: tiga/empat kolom dalam satu baris */
  .hero-stat {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 6px;
    border-bottom: 0;
  }
  .hero-stat b {
    font-size: 1.5rem;
  }
  .hero-stat > span {
    font-size: 0.72rem;
  }

  /* pengurus inti: dua kolom, Ketua Umum satu baris penuh */
  .inti {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .inti .pg:first-child {
    grid-column: 1 / -1;
  }
  .inti .pg {
    padding: 18px 10px 16px;
  }
  .inti .pg .av {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }
  .inti .pg h4 {
    font-size: 0.95rem;
  }

  /* program kerja */
  .pcat h3 {
    font-size: 1.6rem;
  }
  .pitem > p {
    padding-right: 0;
  }
  .pitem > summary h4 {
    font-size: 1.02rem;
  }
  .bhead {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .bhead h3 {
    font-size: 1.45rem;
  }
  .mgrid {
    gap: 28px 14px;
  }
}
