/*
Theme Name:  TravelTour Child — Jakada
Theme URI:   https://jakadatoursegypt.com/
Description: Child theme of TravelTour for Jakada Tours Egypt. Rich author page with real E-E-A-T signals (Person schema, credentials, TripAdvisor credibility), sitewide security hardening (XML-RPC blocked, headers set, user-enum blocked, version strings stripped), and a safe home for canonical / redirect fixes that must survive parent-theme updates.
Author:      Jakada Tours Egypt
Author URI:  https://jakadatoursegypt.com/
Template:    traveltour
Version:     1.1.0
Text Domain: traveltour-child
*/


/* ==========================================================================
   Author page — clean, light, on-brand.
   Uses the parent theme's `gdlr-core-blog-grid` card system for articles
   (that's what /blog/ renders), so the article grid looks native to the site.
   All custom bits are scoped to .jakada-author-*.
   ========================================================================== */

/* Hide the parent theme's default "By Ahmed Fayed" title bar on author archives —
   we render our own hero. */
body.author .traveltour-page-title-wrap {
	display: none !important;
}

/* Also hide the fallback prefix "By" if some templates still emit it before our hero. */
body.author .author-title,
body.author .author-info-wrap {
	display: none !important;
}

.jakada-author-wrapper {
	background: #fff;
}

/* ---------- Hero ---------- */

.jakada-author-hero {
	padding: 70px 0 50px;
	background: #fff;
	border-bottom: 1px solid #f0ebe0;
}

.jakada-author-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

.jakada-author-hero__avatar {
	flex: 0 0 auto;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(20, 40, 60, 0.10);
	border: 4px solid #fff;
	outline: 1px solid #eee7d3;
	outline-offset: -1px;
}

.jakada-author-hero__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jakada-author-hero__meta {
	flex: 1 1 340px;
	min-width: 0;
}

.jakada-author-hero__eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #b58a3c;
	margin-bottom: 10px;
}

.jakada-author-hero__name {
	font-size: 40px;
	line-height: 1.1;
	margin: 0 0 6px;
	font-weight: 700;
	color: #1a2332;
}

.jakada-author-hero__title {
	font-size: 17px;
	color: #6b6b6b;
	margin: 0 0 20px;
	font-weight: 400;
}

.jakada-author-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid #f0ebe0;
}

.jakada-author-hero__stat {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.jakada-author-hero__stat strong {
	font-size: 26px;
	font-weight: 700;
	color: #1a2332;
	font-variant-numeric: tabular-nums;
}

.jakada-author-hero__stat span {
	font-size: 11px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	margin-top: 6px;
}

/* ---------- Body sections ---------- */

.jakada-author-body {
	max-width: 1080px;
	margin: 50px auto 0;
	padding: 0 24px 40px;
}

.jakada-author-section {
	margin-bottom: 50px;
}

.jakada-author-section h2 {
	font-size: 26px;
	margin: 0 0 22px;
	color: #1a2332;
	position: relative;
	padding-bottom: 14px;
	font-weight: 700;
	letter-spacing: -0.2px;
}

.jakada-author-section h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 3px;
	background: #b58a3c;
	border-radius: 2px;
}

.jakada-author-bio p {
	font-size: 16.5px;
	line-height: 1.8;
	color: #444;
	margin: 0 0 18px;
}

/* ---------- Credentials + specialties (cream cards) ---------- */

.jakada-author-credentials {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.jakada-author-credentials li {
	background: #faf7f0;
	border-left: 3px solid #b58a3c;
	padding: 15px 18px;
	font-size: 14.5px;
	line-height: 1.55;
	color: #333;
	border-radius: 2px;
}

/* ---------- Social pills ---------- */

.jakada-author-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.jakada-author-social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border: 1px solid #e8e2d1;
	background: #fff;
	border-radius: 999px;
	font-size: 13.5px;
	color: #444;
	text-decoration: none;
	letter-spacing: 0.3px;
	transition: all 0.15s ease;
}

.jakada-author-social a:hover {
	border-color: #b58a3c;
	color: #b58a3c;
	background: #faf7f0;
}

/* ---------- Articles section — uses the parent theme's blog grid ---------- */

/* The container my template outputs. Inside it, the theme's own gdlr-core-blog-grid
   markup renders. We just need the wrapper spacing and a "View All" button below. */
.jakada-author-articles {
	margin-top: 10px;
}

.jakada-author-articles__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 900px) {
	.jakada-author-articles__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.jakada-author-articles__grid { grid-template-columns: 1fr; }
}

/* Nudge the theme's grid item to sit correctly inside our CSS grid cell. */
.jakada-author-articles__grid .gdlr-core-item-list {
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100% !important;
	float: none !important;
	margin-bottom: 0 !important;
}
.jakada-author-articles__grid .gdlr-core-blog-grid {
	margin-bottom: 0 !important;
	height: 100%;
}

.jakada-author-articles__cta {
	text-align: center;
	margin-top: 44px;
}

.jakada-author-articles__cta a {
	display: inline-block;
	padding: 14px 40px;
	border: 2px solid #b58a3c;
	background: transparent;
	color: #b58a3c;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	border-radius: 2px;
	transition: all 0.15s ease;
}

.jakada-author-articles__cta a:hover {
	background: #b58a3c;
	color: #fff;
}

.jakada-author-empty {
	text-align: center;
	padding: 40px 20px;
	color: #888;
	background: #faf7f0;
	border-radius: 4px;
}

/* ---------- Contact CTA — LIGHT (cream + gold border, not dark navy) ---------- */

.jakada-author-cta {
	text-align: center;
	padding: 50px 30px;
	background: #faf7f0;
	border: 1px solid #ede4cf;
	border-left: 4px solid #b58a3c;
	border-radius: 4px;
	margin-top: 50px;
}

.jakada-author-cta h3 {
	color: #1a2332;
	font-size: 26px;
	margin: 0 0 12px;
	font-weight: 700;
}

.jakada-author-cta p {
	color: #555;
	font-size: 16px;
	line-height: 1.7;
	margin: 0 auto 26px;
	max-width: 560px;
}

.jakada-author-cta a {
	display: inline-block;
	background: #b58a3c;
	color: #fff;
	padding: 14px 34px;
	border-radius: 2px;
	text-decoration: none;
	font-size: 13px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	font-weight: 700;
	transition: background 0.15s ease;
	border: 2px solid #b58a3c;
}

.jakada-author-cta a:hover {
	background: #cfa049;
	border-color: #cfa049;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
	.jakada-author-hero {
		padding: 44px 0 34px;
	}
	.jakada-author-hero__inner {
		gap: 28px;
	}
	.jakada-author-hero__avatar {
		width: 150px;
		height: 150px;
	}
	.jakada-author-hero__name {
		font-size: 30px;
	}
	.jakada-author-hero__stats {
		gap: 18px 24px;
	}
	.jakada-author-hero__stat strong {
		font-size: 20px;
	}
	.jakada-author-body {
		margin-top: 34px;
	}
	.jakada-author-section h2 {
		font-size: 22px;
	}
}
