/*
Theme Name:   Astra Child – Hod Israel
Theme URI:    https://hodisrael.org.il
Description:  Child theme for hodisrael.org.il. Holds the free replacements for the Elementor Pro features the site used (custom CSS, posts cards, single templates for posts and jobs, share buttons) – see elementor-pro-migration-plan-2026-12-02.html.
Author:       WebAndMor
Template:     astra
Version:      1.0.1
Text Domain:  astra-child
*/

/* =========================================================================
   1. Custom CSS that lived in Elementor Pro (Site Settings + per-element "Custom CSS").
      Without Pro Elementor no longer prints it, so it is kept here with the same selectors
      ("selector" in Pro = .elementor-element-<id>).
   ========================================================================= */

/* Kit #505 (Site Settings > Custom CSS) */
header .site-logo-img .custom-logo-link img {
	max-width: 75px !important;
}
@media (max-width: 768px) {
	.ast-logo-title-inline .ast-site-identity {
		margin-top: 5px;
	}
}
.ast-logo-title-inline .ast-site-identity {
	padding: 0;
}

/* Icon lists aligned to the start (About #249, Contact #332, Donations #2406) */
.elementor-element.elementor-element-7c7b333 .elementor-icon-list-item,
.elementor-element.elementor-element-7c7b333 .elementor-icon-list-item a,
.elementor-element.elementor-element-447dbec .elementor-icon-list-item,
.elementor-element.elementor-element-447dbec .elementor-icon-list-item a,
.elementor-element.elementor-element-3c83240 .elementor-icon-list-item,
.elementor-element.elementor-element-3c83240 .elementor-icon-list-item a,
.elementor-element.elementor-element-c6bb815 .elementor-icon-list-item,
.elementor-element.elementor-element-c6bb815 .elementor-icon-list-item a,
.elementor-element.elementor-element-dced9b4 .elementor-icon-list-item,
.elementor-element.elementor-element-dced9b4 .elementor-icon-list-item a,
.elementor-element.elementor-element-e60958f .elementor-icon-list-item,
.elementor-element.elementor-element-e60958f .elementor-icon-list-item a,
.elementor-element.elementor-element-6b6181c .elementor-icon-list-item,
.elementor-element.elementor-element-6b6181c .elementor-icon-list-item a,
.elementor-element.elementor-element-c9032b9 .elementor-icon-list-item,
.elementor-element.elementor-element-c9032b9 .elementor-icon-list-item a,
.elementor-element.elementor-element-4ce73d9 .elementor-icon-list-item,
.elementor-element.elementor-element-4ce73d9 .elementor-icon-list-item a,
.elementor-element.elementor-element-73c4b40 .elementor-icon-list-item,
.elementor-element.elementor-element-73c4b40 .elementor-icon-list-item a {
	justify-content: flex-start;
}

/* Footer #96: phone and bank icon lists (start on desktop, centered on mobile) */
.elementor-element.elementor-element-29392a7 .elementor-icon-list-item,
.elementor-element.elementor-element-c5e0076 .elementor-icon-list-item {
	justify-content: flex-start;
}
@media (max-width: 767px) {
	.elementor-element.elementor-element-29392a7 .elementor-icon-list-item,
	.elementor-element.elementor-element-c5e0076 .elementor-icon-list-item {
		display: flex;
		justify-content: center;
		align-items: center;
	}
}

/* Activity #1000: the free Image Carousel that replaced Media Carousel (coverflow, height 623px) – same visual height */
.elementor-element.elementor-element-c8a40d3 .swiper-slide-image {
	width: 100%;
	height: 540px;
	object-fit: contain;
}
@media (max-width: 767px) {
	.elementor-element.elementor-element-c8a40d3 .swiper-slide-image { height: 460px; }
}

/* =========================================================================
   2. Shared look (taken from the old Elementor Pro templates: Rubik, light grey panels, red-pink date)
   ========================================================================= */
.hod-cards,
.hod-news,
.hod-single {
	--hod-font: "Rubik", sans-serif;
	--hod-text: #54595f;
	--hod-muted: #8b8b8b;
	--hod-date: #f40045;
	--hod-panel: #f7f7f7;
	--hod-border: rgba(12, 12, 12, 0.1);
	--hod-blue: #3e5bf2;
	--hod-yellow: #f6b300;
	font-family: var(--hod-font);
}

/* =========================================================================
   3. Cards grid: [hod_jobs] (Volunteers page, "More jobs" on a job) – was Elementor Pro Posts "Cards"
   ========================================================================= */
.hod-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hod-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
	transition: box-shadow 0.3s;
}
.hod-card:hover {
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
}
.hod-card__thumb {
	display: block;
	position: relative;
	padding-bottom: 66%;
	overflow: hidden;
	background: #eee;
}
.hod-card__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hod-card__body {
	flex: 1;
	padding: 30px 30px 0;
}
.hod-card__title {
	margin: 0 0 15px;
	font-family: var(--hod-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
}
.hod-card__title a {
	color: #000;
	text-decoration: none;
}
.hod-card__excerpt {
	margin: 0 0 25px;
	color: var(--hod-muted);
	font-size: 12px;
	line-height: 1.6;
}
.hod-card__meta {
	padding: 15px 30px;
	border-top: 1px solid #eaeaea;
	color: #adadad;
	font-size: 11px;
}
@media (max-width: 1024px) {
	.hod-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.hod-cards { grid-template-columns: 1fr; }
}

/* =========================================================================
   4. "What's new" card: [hod_latest_posts] (home page) – was Elementor Pro Posts + ECS loop template #1337
   ========================================================================= */
/* Values measured from the old template rendered with Pro (1440px and 390px viewports). */
.hod-news {
	display: grid;
	gap: 30px;
}
/* desktop: the featured image is the card background (69% wide, top right), with a white diagonal over it */
.hod-news__item {
	position: relative;
	display: grid;
	grid-template-columns: 50% 50%;
	min-height: 481px;
	background-color: #fff;
	background-image: var(--hod-img, none);
	background-position: top right;
	background-repeat: no-repeat;
	background-size: 69% auto;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
	overflow: hidden;
}
.hod-news__item::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(130deg, #fff 50%, rgba(41, 69, 242, 0) 51%);
	pointer-events: none;
}
.hod-news__media { position: relative; }
.hod-news__text {
	position: relative; /* above the diagonal */
	padding: 0 60px 86px 20px;
}
.hod-news .hod-news__title {
	margin: 66px 0 20px;
	font-family: "Rubik", sans-serif;
	font-size: 56px;
	font-weight: 700;
	line-height: 1.4;
	color: #1e2428;
}
.hod-news__title a { color: inherit; text-decoration: none; }
.hod-news .hod-news__excerpt {
	margin: 0;
	font-family: "Rubik", sans-serif;
	font-size: 25px;
	font-weight: 400;
	line-height: 1.857;
	color: #576168;
}
.hod-news__btn {
	position: absolute;
	bottom: 20px;
	left: 20px;
	display: inline-block;
	padding: 15.5px 30px; /* 46px high, as before */
	border-radius: 24px;
	background: #1681f5;
	color: #fff !important;
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}
.hod-news__btn:hover,
.hod-news__btn:focus { background: #0f6fd9; }
/* mobile: image block (cover) above the text, no diagonal */
@media (max-width: 767px) {
	.hod-news__item { display: block; min-height: 0; background-image: none; }
	.hod-news__item::before { display: none; }
	.hod-news__media {
		height: 303px;
		background-image: var(--hod-img, none);
		background-position: center center;
		background-repeat: no-repeat;
		background-size: cover;
	}
	.hod-news__text { padding: 15px 15px 35px; } /* card 598px high, as before */
	.hod-news .hod-news__title { margin: 40px 0 20px; font-size: 30px; }
	.hod-news .hod-news__excerpt { margin-bottom: 50px; }
	.hod-news__btn { font-size: 13.68px; }
}

/* =========================================================================
   5. Single job (jobs CPT) and single post – was Elementor Pro Theme Builder #1803 / #1367
   ========================================================================= */
.hod-single {
	box-sizing: border-box;
	width: 100%;
	max-width: 1040px;
	margin: 50px auto 60px;
	padding: 0 20px;
	color: var(--hod-text);
}
.hod-single__title {
	margin: 0 0 10px;
	font-family: var(--hod-font);
	font-size: 28px;
	font-weight: 500;
	color: #0c0c0c;
}
.hod-single__date {
	display: block;
	margin-bottom: 10px;
	color: var(--hod-date);
	font-size: 16px;
	font-weight: 300;
}
.hod-single__content { font-size: 16px; line-height: 1.7; }
.hod-single__content > *:last-child { margin-bottom: 0; }

/* job: image + grey panel side by side */
.hod-job {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 420px;
	background: var(--hod-panel);
}
.hod-job__media {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 300px;
}
.hod-job__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px 35px;
}

/* share buttons (was Elementor Pro Share Buttons, flat icons Facebook + WhatsApp) */
.hod-share {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 35px;
}
.hod-share__label { color: #0c0c0c; font-size: 18px; }
.hod-share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: #fff;
	text-decoration: none;
}
.hod-share svg { width: 16px; height: 16px; fill: currentColor; }
.hod-share .is-facebook { background: #3b5998; }
.hod-share .is-whatsapp { background: #25d366; }
.hod-share a:hover,
.hod-share a:focus { filter: brightness(1.1); }

/* post: share bars below the content (full width, like the old template) */
.hod-share--bars { gap: 0; margin-top: 0; }
.hod-share--bars a { flex: 1; width: auto; height: 34px; }

/* next/previous (was Elementor Pro Post Navigation) */
.hod-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 15px;
	padding: 30px;
	background: var(--hod-panel);
	border: 1px solid var(--hod-border);
}
.hod-nav a { color: #0c0c0c; text-decoration: none; }
.hod-nav__label { display: block; font-size: 16px; font-weight: 300; }
.hod-nav__title { display: block; font-size: 18px; }
.hod-nav__next { margin-inline-start: auto; text-align: left; }

/* "More jobs" */
.hod-more { margin-top: 40px; }
.hod-more__title {
	margin: 0 0 50px;
	padding-bottom: 30px;
	font-family: var(--hod-font);
	font-size: 34px;
	font-weight: 400;
	color: #0c0c0c;
	background: linear-gradient(var(--hod-yellow), var(--hod-yellow)) right bottom / 80px 2px no-repeat;
}

/* post: gradient band + centered column */
.hod-post-band {
	width: 100%;
	background: linear-gradient(170deg, #4a3ef2 0%, #6c7bf5 30%, #b9c8f0 44%, #fff 44.3%);
	padding: 60px 20px 40px;
}
.hod-post-band .hod-post {
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}
.hod-post .hod-single__date { color: #fff; font-size: 14px; margin-bottom: 30px; }
.hod-post__card { background: #fff; box-shadow: 0 0 30px rgba(0, 0, 0, 0.25); }
.hod-post__card img { display: block; width: 100%; height: auto; }
.hod-post .hod-single__content { padding: 20px; text-align: center; }

@media (max-width: 767px) {
	.hod-job { grid-template-columns: 1fr; min-height: 0; }
	.hod-job__panel { padding: 25px 20px; }
	.hod-job__media { order: 2; min-height: 220px; } /* text first on mobile, as before */
	.hod-nav { padding: 20px; }
	.hod-more__title { font-size: 26px; }
}

/* screen-reader-only text (used by the share buttons) */
.hod-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
