/* ===== تنسيق الصفحة الرئيسية: تباعد موحّد بين الأقسام + بطاقات بدون خلفية بيضاء ===== */

/* 1) تباعد موحّد بين الأقسام */
.main-content {
	padding-bottom: 0 !important;
}

.main-content > .content-grid {
	padding-top: 40px;
	padding-bottom: 64px;
}

.main-content > .content-grid .section {
	margin-bottom: 0;
}

.main-content > section {
	padding-top: 120px !important;
	padding-bottom: 120px !important;
}

.main-content > section + section {
	border-top: 1px solid rgba(22, 48, 90, 0.06);
}

.home-magazine-team .team-section {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* عنوان كل قسم يبتعد عن محتواه بشكل متساوٍ */
.home-magazine-team .team-header,
.home-sections .hs-subtitle,
.home-researchers .hr-head {
	margin-bottom: 40px !important;
}

/* 2) النبذة: رابط "عرض الكل" تحت النص */
.overview-card .overview-more {
	display: flex;
	justify-content: flex-end;
	margin-top: 28px;
}

/* 3) إزالة الخلفية البيضاء من البطاقات (فريق العمل، شركاؤنا، أقسام المجلة) */
.home-magazine-team .card,
.home-sections:not(.home-indexers-sections) .hs-card {
	background: transparent !important;
	box-shadow: none !important;
	border: 1px solid rgba(22, 48, 90, 0.14) !important;
}

/* فريق العمل: الإطار لا يظهر إلا عند تمرير الماوس */
.home-magazine-team .card {
	border-color: transparent !important;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.home-magazine-team .card:hover,
.home-sections:not(.home-indexers-sections) .hs-card:hover {
	background: transparent !important;
	box-shadow: none !important;
	border-color: #bd8f49 !important;
}

@media (max-width: 768px) {
	.main-content > .content-grid {
		padding-top: 32px;
		padding-bottom: 44px;
	}

	.main-content > section {
		padding-top: 64px !important;
		padding-bottom: 64px !important;
	}

	.home-magazine-team .team-header,
	.home-sections .hs-subtitle,
	.home-researchers .hr-head {
		margin-bottom: 24px !important;
	}
}

/* 4) قسم النبذة: خلفية رمادية بعرض الصفحة، والبطاقة تبقى بيضاء */
.hero-waqf ~ .main-content {
	background-color: #E9ECF1 !important;
}

/* النبذة بدون خلفية بيضاء */
.hero-waqf ~ .main-content .journal-overview,
.hero-waqf ~ .main-content .overview-card {
	background: transparent !important;
	box-shadow: none !important;
}

.hero-waqf ~ .main-content .overview-card {
	border-color: rgba(22, 48, 90, 0.15);
}

/* 6) حركات متنوعة للصفحة الرئيسية عند النزول */
html.lp-reveal [data-reveal] {
	opacity: 0;
	transition:
		opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		filter 0.8s ease;
	transition-delay: var(--reveal-delay, 0s);
	will-change: opacity, transform;
}

html.lp-reveal [data-reveal="fade-up"] { transform: translateY(40px); }
html.lp-reveal [data-reveal="fade"] { filter: blur(6px); }
html.lp-reveal [data-reveal="zoom"] { transform: scale(0.86); }
html.lp-reveal [data-reveal="slide-start"] { transform: translateX(60px); }
html.lp-reveal [data-reveal="slide-end"] { transform: translateX(-60px); }
html.lp-reveal [data-reveal="flip"] { transform: perspective(800px) rotateX(18deg) translateY(30px); transform-origin: top center; }

html.lp-reveal [data-reveal].is-in {
	opacity: 1;
	transform: none;
	filter: none;
}

@media (prefers-reduced-motion: reduce) {
	html.lp-reveal [data-reveal] {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
		transition: none !important;
	}
}

