/**
 * PCC Elements - تحسينات التنسيق (inc/pcc-format-fixes.php)
 */

/* ---------- 1) الروابط داخل النصوص ---------- */

.pcc-sec :is(.pcc-sec__text, .pcc-sec-resource__text, .pcc-sec-report__text, .pcc-sec-col__text, .pcc-sec-entry__text, .pcc-sec-subscribe__text) a:not(.btn),
.pcc-page-content > p a:not(.btn),
.pcc-page-content > ul a:not(.btn),
.pcc-page-content > ol a:not(.btn) {
	color: var(--pcc-color-primary, #b94a42);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s;
}

.pcc-sec :is(.pcc-sec__text, .pcc-sec-resource__text, .pcc-sec-report__text, .pcc-sec-col__text, .pcc-sec-entry__text, .pcc-sec-subscribe__text) a:not(.btn):hover,
.pcc-page-content > p a:not(.btn):hover,
.pcc-page-content > ul a:not(.btn):hover,
.pcc-page-content > ol a:not(.btn):hover {
	color: var(--pcc-color-primary-hover, #a33e37);
}

/* الكرت الغامق (Image & Content Card) */
.pcc-sec-card__text a:not(.btn) {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pcc-sec-card__text a:not(.btn):hover {
	color: var(--pcc-color-green, #7ac943);
}

/* ---------- 2) محاذاة النص من محرر النص ---------- */

:is(.pcc-page-content, .pcc-el, .pcc-sec) .has-text-align-left {
	text-align: left !important;
}

:is(.pcc-page-content, .pcc-el, .pcc-sec) .has-text-align-center {
	text-align: center !important;
}

:is(.pcc-page-content, .pcc-el, .pcc-sec) .has-text-align-right {
	text-align: right !important;
}

:is(.pcc-page-content, .pcc-el, .pcc-sec) .has-text-align-justify {
	text-align: justify !important;
}

/* ---------- 3) مستوى ولون العنوان ---------- */

.pcc-hl--h1 {
	font-size: 40px !important;
	line-height: 1.2 !important;
}

.pcc-hl--h2 {
	font-size: 30px !important;
	line-height: 1.25 !important;
}

.pcc-hl--h3 {
	font-size: 26px !important;
	line-height: 1.25 !important;
}

.pcc-hl--h4 {
	font-size: 22px !important;
	line-height: 1.3 !important;
}

.pcc-hl--h5 {
	font-size: 18px !important;
	line-height: 1.35 !important;
}

.pcc-hl--h6 {
	font-size: 16px !important;
	line-height: 1.4 !important;
}

@media (max-width: 767px) {
	.pcc-hl--h1 {
		font-size: 32px !important;
	}

	.pcc-hl--h2 {
		font-size: 26px !important;
	}

	.pcc-hl--h3 {
		font-size: 22px !important;
	}

	.pcc-hl--h4 {
		font-size: 20px !important;
	}
}

.pcc-hc--red {
	color: var(--pcc-color-primary, #b94a42) !important;
}

.pcc-hc--green {
	color: var(--pcc-color-green, #7ac943) !important;
}

.pcc-hc--black {
	color: #000 !important;
}

/* ---------- 4) الأزرار داخل محتوى البوستات (.entry-content) ----------
 * قاعدة الثيم ".entry-content a" كانت تلوّن نص الزر بلون الرابط فيختفي على خلفية الزر. */

.entry-content a.btn,
.entry-content a.pcc-sec-pill,
.entry-content a.pcc-sec-report__btn,
.entry-content a.pcc-sec__link {
	text-decoration: none;
}

.entry-content a.btn--primary,
.entry-content a.btn--green,
.entry-content a.btn--black,
.entry-content a.pcc-sec-pill,
.entry-content a.pcc-sec-report__btn {
	color: var(--pcc-color-white, #fff);
}

.entry-content a.btn--primary:hover,
.entry-content a.btn--primary:focus {
	color: var(--pcc-color-primary, #b94a42);
}

.entry-content a.btn--green:hover,
.entry-content a.btn--green:focus {
	color: var(--pcc-color-green-hover, #5fa32f);
}

.entry-content a.btn--black:hover,
.entry-content a.btn--black:focus {
	color: #000;
}

.entry-content a.btn--white,
.entry-content a.btn--outline,
.entry-content a.btn--outline-primary,
.entry-content a.pcc-sec-pill--white {
	color: var(--pcc-color-primary, #b94a42);
}

.entry-content a.btn--white:hover,
.entry-content a.btn--white:focus,
.entry-content a.btn--outline:hover,
.entry-content a.btn--outline:focus,
.entry-content a.btn--outline-primary:hover,
.entry-content a.btn--outline-primary:focus {
	color: var(--pcc-color-white, #fff);
}

.entry-content a.pcc-sec-pill:not(.pcc-sec-pill--white):hover,
.entry-content a.pcc-sec-report__btn:hover {
	color: #fff;
}

.entry-content a.pcc-sec__link {
	color: #2b2b2b;
}

.entry-content a.pcc-sec__link:hover {
	color: #b94a42;
}
