/* Alyatim Donation Boxes — front-end styles (RTL, self-contained, Bootstrap-friendly) */

.adb-wrap {
	--adb-primary: #1f7a3d;
	--adb-accent: #c0392b;
	--adb-dark: #14532d;
	--adb-soft: #f4f8f5;
	direction: rtl;
	text-align: right;
	color: #222;
	font-family: inherit;
}

.adb-wrap * { box-sizing: border-box; }

.adb-section { padding: 64px 0; }
.adb-section--soft { background: var(--adb-soft); }
.adb-section--dark { background: var(--adb-dark); color: #fff; }

.adb-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
}

.adb-head { text-align: center; margin-bottom: 40px; }
.adb-head__title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 800;
	margin: 0 0 8px;
	color: var(--adb-primary);
}
.adb-section--dark .adb-head__title { color: #fff; }
.adb-head__subtitle { font-size: 1.1rem; opacity: .8; margin: 0; }

/* ---- Hero ---- */
.adb-hero {
	position: relative;
	min-height: 460px;
	display: flex;
	align-items: center;
	color: #fff;
	background-size: cover;
	background-position: center;
	background-color: var(--adb-dark);
}
.adb-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20,83,45,.92), rgba(20,83,45,.55));
}
.adb-hero__inner { position: relative; z-index: 2; max-width: 640px; }
.adb-hero__eyebrow { font-size: 1.05rem; opacity: .9; margin: 0 0 8px; }
.adb-hero__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin: 0 0 16px; }
.adb-hero__desc { font-size: 1.15rem; line-height: 1.9; margin: 0 0 24px; }
.adb-btn {
	display: inline-block;
	background: var(--adb-accent);
	color: #fff;
	padding: 12px 32px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	transition: transform .15s, filter .15s;
}
.adb-btn:hover { filter: brightness(1.08); transform: translateY(-2px); color: #fff; }

/* ---- About ---- */
.adb-about { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.adb-about--with-image { grid-template-columns: 1fr 1fr; }
.adb-about__text { font-size: 1.1rem; line-height: 2.1; }
.adb-about__img img { width: 100%; border-radius: 16px; }

/* ---- How it works ---- */
.adb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.adb-step {
	background: #fff;
	border: 1px solid #e7ece8;
	border-radius: 16px;
	padding: 24px 18px;
	text-align: center;
	position: relative;
}
.adb-step__num {
	width: 42px; height: 42px; line-height: 42px;
	border-radius: 50%;
	background: var(--adb-primary);
	color: #fff; font-weight: 800;
	margin: 0 auto 14px;
}
.adb-step__img img { width: 100%; height: 130px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.adb-step__title { font-weight: 700; margin: 0 0 8px; font-size: 1.05rem; }
.adb-step__desc { font-size: .95rem; line-height: 1.8; opacity: .85; margin: 0; }

/* ---- Box types ---- */
.adb-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.adb-box {
	background: #fff;
	border: 1px solid #e7ece8;
	border-radius: 18px;
	overflow: hidden;
	display: flex; flex-direction: column;
	box-shadow: 0 6px 24px rgba(0,0,0,.04);
}
.adb-box__img { height: 200px; background: var(--adb-soft); }
.adb-box__img img { width: 100%; height: 100%; object-fit: cover; }
.adb-box__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.adb-box__title { font-weight: 800; font-size: 1.2rem; margin: 0; color: var(--adb-primary); }
.adb-box__desc { line-height: 1.8; opacity: .85; margin: 0; }
.adb-box__features { list-style: none; padding: 0; margin: 6px 0 0; }
.adb-box__features li { padding: 6px 24px 6px 0; position: relative; }
.adb-box__features li::before {
	content: "✓"; position: absolute; right: 0; color: var(--adb-primary); font-weight: 800;
}

/* ---- List blocks (goals / impact) ---- */
.adb-listblock { max-width: 860px; margin: 0 auto; }
.adb-listblock__intro { font-size: 1.12rem; line-height: 2; margin: 0 0 20px; text-align: center; }
.adb-checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.adb-checklist li {
	position: relative;
	background: #fff;
	border: 1px solid #e7ece8;
	border-radius: 12px;
	padding: 14px 48px 14px 16px;
	font-size: 1.02rem;
	line-height: 1.7;
}
.adb-checklist li::before {
	content: "✓";
	position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
	width: 24px; height: 24px; line-height: 24px; text-align: center;
	background: var(--adb-primary); color: #fff; border-radius: 50%; font-weight: 800; font-size: .85rem;
}

/* ---- Achievements ---- */
.adb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.adb-stat { text-align: center; }
.adb-stat__icon { font-size: 2rem; margin-bottom: 8px; }
.adb-stat__num { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: var(--adb-accent); line-height: 1; }
.adb-section--dark .adb-stat__num { color: #ffd866; }
.adb-stat__label { font-size: 1.05rem; margin-top: 8px; opacity: .9; }

/* ---- Gallery ---- */
.adb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.adb-gallery__item { display: block; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 1/1; }
.adb-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.adb-gallery__item:hover img { transform: scale(1.06); }

/* lightbox */
.adb-lightbox {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(0,0,0,.9);
	display: none; align-items: center; justify-content: center;
	padding: 30px;
}
.adb-lightbox.is-open { display: flex; }
.adb-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.adb-lightbox__close {
	position: absolute; top: 18px; left: 24px;
	color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1;
	background: none; border: 0;
}

/* ---- Testimonials ---- */
.adb-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.adb-quote {
	background: #fff; border-radius: 16px; padding: 26px;
	border-right: 5px solid var(--adb-primary);
	box-shadow: 0 6px 24px rgba(0,0,0,.04);
}
.adb-quote__text { font-size: 1.12rem; line-height: 2; margin: 0 0 14px; }
.adb-quote__author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--adb-primary); }
.adb-quote__author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

/* ---- Contact ---- */
.adb-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.adb-contact__item {
	background: #fff; border: 1px solid #e7ece8; border-radius: 14px;
	padding: 18px; display: flex; gap: 12px; align-items: center;
}
.adb-contact__item a { color: inherit; text-decoration: none; word-break: break-word; }
.adb-contact__ico { font-size: 1.5rem; }
.adb-contact__label { font-size: .85rem; opacity: .65; display: block; }
.adb-contact__val { font-weight: 700; }

/* ---- Form ---- */
.adb-form-wrap { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 10px 40px rgba(0,0,0,.06); }
.adb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adb-field { display: flex; flex-direction: column; gap: 6px; }
.adb-field--full { grid-column: 1 / -1; }
.adb-field label { font-weight: 700; font-size: .95rem; }
.adb-field input, .adb-field select, .adb-field textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #d4ddd6; border-radius: 10px;
	font-family: inherit; font-size: 1rem; background: #fff;
}
.adb-field input:focus, .adb-field select:focus, .adb-field textarea:focus {
	outline: none; border-color: var(--adb-primary); box-shadow: 0 0 0 3px rgba(31,122,61,.12);
}
.adb-hp { position: absolute; left: -9999px; }
.adb-form__submit {
	margin-top: 8px; border: 0; cursor: pointer; width: 100%;
	background: var(--adb-primary); color: #fff; font-weight: 800;
	padding: 14px; border-radius: 12px; font-size: 1.05rem;
	transition: filter .15s;
}
.adb-form__submit:hover { filter: brightness(1.08); }
.adb-form__submit:disabled { opacity: .6; cursor: not-allowed; }
.adb-form__msg { margin-top: 16px; padding: 14px; border-radius: 10px; display: none; }
.adb-form__msg.is-ok { display: block; background: #e6f4ea; color: #1f7a3d; }
.adb-form__msg.is-err { display: block; background: #fdecea; color: #c0392b; }

/* ---- FAQ ---- */
.adb-faq { max-width: 820px; margin: 0 auto; }
.adb-faq__item { border: 1px solid #e7ece8; border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.adb-faq__q {
	margin: 0; padding: 18px 20px; font-weight: 700; cursor: pointer;
	display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.adb-faq__q::after { content: "+"; font-size: 1.4rem; color: var(--adb-primary); transition: transform .2s; }
.adb-faq__item.is-open .adb-faq__q::after { transform: rotate(45deg); }
.adb-faq__a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .25s, padding .25s; line-height: 2; }
.adb-faq__item.is-open .adb-faq__a { padding: 0 20px 18px; max-height: 600px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
	.adb-about--with-image { grid-template-columns: 1fr; }
	.adb-form-grid { grid-template-columns: 1fr; }
	.adb-section { padding: 44px 0; }
}
