/*!
Theme Name: Autopublix
Theme URI: https://www.autopublix.com/
Author: Autopublix
Author URI: https://www.autopublix.com/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: autopublix
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/


/* @font-face declarations */
@font-face {
	font-family: 'classica';
	src: url('../fonts/Classica-Book.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* MAIN HERO */
.ap-hero-main {
	position: relative;
	width: 100%;
	text-align: center;

	background: linear-gradient(to bottom, #ffffff, #F7F0FF);
}

/* PATTERN GRID */
.ap-hero-pattern {
	position: relative;
}

.ap-hero-pattern::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("http://autopublix-blog.webtx.co/wp-content/uploads/2026/03/hero-pattern-wrapper.svg");
	background-size: 40px 40px;
	background-repeat: repeat-x;
	background-size: auto;
	background-position: bottom;
}

/* CONTAINER */
.ap-hero-main .ap-container {
	position: relative;
	z-index: 2;
	padding: 70px 16px 50px;
	margin: 0 auto;
}

/* TITLE */
.ap-hero-title {
	font-size: 3rem;
	line-height: 1;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	font-family: "classica", "classica Fallback", serif;
}

/* BREADCRUMB */
.ap-breadcrumb {
	margin-top: 15px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 14px;
	color: #64748b;
}

.ap-breadcrumb-item {
	display: flex;
	align-items: center;
}

.ap-chevron {
	margin: 0 8px;
	color: #94a3b8;
}

.ap-breadcrumb a {
	text-decoration: none;
	color: #64748b;
}

.ap-breadcrumb .current {
	color: #7c3aed;
}

/* BOTTOM FADE */
.ap-hero-main::after {
	content: "";
	position: absolute;
	bottom: -20px;
	left: 0;
	right: 0;
	height: 36px;
	background: linear-gradient(to bottom, #F7F0FF, #F7F0FF);
	mask-image: url('http://autopublix-blog.webtx.co/wp-content/uploads/2026/03/hero-banner-bottom-line.svg');
	mask-position: 0;
	mask-size: auto 36px;
}

/* HERO */
.ap-blog-hero {
	position: relative;
	padding: 100px 20px 120px;
	text-align: center;
	overflow: hidden;

	background: linear-gradient(to bottom,
			#ffffff,
			#F7F0FF);
}

/* subtle grid pattern like screenshot */
.ap-blog-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("http://autopublix-blog.webtx.co/wp-content/uploads/2026/03/hero-pattern-wrapper.svg");
	background-size: 40px 40px;
	background-repeat: repeat-x;
	background-size: auto;
	background-position: bottom;
}

/* index page */
.container {
	max-width: 1248px;
	margin: 0 auto;
	padding: 0 16px;
}

.blog-section {
	padding: 160px 16px 30px;
}

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

/* CARD */
.blog-card {
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(167.7deg, #FFFFFF 27.25%, #F7F0FF 85.3%);
	height: 100%;
	transition: all 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-5px);
}

/* LINK */
.card-link {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
}

.card-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 10px 10px 0 0;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* CONTENT */
.card-content {
	padding: 12px;
}

/* TITLE */
.card-title {
	font-size: 24px;
	font-weight: 600;
	color: #020617;
	margin: 0 0 6px 0;
	line-height: 1.3;
}

/* DATE */
.card-meta {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 8px 0;
}

/* EXCERPT */
.card-excerpt {
	font-size: 16px;
	color: #334155;
	line-height: 1.6;
	margin: 0;
}

/* single page */
.ap-layout {
	display: flex;
	gap: 40px;
	margin-top: 80px;
}

.ap-article {
	flex: 2;
}

.ap-sidebar {
	flex: 1;
	position: sticky;
	top: 100px;
	height: fit-content;
}

.ap-featured-image img {
	width: 100%;
	border-radius: 12px;
	margin-bottom: 20px;
}

.ap-content {
	line-height: 1.8;
	font-size: 16px;
}

.ap-post-meta {
	margin-top: 10px;
	font-size: 14px;
	color: #666;
}

.ap-content {
	font-size: 17px;
	line-height: 1.8;
	color: #1f2937;
}

/* Images */
.ap-content img {
	width: 100%;
	border-radius: 12px;
	margin: 20px 0;
}

.ap-hero {
	position: relative;
	max-width: 100%;
	overflow: hidden;
}

.ap-hero-inner {
	text-align: center;
	max-width: 900px;
	padding: 0 20px;
}

.ap-widget {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	padding: 20px;
    background: linear-gradient(to bottom, #ffffff, #F7F0FF);
    border-radius: 10px;
}

.ap-widget-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px 0;
}

.ap-recent-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ap-recent-item {
	margin-bottom: 14px;
}

.ap-recent-item:last-child {
	margin-bottom: 0;
}

.ap-recent-link {
	display: flex;
	gap: 12px;
	text-decoration: none;
	color: #7c3aed;
	align-items: center;
}

.ap-recent-thumb {
	width: 70px;
	height: 70px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 8px;
}

.ap-recent-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ap-recent-content {
	flex: 1;
}

.ap-recent-title {
	font-size: 14px;
	font-weight: 500;
	margin: 0;
	line-height: 1.4;
	transition: color 0.2s;
}

.ap-recent-date {
	font-size: 12px;
	color: #6b7280;
}

.ap-recent-link:hover .ap-recent-title {
	color: #7c3aed;
}

/* pagination */
.ap-pagination {
	margin-top: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.ap-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 40px;
	height: 40px;

	border-radius: 12px;
	font-size: 14px;
	text-decoration: none;

	border: 1px solid #d6c8ff;
	color: #333;
	background: transparent;

	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ap-pagination .current {
	background: linear-gradient(135deg, #7b3fe4, #9f6bff);
	color: #fff;
	border: 1px solid #9f6bff;
}

.ap-pagination a.page-numbers:hover {
	background: #f3ecff;
	border-color: #bba4ff;
}

.ap-pagination .prev,
.ap-pagination .next {
	border: none;
	background: transparent;
	color: #555;
	font-weight: 500;
	height: auto;
	width: auto;
	padding: 8px 12px;
}

.ap-meta-section {
	position: relative;
	width: 100%;
	background: #7F22FE;
}


.ap-meta-section::after {
	content: "";
	position: absolute;
	bottom: -20px;
	left: 0;
	right: 0;
	height: 36px;
	background: #7f22fe;
	mask-image: url('http://autopublix-blog.webtx.co/wp-content/uploads/2026/03/hero-banner-bottom-line.svg');
	mask-position: 0;
	mask-size: auto 36px;
}

.ap-container {
	max-width: 1280px;
	margin: 0 auto;
}

.ap-meta-box {
	text-align: center;
	padding: 40px 36px;
}

/* Badge */
.ap-meta-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fff;
	padding: 8px 24px;
	border-radius: 999px;
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
}

.ap-meta-badge {
	margin: 0 0 20px;
}

/* Heading */
.ap-meta-heading {
	color: #fff;
	font-size: 42px;
	line-height: 52px;
	font-family: 'classica';
	font-weight: 700;
	margin: 0 0 32px;
}

/* Sub badge */
.ap-meta-sub-badge {
	display: inline-block;
	background: #8b5cf6;
	color: #fff;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	margin: 0 0 32px;
}

/* Features */
.ap-meta-features {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin: 0 0 16px;
}

.ap-feature {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #8b5cf6;
	padding: 16px 20px;
	border-radius: 16px;
	color: #fff;
	font-size: 14px;
}

/* Description */
.ap-meta-desc {
	color: #fff;
	max-width: 672px;
	margin: 0 auto 16px;
	line-height: 24px;
}

/* Trust */
.ap-meta-trust {
	color: #fff;
	font-weight: 700;
	font-size: 20px;
	line-height: 28px;
	font-family: 'classica';
	margin: 0 0 20px;
}

/* Buttons */
.ap-meta-buttons {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 32px 0 0;
}

.ap-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	border-radius: 16px;
	color: #fff;
	text-decoration: none;
	text-align: left;
}

.ap-btn-subtext {
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	margin: 0;
}

.ap-btn-title {
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
	margin: 0;
}

.app-store {
	background: black;
}

.play-store {
	background: linear-gradient(to right, #22c55e, #16a34a);
}

.ap-social {
	margin-top: 20px;
	display: flex;
	justify-content: center;
	gap: 16px;
}

.ap-social svg {
	width: 30px;
	height: 30px;
}

.ap-meta-section .ap-social-icons {
	justify-content: center;
	margin-top: 28px;
}

@media (max-width: 1024px) {
	.container {
		max-width: 100%;
		padding: 0 20px;
	}

	.blog-section {
		padding: 60px 20px 30px;
	}

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

	.card-title {
		font-size: 18px;
	}
}

@media (max-width: 768px) {
	.ap-content {
		font-size: 16px;
		line-height: 24px;
	}

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

	.card-overlay {
		padding: 15px;
	}

	.card-title {
		font-size: 18px;
		line-height: 1.4;
	}

	.card-meta {
		font-size: 12px;
	}

	/* article page */
	.ap-hero-title {
		font-size: 35px;
		line-height: 40px;
	}

	.ap-hero-main .ap-container {
		padding: 20px 16px;
	}

	/* single-page */
	.ap-hero {
		height: 300px;
	}

	.ap-title {
		font-size: 32px;
	}

	.ap-layout {
		flex-direction: column;
	}

	.ap-side-image {
		width: 100%;
	}

	/* meta section */
	.ap-meta-heading {
		font-size: 24px;
		line-height: 32px;
	}

	.ap-meta-box {
		padding: 40px 0;
	}

	.ap-meta-desc {
		max-width: 100%;
		margin: 0;
	}

	.ap-feature {
		padding: 12px;
	}
}

@media (max-width: 480px) {
	.card-overlay {
		padding: 12px;
	}
}