/*
Theme Name: Fikra
Description: Child theme of Twenty Twenty-Five for fikrasyria.org (Fikra for Entrepreneurship and Development). Arabic / RTL. Colors, font, header and footer rebuilt from the original Odoo site.
Template: twentytwentyfive
Version: 1.0.20
Requires at least: 6.7
Requires PHP: 8.2
Text Domain: fikra
License: GNU General Public License v2 or later
*/

/* Header: white bar with a soft shadow, as on the Odoo site. */
.fikra-header {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
	position: relative;
	z-index: 10;
}

.fikra-header .wp-block-site-logo img {
	height: auto;
}

/* Submenu ("انضم لنا"): highlighted item like Odoo's dropdown. */
.fikra-header .wp-block-navigation__submenu-container {
	border: 1px solid #dee2e6 !important;
	border-radius: 6px;
	padding: 4px 0;
	min-width: 180px !important;
}

.fikra-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 16px;
}

.fikra-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
}

.fikra-header .current-menu-item > .wp-block-navigation-item__content {
	font-weight: 700;
}

/* Footer contact lines with small icons (text stays editable in the block editor). */
.fikra-ico {
	display: flex;
	align-items: center;
	gap: 6px;
}

.fikra-ico::before {
	content: "";
	flex: 0 0 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: var(--fikra-ico) center / contain no-repeat;
	mask: var(--fikra-ico) center / contain no-repeat;
}

.fikra-ico-chat {
	--fikra-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
}

.fikra-ico-mail {
	--fikra-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");
}

.fikra-ico-phone {
	--fikra-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
}

/* Phone numbers and e-mail addresses read left-to-right inside RTL text. */
.fikra-ltr {
	direction: ltr;
	unicode-bidi: isolate;
}

/* Footer social icons: small white circles with a shadow. */
.fikra-footer .wp-block-social-links .wp-social-link {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Sections sit flush: no global block gap between header, content and footer. */
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-site-blocks > main > .entry-content > .alignfull:first-child {
	margin-block-start: 0;
}

.fikra-footer ul.wp-block-list li {
	margin: 0 0 0.25rem;
}

/* ---- Content building blocks (used by the page sections) ---- */

/* Small pill label above a hero heading ("مؤسسة فكرة"). */
.fikra-badge {
	display: inline-block;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent-1);
	border-radius: 999px;
	padding: 0.15rem 0.9rem;
	font-size: 0.75rem;
	font-weight: 500;
	margin-bottom: 0;
}

.has-text-align-center.fikra-badge-wrap {
	margin-bottom: 0;
}

/* Small green label above a section heading ("منطلقاتنا وهويتنا"). */
.fikra-eyebrow {
	color: var(--wp--preset--color--accent-1);
	font-size: 0.8rem;
	font-weight: 700;
	margin-bottom: 0 !important;
}

/* Section intro text under a heading. */
.fikra-lead {
	color: var(--wp--preset--color--accent-6);
}

/* Photos: rounded with a soft shadow; hero photo gets a light green frame. */
.fikra-photo img {
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	width: 100%;
	height: auto;
	object-fit: cover;
}

.fikra-photo-framed img {
	border: 3px solid var(--wp--preset--color--accent-4);
}

/* Short green line under a centered heading. */
.wp-block-separator.fikra-underline {
	width: 60px;
	border: 0;
	border-top: 3px solid var(--wp--preset--color--accent-1);
	margin-inline: auto;
	opacity: 1;
}

/* Feature with a vertical bar on the start side ("تعليم نوعي"). */
.fikra-feature {
	border-inline-start: 3px solid #c9d8cb;
	padding-inline-start: 0.8rem;
}

.fikra-feature h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
}

.fikra-feature p {
	font-size: 0.8rem;
	color: var(--wp--preset--color--accent-6);
	margin: 0;
}

/* Cards (vision/mission/values, people). */
.fikra-card {
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Big line icons on cards. */
.fikra-icon {
	width: 44px;
	height: 44px;
	margin: 0 auto !important;
	background-color: var(--wp--preset--color--accent-1);
	-webkit-mask: var(--fikra-ico) center / contain no-repeat;
	mask: var(--fikra-ico) center / contain no-repeat;
}

.fikra-icon-sun {
	--fikra-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
}

.fikra-icon-megaphone {
	--fikra-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3 10v4h3l6 4V6L6 10z'/%3E%3Cpath d='M7 14v5h2v-4M16 9.5a3 3 0 0 1 0 5M19 12h3M18.5 7l2-1.5M18.5 17l2 1.5'/%3E%3C/svg%3E");
}

.fikra-icon-handshake {
	--fikra-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M11 17l2 2a1.4 1.4 0 0 0 2-2'/%3E%3Cpath d='M14 14l2.5 2.5a1.4 1.4 0 0 0 2-2l-3.9-3.9a3 3 0 0 0-4.2 0l-.9.9a1.4 1.4 0 0 1-2-2l2.8-2.8a5.4 5.4 0 0 1 6.8-.7l.5.3a3 3 0 0 0 2 .4L21 6.5'/%3E%3Cpath d='M21 5.5l1 7-2 2M3 4.5l-1 8 6.5 6.5a1.4 1.4 0 0 0 2-2M3 5.5h7'/%3E%3C/svg%3E");
}

/* People: grid of cards that wraps (4 per row on desktop, centered last row). */
.fikra-people {
	gap: 1.2rem !important;
}

.fikra-people > .fikra-person {
	flex: 0 0 calc(25% - 0.9rem);
	max-width: calc(25% - 0.9rem);
}

/* Variant with 5 cards in one row on desktop (team on the capacity-building page). */
@media (min-width: 901px) {
	.fikra-people-5 > .fikra-person {
		flex-basis: calc(20% - 0.96rem);
		max-width: calc(20% - 0.96rem);
	}
}

@media (max-width: 900px) {
	.fikra-people > .fikra-person {
		flex-basis: calc(50% - 0.6rem);
		max-width: calc(50% - 0.6rem);
	}
}

@media (max-width: 520px) {
	.fikra-people > .fikra-person {
		flex-basis: 100%;
		max-width: 100%;
	}
}

.fikra-person {
	text-align: center;
	background: #f7fbf7;
}

.fikra-person h3 {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0.6rem 0 0;
}

.fikra-person .fikra-role {
	color: var(--wp--preset--color--accent-1);
	font-size: 0.8rem;
	font-weight: 700;
	margin: 0;
}

.fikra-person .fikra-desc {
	color: var(--wp--preset--color--accent-6);
	font-size: 0.78rem;
	line-height: 1.6;
	min-height: 2.5em;
	margin: 0.4rem 0 0;
}

.fikra-person .fikra-more {
	font-size: 0.85rem;
	margin: 0.6rem 0 0;
}

.fikra-person .fikra-more a {
	color: var(--wp--preset--color--contrast);
}

/* Round portrait with a mint ring; empty variant = black circle (no photo yet). */
.fikra-avatar img,
.fikra-avatar-empty {
	width: 150px !important;
	height: 150px !important;
	border-radius: 50%;
	object-fit: cover;
	border: 5px solid #d9eadb;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fikra-avatar {
	margin: 0 auto !important;
}

.fikra-avatar-empty {
	background: #000;
	margin: 0 auto !important;
	box-sizing: border-box;
}

/* Profile page photo ("عرض السيرة الذاتية"). */
.fikra-portrait img,
.fikra-portrait-empty {
	width: 220px;
	max-width: 100%;
	aspect-ratio: 205 / 240;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.fikra-portrait-empty {
	background: #000;
}

.fikra-person-bordered {
	background: var(--wp--preset--color--base);
	border: 1px solid #e3ece4;
}

/* Full-width page sections follow each other without a white gap. */
.wp-block-post-content > .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Cards with a photo on top (programs, success stories); button sits at the bottom. */
.fikra-card-white {
	background: var(--wp--preset--color--base);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 0 !important;
}

.fikra-card-img {
	margin: 0 !important;
}

.fikra-card-img img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.fikra-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	margin-top: 0 !important;
}

.fikra-card-body h3 {
	font-size: 1.05rem;
	font-weight: 700;
	margin-top: 0;
}

.fikra-card-body .wp-block-buttons {
	margin-top: auto;
}

/* Program goals: gradient variants as on the Odoo site. */
.fikra-grad-dark {
	background-image: linear-gradient(135deg, #6a9a6c, var(--wp--preset--color--accent-1));
}

.fikra-grad-light {
	background-image: linear-gradient(135deg, #9dd3a0, var(--wp--preset--color--accent-4));
}

/* Numbers. */
.fikra-stat {
	background: var(--wp--preset--color--base);
	border: 1px solid #e6e9e6;
}

.fikra-stat-num {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.8rem !important;
	line-height: 1.1;
	color: var(--wp--preset--color--accent-1);
	margin-bottom: 0.4rem !important;
}

.fikra-stat-num::after {
	content: "";
	display: block;
	width: 28px;
	margin: 0.5rem auto 0;
	border-top: 2px solid #c9d8cb;
}

/* Small tags ("التعليم والتمكين", "المرحلة الأولى"). */
.fikra-tag {
	display: inline-block;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--accent-2);
	border-radius: 999px;
	padding: 0.1rem 0.8rem;
	font-size: 0.72rem;
	font-weight: 700;
}

.fikra-tag-solid {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
}

/* Timeline stages: framed cards with a thick start-side bar. */
.fikra-stage {
	border: 2px solid var(--wp--preset--color--accent-1);
	border-inline-start-width: 5px;
	border-radius: 10px;
}

.fikra-stage h3 {
	font-size: 1rem;
	font-weight: 700;
	margin-top: 0.5rem;
}

/* Testimonial. */
.wp-block-quote.fikra-quote {
	background: var(--wp--preset--color--base);
	border-radius: 16px;
	border: 0;
	padding: var(--wp--preset--spacing--50);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	font-style: italic;
	font-size: 1.25rem;
	text-align: center;
}

.wp-block-quote.fikra-quote cite {
	display: block;
	margin-top: 1rem;
	font-size: 0.8rem;
	font-style: normal;
	font-weight: 700;
	color: var(--wp--preset--color--accent-6);
}

.wp-block-quote.fikra-quote cite::before {
	content: "— ";
}

/* Partner name under the logo. */
.fikra-partner-name {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--wp--preset--color--accent-1);
	direction: ltr;
}

/* FAQ accordion. */
.wp-block-details.fikra-faq {
	background: var(--wp--preset--color--base);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	padding: 0;
	margin-block-start: 0.8rem;
}

.wp-block-details.fikra-faq summary {
	padding: 0.9rem 1.2rem;
	font-weight: 700;
	cursor: pointer;
}

.wp-block-details.fikra-faq[open] summary {
	background: #dcebdd;
	color: var(--wp--preset--color--accent-1);
	border-radius: 8px 8px 0 0;
}

.wp-block-details.fikra-faq > p {
	padding: 0.8rem 1.2rem 1rem;
	margin: 0;
	color: var(--wp--preset--color--accent-6);
	font-size: 0.9rem;
}

/* Contact Form 7 fields. */
.fikra-form .wpcf7 label {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
}

.fikra-form .wpcf7 input[type="text"],
.fikra-form .wpcf7 input[type="email"],
.fikra-form .wpcf7 input[type="tel"],
.fikra-form .wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.3rem;
	padding: 0.55rem 0.8rem;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	font: inherit;
	background: var(--wp--preset--color--base);
}

.fikra-form .wpcf7 input:focus,
.fikra-form .wpcf7 textarea:focus {
	outline: 2px solid var(--wp--preset--color--accent-4);
	border-color: var(--wp--preset--color--accent-1);
}

.fikra-form .wpcf7 textarea {
	height: 9rem;
}

.fikra-form .wpcf7-submit {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
	border: 0;
	border-radius: 8px;
	padding: 0.6rem 1.8rem;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.fikra-form .wpcf7-submit:hover {
	background: var(--wp--preset--color--accent-2);
}

/* Outline buttons on dark backgrounds use the text color for the frame. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border-width: 1px;
}

/* Footer contact lines never wrap (e-mail / phone must stay in one piece). */
.fikra-footer .fikra-ico {
	white-space: nowrap;
}

/* Latin numbers with a trailing "+" ("45,000+") read left-to-right. */
.fikra-stat .fikra-stat-num {
	direction: ltr;
}

/* Photo that fills its column's height (next to a text box), cropped instead of stretching the row. */
.fikra-photo-fill {
	position: relative;
	height: 100%;
	min-height: 280px;
}

.fikra-photo-fill img {
	position: absolute;
	inset: 0;
	height: 100% !important;
}

/* Secondary text on dark boxes. */
.has-accent-2-background-color .fikra-lead {
	color: #b9c6bb;
}

/* Footer link list without indent in both directions (Arabic RTL and English LTR). */
.fikra-footer ul.wp-block-list {
	padding-inline-start: 0 !important;
}

/* Language switcher in the header: compact button. */
.fikra-header .trp-shortcode-switcher__wrapper .trp-language-item {
	padding: 0.3rem 0.9rem !important;
	min-height: 0 !important;
	font-size: 0.85rem;
}

.fikra-partner-name a {
	color: inherit;
}

/* Edge-to-edge photo next to a colored box (program pages): no rounding, no shadow. */
.fikra-photo-flat img {
	border-radius: 0;
	box-shadow: none;
}

/* Colored box that fills the row height and centers its content vertically. */
.wp-block-column.fikra-v-center {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Full-width column rows (program pages) sit flush, also when stacked on phones. */
.wp-block-post-content > .wp-block-columns.alignfull {
	gap: 0;
	margin-block: 0;
}

/* Fill photos: always the full column width, cropped (cover) instead of stretched - also on wide screens
   where the column is wider than the image file. */
.fikra-photo-fill {
	width: 100%;
	margin: 0 !important;
}

.fikra-photo-fill img {
	width: 100% !important;
	max-width: none !important;
	object-fit: cover;
}

/* Program page rows (economic empowerment): heights measured on the Odoo page at 2560 px width
   (448 / 600 / 250 / 407 px), scaling with the screen width; on phones the columns stack instead. */
@media (min-width: 782px) {
	.wp-block-columns.fikra-row-hero {
		min-height: clamp(240px, 17.5vw, 448px);
	}

	.wp-block-columns.fikra-row-about {
		min-height: clamp(320px, 23.44vw, 600px);
	}

	.wp-block-columns.fikra-row-goals {
		min-height: clamp(160px, 9.77vw, 250px);
	}

	.wp-block-columns.fikra-row-acts {
		min-height: clamp(260px, 15.9vw, 407px);
	}
}

/* Thin full-width line with white space around it between two rows (65 px in total at 2560 px, as on Odoo). */
.wp-block-separator.fikra-row-sep {
	width: auto;
	max-width: none;
	border: 0;
	border-top: 1px solid #dee2e6;
	opacity: 1;
	margin-block: clamp(16px, 1.25vw, 32px) !important;
}

/* Full-width rows: column padding counts inside the column width, so 50% / 50% stays exactly half/half. */
.wp-block-post-content > .wp-block-columns.alignfull > .wp-block-column {
	box-sizing: border-box;
}

/* Legal pages (privacy policy, legal notice): calm reading layout. */
.fikra-legal h2 {
	font-size: 1.3rem;
	margin-top: 2rem;
}

.fikra-legal h3 {
	font-size: 1.05rem;
	font-weight: 700;
	margin-top: 1.4rem;
}

.fikra-legal p,
.fikra-legal li {
	line-height: 1.9;
}

.fikra-legal .fikra-legal-date {
	color: var(--wp--preset--color--accent-6);
	font-size: 0.85rem;
}

/* Forms: privacy note and consent checkbox above the send button. */
.fikra-form .fikra-form-note {
	color: var(--wp--preset--color--accent-6);
	font-size: 0.8rem;
}

.fikra-form .wpcf7-acceptance label {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-weight: 400;
}

.fikra-form .wpcf7-acceptance input {
	margin-top: 0.45rem;
}

/* CF7 marks each form with the language it was created in (dir="rtl" lang="ar"). On the English (LTR)
   pages the form must follow the page direction instead. */
html:not([dir="rtl"]) .wpcf7[dir="rtl"] {
	direction: ltr;
	text-align: left;
}

/* Footer (Admin, 2026-11-01): every column has the same total width as column 1 = column 1's content width
   ("روابط مفيدة" 72 px / "Useful Links" 89 px at 16 px) + the column gap. Longer lines (e-mail) simply run into
   the gap; nothing wraps. Stacked on phones as before. */
:root {
	--fikra-footer-col: 4.5rem;
}

html[lang^="en"] {
	--fikra-footer-col: 5.5625rem;
}

@media (min-width: 782px) {
	.fikra-footer .wp-block-columns {
		justify-content: flex-start;
	}

	.fikra-footer .wp-block-columns > .wp-block-column {
		flex: 0 0 var(--fikra-footer-col) !important;
		min-width: 0;
	}

	/* Column 2 (contact) 20 px wider (Admin). */
	.fikra-footer .wp-block-columns > .wp-block-column:nth-child(2) {
		flex-basis: calc(var(--fikra-footer-col) + 20px) !important;
	}

	.fikra-footer .wp-block-columns > .wp-block-column,
	.fikra-footer .wp-block-columns > .wp-block-column * {
		white-space: nowrap;
		text-wrap: nowrap;
	}

	.fikra-footer .wp-block-columns > .wp-block-column .wp-block-social-links {
		flex-wrap: nowrap;
	}
}

/* Footer contact lines (icon + text) must count with their full width, so column 2 is as wide as the e-mail line
   and the next column starts after it. As a flex row Chrome under-measured them (column sized by the social icons
   only), so here the icon is positioned in front of the text instead. Same look. */
.fikra-footer .fikra-ico {
	display: block;
	position: relative;
	padding-inline-start: 20px;
	width: max-content;
}

.fikra-footer .fikra-ico::before {
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	width: 14px;
	transform: translateY(-50%);
}

/* Footer menus (navigation blocks, 2026-11-01) styled exactly like the former link lists: 0.85rem, line height
   1.7, links green (hover like other links), icons in the text color, 0.25rem / 0.2rem between rows. */
.fikra-footer .wp-block-navigation {
	font-size: 0.85rem;
	line-height: 1.7;
	color: var(--wp--preset--color--contrast);
}

.fikra-footer .wp-block-navigation .wp-block-navigation__container {
	gap: 0.25rem;
}

.fikra-footer .wp-block-navigation.fikra-menu-footer-contact .wp-block-navigation__container {
	gap: 0.2rem;
}

.fikra-footer .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0;
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}

.fikra-footer .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent-3);
	text-decoration: underline;
}

.fikra-footer .fikra-ltr-link > a {
	direction: ltr;
	unicode-bidi: isolate;
}

/* The former link lists had 0.25rem below their last link (matters when the columns stack on phones). */
.fikra-footer .wp-block-navigation.fikra-menu-footer-links,
.fikra-footer .wp-block-navigation.fikra-menu-footer-legal {
	margin-bottom: 0.125rem;
}
