/*

Theme Name: Default

Theme URI: https://www.be4e-marketing.com/

Description: Default Theme By Be Group

Author: Ahmed Ramy

Author URI: https://www.be4e-marketing.com/

Template: Divi

Version: 1.0.0

License: GNU General Public License v2 or later

License URI: https://www.be4e-marketing.com/

*/



/*style the Divi blog pagination buttons*/

.pagination .alignleft a,
.pagination .alignright a {
  color: #ffffff;
	background: #0071fc;
	border: 2px solid #0070fc;
	padding: .7em 1.3em;
	border-radius: 50px;
	text-transform: capitalize;
	transition: all 0.3s ease-in-out;
}

/*style the Divi blog pagination buttons on hover*/

.pagination .alignleft a:hover,
.pagination .alignright a:hover {
	background: transparent;
  color: #0070fc;
	border: 2px solid #0070fc;
	transition: all 0.3s ease-in-out;
}
/*style the wp-pagenavi pagination links*/

.wp-pagenavi a,
.wp-pagenavi span {
	color: #000000;
	background: #f1f3f5;
	font-size: 1em !important;
	line-height: 1em;
	font-weight: bold !important;
	padding: 0.45em 0.8em !important;
	border-radius: 100px;
	transition: all .5s;
}


/*style the wp-pagenavi current page number*/

.wp-pagenavi span.current {
	color: #ffffff !important;
	background: #0070fc !important;
	border-radius: 100px;
}


/*style the wp-pagenavi pagination links on hover*/

.wp-pagenavi a:hover {
	color: #ffffff!important;
	background: #0070fc!important;
}


/*style the wp-pagenavi pages text*/

.wp-pagenavi .pages {
	background: none;
}


/*remove border and center the wp-pagenavi links*/

.wp-pagenavi {
	border-top: none;
	text-align: center;
	display: flex;
    align-items: center;
    justify-content: center;
}

.maxbutton-1.maxbutton{
	margin-right: 25px;
}

.ramy-contact-dsm .dp-col {
      margin-bottom: 10px;
  }

.widget_text{
	background-color: #66cc66;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}
.widget_text .et_pb_section {
    background-color: transparent;
}
.widgettitle{
	color: #fff;
}

.widget_recent_entries{
	background-color: #66cc66;
    padding: 15px;
    border-radius: 15px;
}
.widget_recent_entries.et_pb_widget li a {
    color: #FFF;
}

div#block-8{
	margin-bottom: -22px;
	text-align:center;
	color: #FFF;
}

/*Sticky Buttons*/
.sticky-buttons{position:fixed; bottom:0; z-index:1000;}
.sticky-buttons.left{left:0;}
.sticky-buttons.right{right:0;}
.sticky-buttons a{display:flex; align-items:center; justify-content:center; margin:10px; color:#ccc; fill:#ccc; 
background-color:#66cc66; box-shadow:0 2px 5px 0px #777; transition:.4s all;}
.sticky-buttons.square a{border-radius:0;}
.sticky-buttons.rounded a{border-radius:5px;}
.sticky-buttons.round a{border-radius:50%;}
.sticky-buttons.small a{width:40px; height:40px; font-size:22px;}
.sticky-buttons.medium a{width:50px; height:50px; font-size:28px;}
.sticky-buttons a:hover{cursor:pointer; color:#fff; fill:#fff;}
.sticky-buttons a.whatsapp{background-color:#4dc247;}
.sticky-buttons a.messenger{background-color:#0084FF;}
.sticky-buttons.inactive a.sticky_toggler, .sticky-buttons a.sticky_toggler{transform:rotate(0deg);}
.sticky-buttons.active a.sticky_toggler{transform:rotate(180deg);}
.sticky-buttons a svg{width:75%; height:75%;}
.sticky-buttons .hidden-data{background-color:#777; width:500px; margin:10px 0; padding:10px; font-size:16px; position:fixed; bottom:0; z-index:101; box-shadow:0 2px 5px 0px #777; transition:.4s all;}
.sticky-buttons.square .hidden-data{border-radius:0;}
.sticky-buttons.rounded .hidden-data, .sticky-buttons.round .hidden-data{border-radius:5px;}
.sticky-buttons.small .hidden-data{max-width:calc(100% - 70px);}
.sticky-buttons.medium .hidden-data{max-width:calc(100% - 80px);}
.sticky-buttons.left .hidden-data{left:0; transform:translateX(-100%);}
.sticky-buttons.active.left.small .hidden-data.active{transform:translateX(60px);}
.sticky-buttons.active.left.medium .hidden-data.active{transform:translateX(70px);}
.sticky-buttons.right .hidden-data{right:0; transform:translateX(100%);}
.sticky-buttons.active.right.small .hidden-data.active{transform:translateX(-60px);}
.sticky-buttons.active.right.medium .hidden-data.active{transform:translateX(-70px);}
.sticky-buttons .hidden-data form br{display:none;}
.sticky-buttons .hidden-data form textarea{height:auto; display:block; width:100%;}
.sticky-buttons .hidden-data form input{line-height:36px!important; display:block; width:100%;}
.sticky-buttons .hidden-data form .wpcf7-form-control-wrap{margin-top:5px!important; margin-bottom:5px!important; display:block;}

/* Search Template */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
@media screen and (max-width:800px){
	.projects-grid{
		grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
	}
}

.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
	    border-radius: 12px 12px 0 0;
}

.project-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-badges {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  direction: rtl;
	align-items: center;
}

.badge {
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.project-badges.bot {
    top: auto;
    bottom: 15px;
  gap:0;
	z-index: 1;
}
span.badge.badge-type {
    background: transparent;
    padding: 0 5px;
}

.badge-status.status-available { background: #2e7d32; }   /* متاح للحجز */
.badge-status.status-sold { background: #c62828; }         /* مباع بالكامل */
.badge-status.status-soon { background: #f9a825; }         /* قريباً */

.project-content {
  padding: 18px;
  text-align: right;
  direction: rtl;
}

.project-title {
  font-size: 18px;
  margin-bottom: 10px;
  font-family: 'IBM Plex Sans Arabic'!important;
}

.project-title a {
  color: #111;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-title a:hover {
  color: #1e88e5;
}

.project-desc {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}

.no-results {
  text-align: center;
  font-size: 16px;
  color: #777;
  padding: 40px 0;
}

/* Pagination */
.sf-pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  direction: rtl;
}

.sf-pagination ul {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.sf-pagination a,
.sf-pagination span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.sf-pagination a:hover {
  background: #1e88e5;
  color: #fff;
  border-color: #1e88e5;
}

.sf-pagination .current {
  background: #1e88e5;
  color: #fff;
  border-color: #1e88e5;
}


.pro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
	background-image: linear-gradient(180deg, RGBA(255, 255, 255, 0) 0, #000000 100%) !important;
}