/* ==========================================================================
   Keuskupan Larantuka — Stylesheet utama
   Dibangun di atas Bootstrap 5.3 (lokal), Font Awesome 7 (lokal), AOS (lokal)
   ========================================================================== */

/* -------------------------------------------------------------- 1. Token */
:root {
  --kl-navy: #1d2549;
  --kl-navy-600: #262f5c;
  --kl-indigo: #354382;
  --kl-night: #101529;
  --kl-blue: #0b65f9;
  --kl-ink: #141e28;
  --kl-text: #1f2733;
  --kl-muted: #5d6477;
  --kl-soft: #f4f5f8;
  --kl-line: #cfd3de;
  --kl-radius: 16px;
  --kl-shadow: 0 10px 30px rgba(20, 30, 60, .08);
  --kl-shadow-lg: 0 18px 44px rgba(20, 30, 60, .16);

  --bs-body-font-family: 'Kumbh Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bs-body-color: var(--kl-ink);
  --bs-link-color-rgb: 29, 37, 73;
  --bs-link-hover-color-rgb: 11, 101, 249;
}

/* Lebar kontainer mengikuti mockup (tepi ±50px pada layar 1366px) */
/* padding 1.5rem = setengah gutter g-xl-5, supaya row tidak menonjol keluar layar di 1200–1270px */
@media (min-width: 1200px) { .container { max-width: 1250px; padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

html { scroll-behavior: smooth; }
body { background: #fff; overflow-x: hidden; }
img { max-width: 100%; }
.is-hidden { display: none !important; }
::selection { background: var(--kl-navy); color: #fff; }
:focus-visible { outline: 3px solid rgba(11, 101, 249, .45); outline-offset: 2px; }

/* -------------------------------------------------------------- 2. Navbar utama */
.kl-navbar,
.kl-subnav {
  --bs-navbar-color: #fff;
  --bs-navbar-hover-color: #fff;
  --bs-navbar-active-color: #fff;
}
.kl-navbar {
  background: var(--kl-navy);
  padding: .85rem 0;
  transition: box-shadow .3s ease;
}
.kl-navbar.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }

.kl-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.kl-brand img { height: 54px; width: auto; }
.kl-brand span {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.12;
}

.kl-navbar .navbar-nav { gap: .35rem; }
.kl-navbar .nav-link {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: .55rem 1.15rem !important;
  border-radius: 12px;
  transition: background-color .2s ease;
}
.kl-navbar .nav-link:hover,
.kl-navbar .nav-link:focus { color: #fff; background: rgba(255, 255, 255, .09); }
.kl-navbar .nav-link.active { background: var(--kl-blue); font-weight: 700; color: #fff; }
.kl-navbar .navbar-toggler { border: 0; color: #fff; font-size: 1.5rem; padding: .25rem .5rem; }
.kl-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }

@media (max-width: 991.98px) {
  .kl-navbar .navbar-collapse { padding-top: .9rem; }
  .kl-navbar .nav-link { padding: .65rem 1rem !important; }
}

/* -------------------------------------------------------------- 3. Sub-navigasi Keuskupan */
.kl-subnav { background: var(--kl-indigo); padding: 0; }
.kl-subnav .navbar-nav { width: 100%; justify-content: center; }
.kl-subnav .nav-link {
  color: #fff;
  font-size: .95rem;
  padding: .8rem 1.3rem !important;
  transition: background-color .2s ease;
}
.kl-subnav .nav-link:hover,
.kl-subnav .nav-link:focus,
.kl-subnav .nav-link.show { color: #fff; background: rgba(0, 0, 0, .14); }
.kl-subnav .nav-link.active {
  background: var(--kl-navy);
  font-weight: 700;
  text-transform: uppercase;
}
.kl-subnav .dropdown-toggle::after {
  border: 0;
  content: "\f111";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-size: .32rem;
  vertical-align: .9em;
  margin-left: .3rem;
}
.kl-subnav .dropdown-menu {
  background: #f1f2f5;
  border: 0;
  border-radius: 0 0 8px 8px;
  padding: .45rem;
  min-width: 11.5rem;
  margin-top: 0 !important;
  box-shadow: var(--kl-shadow);
}
.kl-subnav .dropdown-item {
  color: #2c3563;
  border-radius: 4px;
  padding: .45rem .9rem;
  font-size: .93rem;
}
.kl-subnav .dropdown-item:hover { background: #e3e5ea; }
.kl-subnav .dropdown-item.active,
.kl-subnav .dropdown-item:active { background: #d2d4da; color: var(--kl-navy); font-weight: 700; }

.kl-subnav-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 600;
  padding: .8rem 0;
}
.kl-subnav-toggle .chev { transition: transform .25s ease; }
.kl-subnav-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.kl-subnav-toggle small { font-weight: 400; opacity: .8; }

@media (min-width: 992px) {
  .kl-subnav .dropdown:hover > .dropdown-menu { display: block; }
}
@media (max-width: 991.98px) {
  .kl-subnav .navbar-collapse { padding-bottom: .6rem; }
  .kl-subnav .nav-link { padding: .6rem 1rem !important; border-radius: 6px; }
  .kl-subnav .dropdown-menu { box-shadow: none; border-radius: 6px; margin: .2rem 0 .4rem !important; }
}

/* -------------------------------------------------------------- 4. Tipografi halaman */
.kl-page { padding: 3rem 0 1rem; }
.kl-page-head { margin-bottom: 1.9rem; }
.kl-title {
  font-weight: 800;
  font-size: clamp(1.3rem, 1.05rem + .9vw, 1.6rem);
  letter-spacing: .2px;
  text-transform: uppercase;
  margin: 0;
  color: var(--kl-ink);
}
.kl-title--normal { text-transform: none; }
.kl-subtitle { font-style: italic; font-size: 1.08rem; color: #2a3140; margin: .15rem 0 0; }
.kl-section-title { font-weight: 700; font-size: 1.1rem; margin: 1.9rem 0 .7rem; color: var(--kl-ink); }
.kl-section-title:first-child { margin-top: 0; }

.kl-prose { font-size: .98rem; line-height: 1.85; color: var(--kl-text); }
.kl-prose p { margin-bottom: .8rem; }
.kl-prose ul, .kl-prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.kl-prose li { margin-bottom: .35rem; }
.kl-prose li::marker { color: var(--kl-navy); }
.kl-prose .text-justify { text-align: justify; }

.kl-quote {
  text-align: center;
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: underline;
  text-underline-offset: 5px;
  margin: 2rem 0;
  color: var(--kl-ink);
}

.kl-kicker { font-style: italic; text-transform: uppercase; letter-spacing: .3px; color: #2a3140; margin: 0; }
.kl-name { font-weight: 800; font-size: 1.55rem; margin: 0 0 1rem; }

/* -------------------------------------------------------------- 5. Carousel / hero */
.kl-hero { border-radius: 6px; overflow: hidden; box-shadow: var(--kl-shadow); background: #0f1325; }
.kl-hero .carousel-item img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 8.3;
  object-fit: cover;
}
.kl-hero--tall .carousel-item img { aspect-ratio: 11 / 10; }
.kl-hero .carousel-indicators { margin-bottom: .7rem; }
.kl-hero .carousel-indicators [data-bs-target] {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  margin: 0 3px;
  background: #fff;
}
.kl-hero .carousel-control-prev,
.kl-hero .carousel-control-next { width: 10%; opacity: 0; transition: opacity .3s ease; }
.kl-hero:hover .carousel-control-prev,
.kl-hero:hover .carousel-control-next { opacity: .85; }

/* -------------------------------------------------------------- 6. Kartu info (tabel samping) */
.kl-info {
  border: 2px solid var(--kl-navy);
  border-radius: var(--kl-radius);
  padding: 1.1rem 1rem 1.25rem;
  background: #fff;
}
.kl-info__title { text-align: center; font-weight: 700; font-size: 1.02rem; text-transform: uppercase; margin: 0 0 .15rem; }
.kl-info__sub { text-align: center; font-style: italic; font-size: .8rem; text-transform: uppercase; color: #333b4d; margin: 0; }
.kl-info__bar { height: 7px; background: var(--kl-navy); border-radius: 10px; margin: .7rem .1rem 1rem; }
.kl-info table { width: 100%; font-size: .82rem; color: #232a38; }
.kl-info td { padding: .22rem .3rem; vertical-align: top; line-height: 1.55; }
.kl-info td:first-child { width: 44%; }

/* -------------------------------------------------------------- 7. Widget Berita */
.kl-news {
  background: var(--kl-navy);
  border-radius: var(--kl-radius);
  padding: 1.1rem 1.25rem 1.3rem;
  color: #fff;
}
.kl-news__head {
  text-align: center;
  font-weight: 700;
  font-size: 1.3rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid rgba(255, 255, 255, .85);
  margin: 0 0 1.1rem;
}
.kl-news__item {
  background: #fff;
  color: var(--kl-ink);
  border-radius: 8px;
  padding: .8rem .9rem .75rem;
  margin-bottom: .85rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.kl-news__item:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .25); }
.kl-news__item h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .5rem; line-height: 1.3; }
.kl-news__img { display: block; width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 14px; }
.kl-news__text {
  font-size: .8rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kl-news__foot { text-align: right; margin-top: .55rem; }
.kl-news__more { text-align: right; margin-top: .4rem; }

/* -------------------------------------------------------------- 8. Tombol */
.kl-pill {
  display: inline-block;
  background: var(--kl-navy);
  color: #fff;
  border-radius: 50px;
  font-size: .72rem;
  padding: .22rem 1.1rem;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.kl-pill:hover { background: var(--kl-blue); color: #fff; }
.kl-pill--light { background: #fff; color: var(--kl-navy); padding: .25rem 1.5rem; }
.kl-pill--light:hover { background: #dfe6ff; color: var(--kl-navy); }

.btn-kl {
  --bs-btn-bg: var(--kl-navy);
  --bs-btn-color: #fff;
  --bs-btn-border-color: var(--kl-navy);
  --bs-btn-hover-bg: var(--kl-blue);
  --bs-btn-hover-border-color: var(--kl-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--kl-navy-600);
  --bs-btn-active-border-color: var(--kl-navy-600);
  --bs-btn-active-color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: .55rem 2.4rem;
}
.btn-kl-outline {
  --bs-btn-color: var(--kl-navy);
  --bs-btn-border-color: var(--kl-navy);
  --bs-btn-hover-bg: var(--kl-navy);
  --bs-btn-hover-border-color: var(--kl-navy);
  --bs-btn-hover-color: #fff;
  border-width: 2px;
  border-radius: 50px;
  font-weight: 600;
}

/* -------------------------------------------------------------- 9. Kartu orang / lembaga */
.kl-card {
  border: 1px solid var(--kl-line);
  border-radius: 10px;
  padding: .8rem .8rem 1.05rem;
  text-align: center;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.kl-card:hover { transform: translateY(-5px); box-shadow: var(--kl-shadow-lg); border-color: transparent; }
.kl-card__role { font-weight: 800; font-size: 1rem; text-transform: uppercase; margin: 0; line-height: 1.2; }
.kl-card__name { font-weight: 700; font-size: .9rem; color: #2c3244; margin: .15rem 0 .65rem; line-height: 1.25; }
.kl-card__media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #15192e;
  margin-bottom: .75rem;
}
.kl-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.kl-card:hover .kl-card__media img { transform: scale(1.05); }
.kl-card__media--logo { aspect-ratio: 1 / .87; background: #fff; }
.kl-card__media--logo img { object-fit: contain; object-position: center; }
.kl-card__label { font-weight: 700; font-size: .98rem; margin: 0 0 .8rem; line-height: 1.25; }
.kl-card .btn-kl { margin-top: auto; align-self: center; }
.kl-card__role + .kl-card__name + .kl-card__media { margin-top: auto; }

.kl-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #2e3a78 0%, #161c38 100%);
  color: rgba(255, 255, 255, .5);
  font-size: 3.2rem;
}
.kl-icon-badge {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.kl-icon-badge span {
  display: grid;
  place-items: center;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--kl-indigo) 0%, var(--kl-navy) 100%);
  color: #fff;
  font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.2rem);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .18), 0 10px 22px rgba(29, 37, 73, .25);
  transition: transform .4s ease;
}
.kl-card:hover .kl-icon-badge span { transform: rotate(-6deg) scale(1.04); }

/* Bagan kuria */
.kl-org-top { max-width: 215px; margin: 0 auto; position: relative; }
@media (min-width: 992px) {
  .kl-org-top::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3.1rem;
    height: 3.1rem;
    border-left: 2px solid var(--kl-line);
  }
  .kl-org-row { position: relative; margin-top: 3.1rem !important; }
  .kl-org-row::before {
    content: "";
    position: absolute;
    top: -1.55rem;
    left: 12.5%;
    right: 12.5%;
    height: 1.55rem;
    border: 2px solid var(--kl-line);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
  }
}

/* -------------------------------------------------------------- 10. Uskup dari masa ke masa */
.kl-bishop {
  border: 2px solid var(--kl-navy);
  border-radius: 6px;
  padding: .55rem;
  background: #fff;
  transition: box-shadow .3s ease, transform .3s ease;
}
.kl-bishop:hover { box-shadow: var(--kl-shadow-lg); transform: translateY(-3px); }
.kl-bishop__photo { aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: #15192e; }
.kl-bishop__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.kl-bishop__body { padding-top: .6rem; padding-bottom: .4rem; }
.kl-bishop__body h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .55rem; line-height: 1.3; }
.kl-bishop__body dl { font-size: .9rem; margin: 0 0 .9rem; row-gap: .2rem; }
.kl-bishop__body dt { font-weight: 400; color: #2b3342; }
.kl-bishop__body dd { margin: 0; }
.kl-bishop__body .btn-kl { padding: .4rem 2.3rem; }
.kl-bishop__badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--kl-blue); margin-bottom: .2rem; }
@media (min-width: 576px) {
  .kl-bishop__body dd::before { content: ": "; }
}
@media (max-width: 575.98px) {
  .kl-bishop__photo { aspect-ratio: 3 / 4; }
  .kl-bishop__body { padding-top: .2rem; padding-right: .6rem; }
  .kl-bishop__body h3 { font-size: .92rem; }
  .kl-bishop__body dl { font-size: .82rem; row-gap: 0; }
  .kl-bishop__body dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .3px; color: var(--kl-muted); margin-top: .35rem; }
  .kl-bishop__body dd { font-weight: 600; }
  .kl-bishop__body .btn-kl { padding: .35rem 1.4rem; }
}

/* -------------------------------------------------------------- 11. Galeri strip + halaman media */
.kl-strip { padding-top: 3.5rem; padding-bottom: 4rem; }
.kl-sq {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: #e9ebf0;
}
.kl-sq img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.kl-sq::after {
  content: "\f00e";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
  background: rgba(29, 37, 73, .45);
  opacity: 0;
  transition: opacity .35s ease;
}
.kl-sq:hover img { transform: scale(1.08); }
.kl-sq:hover::after { opacity: 1; }
.kl-media-grid .kl-sq { border-radius: 8px; }

.kl-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.kl-filter button {
  border: 1.5px solid var(--kl-navy);
  background: #fff;
  color: var(--kl-navy);
  border-radius: 50px;
  padding: .35rem 1.1rem;
  font-size: .88rem;
  font-weight: 600;
  transition: all .2s ease;
}
.kl-filter button:hover { background: #eef1fb; }
.kl-filter button.active { background: var(--kl-navy); color: #fff; }

/* Modal view foto */
.kl-lightbox .modal-content { background: #fbfbfb; border: 0; border-radius: 4px; }
.kl-lightbox .modal-body { padding: 2.75rem 4.5rem; position: relative; }
.kl-lightbox .btn-close { position: absolute; top: .9rem; right: .9rem; z-index: 5; }
.kl-lightbox .carousel-item img {
  display: block;
  margin: 0 auto;
  max-height: 74vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.kl-lightbox .carousel-control-prev,
.kl-lightbox .carousel-control-next {
  width: 4.5rem;
  opacity: 1;
  color: #5a6384;
  font-size: 2.6rem;
}
.kl-lightbox .carousel-control-prev { left: -4.5rem; }
.kl-lightbox .carousel-control-next { right: -4.5rem; }
.kl-lightbox .carousel-control-prev:hover,
.kl-lightbox .carousel-control-next:hover { color: var(--kl-navy); }
.kl-lightbox__caption { text-align: center; font-size: .9rem; color: var(--kl-muted); margin: .9rem 0 0; min-height: 1.3em; }
@media (max-width: 575.98px) {
  .kl-lightbox .modal-body { padding: 2.5rem 2.2rem 1.5rem; }
  .kl-lightbox .carousel-control-prev { left: -2.4rem; }
  .kl-lightbox .carousel-control-next { right: -2.4rem; }
  .kl-lightbox .carousel-control-prev,
  .kl-lightbox .carousel-control-next { width: 2.4rem; font-size: 1.8rem; }
}

/* -------------------------------------------------------------- 12. Footer */
.kl-footer { background: var(--kl-navy); color: #fff; padding: 3rem 0 4.5rem; }
.kl-footer__brand img { width: 94px; }
.kl-footer__brand h4 { font-size: 1.05rem; font-weight: 700; margin: .3rem 0 .45rem; }
.kl-footer__brand p { font-size: .76rem; line-height: 1.55; margin: 0 0 .6rem; max-width: 250px; color: #eceef5; }
.kl-footer h5 { font-size: 1rem; font-weight: 700; margin: .3rem 0 1rem; }
.kl-footer__nav a {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  padding: .18rem 0;
  transition: color .2s ease, transform .2s ease;
}
.kl-footer__nav a:hover { color: #9fb9ff; transform: translateX(4px); }
.kl-contact { list-style: none; padding: 0; margin: 0; }
.kl-contact li { font-size: .88rem; margin-bottom: 1rem; line-height: 1.5; }
.kl-contact__icon { width: 2.4rem; font-size: 1.35rem; line-height: 1.1; }
.kl-contact a { color: #fff; text-decoration: none; }
.kl-contact a:hover { text-decoration: underline; }
.kl-copy { background: var(--kl-night); color: #e6e8ef; font-size: .85rem; padding: 1.15rem 0; }

/* Ikon sosial media */
.kl-social { display: flex; gap: .55rem; align-items: center; }
.kl-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.kl-social a:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 16px rgba(0, 0, 0, .25); }
.kl-social .tiktok { background: #000; box-shadow: inset 0 0 0 2px #fff; }
.kl-social .facebook { background: #1877f2; font-size: 1.05rem; }
.kl-social .instagram { border-radius: 9px; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.kl-social .youtube { border-radius: 9px; background: #ff0000; }
.kl-social--lg a { width: 38px; height: 38px; font-size: 1.15rem; }

/* -------------------------------------------------------------- 13. Beranda */
.kl-home { min-height: calc(100vh - 84px); display: flex; flex-direction: column; padding: 2.4rem 0 1.5rem; }
.kl-home > .container { flex: 1; display: flex; flex-direction: column; }
.kl-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--kl-ink);
  border-radius: 50px;
  padding: .15rem .45rem .15rem 1.4rem;
  background: #fff;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.kl-search:focus-within { border-color: var(--kl-blue); box-shadow: 0 0 0 4px rgba(11, 101, 249, .12); }
.kl-search input { flex: 1; border: 0; outline: 0; font-size: .95rem; padding: .45rem 0; background: transparent; min-width: 0; }
.kl-search button { border: 0; background: transparent; font-size: 1.3rem; color: #4a5060; padding: .2rem .55rem; }
.kl-search button:hover { color: var(--kl-blue); }

@media (min-width: 992px) { .kl-home__intro { padding-top: 4.3rem; } }
.kl-home__eyebrow { font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.35rem); letter-spacing: .5px; margin: 0 0 .9rem; line-height: 1.1; }
.kl-home__bishop { font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin: 0; line-height: 1.15; }
.kl-home__motto { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); margin: .1rem 0 0; }
.kl-home__motto-id { font-style: italic; font-size: .82rem; margin: .1rem 0 1.8rem; }
.kl-home__lead { font-size: 1.08rem; line-height: 1.95; color: var(--kl-text); }

.kl-home__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.6rem; margin-top: 3rem; }
.kl-letter {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  border: 2px solid var(--kl-navy);
  border-radius: 50px;
  padding: .7rem 2.4rem .7rem 1rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--kl-ink);
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.kl-letter .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--kl-navy); transition: background-color .25s ease; }
.kl-letter:hover { background: var(--kl-navy); color: #fff; }
.kl-letter:hover .dot { background: #fff; }
.kl-home__contact { display: flex; align-items: center; gap: .9rem; font-size: .88rem; color: var(--kl-ink); text-decoration: none; }
.kl-home__contact i { font-size: 1.1rem; }
.kl-home__contact:hover { color: var(--kl-blue); }

/* -------------------------------------------------------------- 14. Dekenat */
.kl-deklist { list-style: none; padding: 0; margin: 1.2rem 0 .3rem; }
.kl-deklist a {
  display: block;
  padding: .32rem 1rem;
  border-radius: 4px;
  color: var(--kl-ink);
  font-size: .9rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease;
}
.kl-deklist a:hover { background: #eef1fb; }
.kl-deklist a.active { background: var(--kl-blue); color: #fff; font-weight: 700; }
.kl-dean-photo { width: 170px; aspect-ratio: 1; margin: 1.3rem auto 1.6rem; overflow: hidden; background: #15192e; }
.kl-dean-photo .kl-ph { font-size: 3.8rem; }

/* -------------------------------------------------------------- 15. Paroki */
.kl-paroki {
  border: 1.5px solid var(--kl-navy);
  border-radius: 14px;
  padding: .55rem .55rem 1rem;
  text-align: center;
  height: 100%;
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.kl-paroki:hover { transform: translateY(-5px); box-shadow: var(--kl-shadow-lg); }
.kl-paroki__media { aspect-ratio: 1 / .95; border-radius: 12px; overflow: hidden; margin-bottom: .75rem; }
.kl-paroki__media img { width: 100%; height: 100%; object-fit: cover; }
.kl-paroki__media .kl-icon-badge span { width: 70%; font-size: 2.6rem; }
.kl-paroki h3 { font-size: .92rem; font-weight: 700; margin: 0 0 .5rem; }
.kl-paroki .kl-pill { font-size: .8rem; padding: .2rem .7rem; }
.kl-count { font-weight: 800; font-size: 1.05rem; letter-spacing: .5px; text-transform: uppercase; margin: 0; }
.kl-inline-search { max-width: 320px; }

/* -------------------------------------------------------------- 16. Profil (imam & lembaga) */
.kl-profile { max-width: 860px; margin: 0 auto; }
.kl-profile-head { padding: 1.8rem .4rem 1.6rem; }
.kl-avatar { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; box-shadow: var(--kl-shadow); }
.kl-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.kl-profile-head h1 { font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); font-weight: 800; text-transform: uppercase; margin: 0; }
.kl-profile-head p { font-style: italic; margin: .15rem 0 .7rem; }
.kl-react button {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--kl-navy);
  font-size: 1.45rem;
  line-height: 1;
  padding: 0;
  transition: transform .2s ease, color .2s ease;
}
.kl-react button small { font-size: .6rem; color: var(--kl-ink); margin-top: .3rem; }
.kl-react button:hover { transform: translateY(-2px); color: var(--kl-blue); }
.kl-react button.is-liked { color: var(--kl-blue); }

.kl-tabs { background: var(--kl-indigo); }
.kl-tabs .nav-link {
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: .65rem .5rem;
  white-space: nowrap;
  font-size: 1rem;
  text-align: center;
  transition: background-color .2s ease;
}
.kl-tabs .nav-link:hover { background: rgba(0, 0, 0, .14); color: #fff; }
.kl-tabs .nav-link.active { background: var(--kl-navy); color: #fff; font-weight: 700; }

.kl-panel { background: #fafafb; border-radius: 10px; box-shadow: 0 6px 18px rgba(20, 30, 60, .05); padding: 1.1rem 1.3rem 1.3rem; }
.kl-panel + .kl-panel { margin-top: 1rem; }
.kl-panel h2 { font-size: 1rem; font-weight: 600; text-align: center; margin: 0 0 1rem; padding-bottom: .7rem; border-bottom: 1px solid #eceef3; }
.kl-panel h2.text-start { text-align: left !important; font-weight: 700; }
.kl-panel ul { padding-left: 1.1rem; margin: 0; font-size: .88rem; line-height: 1.7; }
.kl-panel li { margin-bottom: .3rem; }
.kl-panel li::marker { color: var(--kl-navy); }
.kl-profile-photo { border-radius: 8px; overflow: hidden; }
.kl-profile-photo img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: center 20%; }
.kl-kv { width: 100%; font-size: .84rem; margin-top: 1rem; }
.kl-kv td { padding: .12rem .25rem; vertical-align: top; }
.kl-kv td:first-child { width: 44%; font-weight: 600; }
.kl-kv td:last-child::before { content: ": "; }
.kl-thumbs a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
.kl-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kl-thumbs a:hover img { transform: scale(1.08); }
.kl-photo-row { margin-bottom: 1.5rem; }
.kl-photo-row a { display: block; aspect-ratio: 11 / 12; overflow: hidden; }
.kl-photo-row img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.kl-photo-row a:hover img { transform: scale(1.07); }

@media (max-width: 575.98px) {
  .kl-profile-head { padding: 1.4rem 0 1.2rem; }
  .kl-avatar { width: 110px; height: 110px; }
  .kl-profile-head p { margin-bottom: .9rem; }
}

/* Header khusus halaman lembaga */
.kl-org-header { background: var(--kl-navy); padding: .9rem 0; }
.kl-org-header .kl-brand img { height: 50px; }
.kl-org-header__logo { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; }
.kl-org-header__logo img { width: 88%; }
.kl-org-page { background: #f7f8fa; }
.kl-org-sheet { max-width: 842px; margin: 0 auto; background: #fff; box-shadow: 0 0 40px rgba(20, 30, 60, .06); min-height: 70vh; padding-bottom: 3rem; }
.kl-cover { height: 260px; overflow: hidden; }
.kl-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.kl-org-id { padding: 0 1rem 1.1rem 2.2rem; position: relative; }
.kl-org-logo {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: #fff;
  margin-top: -100px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(20, 30, 60, .18);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.kl-org-logo img { width: 84%; }
.kl-org-id h1 { font-size: clamp(1.1rem, .95rem + .7vw, 1.4rem); font-weight: 800; text-transform: uppercase; margin: .9rem 0 0; }
.kl-org-id .sub { text-transform: uppercase; margin: 0; }
.kl-org-id .web { font-size: .72rem; font-style: italic; text-decoration: underline; color: var(--kl-ink); }
.kl-member { text-align: center; }
.kl-member__logo { width: 150px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; margin: 0 auto .7rem; display: grid; place-items: center; background: #fff; box-shadow: 0 8px 24px rgba(20, 30, 60, .1); overflow: hidden; transition: transform .3s ease; }
.kl-member__logo img { width: 84%; }
.kl-member:hover .kl-member__logo { transform: translateY(-5px); }
.kl-member h3 { font-size: .95rem; font-weight: 800; text-transform: uppercase; margin: 0; }
.kl-member p { font-size: .8rem; color: var(--kl-muted); margin: .1rem 0 0; }
@media (max-width: 767.98px) {
  .kl-cover { height: 190px; }
  .kl-org-id { padding: 0 .5rem 1rem; }
  .kl-org-id h1 { margin-top: 0; }
  .kl-org-logo { width: 150px; height: 150px; margin-top: -75px; }
  .kl-org-id .kl-social { justify-content: center; }
}

/* -------------------------------------------------------------- 17. Tanya (chat) */
.kl-chat-page { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.kl-chat-header { background: #fff; padding: 1.4rem 0; position: sticky; top: 0; z-index: 10; box-shadow: 0 14px 30px -18px rgba(20, 30, 60, .25); }
.kl-chat-header .kl-brand img { height: 42px; }
.kl-chat-header .kl-brand span { color: var(--kl-navy); font-size: 1.1rem; }
.kl-chat-header a.back { color: var(--kl-navy); text-decoration: none; font-size: .9rem; font-weight: 600; }
.kl-chat-header a.back:hover { color: var(--kl-blue); }
.kl-chat { flex: 1; width: 100%; max-width: 700px; margin: 0 auto; padding: 2.5rem 1rem 1rem; }
.kl-msg { margin-bottom: 1.8rem; }
.kl-msg__bubble {
  background: #f4f4f5;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  font-size: .88rem;
  line-height: 1.6;
  max-width: 100%;
  animation: klPop .35s ease both;
}
.kl-msg--bot .kl-msg__bubble { text-align: left; }
.kl-msg__bubble ul { padding-left: 1.2rem; margin: 0 0 .9rem; text-align: left; }
.kl-msg__bubble p:last-child { margin-bottom: 0; }
.kl-typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: #9aa0b0; animation: klBlink 1.2s infinite ease-in-out; }
.kl-typing span:nth-child(2) { animation-delay: .15s; }
.kl-typing span:nth-child(3) { animation-delay: .3s; }
.kl-suggest { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.kl-suggest button { border: 1px solid var(--kl-line); background: #fff; border-radius: 50px; padding: .35rem .95rem; font-size: .82rem; color: var(--kl-navy); transition: all .2s ease; }
.kl-suggest button:hover { border-color: var(--kl-navy); background: var(--kl-navy); color: #fff; }
.kl-chat-input { position: sticky; bottom: 0; background: linear-gradient(rgba(255, 255, 255, 0), #fff 30%); padding: 1.2rem 1rem 1.4rem; }
.kl-chat-input form {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border: 1px solid #333;
  border-radius: 50px;
  padding: .45rem .6rem .45rem 2rem;
  background: #fff;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.kl-chat-input form:focus-within { border-color: var(--kl-blue); box-shadow: 0 0 0 4px rgba(11, 101, 249, .12); }
.kl-chat-input input { flex: 1; border: 0; outline: 0; font-size: .95rem; padding: .35rem 0; min-width: 0; }
.kl-chat-input button { border: 0; background: transparent; font-size: 1.45rem; color: #7a7f8c; width: 44px; height: 44px; border-radius: 50%; transition: all .2s ease; }
.kl-chat-input button:hover { color: var(--kl-navy); background: #f0f2f7; }
.kl-chat-input button.is-listening { color: #fff; background: #e0364f; animation: klPulse 1.2s infinite; }
.kl-chat-note { max-width: 660px; margin: .5rem auto 0; padding-left: 2rem; font-size: .72rem; font-style: italic; color: #e39a9a; }

@keyframes klPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes klBlink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes klPulse { 0% { box-shadow: 0 0 0 0 rgba(224, 54, 79, .45); } 100% { box-shadow: 0 0 0 14px rgba(224, 54, 79, 0); } }

/* -------------------------------------------------------------- 18. Berita & Semana Santa */
.kl-post {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3e6ee;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.kl-post:hover { transform: translateY(-5px); box-shadow: var(--kl-shadow-lg); }
.kl-post__img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.kl-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.kl-post:hover .kl-post__img img { transform: scale(1.06); }
.kl-post__tag { position: absolute; left: .8rem; top: .8rem; background: var(--kl-blue); color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .65rem; border-radius: 50px; text-transform: uppercase; letter-spacing: .3px; }
.kl-post__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.kl-post__meta { font-size: .76rem; color: var(--kl-muted); margin-bottom: .4rem; }
.kl-post__body h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; margin: 0 0 .5rem; }
.kl-post__body h3 a { color: inherit; text-decoration: none; }
.kl-post__body h3 a:hover { color: var(--kl-blue); }
.kl-post__body p { font-size: .86rem; line-height: 1.6; color: var(--kl-text); margin: 0 0 1rem; }
.kl-post__body .kl-pill { align-self: flex-start; margin-top: auto; }

.kl-post--featured .kl-post__body { padding: 1.6rem 1.8rem; justify-content: center; height: 100%; }
.kl-post--featured h3 { font-size: 1.45rem; }
@media (min-width: 768px) {
  .kl-post--featured .kl-post__img { aspect-ratio: auto; height: 100%; min-height: 320px; }
}
@media (max-width: 767.98px) {
  .kl-post--featured .kl-post__body { padding: 1rem 1.1rem 1.2rem; }
  .kl-post--featured h3 { font-size: 1.1rem; }
}

.kl-article__meta { font-size: .85rem; color: var(--kl-muted); margin-top: .7rem; margin-bottom: 1.4rem; }
.kl-article__img { border-radius: 8px; overflow: hidden; margin-bottom: 1.5rem; }
.kl-article__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.kl-article__img figcaption { font-size: .8rem; color: var(--kl-muted); padding: .5rem .2rem 0; font-style: italic; }
.kl-share { padding-top: 1.2rem; margin-top: 1.5rem; border-top: 1px solid #e6e8ee; font-weight: 600; font-size: .9rem; }

.kl-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.kl-timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: #dfe3ee; }
.kl-timeline li { position: relative; padding-left: 2.6rem; margin-bottom: 1.35rem; }
.kl-timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--kl-navy);
}
.kl-timeline li:last-child::before { border-color: var(--kl-blue); }
.kl-timeline strong { display: block; font-size: .95rem; color: var(--kl-navy); }
.kl-timeline span { font-size: .92rem; color: var(--kl-text); line-height: 1.65; }

.kl-steps { counter-reset: step; }
.kl-step { padding: 1.1rem .6rem; border-radius: 12px; background: var(--kl-soft); margin-bottom: .9rem; transition: background-color .25s ease; }
.kl-step:hover { background: #eceff7; }
.kl-step__icon { width: 50px; height: 50px; border-radius: 50%; background: var(--kl-navy); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.kl-step h3 { font-size: 1rem; font-weight: 700; margin: .1rem 0 .3rem; }
.kl-step p { font-size: .9rem; line-height: 1.7; margin: 0; color: var(--kl-text); }

.kl-map { border-radius: 10px; overflow: hidden; border: 1px solid #e3e6ee; }
.kl-map img { display: block; width: 100%; }

.kl-empty { border: 1.5px dashed var(--kl-line); border-radius: 12px; padding: 2rem 1.5rem; text-align: center; color: var(--kl-muted); font-size: .92rem; }
.kl-empty i { display: block; font-size: 2rem; margin-bottom: .6rem; color: #b5bbca; }

.kl-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: .45rem; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.kl-note { font-size: .74rem; color: var(--kl-muted); margin: .6rem .3rem 0; }
.kl-breadcrumb { font-size: .82rem; margin-bottom: 1rem; }
.kl-breadcrumb a { color: var(--kl-muted); text-decoration: none; }
.kl-breadcrumb a:hover { color: var(--kl-blue); }

.kl-logo-showcase { background: radial-gradient(circle at 50% 40%, #ffffff 0%, #eef1f8 100%); border-radius: 12px; padding: 1.5rem; text-align: center; }
.kl-logo-showcase img { max-height: 430px; width: auto; filter: drop-shadow(0 16px 30px rgba(20, 30, 60, .18)); }

/* Tombol ke atas */
.kl-totop {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--kl-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 101, 249, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s ease;
  z-index: 1030;
}
.kl-totop.show { opacity: 1; visibility: visible; transform: none; }
.kl-totop:hover { background: var(--kl-navy); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.btn-kl--plain { text-transform: none; font-size: .82rem; font-weight: 600; }
.kl-card__role + .kl-card__name + .kl-card__media ~ .btn-kl { margin-top: 0; }
@media (max-width: 575.98px) {
  .kl-tabs .nav-link { font-size: .9rem; padding: .6rem .25rem; }
}
.kl-post--featured .kl-post__body .kl-pill { margin-top: .5rem; }

/* ==========================================================================
   19. Penyesuaian layar HP & tablet
   ========================================================================== */
/* Pengaman: halaman tidak boleh bisa digeser ke samping */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

@media (max-width: 767.98px) {
  .kl-hero .carousel-item img { aspect-ratio: 16 / 10; }
  .kl-hero--tall .carousel-item img { aspect-ratio: 4 / 3; }
  /* layar sentuh tidak punya hover: tombol geser carousel selalu terlihat */
  .kl-hero .carousel-control-prev,
  .kl-hero .carousel-control-next { opacity: .75; }
}

@media (max-width: 575.98px) {
  .container { padding-left: 1.1rem; padding-right: 1.1rem; }

  .kl-navbar { padding: .65rem 0; }
  .kl-brand img { height: 46px; }
  .kl-brand span { font-size: .98rem; }

  .kl-page { padding-top: 1.75rem; }
  .kl-page-head { margin-bottom: 1.25rem; }
  .kl-subtitle { font-size: .95rem; }
  .kl-prose { font-size: .95rem; line-height: 1.75; }
  .kl-section-title { font-size: 1.02rem; margin-top: 1.6rem; }
  .kl-name { font-size: 1.3rem; }
  .kl-quote { font-size: 1.02rem; }

  .kl-card { padding: .6rem .6rem .85rem; }
  .kl-card__role { font-size: .82rem; }
  .kl-card__name { font-size: .8rem; }
  .kl-card__label { font-size: .88rem; }
  .btn-kl { padding: .5rem 1.4rem; font-size: .7rem; }
  .kl-paroki h3 { font-size: .85rem; }

  .kl-info { padding: 1rem .8rem 1.1rem; }
  .kl-news { padding: 1rem .9rem 1.1rem; }
  .kl-news__item { padding: .75rem .75rem .7rem; }

  .kl-step { padding: .9rem .35rem; }
  .kl-step__icon { width: 42px; height: 42px; font-size: 1rem; }
  .kl-logo-showcase img { max-height: 280px; }
  .kl-dean-photo { width: 140px; }

  .kl-strip { padding-top: 2rem; padding-bottom: 2.5rem; }
  .kl-footer { padding: 2.5rem 0; }
  .kl-footer__brand img { width: 72px; }
  .kl-footer__brand p { max-width: none; }

  .kl-lightbox .modal-dialog { margin: .5rem; }
  .kl-chat { padding-top: 1.75rem; }
  .kl-chat-input { padding: 1rem .75rem 1.1rem; }
  .kl-chat-input form { padding-left: 1.2rem; }
  .kl-chat-note { padding-left: 1.2rem; }
}
