/* ==========================================================================
   Asrama Haji Semarang - penyesuaian tata letak RTL (Arab)
   Dimuat hanya ketika bahasa aktif adalah Arab.
   ========================================================================== */

body.ah-rtl {
  --font-body: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  line-height: 1.8;
}

/* Spasi huruf dapat memutus sambungan huruf Arab. */
body.ah-rtl * {
  letter-spacing: normal;
}

body.ah-rtl h1,
body.ah-rtl h2,
body.ah-rtl h3,
body.ah-rtl h4 {
  line-height: 1.45;
}

body.ah-rtl .lead,
body.ah-rtl .hero-copy .lead,
body.ah-rtl .article-body p,
body.ah-rtl .article-body li {
  line-height: 1.85;
}

body.ah-rtl .skip-link {
  left: auto;
  right: 1rem;
}

/* ---------- Topbar & header ---------- */

body.ah-rtl .topbar-social {
  margin: 0 .35rem 0 0;
}

body.ah-rtl .lang-switch {
  direction: ltr;
}

body.ah-rtl .nav-list > li > a,
body.ah-rtl .nav-sub-toggle,
body.ah-rtl .nav-more-menu a {
  text-align: right;
}

body.ah-rtl .sub-menu {
  padding: .25rem .9rem .5rem 0;
}

body.ah-rtl .nav-more-menu {
  right: auto;
  left: 0;
}

@media (min-width: 1024px) {
  body.ah-rtl .nav-list > li > a {
    font-size: .84rem;
    padding-inline: .55rem;
  }
}

/* ---------- Hero ---------- */

body.ah-rtl .hero-scrim {
  background:
    linear-gradient(270deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.72) 45%, rgba(0,0,0,.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.2) 40%, rgba(0,0,0,.75));
}

body.ah-rtl .hero-copy {
  text-align: right;
}

body.ah-rtl .hero-readmore span {
  display: inline-block;
  transform: scaleX(-1);
}

body.ah-rtl .hero-dots {
  justify-content: flex-start;
}

/* ---------- Booking ---------- */

body.ah-rtl .booking-card .bw-field select {
  padding-right: 0;
  padding-left: 1.35rem;
}

body.ah-rtl .booking-consult {
  margin-left: 0;
  margin-right: auto;
}

@media (min-width: 1024px) {
  body.ah-rtl .booking-card .bw-field {
    border-left: 0;
    border-right: 1px solid var(--marun-100);
  }

  body.ah-rtl .booking-submit {
    margin-left: 0;
    margin-right: 1.15rem;
  }
}

/* ---------- Section & kartu ---------- */

body.ah-rtl .section-head {
  text-align: right;
}

body.ah-rtl .section-head.center {
  text-align: center;
}

body.ah-rtl .num-card::before {
  left: auto;
  right: 0;
}

body.ah-rtl .service-card,
body.ah-rtl .prog-card-body,
body.ah-rtl .info-card,
body.ah-rtl .room-feature-body,
body.ah-rtl .green-spot-body,
body.ah-rtl .greeting-feature-body,
body.ah-rtl .feedback-copy {
  text-align: right;
}

body.ah-rtl .article-body .sukses-pillar p,
body.ah-rtl .article-body .role-card p,
body.ah-rtl .green-pillar-grid p,
body.ah-rtl main dd h1,
body.ah-rtl main dd h2,
body.ah-rtl main dd h3,
body.ah-rtl main dd h4,
body.ah-rtl main dd h5,
body.ah-rtl main dd h6 {
  text-align: right;
}

body.ah-rtl .green-spot-more::after {
  content: " \2190";
}

body.ah-rtl .service-strip-item {
  text-align: right;
}

body.ah-rtl .band-cta {
  background-image:
    radial-gradient(circle at 88% 20%, rgba(200, 164, 93, .18), transparent 42%),
    radial-gradient(circle at 12% 80%, rgba(200, 164, 93, .12), transparent 40%);
}

/* ---------- Footer ---------- */

body.ah-rtl .footer-bottom {
  text-align: right;
}

/* ---------- Modal ---------- */

body.ah-rtl .readmore-body {
  padding-right: 0;
  padding-left: 1rem;
}

/* ---------- Daftar & tabel isi ---------- */

body.ah-rtl ul,
body.ah-rtl ol {
  padding-left: 0;
  padding-right: 1.25rem;
}

body.ah-rtl .article-body ul,
body.ah-rtl .article-body ol {
  padding-left: 0;
  padding-right: 1.4rem;
}

body.ah-rtl .article-body blockquote {
  border-left: 0;
  border-right: 4px solid var(--jingga-500);
  padding: .4rem 1.2rem .4rem 0;
}

body.ah-rtl .article-note,
body.ah-rtl .service-list-note {
  border-left: 0;
  border-right: 4px solid var(--jingga-500);
}

body.ah-rtl .tarif-table th,
body.ah-rtl .tarif-table td,
body.ah-rtl .compare-table td,
body.ah-rtl .profile-tree-grid,
body.ah-rtl .green-highlight,
body.ah-rtl .green-impl-grid div span {
  text-align: right;
}

/* ---------- Halaman tentang & struktur ---------- */

body.ah-rtl .biro-list button,
body.ah-rtl .tp-org-chart-body p,
body.ah-rtl .tp-org-chart-head {
  text-align: right;
}

body.ah-rtl .biro-detail ul {
  padding-left: 0;
  padding-right: 1.05rem;
}

body.ah-rtl .page-tentang .commitment-item {
  transition: padding-right .25s ease, background-color .25s ease;
}

body.ah-rtl .page-tentang .commitment-item:hover {
  padding-left: 0;
  padding-right: .55rem;
}

body.ah-rtl .org-branch-list {
  padding-left: 0;
  padding-right: 1rem;
  border-left: 0;
  border-right: 2px solid var(--marun-100);
}

body.ah-rtl .org-node::before {
  left: auto;
  right: -1.55rem;
}

body.ah-rtl .org-split::before,
body.ah-rtl .org-branch::before,
body.ah-rtl .org-merge::after {
  left: auto;
  right: 50%;
}

body.ah-rtl .about-block-head--profile .about-block-head-inner,
body.ah-rtl .about-block-head--structure .about-block-head-inner {
  border-left: 0;
  border-right: 4px solid var(--jingga-500);
  padding-left: 0;
  padding-right: 1rem;
}

body.ah-rtl .about-block-head--structure .about-block-head-inner {
  border-right-color: var(--marun-700);
}

body.ah-rtl .tp-facts div {
  border-left: 0;
  border-right: 1px solid var(--tp-line);
}

body.ah-rtl .tp-facts div:first-child {
  border-right: 0;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 700px) {
  body.ah-rtl .tp-facts div:first-child {
    border-right: 1px solid var(--tp-line);
    padding-right: .8rem;
  }
}

body.ah-rtl .tp-org-list li,
body.ah-rtl .tp-eco-sub li {
  padding-left: 0;
  padding-right: 1rem;
}

body.ah-rtl .tp-org-list li::before,
body.ah-rtl .tp-eco-sub li::before {
  left: auto;
  right: 0;
}

body.ah-rtl .tp-org-branch::before,
body.ah-rtl .tp-org-chart-head::after,
body.ah-rtl .tp-org-wing-item:nth-child(5)::before {
  left: auto;
  right: 50%;
}

body.ah-rtl .tp-org-chart-head::after {
  left: auto;
  right: 1.1rem;
}

body.ah-rtl .tp-org-wings {
  padding-left: 0;
  padding-right: 2.4rem;
}

body.ah-rtl .tp-support-note,
body.ah-rtl .tp-contact-map {
  border-left: 0;
  border-right: 3px solid var(--tp-gold);
}

body.ah-rtl .tp-contact-map {
  border-right: 1px solid var(--tp-line);
}

body.ah-rtl .tp-location-badge {
  margin-left: 0;
  margin-right: .25rem;
}

/* ---------- Lightbox galeri ---------- */

body.ah-rtl .lightbox-close,
body.ah-rtl .lightbox-prev {
  left: auto;
  right: 1rem;
}

body.ah-rtl .lightbox-next {
  right: auto;
  left: 1rem;
}

/* ---------- Elemen dekoratif ---------- */

body.ah-rtl .green-logo-badge {
  left: auto;
  right: .5rem;
}

body.ah-rtl .room-thumb-label {
  left: auto;
  right: .3rem;
}

body.ah-rtl .feedback-shell {
  background:
    radial-gradient(90% 120% at 0 0, rgba(200, 164, 93, .12), transparent 55%),
    var(--putih);
}

body.ah-rtl .page-hero::before {
  background: linear-gradient(260deg, rgba(42, 14, 20, .92) 0%, rgba(42, 14, 20, .62) 52%, rgba(42, 14, 20, .32) 100%);
}

body.ah-rtl .page-hero--plain {
  background-image:
    radial-gradient(circle at 16% 16%, rgba(200, 164, 93, .22), transparent 44%),
    linear-gradient(240deg, var(--marun-950) 0%, var(--marun-900) 100%);
}

body.ah-rtl .page-hero--plain::before {
  background: linear-gradient(260deg, rgba(42, 14, 20, .5) 0%, rgba(42, 14, 20, .16) 100%);
}

@media (max-width: 900px) {
  body.ah-rtl .page-hero::before,
  body.ah-rtl .page-reservasi .page-hero::before {
    background: linear-gradient(260deg, rgba(42, 14, 20, .92) 0%, rgba(42, 14, 20, .84) 100%);
  }
}

/* ---------- Video profil ---------- */

body.ah-rtl .video-profile .section-head {
  text-align: center;
}

body.ah-rtl .video-profile-frame {
  direction: ltr;
}

body.ah-rtl .video-profile-youtube-note {
  letter-spacing: normal;
}

/* ---------- Penyesuaian kecil layar sempit ---------- */

@media (max-width: 480px) {
  body.ah-rtl .site-header .brand-text small {
    font-size: .72rem;
  }

  body.ah-rtl .btn-login {
    padding: 0 .5rem;
    font-size: .66rem;
  }
}
