/* Mona Ali Sayed: additions on top of the Profession template (index-2) */

/* text logo in place of the template's image logo */
header .logo, header .logo-2 {
	font-family: "Nunito", sans-serif;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1;
}

/* top bar: see-through over the photo on every screen size */
@media (max-width: 993px) {
	header.header-mobile,
	header.header-mobile.header-light {
		background: transparent !important;
	}
	header.header-mobile .logo {
		display: inline-block;
	}
	header.header-mobile .logo-2 {
		display: none;
	}
	header.header-mobile #menu-btn,
	header.header-mobile #menu-btn:hover {
		background: none;
	}
	header.header-mobile #menu-btn:before,
	header.header-mobile #menu-btn:hover:before {
		color: #fff;
	}
	/* menu open (the template sets height: 100% inline): dark glass keeps the links readable */
	header.header-mobile[style*="100%"] {
		background: rgba(18, 18, 18, .88) !important;
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}
	header.header-mobile #mainmenu a {
		color: #fff;
	}
	header.header-mobile #mainmenu li {
		border-bottom-color: rgba(255, 255, 255, .12);
	}
}
/* after scrolling on larger screens: a see-through dark bar instead of the solid white one */
header.smaller,
header.smaller.scroll-light {
	background: rgba(20, 20, 20, .65) !important;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
header.smaller.scroll-light div#logo .logo {
	display: inline-block !important;
}
header.smaller.scroll-light div#logo .logo-2 {
	display: none !important;
}
header.smaller.scroll-light #mainmenu > li > a {
	color: #fff;
}

/* hero heading: "Hi," on its own line and the rest on the next, never wrapped */
.hero-name span {
	display: block;
	white-space: nowrap;
}
@media (max-width: 767px) {
	h1.big.hero-name {
		font-size: min(56px, 9vw);
		line-height: 1.25;
	}
}

/* hero photo: the template's 170px circle, sharp on high-density screens */
.img-profile {
	width: 170px;
	height: 170px;
	object-fit: cover;
}

/* about: skills, languages and location */
.info-block {
	padding: 10px 0 20px;
}
.info-block h4 {
	font-size: 18px;
	margin-bottom: 12px;
}
.info-block h4.mt30 {
	margin-top: 30px;
}
.skill-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.skill-list li {
	padding: 8px 0;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.skill-list li i {
	width: 18px;
	margin-right: 10px;
	text-align: center;
}
.skill-list .level {
	float: right;
	opacity: .6;
}

/* expertise: one line under the heading */
#section-services .section-lead {
	max-width: 640px;
	margin: -10px auto 30px;
	color: rgba(255, 255, 255, .8);
}

/* experience, education and training */
.exp-box .exp-org {
	color: var(--accent-light);
	font-weight: 600;
	margin: -6px 0 10px;
}
.exp-points {
	margin: 0 0 15px;
	padding-left: 18px;
}
.exp-points li {
	margin-bottom: 6px;
}
.exp-heading-2 {
	margin-top: 40px;
}

/* contact: the note shown after the email app opens */
#mail_success {
	margin-top: 15px;
}

/* job duties: a little brighter than the template's grey so the longer lists read easily */
.text-light .exp-points li {
	color: rgba(255, 255, 255, .82);
}

/* expertise cards: equal heights, so the row lines up and the slider doesn't jump on phones */
#carousel-3 .owl-wrapper {
	display: flex !important;
}
#carousel-3 .owl-item {
	display: flex;
	float: none;
}
#carousel-3 .owl-item .feature-box {
	display: flex;
	width: 100%;
}
#carousel-3 .owl-item .feature-box .inner {
	width: 100%;
}

/* one-line summary under each course */
.text-light .exp-box .exp-desc {
	color: rgba(255, 255, 255, .82);
	margin: 0 0 10px;
}

/* overlays: lighter, so the purple gradient shows through */
#section-hero-2 .overlay-bg {
	background: rgba(8, 4, 16, .25);
}
#section-services.index-2 .overlay-bg,
#section-experiences.index-2 .overlay-bg {
	background: rgba(8, 4, 16, .4);
}

/* expertise cards: see-through black instead of see-through white (hover keeps the colour gradient) */
.feature-box .inner {
	background: rgba(0, 0, 0, .35);
}

/* organisation logos on white tiles, so dark and light logos both read on the purple background */
.exp-box.has-logo {
	position: relative;
	padding-left: 80px;
	min-height: 80px;
}
.exp-logo {
	position: absolute;
	left: 0;
	top: 0;
	width: 60px;
	height: 60px;
	padding: 8px;
	border-radius: 12px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.exp-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* contact: the CV's phone and email icons, drawn in the accent colour */
address span .addr-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin: 0 15px 0 5px;
	vertical-align: -4px;
	background: var(--accent);
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}
address span .icon-phone {
	-webkit-mask-image: url(../images/logos/icon-phone.svg);
	mask-image: url(../images/logos/icon-phone.svg);
}
address span .icon-email {
	-webkit-mask-image: url(../images/logos/icon-email.svg);
	mask-image: url(../images/logos/icon-email.svg);
}
address span i.fa-map-marker {
	width: 20px;
	text-align: center;
	color: var(--accent);
}

/* accent text on the dark background sections uses the lighter tone, for contrast */
.text-light .id-color {
	color: var(--accent-light);
}

@media (max-width: 767px) {
	/* phones: logo above the entry, so the text keeps the full width */
	.exp-box.has-logo {
		padding-left: 0;
		min-height: 0;
	}
	.exp-logo {
		position: static;
		width: 52px;
		height: 52px;
		margin-bottom: 14px;
	}
}

/* ===== English / Arabic ===== */
html:not([lang="ar"]) [data-lang="ar"],
html[lang="ar"] [data-lang="en"] {
	display: none !important;
}

/* language button beside the menu button (phones only; on larger screens the menu item is visible) */
header .lang-btn {
	display: none;
}
#mainmenu .lang-switch i {
	margin-right: 6px;
}
@media (max-width: 993px) {
	header .lang-btn {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		float: right;
		height: 36px;
		padding: 0 12px;
		margin-right: 8px;
		border: 1px solid rgba(255, 255, 255, .35);
		border-radius: 18px;
		color: #fff;
		font-weight: 700;
		font-size: 15px;
		line-height: 1;
	}
	header .lang-btn i {
		font-size: 16px;
	}
}

/* Arabic font: Tajawal for the text, the icon fonts are left alone */
html[lang="ar"] body,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] p, html[lang="ar"] li, html[lang="ar"] a,
html[lang="ar"] input, html[lang="ar"] textarea, html[lang="ar"] .btn,
html[lang="ar"] header .logo, html[lang="ar"] header .logo-2,
html[lang="ar"] .typed, html[lang="ar"] address span, html[lang="ar"] .subfooter {
	font-family: "Tajawal", "Nunito", sans-serif !important;
	letter-spacing: 0 !important;
}
html[lang="ar"] .exp-box h3 bdi:not([data-lang]) {
	font-family: "Nunito", sans-serif;   /* course titles stay in English */
}

/* right-to-left layout */
html[dir="rtl"] header div#logo {
	float: right;
}
html[dir="rtl"] header nav,
html[dir="rtl"] #mainmenu {
	float: left;
}
html[dir="rtl"] #mainmenu li {
	float: right;
}
html[dir="rtl"] #mainmenu .lang-switch i {
	margin-right: 0;
	margin-left: 6px;
}
html[dir="rtl"] #menu-btn {
	float: left;
}
@media (max-width: 993px) {
	html[dir="rtl"] header .lang-btn {
		float: left;
		margin-right: 0;
		margin-left: 8px;
	}
	html[dir="rtl"] header.header-mobile nav,
	html[dir="rtl"] header.header-mobile #mainmenu {
		float: none;   /* phones: the menu list spans the full width */
	}
	html[dir="rtl"] header.header-mobile #mainmenu li {
		float: right;  /* full-width items that wrap below the bar, as in the template */
	}
	html[dir="rtl"] header.header-mobile #mainmenu a {
		text-align: right;
	}
}
@media (min-width: 992px) {
	html[dir="rtl"] .row > [class*="col-md-"] {
		float: right;
	}
	html[dir="rtl"] .row > .col-md-offset-2 {
		margin-left: 0;
		margin-right: 16.66666667%;
	}
}
html[dir="rtl"] #carousel-3 {
	direction: ltr;   /* the slider itself keeps its own direction */
}
html[dir="rtl"] #carousel-3 .feature-box .inner {
	direction: rtl;
}
html[dir="rtl"] .skill-list li i {
	margin-right: 0;
	margin-left: 10px;
}
html[dir="rtl"] .skill-list .level {
	float: left;
}
html[dir="rtl"] .exp-points {
	padding-left: 0;
	padding-right: 18px;
}
html[dir="rtl"] .exp-box.has-logo {
	padding-left: 0;
	padding-right: 80px;
}
html[dir="rtl"] .exp-logo {
	left: auto;
	right: 0;
}
@media (max-width: 767px) {
	html[dir="rtl"] .exp-box.has-logo {
		padding-right: 0;
	}
}
html[dir="rtl"] address span i {
	margin-left: 15px;
	margin-right: 5px;
}
html[dir="rtl"] address span .addr-icon {
	margin: 0 5px 0 15px;
}
