/* =============================================
   Custom Header/Menu Styling
   Moved from style.css to custom-style.css
   ============================================= */

/* 1. GLOBAL RESET & BOX-SIZING */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. SITE CONTENT & LAYOUT */
.site-content {
  padding: 0rem;
}

/* 3. HEADER & NAVBAR */
.header-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  z-index: 1000;
  width: 100%;
}

.header-navbar__menu:not(:last-child) {
  margin-right: 0;
}

html[lang="ar"] .header-navbar__menu:not(:last-child) {
 margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Logo */
.header-logo .custom-logo {
  max-height: 55px !important;
  width: auto !important;
  transform: scale(0.8);
  transform-origin: left center;
  margin: 0;
}

html[lang="ar"] .header-logo .custom-logo {
  transform-origin: right center;
  margin-right: -25px;
}

/* Main menu links */
.header-navbar__menu .menu > li,
.header-navbar__burger .menu > li {
  margin-inline: 8px !important;
}
.header-navbar__menu .menu > li > a,
.header-navbar__burger .menu > li > a {
  font-size: 14px !important;
}

/* Sub-menu items */
.header-navbar__menu .sub-menu li a,
.header-navbar__burger .sub-menu li a {
  font-size: 13px !important;
  white-space: nowrap;
}

/* Submenu hover & visibility */
.header-navbar__menu .menu > li.menu-item-has-children:hover > .sub-menu,
.header-navbar__burger .menu > li.menu-item-has-children:hover > .sub-menu,
.hp-menu__item--user-account:hover > .sub-menu {
  visibility: visible !important;
  opacity: 1 !important;
}
.header-navbar__menu .menu > li.menu-item-has-children > .sub-menu,
.header-navbar__burger .menu > li.menu-item-has-children > .sub-menu,
.hp-menu__item--user-account > .sub-menu {
  top: calc(100% - 15px) !important;
  margin-top: 0 !important;
  transition: none !important;
  z-index: 9999 !important;
  width: auto !important;
  min-width: unset !important;
  max-width: unset !important;
}

html[lang="ar"] .header-navbar__menu .menu > li.menu-item-has-children > .sub-menu,
.header-navbar__burger .menu > li.menu-item-has-children > .sub-menu,
.hp-menu__item--user-account > .sub-menu {
  top: calc(100% - 5px) !important;
}


/* Mobile burger adjustments */
.header-navbar__burger .menu {
  width: 100%;
  max-width: 100%;
  padding-inline: 1rem;
}
.header-navbar__burger .menu > li.menu-item-has-children > .sub-menu {
  top: 100% !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Reduce user account text */
.hp-menu__item span,
.hp-menu__item--user-account span {
  font-size: 12px !important;
}

/* Header bottom padding */
.header-navbar {
  padding-block: 0.5rem !important;
}
.header-navbar__start,
.header-navbar__end {
  padding-block-end: 0.25rem !important;
}
.header-logo {
  margin-block-end: 0 !important;
}
.header-navbar__start {
  margin-inline-end: -1rem;
}




/* =============================================
   Hero Section
   =============================================*/
body:not(.page-template-page-hero-block) .header-hero {
  min-height: 30vh;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  position: relative;
  overflow: hidden;
}
body:not(.page-template-page-hero-block) .header-hero::before {
  content: '';
  position: absolute;
  inset: 0;
 /* background-color: rgba(2, 91, 165, 0.9);*/
  z-index: 1;
}
body:not(.page-template-page-hero-block) .header-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  color: #fff;
  padding-block-start: 5em;
}
body:not(.page-template-page-hero-block) .header-hero .entry-title {
  font-size: 32px;
  margin-bottom: 10px;
}
body:not(.page-template-page-hero-block) .header-hero .hero-subtitle {
  font-size: 18px;
  color: #fff;
  margin-top: 0;
  margin-bottom: 1rem;
}
.page-id-16 .header-hero::before {
  display: none !important;
}
.page-id-16 .header-hero {
  background-repeat: no-repeat !important;
  background-position: center right !important;
  background-size: cover !important;
  background-color: #ffffff !important;
}
.page-id-14 .header-hero {
  min-height: 30vh !important;
  position: relative;
  background-size: cover !important;
  background-position: right !important;
  background-repeat: no-repeat !important;
}
.page-id-14 .header-hero__content {
  padding: 50px 20px;
}

@media (max-width: 768px) {
  body.page-id-14 .header-hero {
    min-height: 20vh !important;
    background-position: center left !important;
    background-repeat: no-repeat !important;
    position: relative;
    overflow: hidden;
    background-size: cover !important;
  }
  
  .page-id-14 .header-hero__content {
  padding: 0px 0px;
}
}

/*@media (max-width: 768px) {*/
/*.kb-row-layout-id20_904413-d0 { */
/*    background-color: #001b2e; */
/*    background-image: url('https://petra-realestate.com/wp-content/uploads/2025/10/petra_real_estate_join_our_team-scaled.png'); */
/*    background-size: cover; */
/*    background-position: 26% 56%; */
    
/*}*/
/*}*/

/* =============================================
   WhatsApp Floating Button
   =============================================*/
.petra-whatsapp-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}
.petra-whatsapp-btn {
  background-color: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border-radius: 50%;
  font-size: 2rem;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.petra-whatsapp-btn:hover {
  transform: scale(1.1);
}
.petra-whatsapp-btn.offline {
  background-color: #aaa;
  cursor: not-allowed;
  pointer-events: none;
}
.petra-whatsapp-tooltip {
  position: absolute;
  inset-block-end: 70px;
  inset-inline-end: 0;
  background-color: #333;
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.petra-whatsapp-wrapper:hover .petra-whatsapp-tooltip {
  visibility: visible;
  opacity: 1;
}
@media (max-width: 480px) {
  .petra-whatsapp-wrapper {
    inset-block-end: 15px;
    inset-inline-end: 15px;
  }
  .petra-whatsapp-btn {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.6rem;
  }
}

/* =============================================
   Global Button Styling
   =============================================*/
button,
.button,
.wp-block-button__link,
input[type="submit"],
input[type="button"] {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600;
}
.hp-menu__item--listing-submit {
  border-radius: 50px !important;
  padding: 0.5em 1.5em;
  background-color: #FCB900;
  color: #fff;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 14px !important;
}

/* =============================================
   Home-blog Section
   =============================================*/
.home-blog .wp-block-getwid-recent-posts__post-title a {
  font-family: Helvetica, sans-serif !important;
  font-size: 24px !important;
  font-weight: bold !important;
  line-height: 1.3 !important;
  color: inherit !important;
}
.home-blog .wp-block-getwid-recent-posts__post-meta {
  font-family: Verdana, sans-serif !important;
  font-size: 16px !important;
  color: #555 !important;
  margin-bottom: 8px;
}
.home-blog .wp-block-getwid-recent-posts__post-excerpt {
  font-family: Verdana, sans-serif !important;
  font-size: 18px !important;
  color: #333 !important;
  margin-bottom: 20px;
}
@media (max-width: 767px) {
  .home-blog .wp-block-getwid-recent-posts__post-title a {
    font-size: 20px !important;
  }
  .home-blog .wp-block-getwid-recent-posts__post-excerpt {
    font-size: 15px !important;
  }
}

/* =============================================
   Footer CTA Section
   =============================================*/


.footer-cta {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw !important;
  max-width: 100vw; /* Just to be safe */
  transform: translateX(-50%);
  box-sizing: border-box;
  padding: 80px 60px;
  background-color: #F2F8FF;
  margin-top: 30px;
}

.footer-cta__inner {
  display: flex;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
  height: 530px;
}
.footer-cta__video {
  flex: 0 0 30%;
  position: relative;
  height: 100%;
}
.footer-cta__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.footer-cta__content {
  flex: 0 0 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer-cta__content h2 {
  font-size: 40px;
  margin: 0 0 20px;
  line-height: 1.2;
}
.footer-cta__content p {
  font-size: 18px;
  margin: 0 0 30px;
  color: #555;
}


@media (min-width: 768px) and (max-width: 991px) {
  .footer-cta { 
      padding: 60px !important; 
      
  }
  .footer-cta__content h2 { 
      padding: 20px 0 !important; 
      
  }
}
@media (max-width: 767px) {
  .footer-cta { 
      padding: 40px !important;
      
      }
  .footer-cta__inner { 
      flex-direction: column !important; 
      height: auto !important; 
      min-height: 420px !important; 
      align-items: stretch !important; 
      
  }
  .footer-cta__video { 
      flex: 0 0 auto !important; 
      width: 100% !important; 
      max-width: 100% !important; height: 250px !important; 
      padding-top: 0 !important; 
      margin: 0 auto 30px !important; 
      
  }
  .footer-cta__video iframe { 
      width: 100% !important; 
      height: 100% !important; 
      position: absolute!important; 
      top:0; left:0; 
      
  }
  .footer-cta__content { 
      flex: 1 1 100% !important; 
      justify-content: center!important; 
      padding: 0 20px!important; 
      
  }
}
.footer-cta__content h2 { 
    font-family: Helvetica,sans-serif!important; 
    font-weight:bold!important; 
    font-size:clamp(32px,4vw,40px)!important; 
    margin:0 0 20px; 
    
}
.footer-cta__content p { 
    font-family:Verdana,sans-serif!important; 
    font-size:clamp(16px,3vw,20px)!important; 
    margin:0 0 30px; 
    
}
.footer-cta__button { 
    font-family:Helvetica,sans-serif!important; 
    font-size:clamp(12px,2.5vw,13px)!important; 
    padding:1em 2em!important; 
    border-radius:260px!important; 
    background-color:#FCB900!important; 
    color:#fff!important; 
    text-decoration:none!important; 
    font-weight:600!important; 
    box-shadow:20px 20px 30px 0 rgba(0,0,0,0.2)!important; 
    transition:transform .2s!important; 
    
}
.footer-cta__button:hover { 
    transform:translateY(-3px)!important; 
    
}



/* RTL override */
html[lang="ar"] .footer-cta {
  direction: rtl;
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

@media(max-width:767px){
    html[lang="ar"] .footer-cta__content{
        align-items:center !important;
        text-align:center !important;
        overflow:hidden !important;
        
    }
    
}

/* =============================================
   Footer Contact Section
   =============================================*/
.footer-contact-section { 
    padding:40px 20px; 
    background-color:#001B2E; 
    color:#ffffff; 
    
}
.container { 
    max-width:1200px; 
    margin:0 auto; 
    padding:0 20px; 
    
}
.footer-contact-container { 
    display:flex; 
    flex-wrap:wrap; 
    gap:40px; 
    align-items:stretch; 
    
}
.contact-info-column, .contact-form-column { 
    flex:1; 
    min-width:300px; 
    display:flex; 
    flex-direction:column; 
    justify-content:center; 
    
}
.contact-info-inner { 
    display:flex; 
    flex-direction:column; 
    align-items:flex-start; 
    text-align:left; 
    
}

html[lang="ar"] .contact-info-inner { 
    text-align:right; 
    
}
.footer-contact-logo { 
    max-width:220px; 
    margin-bottom:30px; 
    filter:brightness(0) invert(1); 
    
}

@media (max-width: 768px) {
    .footer-contact-logo { 
        align-self: center;
    }
}
    
.footer-contact-heading { 
    margin-bottom:25px; 
    font-family:"Helvetica Bold",Helvetica,Arial,sans-serif; 
    font-weight:700; font-size:30px; 
    color:#ffffff; 
    position:relative; 
    padding-top:25px;
}
.footer-contact-heading::before { 
    content:''; 
    position:absolute; 
    top:0; left:0; 
    width:70px; 
    height:3px; 
    background-color:#FCB900; 
    
}
.address-section, .contacts-section { 
    display:flex; 
    width:100%; 
    margin-bottom:25px; 
    
}
.address-heading h3, .contacts-heading h3 { 
    font-family:Verdana,Geneva,sans-serif; 
    font-size:20px; 
    font-weight:700; 
    color:#FCB900; 
    margin:0 0 15px; 
    
}
.address-details p, .contact-details { 
    font-size:20px; 
    line-height:1.5; 
    
}
.address-heading, .contacts-heading { 
    flex:0 0 30%; 
    max-width:30%; 
    
}
.address-details, .contact-details { 
    flex:0 0 70%; 
    max-width:70%; 
    
}
.contact-details { 
    display:flex; 
    flex-direction:column; 
    
}
.contact-phone, .contact-email { 
    text-decoration:none; 
    color:#ffffff; 
    transition:all .3s ease; 
    margin-bottom:10px; 
    position:relative; 
    padding-left:30px; 
    font-size:20px; 
    
}
.contact-phone::before { 
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* solid style */
  content: "\f095"; /* phone icon Unicode */
  position: absolute;
  left: 0;
  color: white; 
    
}
.contact-email::before { 
    content:'✉️'; 
    position:absolute; 
    left:0; 
    
}
.contact-phone:hover, .contact-email:hover { 
    color:#FCB900; 
    transform:translateX(5px); 
    
}


.wpforms-container .wpforms-form .wpforms-field-label {
    display: none !important;
}

div.wpforms-container-full .wpforms-field.wpforms-field-checkbox ul li input + label {
    color: white !important;
}

.wpforms-submit {
    font-family: Helvetica,sans-serif !important;
  font-size: clamp(12px,2.5vw,13px) !important;
  padding: 0.75em 2em !important;
  border-radius: 260px !important;
  background-color: #FCB900 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  box-shadow: 20px 20px 30px 0 rgba(0,0,0,0.2) !important;
  transition: transform .2s !important;
}
    


/* =============================================
   Start Social Contact footer  Section
   ============================================= */
   
 /* Footer Quick Links Menu */
 
 .widget--footer .widget__title {
     text-align: center;
 }
 
 .widget--footer .widget__title::before {
     display: none;
}
     
.widget_nav_menu .menu {
  margin-left: 0;
  list-style: none;
  padding: 0;
  text-align: center;
}

/* Center items on mobile */
@media (max-width: 768px) {
  .widget_nav_menu .menu {
    text-align: center;
  }

  .widget_nav_menu .menu li {
    display: block;
    margin: 5px 0;
  }

  .widget_nav_menu .menu li a {
    display: inline-block;
  }
}

.widget_nav_menu li::before {
    color: #FCB900 !important;
    
}


   
/* Social Contact Section */
.social-contact-section {
    text-align: center;
    padding: 20px;
    background-color: #001A2D; /* Dark blue background */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.contact-phone-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 20px;
    color: #FCB900; /* Yellow icon */
}

.footer-phone {
    font-family: 'Helvetica Bold', Helvetica, Arial, sans-serif;
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-phone:hover {
    color: #FCB900;
    text-decoration: underline;
}

.social-contact-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.social-contact-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #FCB900;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ffffff; /* Yellow background */
    color: #FCB900; /* Dark blue text */
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .social-contact-section {
        padding: 15px;
    }
    
    .contact-phone-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-phone {
        font-size: 18px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .social-contact-section h4 {
        font-size: 16px;
    }
    
    .footer-phone {
        font-size: 16px;
    }
    
    .social-icons a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ===== Logo & Text Widget ===== */
.footer-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 20px;
  /*filter: brightness(0) invert(1); /* White logo */
}

.footer-tagline {
  color: #000000;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  max-width: 300px;
  margin: 0;
  padding: 0 10px;
  position: relative;
}

.footer-tagline::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: #FCB900;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .footer-tagline {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .footer-logo {
    max-width: 160px;
    margin-bottom: 15px;
  }
  
  .footer-tagline {
    font-size: 16px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-logo {
    max-width: 140px;
  }
  
  .footer-tagline {
    font-size: 15px;
  }
  
  .footer-tagline::after {
    bottom: -12px;
    width: 50px;
  }
}


   .widget_archive li::before, .widget_categories li::before, .widget_meta li::before, .widget_nav_menu li::before, .widget_product_categories li::before, .wp-block-archives li::before, .wp-block-categories li::before {
       color: #FCBA00;
  left: 5rem;
}
   

/* =============================================
   End Social Contact footer  Section
   ============================================= */


/* =============================================
   Start footer  Section
   ============================================= */

.footer-navbar {
    justify-content:center !important;
}

 .footer-navbar__menu ul {
       flex-wrap: nowrap;
   }

@media (max-width: 992px) {
     .footer-navbar__menu ul {
         font-size: 12px;
     }
}

html[lang="ar"] .footer-navbar__menu ul li a {
  color: rgba(15,23,39,.45);
  transition: color .25s;
  padding-left: 15px;
}
/* =============================================
   End footer  Section
   ============================================= */

/* =============================================
   Card Listing
   =============================================*/
body:not(.single-hp_listing) .hp-listing__footer .hp-listing__attributes--primary { display:none!important; }
body.single-hp_listing .hp-listing__footer .hp-listing__attributes--primary { display:none!important; }
body.single-hp_listing .hp-section .hp-listing__attribute--features,
body.single-hp_listing .hp-section .hp-listing__attribute--amenities { display:none!important; }
.hp-listing--view-block .hp-listing__attributes--secondary .hp-listing__attribute { display:none!important; }
.hp-listing-category--view-block .hp-listing-category__item-count { background-color:#FCB900; }
.hp-listing--view-block .hp-listing__categories a,
.hp-listing--view-page .hp-listing__categories a { background-color:#FCB900; color:#fff!important; }
.hp-listing--view-block .hp-listing__categories a:hover,
.hp-listing--view-page .hp-listing__categories a:hover { background-color:#0785CA!important; color:#fff!important; }
.hp-listing--view-page .hp-listing__attributes--primary .hp-listing__attribute:nth-child(2),
.hp-listing--view-page .hp-listing__attributes--primary .hp-listing__attribute:nth-child(3),
.hp-listing--view-page .hp-listing__attributes--primary .hp-listing__attribute:nth-child(4) { color:#0785CA; }

/* =============================================
   TranslatePress Plugin
   =============================================*/
#trp-floater-ls { background-color:#FCB900!important; }
.trp-color-dark #trp-floater-ls-current-language a,
.trp-color-dark #trp-floater-ls-language-list a { color:#fff!important; font-weight:bold!important; }

/* =============================================
   RTL Global Override
   =============================================*/
html[lang="ar"] { direction:rtl; }
@media(max-width:992px) {
  html[lang="ar"] .header-navbar,
  html[lang="ar"] .header-navbar__burger .menu {
    padding-inline:1rem;
    max-width:100%;
  }
  html[lang="ar"] .header-navbar__burger > a {
      padding-left: 20px;
  }
}


html[lang="ar"] .header-navbar__menu ul li.menu-item-has-children::after {
    padding-right: 5px;
}

html[lang="ar"] .header-navbar__menu > ul > li.menu-item-has-children::after {
  margin-left: 0px;;
}

html[lang="ar"] .wp-block-kadence-advancedheading.kt-adv-heading6_bd9a34-cf, .wp-block-kadence-advancedheading.kt-adv-heading6_bd9a34-cf[data-kb-block="kb-heading6_bd9a34-cf"] {
    text-align: right;
}

html[lang="ar"] .wp-block-kadence-advancedheading.kt-adv-heading6_3f5d85-c3, .wp-block-kadence-advancedheading.kt-adv-heading6_3f5d85-c3[data-kb-block="kb-adv-heading6_3f5d85-c3"] {
    text-align: right;
}




html[lang="ar"] .header-navbar__burger ul li.menu-item-has-children::after {
    content: '\f104';
    right: 60%;
}


html[lang="ar"] .header-navbar__burger .menu > li.menu-item-has-children > .sub-menu {
    padding-right:35px !important;
    
}


html[lang="ar"] .fa-user::before {
     padding-left: 10px;
}



html[lang="ar"] .fa-edit::before, .fa-pen-to-square::before {
  margin-left: 10px;
}


html[lang="ar"] .rtl-table {
    direction: rtl;
    text-align: right;
}



html[lang="ar"] .hp-listing__title, .hp-listing__categories {
    text-align: right;
}


.about-youtube{
    height: 50%;
}

body.single-hp_listing .hp-row.hp-listing.hp-listing--view-page {
    margin-top: 70px;
}

/******************************************/

/* Hero base Blog */
/* Full-bleed responsive hero (merged from both snippets) */
.listinghive-hero__header {
  /* full-bleed trick */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 70px;
  width: 100vw;

  /* visual / layout */
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;

  /* responsive height & spacing */
  min-height: 40vh;
  padding: 3rem 0;

  /* background + subtle gradient */
  background-image:
    linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.08)),
    url('https://petra-realestate.com/wp-content/uploads/2025/10/petra_real_estate_blog-scaled.png');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;

  z-index: 0;
}

/* overlay for readability */
.listinghive-hero__header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.35);
  z-index: 1;
  pointer-events: none;
}

/* ensure content sits above overlay */
.listinghive-hero__header > * {
  position: relative;
  z-index: 2;
  margin: 0;
}

/* responsive tweaks */
@media (min-width: 48em) {
  .listinghive-hero__header {
    padding: 6rem 0;
    min-height: 40vh;
  }
}
@media (min-width: 75em) {
  .listinghive-hero__header {
    padding: 9rem 0;
    min-height: 50vh;
  }
}

/* parallax: enable fixed on desktop, fallback to scroll on mobile */
@media (min-width: 768px) {
  .listinghive-hero__header {
    background-attachment: fixed;
  }
}
@media (max-width: 767px) {
  .listinghive-hero__header {
    background-attachment: scroll;
    background-position: center;
  }
}



.site .listinghive-hero__header,
.page .listinghive-hero__header,
.container .listinghive-hero__header,
.site-content .listinghive-hero__header {
  padding-left: 0 !important;
  padding-right: 0 !important;
}


@media (max-width: 767px) {
    .post--archive .post__header--cover h2 {
        font-size: 20px;
      font-weight: bold;
      margin-bottom: -20px;
    }
    
    .post--archive .post__header--cover .post__categories {
        padding-top: 1rem;
    }
}



.listinghive-hero__header h1 {
    color: white; /* change the hero title color */
}


/* =========================
   GG breadcrumbs styles
   ========================= */

/************ Start breadcrumbs for blog  ************************/

.rank-math-breadcrumb p{
    margin: 30px;
}    
 
/*********************************** Moved to this plugin: " GravityGigs — HivePress Breadcrumbs (Placement + JSON-LD) " ***********************/

/************ End breadcrumbs for blog and listing ************************/

/* Start cateory listing image remove*/
.hp-listing-category__image img {
    display: none;
}

.hp-listing-category--view-block .hp-listing-category__image img {
  border-radius: 3px;
  display: none;
  padding-bottom: 100px;
}

.hp-listing-category--submit-block .hp-listing-category__image a::after, .hp-listing-category--view-block .hp-listing-category__image a::after {
    background-color: inherit;
}

.hp-listing-category--view-block {
  color: #ffffff;
  padding-bottom: 215px;
}

.hp-listing-category--submit-block .hp-listing-category__image a::after, .hp-listing-category--view-block .hp-listing-category__image a::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background-image: linear-gradient(rgba(108, 168, 210, 0.64), rgb(3, 88, 136));
}

.hp-listing-category__name {
    font-size: 1.4rem;
}
/* End cateory listing image remove*/


/* Start hero image and title for categoeries*/


/* ✅ Apply hero background only on hp_listing_category taxonomy archive pages */
body.tax-hp_listing_category .header-hero {
  background-image: url('https://petra-realestate.com/wp-content/uploads/2025/10/petra_real_estate_properties-scaled.png') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ✅ Ensure the content sits above the background */
body.tax-hp_listing_category .header-hero .header-hero__content {
  position: relative;
  z-index: 2;
}

/* ✅ Remove any pseudo-element overlay that could hide the background */
body.tax-hp_listing_category .header-hero::before {
  display: none !important;
}


/*body:not(.page-template-page-hero-block) .header-hero::before {*/
 /* content: ""; /* Required for pseudo-element to appear */
/*  position: absolute;*/
/*  top: 0;*/
/*  left: 0;*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  background-image: url('https://petra-realestate.com/wp-content/uploads/2025/10/petra_real_estate_properties-scaled.png');*/
/*  background-size: cover;*/
/*  background-position: center;*/
 /* opacity: 1; /* Optional transparency */
 /* z-index: 1; /* Keep it behind text if needed */
/*}*/

body:not(.page-template-page-hero-block) .header-hero .entry-title {
      background-color: #168dcdb0;
}

/* End hero image and title for categoeries*/


/* End of custom-style.css */

