/* =========================================================
   Royal Sub-Area (Premium) - Sub pages only
   Scope: .royal-subarea-page
========================================================= */

.royal-subarea-page {
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
  font-family: "Tajawal", "Segoe UI", "Tahoma", "Arial", sans-serif;
}

/* HERO */
.royal-sub-hero { color:#fff; padding: 70px 0 50px; }
.royal-sub-hero-inner { max-width: 980px; }
.royal-sub-title { font-weight: 950; line-height: 1.25; }
.royal-sub-subtitle { color: rgba(255,255,255,.82); line-height: 1.9; font-size: 1.05rem; }

.royal-breadcrumb { color: rgba(255,255,255,.65); font-size: .95rem; }
.royal-breadcrumb a { color: rgba(255,255,255,.88); text-decoration: none; }
.royal-breadcrumb .sep { margin: 0 .35rem; opacity: .7; }

.royal-sub-cta { display:flex; flex-wrap:wrap; gap:.6rem; }

/* Editor content styling (the important part) */
.royal-subarea-page .royal-sub-editor {
  max-width: 980px;
  margin-inline: auto;
}

.royal-subarea-page .royal-sub-editor p {
  color: rgba(0,0,0,.72);
  line-height: 2;
  font-size: 1.04rem;
  margin-bottom: 1rem;
}

.royal-subarea-page .royal-sub-editor strong { color: rgba(0,0,0,.88); font-weight: 850; }

.royal-subarea-page .royal-sub-editor a {
  text-decoration: none;
  font-weight: 850;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.royal-subarea-page .royal-sub-editor a:hover { border-bottom-color: rgba(0,0,0,.35); }

/* Headings */
.royal-subarea-page .royal-sub-editor h2,
.royal-subarea-page .royal-sub-editor h3,
.royal-subarea-page .royal-sub-editor h4{
  color: rgba(0,0,0,.92);
  font-weight: 950;
  line-height: 1.35;
  margin: 1.6rem 0 .8rem;
  position: relative;
}
.royal-subarea-page .royal-sub-editor h2 { font-size: 1.55rem; padding-right: 14px; }
.royal-subarea-page .royal-sub-editor h2::before {
  content:"";
  position:absolute; right:0; top:.35em;
  width:6px; height:1.25em; border-radius:999px;
  background: rgba(0,0,0,.18);
}
.royal-subarea-page .royal-sub-editor h3 { font-size: 1.25rem; }
.royal-subarea-page .royal-sub-editor h4 { font-size: 1.12rem; }

/* Lists */
.royal-subarea-page .royal-sub-editor ul,
.royal-subarea-page .royal-sub-editor ol{
  padding-right: 1.2rem;
  padding-left: 0;
  margin-bottom: 1.2rem;
  color: rgba(0,0,0,.72);
  line-height: 1.9;
}
.royal-subarea-page .royal-sub-editor li{ margin:.35rem 0; }

/* Images */
.royal-subarea-page .royal-sub-editor img{
  max-width:100%;
  height:auto;
  border-radius: 18px;
}

/* Tables */
.royal-subarea-page .royal-sub-editor table{
  width:100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.6rem;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
}
.royal-subarea-page .royal-sub-editor th,
.royal-subarea-page .royal-sub-editor td{
  padding: .9rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.royal-subarea-page .royal-sub-editor th{
  background: rgba(0,0,0,.04);
  font-weight: 950;
}

/* Gutenberg buttons */
.royal-subarea-page .royal-sub-editor .wp-block-button__link{
  border-radius: 999px;
  padding: .85rem 1.25rem;
  font-weight: 950;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

/* Reuse the same card styles as hub (scoped) */
.royal-subarea-page .royal-area-card{
  display:block;
  border-radius: 22px;
  overflow:hidden;
  background:#fff;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 34px rgba(0,0,0,.07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.royal-subarea-page .royal-area-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(0,0,0,.11);
}
.royal-subarea-page .royal-area-card-media{ position:relative; height: 190px; overflow:hidden; }
.royal-subarea-page .royal-area-card-media img{ width:100%; height:100%; object-fit:cover; transform: scale(1.03); }
.royal-subarea-page .royal-area-card-overlay{ position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.12)); }
.royal-subarea-page .royal-area-card-chip{
  position:absolute; left:16px; bottom:14px;
  color:#fff; padding:.35rem .7rem;
  border-radius:999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  font-size:.9rem; font-weight: 850;
}
.royal-subarea-page .royal-area-card-body{ padding: 18px; }
.royal-subarea-page .royal-card-title{ font-weight: 950; margin-bottom:.35rem; color:#111; line-height:1.35; }
.royal-subarea-page .royal-card-desc{ color: rgba(0,0,0,.63); line-height:1.8; margin-bottom:.85rem; min-height:54px; }
.royal-subarea-page .royal-area-card-foot{
  display:flex; align-items:center; justify-content:space-between; gap:.75rem;
  padding-top:10px; border-top: 1px solid rgba(0,0,0,.06);
}
.royal-subarea-page .royal-link{ font-weight: 900; color: rgba(0,0,0,.80); }
.royal-subarea-page .royal-mini-cta{
  font-weight: 950; color: rgba(0,0,0,.75);
  background: rgba(0,0,0,.06);
  padding:.25rem .55rem;
  border-radius:999px;
}

/* CTA Box */
.royal-sub-cta-box{
  display:flex; flex-wrap:wrap; gap: 14px;
  align-items:center; justify-content:space-between;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.01));
  border: 1px solid rgba(0,0,0,.06);
}
.royal-cta-label{
  display:inline-block;
  padding:.25rem .6rem;
  border-radius:999px;
  background: rgba(0,0,0,.06);
  font-weight: 950;
  margin-bottom: .35rem;
}
.royal-sub-cta-actions{ display:flex; flex-wrap:wrap; gap:.6rem; }

/* Keep phone/WA numbers readable */
.royal-subarea-page a[href^="tel:"],
.royal-subarea-page a[href*="wa.me/"],
.royal-subarea-page .royal-sub-cta,
.royal-subarea-page .royal-sub-cta-actions{
  direction:rtl;
  text-align:right;
}
.royal-subarea-page .royal-sub-cta a,
.royal-subarea-page .royal-sub-cta-actions a{ direction: rtl; }

@media (max-width: 992px){
  .royal-area-card-media{ height: 175px; }
}
@media (max-width: 576px){
  .royal-subarea-page .royal-sub-editor p{ font-size: 1rem; }
  .royal-subarea-page .royal-sub-editor h2{ font-size: 1.35rem; }
  .royal-area-card-media{ height: 165px; }
  .royal-sub-cta-actions a{ width:100%; text-align:center; }
}
