/* custom-mtsmuallimatnwpancor — style.css */

/* ── RESET ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  font-size: 14px;
  color: #2d3748;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ── PORTAL BACKGROUND — full page ──────────────────────── */
.portal-bg {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.portal-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,80,20,0.72) 0%, rgba(0,40,10,0.65) 100%);
  z-index: 0;
  pointer-events: none;
}
.portal-content {
  position: relative;
  z-index: 1;
}

/* ── TICKER ──────────────────────────────────────────────── */
.ticker-bar {
  background: rgba(0, 110, 0, 0.92);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  font-size: 12px;
  overflow: hidden;
}
.ticker-label {
  background: rgba(255, 255, 255, 0.18);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.ticker-window {
  flex: 1;
  overflow: hidden;
}
.ticker-track {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  animation: tickerScroll 32s linear infinite;
}
.ticker-track span {
  white-space: nowrap;
}
@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

/* ── PORTAL HEADER — full width, semi-transparent ───────── */
.portal-header {
  color: #fff;
  text-align: center;
  padding: 28px 20px 18px;
}
.portal-header-inner {
  max-width: 820px;
  margin: 0 auto;
}
.portal-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 10px;
}
.portal-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  margin-bottom: 3px;
  line-height: 1.2;
}
.portal-tagline {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.portal-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 14px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}
.portal-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.portal-contacts a {
  color: rgba(255, 255, 255, 0.85);
}
.portal-contacts a:hover {
  color: #fff;
}

/* ── TABS ────────────────────────────────────────────────── */
.portal-tabs {
  display: inline-flex;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  overflow: hidden;
}
.ptab {
  padding: 7px 28px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.ptab.active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ── TAB CONTENT ─────────────────────────────────────────── */
.ptab-content {
  display: none;
}
.ptab-content.active {
  display: block;
}

/* ── QUICK LINKS ─────────────────────────────────────────── */
/* .quick-links-section {
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
} */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}
.qlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* background: var(--accent); */
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 700;
  font-size: 11.5px;
  padding: 8px 15px;
  border-radius: 20px;
  transition:
    opacity 0.18s,
    transform 0.15s;
}
.qlink:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}
.qlink-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}
.qlink-icon {
  font-size: 16px;
}

/* ── SERVICES — from keunggulan ──────────────────────────── */
.services-section {
  padding: 24px 20px 28px;
}
.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.services-heading {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.svc-card {
  background: transparent;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition:
    background 0.2s,
    transform 0.15s;
  color: #fff;
}
.svc-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.svc-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.svc-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.svc-card h3 {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.svc-card p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  flex: 1;
}
.svc-link {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-top: 2px;
}
.svc-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── TAB: TENTANG ────────────────────────────────────────── */
.tentang-section {
  padding: 24px 20px 28px;
}
.tentang-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tentang-panel {
  background: transparent;
  border-radius: 14px;
  padding: 20px 0;
}
.panel-title {
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

/* Sambutan */
.sambutan-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: start;
}
.sambutan-foto {
  width: 130px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.sambutan-foto-ph {
  width: 130px;
  height: 160px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.sambutan-nama {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1px;
}
.sambutan-nip {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}
.sambutan-teks {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
}
.sambutan-teks p {
  margin-bottom: 6px;
}

/* Identitas */
.identitas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.id-row {
}
.id-label {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.id-value {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

/* Visi Misi */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.vm-box h4 {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.vm-box p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
}

/* ── PORTAL FOOTER ───────────────────────────────────────── */
.portal-foot {
  color: #fff;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 16px;
  text-align: center;
}
.foot-col h3 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.jam-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.jam-table td {
  padding: 3px 0;
  color: rgba(255, 255, 255, 0.8);
}
.jam-table td:first-child {
  padding-right: 10px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.stat-row {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.stat-box {
  text-align: center;
}
.stat-box strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 2px;
}
.stat-box span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}
.foot-social {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 820px;
  margin: 14px auto 10px;
}
.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  transition: background 0.2s;
}
.foot-social a:hover {
  background: rgba(255, 255, 255, 0.26);
}
.foot-copy {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 820px;
  margin: 0 auto;
}

/* ── POPUP PENGUMUMAN ────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 10, 0, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: popupFadeIn 0.25s ease;
}
.popup-overlay.hidden {
  display: none;
}
@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.popup-box {
  background: #0d1a0d;
  border: 1px solid rgba(0, 180, 0, 0.3);
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: popupSlideUp 0.28s cubic-bezier(.22,.68,0,1.2);
}
@keyframes popupSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.popup-head {
  background: linear-gradient(135deg, #006600 0%, #009900 100%);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.popup-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex: 1;
}
.popup-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Slides */
.popup-slider {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.popup-slide {
  display: none;
  padding: 18px 20px;
}
.popup-slide.active {
  display: block;
  animation: slideEnter 0.4s ease forwards;
}
@keyframes slideEnter {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
.popup-slide-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 12px;
}
.popup-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 14px;
  object-fit: cover;
  max-height: 200px;
}
.popup-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

/* Footer */
.popup-foot {
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.popup-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-right: auto;
}
.popup-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
  cursor: pointer;
}
.popup-dot.active {
  background: #00cc00;
  transform: scale(1.4);
}
.popup-readmore {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
.popup-readmore:hover {
  color: rgba(255, 255, 255, 0.85);
}
.popup-btn-close {
  background: #009900;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
}
.popup-btn-close:hover {
  background: #007700;
}

/* ── INNER PAGES ─────────────────────────────────────────── */
.inner-bg {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.inner-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 0, 0.55);
  z-index: 0;
  pointer-events: none;
}
.inner-wrap {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.inner-topbar {
  background: rgba(0, 100, 0, 0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px 14px 0 0;
  flex-wrap: wrap;
}
.inner-topbar .home-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  margin-right: auto;
}
.inner-topbar .home-link img {
  height: 28px;
  width: auto;
}
.inner-topbar a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}
.inner-topbar a:hover {
  color: #fff;
}
.inner-topbar .sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}
.inner-topbar .cur {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.inner-body {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  border-radius: 0 0 14px 14px;
  padding: 24px 20px;
  min-height: 400px;
}
.inner-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8edf2;
}
.inner-foot {
  background: rgba(0, 50, 0, 0.82);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  text-align: center;
  padding: 12px 20px;
  border-radius: 14px;
  margin-top: 10px;
}
.inner-foot a {
  color: rgba(255, 255, 255, 0.7);
}
.inner-foot a:hover {
  color: #fff;
}
.inner-body .btn-link {
  color: #2d3748;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sambutan-grid {
    grid-template-columns: 1fr;
  }
  .sambutan-foto,
  .sambutan-foto-ph {
    width: 100%;
    height: 200px;
  }
  .identitas-grid {
    grid-template-columns: 1fr;
  }
  .vm-grid {
    grid-template-columns: 1fr;
  }
  .foot-cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 450px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .ptab {
    padding: 7px 18px;
    font-size: 12px;
  }
  .portal-name {
    font-size: 1.2rem;
  }
}
