/* components/cp-hero.css — Country per-page hero (page-country-hub-v4, Figma 617:15966).
   Scope .rp-cp-hero. Navy #021143 right-image hero (city image + flag chip + single CTA).
   Enqueued on the v4 template (EN + AR). Figma 617:15966 hero. */

.rp-cp-hero {
  background: #021143;
  position: relative;
  overflow: hidden;
}

/* NOT positioned — so the absolute media uses .rp-cp-hero (full height/width)
   as its containing block, not this centered inner. */
.rp-cp-hero__inner {
  position: static;
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 40px 56px;
  min-height: 460px;
  box-sizing: border-box;
}

/* Breadcrumb */
.rp-cp-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}
.rp-cp-hero__breadcrumb a { color: rgba(255, 255, 255, .55); text-decoration: none; }
.rp-cp-hero__breadcrumb a:hover { color: #fff; }
.rp-cp-hero__breadcrumb .rp-bc-current { color: rgba(255, 255, 255, .9); }

/* Columns: content left. NOTE: must NOT be positioned — the absolute media
   needs .rp-cp-hero (full-width, full-height) as its containing block. */
.rp-cp-hero__columns {
  display: block;
}

.rp-cp-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
}

.rp-cp-hero__title {
  color: #FFFFFF;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 18px;
}

.rp-cp-hero__desc {
  color: rgba(255, 255, 255, .72);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 30px;
  max-width: 540px;
}

.rp-cp-hero__cta {
  display: inline-block;
  background: #114EF7;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: 100px;
  text-decoration: none;
}
.rp-cp-hero__cta:hover { background: #0E45D6; }

/* Right-side city image (v3 .hero_double_section_absolute_right gives it the
   bg image + absolute position; expand it to fill the hero's right ~46%).
   !important beats the stubborn v3 Webflow width/height/position. */
.rp-cp-hero .rp-cp-hero__media {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(46%, 680px) !important;
  height: 100% !important;
  max-width: none !important;
  background-size: cover;
  background-position: center;
  border-radius: 0;
}
/* Soft navy fade so the image blends into the hero on its left edge. */
.rp-cp-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #021143 0%, rgba(2, 17, 67, 0) 28%);
}

/* Flag chip top-right over the image (beats v3 .country-guide-deatils-flag-v3) */
.rp-cp-hero img.rp-cp-hero__flag {
  position: absolute !important;
  top: 20px !important;
  right: 24px !important;
  left: auto !important;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  height: 56px !important;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
  object-fit: contain;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  z-index: 2;
}

@media (max-width: 991px) {
  .rp-cp-hero__inner { padding: 32px 20px 36px; min-height: 0; }
  .rp-cp-hero__columns { display: flex; flex-direction: column; gap: 24px; }
  .rp-cp-hero__content { max-width: 100%; }
  .rp-cp-hero__title { font-size: 30px; }
  .rp-cp-hero__desc { font-size: 16px; }
  /* Image becomes a normal-flow banner below the text on mobile. */
  .rp-cp-hero__media {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 16px;
    order: 2;
  }
  .rp-cp-hero__media::before { display: none; }
}

