body {
  font-family: "DM Sans", sans-serif !important;
}

.main {
  min-height: 80vh !important;
}
.debug {
  background: blue !important;
  color: red !important;
}

.bg-primary {
  background: #940103 !important;
}

.bg-secondary {
  background: #c2151c !important;
}

.masthead .main-navbar ul li:hover a,
.masthead .main-navbar ul li:focus a,
.masthead .main-navbar ul li.active a {
  border-radius: 0.3rem;
  background-color: #940103 !important;
}
.account-masthead .account ul li {
  display: block;
  float: left;
  border-left: 0px solid #00232e !important;
}
.account-masthead .account ul li a {
  display: block;
  text-decoration: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  padding: 0 10px;
  line-height: 31px;
}

.site-footer {
  background: #c2151c url("../../../base/images/bg.png");
  padding: 20px 0;
}
.site-footer label,
.site-footer small,
.site-footer .small {
  color: #ffffff;
}

.site-footer a {
  color: #ffffff;
}

.site-footer .attribution p {
  color: #ffffff;
  font-size: 0.875rem;
}

div.module-search form {
  background: #c2151c !important;
}

.homepage .module-search .tags {
  margin-top: -5px;
  padding: 5px 10px 10px 10px;
  background-color: #940103 !important;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  background-color: rgb(226, 226, 226);
  list-style: none;
  padding: 10px;
  width: 100%;
  /* min-height: 700px; */
}

.org-grid > li {
  height: 100%;
}

.org-item {
  position: relative;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.media-heading {
  font-size: 16px !important;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* jumlah baris */
  -webkit-box-orient: vertical;
  overflow: hidden;

  /* opsional */
  word-break: break-word;
}

.btn-primary {
  background-color: #c2151c !important;
  border-color: #c2151c !important;
}

.homepage .hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
}

/* ✅ gambar memenuhi semua ukuran hero */
.homepage .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  object-fit: cover; /* ✅ ini yang bikin full cover */
  object-position: center; /* ✅ tetap fokus tengah */

  z-index: 1;
  transform: scale(1);
  animation: zoomImg 15s ease-in-out infinite alternate;
}

/* overlay hitam */
.homepage .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  z-index: 2;
  padding: 20px 15px;
}

/* konten */
.homepage .hero-content {
  text-align: center;
  max-width: 900px;
}

.homepage .hero-title-1 {
  color: white;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  margin: 0;
}

.homepage .hero-title-2 {
  color: white;
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  margin: 0;
  margin-top: 6px;
}

.homepage .hero-desc {
  color: white;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-top: 12px;
  line-height: 1.6;
}

/* zoom effect */
@keyframes zoomImg {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.search-form {
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
  border-bottom: 0px !important;
}
.search-form .search-input input {
  margin: 0;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.font-montserrat {
  font-family: "Montserrat", sans-serif !important;
}

.font-poppins {
  font-family: "Poppins", sans-serif !important;
}

.account-masthead .account ul li a:hover {
  color: #fff;
  background-color: #c2151c;
  text-decoration: none;
}

.page-link {
  position: relative;
  display: block;
  color: #940103;
  background-color: #fff;
  border: 1px solid #dee2e6;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.page-link:hover {
  z-index: 2;
  color: #940103;
  text-decoration: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-link:focus {
  z-index: 3;
  color: #c2151c;
  background-color: #e9ecef;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(120, 120, 120, 0.25);
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #c2151c;
  border-color: #c2151c;
}

/* Profile Section */
/* === PROFIL PORTAL SECTION === */
.profil-wrap {
  min-height: 50vh;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;

  color: #0f172a;

  padding-top: 70px;
  padding-left: 20px;
  padding-right: 20px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  gap: 30px;
}

/* left / right */
.profil-left,
.profil-right {
  width: 50%;
  height: 100%;
}

.profil-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.profil-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.profil-line {
  width: 20px;
  height: 1.5px;
  background-color: #c2151c;
  border-radius: 999px;
  flex-shrink: 0;
}

.profil-label-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #c2151c;
  margin: 0;
  line-height: 1;
}

.profil-title {
  font-size: 1.7rem;
  font-weight: 900;
  margin: 0;
  margin-top: 6px;
}

.profil-divider {
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, #c2151c 0%, rgba(194, 21, 28, 0) 100%);
  margin-bottom: 15px;
  margin-top: 12px;
  border-radius: 999px;
}

.profil-desc {
  margin: 0;
  color: #334155;
  line-height: 1.75;
}

/* right side */
.profil-right {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.profil-img {
  width: 100%;
  max-width: 520px; /* biar gak kegedean di desktop */
  height: auto;
  object-fit: cover;
  border-radius: 15px;
}

/* badges */
.profil-badges {
  margin-top: 12px;
  width: 100%;

  display: flex;
  justify-content: space-evenly;
  align-items: center;

  gap: 10px;
  padding: 10px;

  border: 1px solid #d8d8d8;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);

  flex-wrap: wrap; /* ✅ penting untuk responsive */
}

.profil-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  /* padding: 6px 10px; */
}

.profil-badge-icon {
  width: 22px;
  height: 22px;
  object-fit: cover;
}

.profil-badge-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f172a;
}

/* =========================
     RESPONSIVE BREAKPOINT
     ========================= */
@media (max-width: 900px) {
  .profil-wrap {
    flex-direction: column; /* ✅ jadi atas-bawah */
    align-items: stretch;
    padding-top: 50px;
  }

  .profil-left,
  .profil-right {
    width: 100%;
  }

  .profil-title {
    font-size: 1.5rem;
  }

  .profil-img {
    max-width: 100%;
  }

  .profil-badges {
    justify-content: center; /* ✅ biar rapi */
  }
}

@media (max-width: 480px) {
  .profil-wrap {
    padding-left: 14px;
    padding-right: 14px;
    gap: 18px;
  }

  .profil-title {
    font-size: 1.3rem;
  }

  .profil-badge-text {
    font-size: 0.85rem;
  }
}
/*End Profile Section */

/*Ruang Lingkup Section */
/* === RUANG LINGKUP DATA SECTION === */
.ruang-wrap {
  min-height: 50vh;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;

  margin-top: 20px;

  color: #0f172a;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding-left: 20px;
  padding-right: 20px;

  gap: 18px;
}

/* Headline center */
.ruang-headline {
  width: 100%;
  text-align: center;
}

.ruang-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.ruang-line {
  width: 20px;
  height: 1.5px;
  background-color: #c2151c;
  border-radius: 999px;
  flex-shrink: 0;
}

.ruang-label-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #c2151c;
  margin: 0;
  line-height: 1;
}

.ruang-title {
  font-size: 1.7rem;
  font-weight: 900;
  margin: 8px 0 0 0;
}

.ruang-desc {
  margin: 10px auto 0 auto;
  max-width: 720px;
  line-height: 1.7;
  color: #334155;
}

/* Grid default desktop: 3 kolom */
.ruang-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Card */
.ruang-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;

  border: 1px solid #d8d8d8;
  border-radius: 12px;
  padding: 16px;

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  cursor: pointer;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ruang-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Top area icon + title */
.ruang-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ruang-icon {
  width: 35px;
  height: 35px;
  object-fit: cover;
  flex-shrink: 0;
}

.ruang-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: #0f172a;
}

.ruang-card-desc {
  margin: 0;
  margin-top: 6px;
  color: #475569;
  line-height: 1.6;
}

/* =========================
     RESPONSIVE BREAKPOINTS
     ========================= */

/* Tablet: 2 kolom */
@media (max-width: 900px) {
  .ruang-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ruang-title {
    font-size: 1.5rem;
  }
}

/* Mobile: 1 kolom */
@media (max-width: 600px) {
  .ruang-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ruang-grid {
    grid-template-columns: 1fr;
  }

  .ruang-title {
    font-size: 1.3rem;
  }

  .ruang-desc {
    font-size: 0.95rem;
  }

  .ruang-card {
    padding: 14px;
  }
}
/*End Ruang Lingkup Section */

.custom-footer {
  background: #c2151c;
  color: #ffffff;
  padding: 40px 0 20px 0;
}

.custom-footer a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
}

.custom-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-divider {
  border-color: rgba(255,255,255,0.3);
}

.partner-wrap{
  width:100%;
  max-width:1000px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 30px;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* HEADER */

.partner-head{
  text-align:center;
  max-width:650px;
}

.partner-label{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.partner-line{
  width:22px;
  height:2px;
  background:#c2151c;
}

.partner-label-text{
  font-size:0.9rem;
  color:#c2151c;
}

.partner-section-title{
  font-size:1.8rem;
  font-weight:900;
  margin-top:5px;
}

.partner-section-desc{
  margin-top:10px;
  line-height:1.6;
  color:#555;
}

/* GRID */

.partner-grid{
  margin-top:20px;
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
}

/* CARD */

.partner-card{
  background:white;
  border-radius:14px;
  padding:30px 22px;
  text-decoration:none;
  text-align:center;
  transition:all .25s ease;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  display:flex;
  flex-direction:column;
  align-items:center;
}

.partner-card:hover{
  transform:translateY(-6px);
  box-shadow:0 14px 30px rgba(0,0,0,0.15);
  text-decoration:none !important;
}

/* LOGO */

.partner-grid .partner-card .partner-logo-box{
  width:70px;
  height:70px;
  border-radius:50%;
  background:#f5f5f5;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:15px;
}

.partner-grid .partner-card .partner-logo-box img{
  width:auto !important;
  height:auto !important;
  max-width:40px !important;
  max-height:40px !important;
  object-fit:contain;
}

/* TITLE */

.partner-card-title{
  font-size:16px;
  font-weight:600;
  margin-bottom:8px;
  color:#222;
  transition:.2s;
}

/* DESC */

.partner-card-desc{
  font-size:13px;
  color:#666;
  line-height:1.5;
}

/* HOVER */

.partner-card:hover .partner-card-title{
  color:#c2151c;
}


/* ============================= */
/* RESPONSIVE */
/* ============================= */

/* Tablet */
@media (max-width: 992px){

  .partner-grid{
    grid-template-columns:repeat(2,1fr);
  }

}

/* Mobile */
@media (max-width: 600px){

  .partner-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .partner-card{
    padding:24px 18px;
  }

  .partner-card-title{
    font-size:15px;
  }

}