/*
Theme Name:   Astra Child
Theme URI:    https://wpastra.com/
Description:  Astra Child Theme
Author:       Brainstorm Force
Author URI:   https://wpastra.com/
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* Custom CSS goes below this line */

/* ==========================================================================
Global Design Tokens & CSS Variables
========================================================================== */
:root {
	--primary-color: #2563eb;
	--primary-hover: #1d4ed8;
	--text-color: #1f2937;
	--text-light: #6b7280;
	--bg-light: #f9fafb;
	--card-bg: #ffffff;
	--card-border: #e5e7eb;
	--overlay-color: rgba(0, 0, 0, 0.6);
	--radius-sm: 6px;
	--radius-md: 12px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
	--shadow-hover: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
	--transition: all 0.3s ease;
	--container-width: 1200px;
}

@media (min-width: 1200px) {
	.ast-plain-container.ast-no-sidebar #primary {
		margin-top: 0px !important;
		margin-bottom: 0px !important;
	}
}

@media (min-width: 922px) {
	.search-no-results.ast-separate-container #primary {
		margin-top: 0px !important;
		margin-bottom: 0px !important;
	}
}


/* ==========================================================================
Hero Section
========================================================================== */
.custom-hero-banner {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background-image: url('/wp-content/uploads/2026/10/13591.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #ffffff;
	padding: 100px 20px;
	box-sizing: border-box;
}

.custom-hero-overlay {
	position: absolute;
	inset: 0;
	background-color: var(--overlay-color);
	z-index: 1;
}

.custom-hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.custom-hero-content h1 {
	font-size: 2.75rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 16px;
	line-height: 1.2;
}

.custom-hero-description {
	font-size: 1.25rem;
	color: #e5e7eb;
	margin-bottom: 32px;
	line-height: 1.5;
}

/* Custom Homepage Search Bar Fix */
.custom-hero-search {
	width: 100% !important;
	max-width: 580px !important;
	margin: 0 auto !important;
}

.custom-hero-search form.custom-search-form {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
}

.custom-hero-search input[type="search"].custom-search-input {
	flex: 1 1 auto !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 1px solid transparent !important;
	border-radius: var(--radius-sm, 6px) !important;
	font-size: 1rem !important;
	background: #ffffff !important;
	color: var(--text-color, #1f2937) !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
	outline: none !important;
}

.custom-hero-search button[type="submit"].custom-search-submit {
	flex: 0 0 auto !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 28px !important;
	background-color: var(--primary-color, #2563eb) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: var(--radius-sm, 6px) !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
	transition: background-color 0.2s ease !important;
}

.custom-hero-search button[type="submit"].custom-search-submit:hover {
	background-color: var(--primary-hover, #1d4ed8) !important;
}
@media (max-width: 600px) {
	.custom-hero-content form {
		flex-direction: column !important;
	}
	.custom-hero-content form input[type="search"],
	.custom-hero-content form button[type="submit"] {
		width: 100% !important;
	}
}


/* ==========================================================================
Latest Pages Section & Responsive Grid
========================================================================== */
.latest-pages-section {
	max-width: var(--container-width);
	margin: 60px auto;
	padding: 0 20px;
}

.section-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-color);
	margin-bottom: 32px;
	text-align: center;
}

.pages-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* Card Component */
.page-card {
	position: relative;
	background-color: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
	display: flex;
	flex-direction: column;
}

.page-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-hover);
	border-color: transparent;
}

.page-card-image {
	width: 100%;
	height: 180px;
	overflow: hidden;
	background-color: var(--bg-light);
}

.page-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.page-card:hover .page-card-image img {
	transform: scale(1.05);
}

.page-card-content {
	padding: 20px;
	flex-grow: 1;
}

.page-card-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-color);
	margin: 0;
	line-height: 1.4;
	transition: var(--transition);
}

.page-card:hover .page-card-title {
	color: var(--primary-color);
}

/* Stretched Link for Full-Card Clickability */
.page-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

/* ==========================================================================
Responsive Breakpoints
========================================================================== */
@media (max-width: 1024px) {
	.pages-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.custom-hero-banner {
		padding: 60px 20px;
	}

	.custom-hero-content h1 {
		font-size: 2rem;
	}

	.custom-hero-description {
		font-size: 1rem;
	}

	.pages-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.custom-hero-search .search-form {
		flex-direction: column;
	}

	.custom-hero-search .search-submit {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.pages-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
About Us & Features Section
========================================================================== */
.about-features-section {
	background-color: var(--card-bg, #ffffff);
	padding: 80px 20px;
	border-top: 1px solid var(--card-border, #e5e7eb);
}

.about-features-container {
	max-width: var(--container-width, 1200px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 60px;
	align-items: center; /* Vertically centers left section relative to the grid */
}

/* Header Styling */
.about-features-header {
	text-align: left;
}

.about-features-header .section-subtitle {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--primary-color, #2563eb);
	margin-bottom: 12px;
}

/* Overrides any global center-aligned .section-title class */
.about-features-header .section-title {
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--text-color, #1f2937);
	margin: 0 0 16px 0;
	text-align: left !important;
}

.about-features-header .section-description {
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--text-light, #4b5563);
	margin: 0;
	text-align: left;
}
.section-title.align-left {
	text-align: left !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Features 2x2 Grid */
.features-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
}

.feature-card {
	background: var(--bg-light, #f9fafb);
	border: 1px solid var(--card-border, #e5e7eb);
	border-radius: var(--radius-md, 12px);
	padding: 28px 24px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.05));
}

.feature-number {
	display: inline-block;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--primary-color, #2563eb);
	background: rgba(37, 99, 235, 0.1);
	padding: 4px 12px;
	border-radius: 6px;
	margin-bottom: 16px;
}

.feature-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-color, #1f2937);
	margin: 0 0 10px 0;
	line-height: 1.35;
	text-align: left;
}

.feature-text {
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--text-light, #6b7280);
	margin: 0;
	text-align: left;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
	.about-features-container {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media (max-width: 640px) {
	.about-features-section {
		padding: 50px 16px;
	}

	.features-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.about-features-header .section-title {
		font-size: 1.75rem;
	}
}

/* ==========================================================================
Child Page Template Specific Styles
========================================================================== */

/* Banner Image Override */
.child-hero-banner {
	background-image: url('/wp-content/uploads/2026/10/72471.webp') !important;
}

/* ==========================================================================
Hero Banner Call Button & Animated Phone Icon
========================================================================== */

.hero-call-button-wrapper {
	margin-top: 20px;
	display: flex;
	justify-content: center;
}

.hero-call-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: var(--primary-color, #2563eb);
	color: #ffffff !important;
	padding: 12px 24px;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
	transition: all 0.3s ease;
}

.hero-call-btn:hover {
	background-color: #1d4ed8;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Animated Ringing Phone Icon */
.animated-phone-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	animation: phone-ring 1.5s infinite ease-in-out;
}

.animated-phone-icon svg {
	stroke: #ffffff;
}

@keyframes phone-ring {
	0% { transform: rotate(0deg) scale(1); }
	10% { transform: rotate(15deg) scale(1.1); }
	20% { transform: rotate(-15deg) scale(1.1); }
	30% { transform: rotate(15deg) scale(1.1); }
	40% { transform: rotate(-15deg) scale(1.1); }
	50% { transform: rotate(0deg) scale(1); }
	100% { transform: rotate(0deg) scale(1); }
}

/* 2-Column Responsive Layout */
.child-page-container {
	max-width: var(--container-width, 1200px);
	margin: 50px auto;
	padding: 0 20px;
	align-items: start;
}

/* Main Content Area */
.child-page-content {
	line-height: 1.7;
	color: var(--text-color, #1f2937);
	font-size: 1.05rem;
}

.child-page-content h2,
.child-page-content h3,
.child-page-content h4 {
	scroll-margin-top: 120px;
}

/* Related Pages Section */
.related-pages-section {
	border-top: 1px solid var(--card-border, #e5e7eb);
	padding-top: 50px;
}
iframe {
	width: 100%;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
	.child-page-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.child-page-sidebar {
		position: static;
		top: auto;
	}

	.toc-wrapper {
		max-height: none;
	}
}

/* ==========================================================================
Full Width Page Template Styles
========================================================================== */

.full-width-content-section {
	width: 100%;
	margin: 60px 0;
	padding: 0 20px;
	box-sizing: border-box;
}

.full-width-container {
	max-width: var(--container-width, 1200px);
	margin: 0 auto;
	line-height: 1.7;
	color: var(--text-color, #1f2937);
	font-size: 1.05rem;
}

.full-width-container img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 768px) {
	.full-width-content-section {
		margin: 40px 0;
		padding: 0 16px;
	}
}


/* ==========================================================================
Sticky Bottom Call Strip Styles
========================================================================== */

/* Prevent sticky strip from overlapping footer content */
body {
	padding-bottom: 50px !important;
}

.sticky-call-strip {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--primary-color, #2563eb);
	z-index: 99999;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
	text-align: center;
}

.sticky-call-link {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 20px;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 1.05rem;
	font-weight: 500;
	box-sizing: border-box;
	transition: background-color 0.2s ease;
}

.sticky-call-link:hover,
.sticky-call-link:focus {
	background-color: #1d4ed8; /* Slightly darker shade on hover */
	color: #ffffff !important;
}

.call-icon {
	display: inline-flex;
	align-items: center;
	margin-right: 10px;
}

.call-icon svg {
	stroke: #ffffff;
}

.call-text strong {
	font-weight: 700;
	letter-spacing: 0.5px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
	body {
		padding-bottom: 48px !important;
	}

	.sticky-call-link {
		padding: 12px 15px;
		font-size: 0.95rem;
	}

	.call-icon svg {
		width: 18px;
		height: 18px;
	}
}

/* ==========================================================================
Yoast SEO FAQ Block Custom Styling
========================================================================== */

/* Outer FAQ Wrapper */
.schema-faq.wp-block-yoast-faq-block {
	max-width: var(--container-width, 1200px);
	margin: 40px auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Individual FAQ Card Item */
.schema-faq-section {
	background-color: var(--card-bg, #ffffff);
	border: 1px solid var(--card-border, #e5e7eb);
	border-radius: var(--radius-md, 12px);
	padding: 20px 24px;
	box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.schema-faq-section:hover {
	border-color: var(--primary-color, #2563eb);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
	transform: translateY(-2px);
}

/* Question Header / Title */
.schema-faq-question {
	display: block;
	font-size: 1.1rem !important;
	font-weight: 600 !important;
	color: var(--text-color, #1f2937) !important;
	line-height: 1.4 !important;
	margin-bottom: 8px !important;
	position: relative;
	padding-left: 28px;
}

/* Q&A Icon Indicator */
.schema-faq-question::before {
	content: "Q.";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 800;
	color: var(--primary-color, #2563eb);
	font-size: 1rem;
}

/* Answer Paragraph */
.schema-faq-answer {
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--text-light, #4b5563);
	margin: 0 !important;
	padding-left: 28px;
}

/* Mobile Responsive Formatting */
@media (max-width: 640px) {
	.schema-faq-section {
		padding: 16px 18px;
	}

	.schema-faq-question {
		font-size: 1rem !important;
	}

	.schema-faq-answer {
		font-size: 0.92rem;
	}
}