/* 
 Theme Name:   Zeald Website Theme
 Theme URI:    
 Description:  Divi child theme containing any special customisations for this website
 Author:       Zeald
 Author URI:   http://www.zeald.com
 Template:     Divi
 Version:      3.0

 /* == Add your own styles below this line ==
--------------------------------------------*/

#breadcrumbs {
    margin-top: 20px;
    margin-bottom: 40px;
	font-size: 13px;
}

.search-results #breadcrumbs { display: none; }

/* Hero headings (e.g. "Villas/Properties") use a 3rem minimum fluid size, which is wider
   than the column on small phones and gets clipped / causes horizontal scroll. */
@media (max-width: 422px) {
	.et_pb_heading .et_pb_heading_container h1 {
		font-size: clamp(1.75rem, 9vw, 3rem) !important;
		overflow-wrap: anywhere;
	}
}

/* Blog grid cards (Divi Blog module on the Posts page / archives): image on top, then date,
   title, excerpt and a green arrow. Whole card is clickable via the title link. */
.et_pb_blog .et_pb_blog_posts.et_grid_module { gap: 30px 30px; }
.et_pb_blog .et_pb_blog_posts.et_grid_module article.et_pb_post {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0 18px 22px;
	background: #f0f2f6;
	border: 0;
	border-bottom: 1px solid #069246;
	overflow: hidden;
}
.et_pb_blog article.et_pb_post .et_pb_image_container {
	order: 1;
	margin: 0 -18px 25px;
}
.et_pb_blog article.et_pb_post .et_pb_image_container img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.et_pb_blog article.et_pb_post .et_pb_image_container a.entry-featured-image-url { display: block; line-height: 0; margin-bottom: 0; }
.et_pb_blog article.et_pb_post .et_overlay { display: none; }
.et_pb_blog article.et_pb_post .post-meta {
	order: 2;
	font-size: 0;
	line-height: 1;
	margin: 0 0 8px;
}
.et_pb_blog article.et_pb_post .post-meta .author,
.et_pb_blog article.et_pb_post .post-meta .entry-categories { display: none; }
.et_pb_blog article.et_pb_post .post-meta .published {
	font-size: 12px;
	font-weight: 700;
	color: #28377A;
}
.et_pb_blog article.et_pb_post .entry-title {
	order: 3;
	margin: 0 0 10px;
	padding: 0;
	font-size: 24px;
	line-height: 1.1;
	font-weight: 500;
	color: #0c0c0c;
}
.et_pb_blog article.et_pb_post .entry-title a { color: inherit; }
.et_pb_blog article.et_pb_post .entry-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.et_pb_blog article.et_pb_post .post-content {
	order: 4;
	font-size: 17px;
	line-height: 1.55;
	color: #383a3c;
}
.et_pb_blog article.et_pb_post .post-content p {
	padding-bottom: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.et_pb_blog article.et_pb_post::after {
	content: "";
	order: 5;
	width: 31px;
	height: 31px;
	margin-top: 16px;
	visibility: visible;
	clear: none;
	background: url("images/arrow-green.svg") center / contain no-repeat;
}

/* Single blog post (Theme Builder "All Posts" body layout): grey "Back to blog" bar, then a
   2/3 + 1/3 layout with the post on the left and Recent Posts + CTA on the right. */
.single-post .et_pb_row_0_tb_body,
.single-post .et_pb_row_1_tb_body { width: 80%; max-width: 1280px; }
.single-post .et_pb_section_0_tb_body { padding: 0; }
.single-post .et_pb_section_0_tb_body .et_pb_row { padding: 0; }
.single-post .et_pb_section_0_tb_body .et_pb_text { padding: 0; }
.single-post .et_pb_section_0_tb_body .et_pb_text_inner p { padding: 0; }
.single-post a.al-back,
.single-post .et_pb_posts_nav a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 700;
	color: #0c0c0c;
	line-height: 1;
}
.single-post a.al-back { padding: 22px 0; }
.single-post a.al-back::before,
.single-post .et_pb_posts_nav .nav-previous a::before,
.single-post .et_pb_posts_nav .nav-next a::after {
	content: "";
	flex: none;
	width: 34px;
	height: 34px;
	background: url("images/arrow-green-left.svg") center / contain no-repeat;
}
.single-post .et_pb_posts_nav .nav-next a::after { background-image: url("images/arrow-green.svg"); }

.single-post .et_pb_post_title { margin-bottom: 30px; }
.single-post .et_pb_post_title .et_pb_title_container { text-align: left; margin-bottom: 20px; }
.single-post .et_pb_post_title h1.entry-title { font-size: clamp(2rem, 1.3rem + 2.3vw, 3rem); font-weight: 700; line-height: 1.15; margin: 0; padding: 0; }
.single-post .et_pb_title_meta_container { margin: 8px 0 0; padding: 0; font-size: 0; line-height: 1; }
.single-post .et_pb_title_meta_container .published { font-size: 12px; font-weight: 700; color: #28377A; }
.single-post .et_pb_title_meta_container .author,
.single-post .et_pb_title_meta_container .comments-number,
.single-post .et_pb_title_meta_container a[rel~="category"] { display: none; }
.single-post .et_pb_title_featured_container img { display: block; width: 100%; height: auto; }
.single-post .et_pb_post_content { margin-bottom: 40px; }

.single-post .et_pb_posts_nav { padding: 0; border: 0; }
.single-post .et_pb_posts_nav span.nav-previous,
.single-post .et_pb_posts_nav span.nav-next { position: static; }
.single-post .et_pb_posts_nav .meta-nav { display: none; }
.single-post .et_pb_posts_nav { display: flex; justify-content: space-between; margin-top: 50px; }

.single-post .al-recent-posts { list-style: none; margin: 0 0 40px; padding: 0; }
.single-post .al-recent-posts li { margin: 0; padding: 14px 0; border-bottom: 1px solid #d5d8de; }
.single-post .al-recent-posts li:first-child { padding-top: 6px; }
.single-post .al-recent-posts li:last-child { border-bottom: 0; }
.single-post .al-recent-posts a { color: #383a3c; font-size: 15px; }
.single-post .et_pb_column_1_tb_body .et_pb_text h3 { font-size: 22px; font-weight: 500; margin-bottom: 14px; padding: 0; }
.single-post .al-cta { background: #28377a; color: #fff; border-radius: 8px; padding: 30px 28px; }
.single-post .al-cta h3 { color: #fff; font-size: 28px; font-weight: 700; line-height: 1.15; margin-bottom: 18px; }
.single-post .al-cta p { color: #fff; font-size: 17px; line-height: 1.6; }
.single-post a.al-btn { display: inline-block; background: #069246; color: #fff; font-weight: 700; padding: 13px 20px; border-radius: 3px; margin-top: 6px; }
@media (max-width: 980px) {
	.single-post .et_pb_row_0_tb_body,
	.single-post .et_pb_row_1_tb_body { width: 90%; }
}

/* Search results page (search.php): banner, search bar + count, card grid, empty state. */
.al-search-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	padding: 60px 20px;
	background: #28377a center / cover no-repeat;
	position: relative;
}
.al-search-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.al-search-banner h1 { position: relative; margin: 0; padding: 0; color: #fff; font-weight: 700; font-size: clamp(2rem, 1.3rem + 2.3vw, 3rem); text-align: center; }
.al-search-wrap { width: 80%; max-width: 1280px; margin: 0 auto; padding: 50px 0 80px; }
.al-search-bar { margin-bottom: 40px; }
.al-search-bar form { display: flex; gap: 12px; max-width: 640px; }
.al-search-bar input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 18px;
	font-size: 17px;
	color: #0c0c0c;
	background: #fff;
	border: 1px solid #c9ced8;
	border-radius: 3px;
}
.al-search-bar input[type="search"]:focus { outline: 2px solid #069246; outline-offset: 0; border-color: #069246; }
.al-search-bar button {
	height: 52px;
	padding: 0 28px;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	background: #069246;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}
.al-search-bar button:hover { background: #057a3b; }
.al-search-count { margin: 18px 0 0; padding: 0; font-size: 17px; color: #383a3c; }

.al-search-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.al-search-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	background: #f0f2f7;
	border-bottom: 1px solid #069246;
	overflow: hidden;
}
.al-search-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: #dfe3ee;
	line-height: 0;
}
.al-search-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-search-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	color: #fff;
	background: #28377a;
	border-radius: 3px;
}
.al-search-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 22px; }
.al-search-date { margin: 0 0 8px; padding: 0; font-size: 12px; font-weight: 700; line-height: 1; color: #1b2a6b; }
.al-search-card .entry-title { margin: 0 0 10px; padding: 0; font-size: 24px; font-weight: 500; line-height: 1.15; }
.al-search-card .entry-title a { color: #0c0c0c; }
.al-search-card .entry-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.al-search-excerpt {
	margin: 0;
	padding: 0;
	font-size: 17px;
	line-height: 1.55;
	color: #383a3c;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.al-search-arrow {
	margin-top: auto;
	padding-top: 16px;
	width: 31px;
	height: 47px;
	background: url("images/arrow-green.svg") left bottom / 31px 31px no-repeat;
}
.al-search-card:hover .entry-title a { color: #069246; }

.al-search .pagination, .al-search .navigation.pagination { margin-top: 50px; }
.al-search .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.al-search .page-numbers {
	min-width: 42px;
	padding: 10px 14px;
	text-align: center;
	font-weight: 700;
	color: #0c0c0c;
	background: #f0f2f7;
	border-radius: 3px;
}
.al-search .page-numbers.current { color: #fff; background: #069246; }
.al-search a.page-numbers:hover { background: #dfe3ee; }

.al-search-empty { max-width: 640px; padding: 30px 0; }
.al-search-empty h2 { margin: 0 0 12px; padding: 0; font-size: 32px; font-weight: 700; }
.al-search-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.al-search-links a { padding: 11px 18px; font-weight: 700; color: #0c0c0c; background: #f0f2f7; border-bottom: 2px solid #069246; }
.al-search-links a:hover { background: #dfe3ee; }

@media (max-width: 980px) { .al-search-grid { grid-template-columns: repeat(2, 1fr); } .al-search-wrap { width: 90%; } }
@media (max-width: 600px) {
	.al-search-grid { grid-template-columns: 1fr; }
	.al-search-bar form { flex-direction: column; }
	.al-search-bar input[type="search"] { flex: none; width: 100%; height: 52px; box-sizing: border-box; }
	.al-search-bar button { width: 100%; }
	.al-search-banner { min-height: 180px; padding: 40px 20px; }
}
/* Results with no featured image (pages): slim label bar instead of an empty image block. */
.al-search-thumb:not(:has(img)) { aspect-ratio: auto; height: 52px; }