/* Call to action under every Blog post (includes/blog-cta.php).
   Colours follow the theme: its navy and light blue. The site's Additional CSS colours and
   underlines every link in a post's text with a very specific selector, hence the !important
   on the box's link colours. */
.rakiya-cta {
	--rakiya-cta-navy: #052951;
	--rakiya-cta-navy-deep: #031a35;
	--rakiya-cta-sky: #7db2e6;
	--rakiya-cta-sky-light: #a9cdf0;
	--rakiya-cta-text: rgba(255, 255, 255, 0.84);

	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	margin: 48px 0 16px;
	padding: 36px 40px;
	overflow: hidden;
	border-radius: 18px;
	background:
		radial-gradient(circle at 100% 0%, rgba(125, 178, 230, 0.28), transparent 45%),
		linear-gradient(135deg, var(--rakiya-cta-navy) 0%, var(--rakiya-cta-navy-deep) 100%);
	box-shadow: 0 18px 40px -24px rgba(5, 41, 81, 0.65);
	color: #fff;
	text-align: start;
	isolation: isolate;
}

/* A faint compass line in the corner, for a little depth. */
.rakiya-cta::after {
	content: "";
	position: absolute;
	inset-inline-end: -60px;
	bottom: -90px;
	width: 260px;
	height: 260px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.03), 0 0 0 72px rgba(255, 255, 255, 0.02);
	z-index: -1;
	pointer-events: none;
}

.rakiya-cta__body {
	flex: 1 1 380px;
	min-width: 0;
}

.rakiya-cta p {
	margin: 0;
	padding: 0;
}

.rakiya-cta .rakiya-cta__eyebrow {
	margin-bottom: 10px;
	color: var(--rakiya-cta-sky);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.rakiya-cta .rakiya-cta__title {
	margin-bottom: 10px;
	color: #fff;
	font-family: 'Roboto', sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	text-wrap: balance;
}

.rakiya-cta .rakiya-cta__text {
	max-width: 58ch;
	color: var(--rakiya-cta-text);
	font-size: 15px;
	line-height: 1.65;
}

.rakiya-cta__actions {
	display: flex;
	flex: 0 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.rakiya-cta a.rakiya-cta__button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--rakiya-cta-sky);
	box-shadow: 0 8px 20px -10px rgba(125, 178, 230, 0.9);
	color: var(--rakiya-cta-navy) !important;
	font-size: 16px;
	font-weight: 700 !important;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rakiya-cta a.rakiya-cta__button:hover,
.rakiya-cta a.rakiya-cta__button:focus-visible {
	background: #fff;
	color: var(--rakiya-cta-navy) !important;
	transform: translateY(-1px);
	box-shadow: 0 12px 24px -12px rgba(255, 255, 255, 0.7);
}

.rakiya-cta a.rakiya-cta__button:focus-visible,
.rakiya-cta .rakiya-cta__email a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.rakiya-cta__button svg {
	flex: none;
	transition: transform 0.2s ease;
}

.rakiya-cta a.rakiya-cta__button:hover svg {
	transform: translateX(3px);
}

.rakiya-cta[dir="rtl"] .rakiya-cta__button svg {
	transform: scaleX(-1);
}

.rakiya-cta[dir="rtl"] a.rakiya-cta__button:hover svg {
	transform: scaleX(-1) translateX(3px);
}

.rakiya-cta .rakiya-cta__email {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	color: var(--rakiya-cta-text);
	font-size: 14px;
	line-height: 1.5;
}

.rakiya-cta .rakiya-cta__email a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
	text-decoration-color: rgba(125, 178, 230, 0.7) !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 4px !important;
}

.rakiya-cta .rakiya-cta__email a:hover,
.rakiya-cta .rakiya-cta__email a:focus-visible {
	color: var(--rakiya-cta-sky-light) !important;
}

.rakiya-cta .rakiya-cta__email svg {
	flex: none;
	color: var(--rakiya-cta-sky);
}

@media (max-width: 640px) {
	.rakiya-cta {
		margin-top: 36px;
		padding: 28px 22px;
		border-radius: 14px;
	}

	.rakiya-cta .rakiya-cta__title {
		font-size: 20px;
	}

	.rakiya-cta__actions {
		width: 100%;
	}

	.rakiya-cta a.rakiya-cta__button {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rakiya-cta a.rakiya-cta__button,
	.rakiya-cta__button svg {
		transition: none;
	}
}

/* The Hindi, Chinese and Arabic fonts loaded for translated pages (translations-frontend.php). */
.rakiya-tr-lang-hi .rakiya-cta { font-family: 'Noto Sans Devanagari', sans-serif; }
.rakiya-tr-lang-zh .rakiya-cta { font-family: 'Noto Sans SC', sans-serif; }
.rakiya-tr-lang-ar .rakiya-cta { font-family: 'Noto Sans Arabic', sans-serif; }
.rakiya-tr-lang-hi .rakiya-cta .rakiya-cta__title { font-family: 'Noto Sans Devanagari', sans-serif; }
.rakiya-tr-lang-zh .rakiya-cta .rakiya-cta__title { font-family: 'Noto Sans SC', sans-serif; }
.rakiya-tr-lang-ar .rakiya-cta .rakiya-cta__title { font-family: 'Noto Sans Arabic', sans-serif; }
.rakiya-tr-lang-zh .rakiya-cta .rakiya-cta__eyebrow,
.rakiya-tr-lang-ar .rakiya-cta .rakiya-cta__eyebrow,
.rakiya-tr-lang-hi .rakiya-cta .rakiya-cta__eyebrow { letter-spacing: 0; }
