/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra child theme with last-updated post date, estimated reading time, a magazine-style split navigation (categories on the left, pages on the right), a search bar above the header, and a custom homepage (featured editorial + category slider + blog roll) — inspired by Wired.com's layout.
Author: Your Name
Template: astra
Version: 1.1.0
Text Domain: astra-child
*/

/* ==========================================================================
   1. Sticky header — DISABLED
   The child theme no longer adds its own sticky behaviour. This rule also
   forces Astra's native "Sticky Header" (Customizer > Header Builder) to
   stay non-sticky in case it's still toggled on there, so the header always
   scrolls away normally.
   ========================================================================== */
#masthead,
.main-header-bar-wrap,
.ast-builder-menu-1,
.ast-primary-header-bar-wrap {
	position: relative !important;
	top: auto !important;
}

/* ==========================================================================
   2. Search bar above the header
   ========================================================================== */
.astra-child-top-search-bar {
	background: #f7f7f7;
	border-bottom: 1px solid #e5e5e5;
	padding: 6px 0;
}

.astra-child-top-search-inner {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.astra-child-top-search-inner .search-form {
	display: flex;
	align-items: center;
	max-width: 260px;
	width: 100%;
}

.astra-child-top-search-inner .search-field {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 3px 0 0 3px;
	padding: 6px 10px;
	font-size: 13px;
}

.astra-child-top-search-inner .search-submit {
	border-radius: 0 3px 3px 0;
	background: #111;
	color: #fff;
	border: none;
	padding: 6px 14px;
	cursor: pointer;
}

/* ==========================================================================
   3. Secondary nav row — categories (left) / pages (right), Wired-style
   ========================================================================== */
.astra-child-secondary-nav {
	background: #fff;
	border-top: 3px solid #000;
	border-bottom: 1px solid #e5e5e5;
}

.astra-child-secondary-nav-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.astra-child-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 22px;
}

.astra-child-menu li a {
	display: inline-block;
	padding: 12px 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #111;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.astra-child-menu li a:hover,
.astra-child-menu li a:focus {
	border-bottom-color: #e2231a;
	color: #e2231a;
}

.astra-child-menu-right li a {
	font-weight: 500;
}

/* ==========================================================================
   4. Reading time / last-updated badges (single post meta)
   ========================================================================== */
.astra-child-meta-extras {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 6px;
	font-size: 13px;
	color: #666;
}

.astra-child-meta-extras .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
	vertical-align: text-bottom;
	margin-right: 3px;
}

.astra-child-reading-time-badge {
	display: inline-block;
	margin-left: 10px;
	font-size: 12px;
	color: #888;
}

/* ==========================================================================
   5. Responsive
   ========================================================================== */
@media (max-width: 768px) {
	.astra-child-secondary-nav-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.astra-child-menu {
		flex-wrap: wrap;
		gap: 14px;
	}

	.astra-child-top-search-inner {
		justify-content: center;
	}
}

/* ==========================================================================
   6. Logo / Site Title — Bold sans-serif (Option 5)
   ========================================================================== */

/* Hide the default Astra site title text so we can restyle it */
.site-title,
.ast-site-title {
	font-family: 'Arial Black', Arial, sans-serif !important;
	font-size: 28px !important;
	font-weight: 900 !important;
	letter-spacing: 1px !important;
	color: #111 !important;
	text-transform: none !important;
	line-height: 1.1 !important;
}

.site-title a,
.ast-site-title a {
	color: #111 !important;
	text-decoration: none !important;
}

.site-title a:hover,
.ast-site-title a:hover {
	color: #e2231a !important;
	text-decoration: none !important;
}

/* Tagline under the logo */
.site-description,
.ast-site-description {
	font-family: Arial, sans-serif !important;
	font-size: 11px !important;
	font-weight: 400 !important;
	letter-spacing: 5px !important;
	text-transform: uppercase !important;
	color: #888 !important;
	margin-top: 2px !important;
}

/* If using an image logo, constrain its height */
.ast-logo-img,
.custom-logo {
	max-height: 50px !important;
	width: auto !important;
}

/* Site branding wrapper vertical alignment */
.ast-site-identity {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
}

/* ==========================================================================
   7. Custom homepage — wrapper
   ========================================================================== */
.astra-child-home-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* --- 7a. Featured editorial (the ~1000 word piece above the blog roll) --- */
.astra-child-featured {
	margin: 40px 0 50px;
	padding-bottom: 40px;
	border-bottom: 3px solid #000;
}

.astra-child-featured-label {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #e2231a;
	margin-bottom: 12px;
}

.astra-child-featured-title {
	font-size: 34px;
	font-weight: 900;
	line-height: 1.15;
	margin: 0 0 18px;
}

.astra-child-featured-image {
	margin: 0 0 22px;
}

.astra-child-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.astra-child-featured-content {
	font-size: 17px;
	line-height: 1.7;
	color: #222;
	max-width: 800px;
}

.astra-child-featured-content p {
	margin: 0 0 20px;
}

/* --- 7b. Category slider --- */
.astra-child-slider-section {
	margin: 0 0 50px;
}

.astra-child-slider-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 18px;
	border-bottom: 2px solid #111;
	padding-bottom: 8px;
}

.astra-child-slider-heading h2 {
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0;
}

.astra-child-slider-heading a {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #e2231a;
	text-decoration: none;
}

.astra-child-slider {
	position: relative;
	overflow: hidden;
}

.astra-child-slider-track {
	display: flex;
	transition: transform 0.4s ease;
}

.astra-child-slide {
	flex: 0 0 100%;
	max-width: 100%;
	position: relative;
	box-sizing: border-box;
}

.astra-child-slide a.astra-child-slide-link {
	display: block;
	position: relative;
	color: #fff;
	text-decoration: none;
}

.astra-child-slide-image {
	width: 100%;
	height: 380px;
	object-fit: cover;
	display: block;
	background: #ddd;
}

.astra-child-slide-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.astra-child-slide-cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #e2231a;
	margin-bottom: 8px;
}

.astra-child-slide-caption h3 {
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
}

.astra-child-slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	padding: 0 12px;
	box-sizing: border-box;
}

.astra-child-slider-arrow {
	pointer-events: auto;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.astra-child-slider-arrow:hover {
	background: #e2231a;
}

.astra-child-slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.astra-child-slider-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ccc;
	border: none;
	padding: 0;
	cursor: pointer;
}

.astra-child-slider-dot.is-active {
	background: #e2231a;
}

/* --- 7c. Blog roll --- */
.astra-child-blogroll-heading {
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 18px;
	border-bottom: 2px solid #111;
	padding-bottom: 8px;
}

.astra-child-blogroll-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px 28px;
	margin-bottom: 30px;
}

.astra-child-blogroll-card .astra-child-card-image {
	display: block;
	margin-bottom: 12px;
}

.astra-child-blogroll-card .astra-child-card-image img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}

.astra-child-blogroll-card h3 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
}

.astra-child-blogroll-card h3 a {
	color: #111;
	text-decoration: none;
}

.astra-child-blogroll-card h3 a:hover {
	color: #e2231a;
}

.astra-child-blogroll-card .astra-child-card-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	margin: 0 0 10px;
}

.astra-child-blogroll-card .astra-child-card-meta {
	font-size: 12px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.astra-child-blogroll-pagination {
	margin: 20px 0 50px;
	text-align: center;
}

.astra-child-blogroll-pagination .page-numbers {
	display: inline-block;
	margin: 0 4px;
	padding: 8px 13px;
	border: 1px solid #ddd;
	color: #111;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	border-radius: 3px;
}

.astra-child-blogroll-pagination .page-numbers.current,
.astra-child-blogroll-pagination .page-numbers:hover {
	background: #111;
	color: #fff;
	border-color: #111;
}

@media (max-width: 900px) {
	.astra-child-blogroll-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.astra-child-featured-title {
		font-size: 26px;
	}

	.astra-child-slide-image {
		height: 240px;
	}

	.astra-child-blogroll-grid {
		grid-template-columns: 1fr;
	}
}
