/* Howyah Core - Frontend Styles (Gold & White Luxury Encyclopedia RTL) */
:root {
	--howyah-gold: #B99545;
	--howyah-gold-light: #D7BD7A;
	--howyah-white: #FFFFFF;
	--howyah-bg: #F8F8F6;
	--howyah-text: #252525;
	--howyah-gray: #777777;
	--howyah-border: #EAE6DC;
	--howyah-radius: 14px;
	--howyah-shadow: 0 8px 28px rgba(37, 37, 37, 0.05);
}

.howyah-encyclopedia-home,
.howyah-wrap,
.howyah-single-profile,
.howyah-dashboard-shell {
	font-family: 'Cairo', sans-serif;
	color: var(--howyah-text);
	direction: rtl;
	text-align: right;
	line-height: 1.7;
	box-sizing: border-box;
}

.howyah-encyclopedia-home *,
.howyah-wrap *,
.howyah-single-profile *,
.howyah-dashboard-shell * {
	box-sizing: border-box;
}

.howyah-container {
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 18px;
}

.howyah-wrap {
	max-width: 1220px;
	margin: 28px auto;
	padding: 0 18px;
}

/* Navbar */
.howyah-navbar {
	background: var(--howyah-white);
	border-bottom: 1px solid var(--howyah-border);
	position: sticky;
	top: 0;
	z-index: 90;
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
}

.howyah-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--howyah-text);
}

.brand-mark {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--howyah-gold), var(--howyah-gold-light));
	color: #fff;
	font-weight: 800;
	font-size: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.brand-text strong {
	display: block;
	font-size: 18px;
	color: var(--howyah-text);
}

.brand-text small {
	display: block;
	font-size: 11px;
	color: var(--howyah-gray);
}

.howyah-nav-links {
	display: flex;
	align-items: center;
	gap: 18px;
}

.howyah-nav-links a {
	text-decoration: none;
	color: var(--howyah-text);
	font-weight: 600;
	font-size: 14px;
	transition: color 0.2s;
}

.howyah-nav-links a:hover {
	color: var(--howyah-gold);
}

.howyah-nav-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.howyah-mobile-toggle {
	display: none;
	background: none;
	border: 1px solid var(--howyah-border);
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 18px;
	cursor: pointer;
}

/* Buttons */
.btn-howyah-gold {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--howyah-gold), #a58237);
	color: #fff !important;
	border: none;
	border-radius: 10px;
	padding: 10px 20px;
	font-family: 'Cairo', sans-serif;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.2s;
}

.btn-howyah-gold:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(185, 149, 69, 0.3);
}

.btn-howyah-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--howyah-white);
	color: var(--howyah-gold) !important;
	border: 1.5px solid var(--howyah-gold);
	border-radius: 10px;
	padding: 9px 18px;
	font-family: 'Cairo', sans-serif;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
}

.btn-howyah-text {
	background: none;
	border: none;
	color: var(--howyah-gray);
	font-family: 'Cairo', sans-serif;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

.btn-lg {
	padding: 13px 28px;
	font-size: 16px;
}

.btn-block {
	width: 100%;
}

/* Hero Section */
.howyah-hero {
	background: radial-gradient(circle at top right, #fffdf8, var(--howyah-bg));
	border-bottom: 1px solid var(--howyah-border);
	padding: 64px 0 54px;
	text-align: center;
}

.hero-kicker {
	display: inline-block;
	background: rgba(185, 149, 69, 0.12);
	color: var(--howyah-gold);
	padding: 4px 16px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 14px;
}

.howyah-hero h1 {
	font-size: clamp(24px, 4vw, 38px);
	font-weight: 800;
	margin: 0 0 12px;
	color: var(--howyah-text);
}

.howyah-hero p {
	color: var(--howyah-gray);
	max-width: 680px;
	margin: 0 auto 28px;
	font-size: 16px;
}

.howyah-hero-search-form {
	max-width: 840px;
	margin: 0 auto;
}

.search-input-wrap {
	position: relative;
	display: flex;
	background: var(--howyah-white);
	border: 1.5px solid var(--howyah-gold-light);
	border-radius: 14px;
	padding: 6px;
	box-shadow: var(--howyah-shadow);
}

.search-input-wrap input {
	flex: 1;
	border: none;
	outline: none;
	padding: 12px 16px;
	font-family: 'Cairo', sans-serif;
	font-size: 15px;
	background: transparent;
}

.live-search-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	background: var(--howyah-white);
	border: 1px solid var(--howyah-border);
	border-radius: 12px;
	margin-top: 6px;
	box-shadow: var(--howyah-shadow);
	z-index: 99;
	text-align: right;
	overflow: hidden;
}

.live-search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: var(--howyah-text);
	border-bottom: 1px solid var(--howyah-bg);
}

.live-search-item:hover {
	background: var(--howyah-bg);
}

.hero-quick-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
}

.hero-quick-filters select,
.howyah-filter-bar select,
.howyah-filter-bar input[type="text"],
.howyah-field-group select {
	padding: 8px 16px;
	min-height: 46px;
	height: auto;
	line-height: 1.7;
	border: 1px solid var(--howyah-border);
	border-radius: 10px;
	background-color: var(--howyah-white);
	color: var(--howyah-text);
	font-family: 'Cairo', sans-serif;
	font-size: 14px;
	direction: rtl;
	text-align: right;
}

.verified-check-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--howyah-white);
	border: 1px solid var(--howyah-border);
	padding: 8px 14px;
	border-radius: 10px;
	font-size: 13px;
	cursor: pointer;
}

/* Sections & Grids */
.howyah-section {
	padding: 52px 0;
}

.howyah-bg-soft {
	background: var(--howyah-bg);
}

.howyah-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 26px;
}

.howyah-section-head h1,
.howyah-section-head h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
}

.link-more {
	color: var(--howyah-gold);
	font-weight: 700;
	text-decoration: none;
	font-size: 14px;
}

/* Categories Grid */
.howyah-cats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 16px;
}

.howyah-cat-card {
	background: var(--howyah-white);
	border: 1px solid var(--howyah-border);
	border-radius: var(--howyah-radius);
	padding: 22px 18px;
	text-align: center;
	text-decoration: none;
	color: var(--howyah-text);
	transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.howyah-cat-card:hover {
	transform: translateY(-3px);
	border-color: var(--howyah-gold);
	box-shadow: var(--howyah-shadow);
}

.cat-icon {
	font-size: 32px;
	display: block;
	margin-bottom: 8px;
}

.howyah-cat-card h3 {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 700;
}

.cat-count {
	font-size: 12px;
	color: var(--howyah-gray);
}

/* Profile Cards Grid */
.howyah-profiles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 20px;
}

.howyah-profile-card {
	background: var(--howyah-white);
	border: 1px solid var(--howyah-border);
	border-radius: var(--howyah-radius);
	padding: 20px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	box-shadow: var(--howyah-shadow);
	transition: transform 0.2s, border-color 0.2s;
}

.howyah-profile-card:hover {
	transform: translateY(-2px);
	border-color: var(--howyah-gold-light);
}

.card-avatar-wrap img,
.card-avatar-fallback {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--howyah-gold-light);
	flex-shrink: 0;
}

.card-avatar-fallback {
	background: linear-gradient(135deg, var(--howyah-gold), var(--howyah-gold-light));
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.card-title {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 6px;
}

.card-title a {
	text-decoration: none;
	color: var(--howyah-text);
}

.howyah-verified-badge {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

.card-job {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--howyah-gray);
}

.card-meta-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
}

.meta-pill {
	background: var(--howyah-bg);
	color: var(--howyah-text);
	font-size: 12px;
	padding: 2px 10px;
	border-radius: 999px;
}

.meta-pill-gold {
	background: rgba(185, 149, 69, 0.14);
	color: var(--howyah-gold);
	font-weight: 700;
}

.card-location {
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--howyah-gray);
}

/* Articles Grid */
.howyah-articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.howyah-article-card {
	background: var(--howyah-white);
	border: 1px solid var(--howyah-border);
	border-radius: var(--howyah-radius);
	overflow: hidden;
}

.art-thumb img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}

.art-body {
	padding: 18px;
}

.art-date {
	font-size: 12px;
	color: var(--howyah-gold);
}

.art-body h3 {
	margin: 6px 0 8px;
	font-size: 17px;
}

.art-body h3 a {
	text-decoration: none;
	color: var(--howyah-text);
}

/* CTA Banner */
.howyah-cta-banner {
	background: linear-gradient(135deg, #252525, #383329);
	color: #fff;
	padding: 56px 0;
	text-align: center;
}

.howyah-cta-banner h2 {
	font-size: 28px;
	margin: 0 0 10px;
	color: var(--howyah-gold-light);
}

.howyah-cta-banner p {
	max-width: 620px;
	margin: 0 auto 24px;
	color: #e6e2d8;
}

/* Footer */
.howyah-footer {
	background: var(--howyah-white);
	border-top: 1px solid var(--howyah-border);
	padding-top: 44px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
	padding-bottom: 32px;
}

.footer-grid ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-grid li {
	margin-bottom: 8px;
}

.footer-grid a {
	text-decoration: none;
	color: var(--howyah-gray);
	font-size: 14px;
}

.footer-bottom {
	border-top: 1px solid var(--howyah-border);
	text-align: center;
	padding: 16px;
	font-size: 13px;
	color: var(--howyah-gray);
}

/* Single Profile Page */
.howyah-breadcrumbs {
	padding: 16px 0;
	font-size: 13px;
	color: var(--howyah-gray);
}

.howyah-breadcrumbs a {
	color: var(--howyah-gold);
	text-decoration: none;
}

.profile-hero-card {
	background: var(--howyah-white);
	border: 1px solid var(--howyah-border);
	border-radius: var(--howyah-radius);
	overflow: hidden;
	margin-bottom: 24px;
	box-shadow: var(--howyah-shadow);
}

.profile-cover {
	height: 200px;
	background: linear-gradient(135deg, var(--howyah-gold), var(--howyah-gold-light));
	background-size: cover;
	background-position: center;
}

.profile-head-body {
	padding: 20px 26px 26px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 20px;
	margin-top: -54px;
}

.profile-avatar-large img,
.avatar-placeholder {
	width: 118px;
	height: 118px;
	border-radius: 50%;
	border: 4px solid var(--howyah-white);
	object-fit: cover;
	background: var(--howyah-gold);
	color: #fff;
	font-size: 42px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--howyah-shadow);
}

.profile-identity-info {
	flex: 1;
	min-width: 240px;
	padding-top: 46px;
}

.profile-identity-info h1 {
	margin: 0 0 4px;
	font-size: 26px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.profile-job-title {
	margin: 0 0 10px;
	color: var(--howyah-gray);
	font-size: 15px;
}

.profile-badges-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.profile-head-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.profile-content-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 22px;
}

.profile-section-card {
	background: var(--howyah-white);
	border: 1px solid var(--howyah-border);
	border-radius: var(--howyah-radius);
	padding: 22px;
	margin-bottom: 20px;
}

.profile-section-card h2,
.profile-section-card h3 {
	margin: 0 0 14px;
	font-size: 19px;
	border-bottom: 1px solid var(--howyah-bg);
	padding-bottom: 8px;
}

.howyah-specs-list .spec-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px dashed var(--howyah-border);
}

.howyah-specs-list dt {
	font-weight: 700;
	color: var(--howyah-gray);
}

.howyah-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.gallery-item img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 10px;
}

.side-info-list {
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
}

.side-info-list li {
	padding: 6px 0;
	font-size: 14px;
	border-bottom: 1px solid var(--howyah-bg);
}

.social-links-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.social-pill {
	background: var(--howyah-bg);
	color: var(--howyah-text);
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
}

/* Forms & Auth */
.howyah-form-card,
.howyah-auth-box {
	background: var(--howyah-white);
	border: 1px solid var(--howyah-border);
	border-radius: var(--howyah-radius);
	padding: 28px;
	box-shadow: var(--howyah-shadow);
}

.howyah-auth-box {
	max-width: 480px;
	margin: 32px auto;
}

.howyah-field-group {
	margin-bottom: 16px;
}

.howyah-field-group label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 6px;
}

.howyah-field-group input[type="text"],
.howyah-field-group input[type="email"],
.howyah-field-group input[type="password"],
.howyah-field-group input[type="url"],
.howyah-field-group input[type="number"],
.howyah-field-group input[type="date"],
.howyah-field-group select,
.howyah-field-group textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--howyah-border);
	border-radius: 10px;
	font-family: 'Cairo', sans-serif;
	font-size: 14px;
	background: var(--howyah-bg);
}

.form-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.form-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.req {
	color: #c0392b;
}

.form-feedback {
	margin-top: 12px;
	font-weight: 700;
	font-size: 14px;
}

.form-feedback.success {
	color: #1e8449;
}

.form-feedback.error {
	color: #c0392b;
}

/* Packages Grid */
.howyah-packages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 22px;
}

.howyah-package-card {
	background: var(--howyah-white);
	border: 1.5px solid var(--howyah-border);
	border-radius: var(--howyah-radius);
	padding: 26px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: var(--howyah-shadow);
}

.pkg-price {
	margin: 12px 0 18px;
	color: var(--howyah-gold);
}

.pkg-price strong {
	font-size: 34px;
}

.pkg-features {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
}

.pkg-features li {
	padding: 6px 0;
	border-bottom: 1px solid var(--howyah-bg);
	font-size: 14px;
}

/* Categories Directory */
.howyah-cats-directory {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}

.howyah-cat-dir-card {
	background: var(--howyah-white);
	border: 1px solid var(--howyah-border);
	border-radius: var(--howyah-radius);
	padding: 20px;
}

.cat-dir-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.cat-sub-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.cat-sub-list a {
	background: var(--howyah-bg);
	padding: 4px 10px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--howyah-text);
	font-size: 13px;
}

/* Filter Bar */
.howyah-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	background: var(--howyah-white);
	padding: 16px;
	border: 1px solid var(--howyah-border);
	border-radius: var(--howyah-radius);
	margin-bottom: 24px;
}

/* Modal */
.howyah-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.howyah-modal-content {
	background: var(--howyah-white);
	border-radius: var(--howyah-radius);
	padding: 24px;
	max-width: 460px;
	width: 100%;
	position: relative;
}

.modal-close {
	position: absolute;
	top: 12px;
	left: 14px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
}

/* Responsive Breakpoints (360px, 390px, Tablet, Laptop) */
@media (max-width: 900px) {
	.profile-content-layout {
		grid-template-columns: 1fr;
	}
	.howyah-nav-links {
		display: none;
		flex-direction: column;
		width: 100%;
		padding-top: 12px;
	}
	.howyah-nav-links.open {
		display: flex;
	}
	.howyah-mobile-toggle {
		display: inline-block;
	}
	.nav-inner {
		flex-wrap: wrap;
	}
}

/* Package Discount & Countdown Styles */
.howyah-package-card.has-offer {
	border-color: var(--howyah-gold);
	position: relative;
}

.pkg-offer-badge {
	display: inline-block;
	background: linear-gradient(135deg, var(--howyah-gold), #a58237);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 10px;
}

.pkg-price-before {
	font-size: 13px;
	color: var(--howyah-gray);
	margin-bottom: 2px;
}

.pkg-price-before del {
	color: #c0392b;
	font-weight: 600;
}

.pkg-countdown-box {
	background: var(--howyah-bg);
	border: 1px dashed var(--howyah-gold);
	border-radius: 10px;
	padding: 8px 12px;
	margin-bottom: 14px;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.pkg-countdown-box .cd-timer {
	font-family: monospace, 'Cairo', sans-serif;
	font-size: 15px;
	color: #c0392b;
	direction: ltr;
}

@media (max-width: 640px) {
	.form-grid-2,
	.form-grid-3 {
		grid-template-columns: 1fr;
	}
	.search-input-wrap {
		flex-direction: column;
		gap: 8px;
	}
	.howyah-profiles-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.howyah-profile-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 14px 10px;
		gap: 10px;
	}
	.card-avatar-wrap img,
	.card-avatar-fallback {
		width: 62px;
		height: 62px;
	}
	.card-title {
		font-size: 14px;
		justify-content: center;
		flex-wrap: wrap;
	}
	.card-job {
		font-size: 12px;
	}
	.card-meta-tags {
		justify-content: center;
	}
	.meta-pill {
		font-size: 11px;
		padding: 2px 8px;
	}
	.card-location {
		font-size: 11px;
	}
}
