/*
Theme Name: Aeconics
Theme URI: https://aeconics.com/
Author: Aeconics
Author URI: https://aeconics.com/
Description: A fast, clean, modern magazine theme for Aeconics — tech, business and how-to publishing. Includes category-driven homepage blocks, guest post / Write for Us page template, floating WhatsApp button, JSON-LD schema and full SEO meta output.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aeconics
Tags: blog, news, magazine, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--ae-accent: #1a5fd0;
	--ae-accent-dark: #14479c;
	--ae-accent-soft: #eaf1fd;
	--ae-ink: #12181f;
	--ae-body: #3d4753;
	--ae-muted: #7a8595;
	--ae-line: #e4e8ee;
	--ae-bg: #ffffff;
	--ae-bg-alt: #f6f8fb;
	--ae-radius: 10px;
	--ae-shadow: 0 1px 2px rgba(18, 24, 31, .04), 0 8px 24px rgba(18, 24, 31, .06);
	--ae-wrap: 1200px;
	--ae-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ae-font-head: Georgia, "Times New Roman", serif;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--ae-font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ae-body);
	background: var(--ae-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ae-accent); text-decoration: none; }
a:hover { color: var(--ae-accent-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ae-font-head);
	color: var(--ae-ink);
	line-height: 1.25;
	margin: 0 0 .6em;
	font-weight: 700;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }

blockquote {
	margin: 1.8em 0;
	padding: 1em 1.4em;
	border-left: 4px solid var(--ae-accent);
	background: var(--ae-bg-alt);
	font-style: italic;
	color: var(--ae-ink);
}

code, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
}
pre {
	background: var(--ae-ink);
	color: #e6edf3;
	padding: 1.1em 1.3em;
	border-radius: var(--ae-radius);
	overflow-x: auto;
}
code { background: var(--ae-bg-alt); padding: .15em .4em; border-radius: 4px; }
pre code { background: none; padding: 0; color: inherit; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
th, td { border: 1px solid var(--ae-line); padding: .7em .9em; text-align: left; }
th { background: var(--ae-bg-alt); font-weight: 600; }

/* Accessibility */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 9999;
	background: var(--ae-accent); color: #fff; padding: .8em 1.4em;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--ae-accent); outline-offset: 2px; }

/* ==========================================================================
   3. Layout
   ========================================================================== */
.ae-wrap { max-width: var(--ae-wrap); margin: 0 auto; padding: 0 20px; }

.ae-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 44px;
	padding: 40px 0 60px;
}
.ae-layout--full { grid-template-columns: minmax(0, 1fr); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.ae-topbar {
	background: var(--ae-ink);
	color: #c6cedb;
	font-size: 13px;
}
.ae-topbar .ae-wrap {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; min-height: 40px; flex-wrap: wrap;
}
.ae-topbar a { color: #c6cedb; }
.ae-topbar a:hover { color: #fff; }
.ae-topbar__date { opacity: .75; }
.ae-social { display: flex; gap: 14px; align-items: center; }
.ae-social a { display: inline-flex; }
.ae-social svg { width: 16px; height: 16px; fill: currentColor; }

.ae-header {
	background: var(--ae-bg);
	border-bottom: 1px solid var(--ae-line);
}
.ae-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; padding: 22px 0;
}
.ae-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ae-brand img { max-height: 56px; width: auto; }
.ae-brand__name {
	font-family: var(--ae-font-head);
	font-size: 1.9rem; font-weight: 700; color: var(--ae-ink);
	margin: 0; line-height: 1.1; letter-spacing: -.5px;
}
.ae-brand__name a { color: inherit; }
.ae-brand__tag { font-size: 13px; color: var(--ae-muted); margin: 2px 0 0; }

.ae-header__search { flex: 0 1 340px; }

/* Search form */
.ae-search { display: flex; border: 1px solid var(--ae-line); border-radius: 999px; overflow: hidden; background: var(--ae-bg-alt); }
.ae-search input[type="search"] {
	flex: 1; border: 0; background: transparent; padding: .65em 1.1em;
	font: inherit; font-size: 15px; color: var(--ae-ink); min-width: 0;
}
.ae-search input[type="search"]:focus { outline: none; }
.ae-search button {
	border: 0; background: var(--ae-accent); color: #fff;
	padding: 0 1.2em; cursor: pointer; font: inherit; font-size: 14px;
}
.ae-search button:hover { background: var(--ae-accent-dark); }

/* ==========================================================================
   5. Navigation
   ========================================================================== */
.ae-nav { background: var(--ae-accent); position: relative; z-index: 500; }
.ae-nav .ae-wrap { display: flex; align-items: center; justify-content: space-between; }

.ae-menu, .ae-menu ul { list-style: none; margin: 0; padding: 0; }
.ae-menu { display: flex; flex-wrap: wrap; }
.ae-menu li { position: relative; }
.ae-menu a {
	display: block; padding: 14px 16px; color: #fff;
	font-size: 14.5px; font-weight: 600; letter-spacing: .2px;
	text-transform: uppercase;
}
.ae-menu a:hover, .ae-menu .current-menu-item > a, .ae-menu .current-menu-parent > a {
	background: rgba(0, 0, 0, .18); color: #fff;
}
.ae-menu ul {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; box-shadow: var(--ae-shadow);
	border: 1px solid var(--ae-line); border-radius: 0 0 var(--ae-radius) var(--ae-radius);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: .18s ease; padding: 6px 0;
}
.ae-menu li:hover > ul, .ae-menu li:focus-within > ul {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.ae-menu ul a {
	color: var(--ae-ink); padding: 9px 16px; text-transform: none;
	font-weight: 500; font-size: 14.5px;
}
.ae-menu ul a:hover { background: var(--ae-accent-soft); color: var(--ae-accent); }
.ae-menu ul ul { top: 0; left: 100%; border-radius: var(--ae-radius); }

.ae-nav-toggle {
	display: none; background: none; border: 0; color: #fff;
	padding: 13px 0; font: inherit; font-size: 15px; font-weight: 600;
	cursor: pointer; align-items: center; gap: 9px; text-transform: uppercase;
}
.ae-nav-toggle svg { width: 20px; height: 20px; fill: currentColor; }

/* ==========================================================================
   6. Post cards
   ========================================================================== */
.ae-cat-badge {
	display: inline-block; background: var(--ae-accent); color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .8px;
	text-transform: uppercase; padding: 4px 9px; border-radius: 4px;
	margin-bottom: 10px;
}
.ae-cat-badge:hover { background: var(--ae-accent-dark); color: #fff; }

.ae-meta {
	font-size: 13.5px; color: var(--ae-muted);
	display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
}
.ae-meta a { color: var(--ae-muted); }
.ae-meta a:hover { color: var(--ae-accent); }

.ae-thumb {
	display: block; overflow: hidden; border-radius: var(--ae-radius);
	background: var(--ae-bg-alt); position: relative; aspect-ratio: 16 / 9;
}
.ae-thumb img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .45s ease;
}
.ae-thumb:hover img { transform: scale(1.05); }
.ae-thumb--ph { display: grid; place-items: center; color: var(--ae-muted); font-size: 13px; }

/* Card grid */
.ae-grid { display: grid; gap: 30px; }
.ae-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ae-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ae-card { display: flex; flex-direction: column; }
.ae-card__body { padding-top: 14px; }
.ae-card__title { font-size: 1.22rem; margin: 0 0 8px; line-height: 1.35; }
.ae-card__title a { color: var(--ae-ink); }
.ae-card__title a:hover { color: var(--ae-accent); }
.ae-card__excerpt { font-size: 15px; margin: 10px 0 0; color: var(--ae-body); }

/* Horizontal list item */
.ae-item {
	display: grid; grid-template-columns: 130px minmax(0, 1fr);
	gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--ae-line);
}
.ae-item:last-child { border-bottom: 0; }
.ae-item__title { font-size: 1.05rem; margin: 0 0 6px; line-height: 1.4; }
.ae-item__title a { color: var(--ae-ink); }
.ae-item__title a:hover { color: var(--ae-accent); }

/* Hero */
.ae-hero { padding: 36px 0 8px; }
.ae-hero__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; }
.ae-hero__side { display: grid; gap: 22px; align-content: start; }
.ae-hero__main .ae-thumb { aspect-ratio: 16 / 10; }
.ae-hero__main .ae-card__title { font-size: 2rem; }
.ae-hero__side .ae-card__title { font-size: 1.08rem; }

/* Section heading */
.ae-sec { margin-bottom: 46px; }
.ae-sec__head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; border-bottom: 2px solid var(--ae-line);
	margin-bottom: 26px; padding-bottom: 10px;
}
.ae-sec__title {
	margin: 0; font-size: 1.35rem; position: relative; padding-bottom: 11px;
}
.ae-sec__title::after {
	content: ""; position: absolute; left: 0; bottom: -12px;
	width: 100%; height: 2px; background: var(--ae-accent);
}
.ae-sec__more { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ==========================================================================
   7. Sidebar
   ========================================================================== */
.ae-sidebar { align-self: start; position: sticky; top: 20px; }
.ae-widget {
	background: var(--ae-bg-alt); border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius); padding: 22px; margin-bottom: 26px;
}
.ae-widget__title {
	font-size: 1.1rem; margin: 0 0 16px; padding-bottom: 10px;
	border-bottom: 2px solid var(--ae-accent); display: inline-block;
}
.ae-widget ul { list-style: none; margin: 0; padding: 0; }
.ae-widget > ul > li {
	padding: 8px 0; border-bottom: 1px solid var(--ae-line);
	font-size: 15px; display: flex; justify-content: space-between; gap: 10px;
}
.ae-widget > ul > li:last-child { border-bottom: 0; }
.ae-widget > ul > li > a { color: var(--ae-ink); }
.ae-widget > ul > li > a:hover { color: var(--ae-accent); }

.ae-widget .ae-item { grid-template-columns: 84px minmax(0, 1fr); gap: 13px; padding: 13px 0; }
.ae-widget .ae-item__title { font-size: .95rem; }

/* Tag cloud */
.tagcloud a, .ae-tags a {
	display: inline-block; background: #fff; border: 1px solid var(--ae-line);
	border-radius: 999px; padding: 5px 13px; margin: 0 6px 8px 0;
	font-size: 13px !important; color: var(--ae-body);
}
.tagcloud a:hover, .ae-tags a:hover { background: var(--ae-accent); border-color: var(--ae-accent); color: #fff; }

/* ==========================================================================
   8. Single post
   ========================================================================== */
.ae-breadcrumb { font-size: 13.5px; color: var(--ae-muted); margin-bottom: 16px; }
.ae-breadcrumb a { color: var(--ae-muted); }
.ae-breadcrumb a:hover { color: var(--ae-accent); }
.ae-breadcrumb span + span::before { content: "\203A"; margin: 0 8px; opacity: .6; }

.ae-single__title { font-size: 2.5rem; margin: 8px 0 14px; }
.ae-single__meta { margin-bottom: 22px; }
.ae-single__hero { margin: 0 0 28px; border-radius: var(--ae-radius); overflow: hidden; }

.ae-content { font-size: 17.5px; }
.ae-content h2 { margin-top: 1.8em; font-size: 1.7rem; }
.ae-content h3 { margin-top: 1.6em; font-size: 1.32rem; }
.ae-content img { border-radius: var(--ae-radius); margin: 1.2em 0; }
.ae-content li { margin-bottom: .5em; }
.ae-content a { text-decoration: underline; text-underline-offset: 2px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--ae-muted); text-align: center; margin-top: .5em; }
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

.ae-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 34px 0; padding: 18px 0; border-top: 1px solid var(--ae-line); border-bottom: 1px solid var(--ae-line); }
.ae-share__label { font-weight: 700; color: var(--ae-ink); font-size: 14px; margin-right: 4px; }
.ae-share a {
	display: inline-flex; align-items: center; gap: 7px;
	background: var(--ae-bg-alt); border: 1px solid var(--ae-line);
	border-radius: 6px; padding: 7px 14px; font-size: 13.5px;
	font-weight: 600; color: var(--ae-body);
}
.ae-share a:hover { background: var(--ae-accent); border-color: var(--ae-accent); color: #fff; }
.ae-share svg { width: 15px; height: 15px; fill: currentColor; }

.ae-author {
	display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px;
	background: var(--ae-bg-alt); border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius); padding: 24px; margin: 34px 0;
}
.ae-author img { border-radius: 50%; }
.ae-author h4 { margin: 0 0 6px; }
.ae-author p { margin: 0; font-size: 15px; }

.ae-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 34px 0; }
.ae-postnav__item { border: 1px solid var(--ae-line); border-radius: var(--ae-radius); padding: 16px 20px; }
.ae-postnav__item span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--ae-muted); margin-bottom: 6px; }
.ae-postnav__item a { color: var(--ae-ink); font-weight: 600; font-size: 15px; }
.ae-postnav__item a:hover { color: var(--ae-accent); }
.ae-postnav__item--next { text-align: right; }

/* Comments */
.ae-comments { margin-top: 44px; }
.comment-list, .comment-list ol { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin-bottom: 22px; }
.comment-list .children { padding-left: 32px; margin-top: 22px; }
.comment-body { background: var(--ae-bg-alt); border: 1px solid var(--ae-line); border-radius: var(--ae-radius); padding: 18px 22px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ae-ink); }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; color: var(--ae-muted); margin: 4px 0 10px; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="number"], input[type="password"], textarea, select {
	width: 100%; padding: .7em .95em; font: inherit; font-size: 15.5px;
	border: 1px solid var(--ae-line); border-radius: 7px;
	background: #fff; color: var(--ae-ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ae-accent); box-shadow: 0 0 0 3px var(--ae-accent-soft); }
label { display: block; font-weight: 600; font-size: 14.5px; color: var(--ae-ink); margin-bottom: 6px; }
.ae-field { margin-bottom: 18px; }

.ae-btn, input[type="submit"], button.submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--ae-accent); color: #fff; border: 0; cursor: pointer;
	padding: .78em 1.7em; border-radius: 7px; font: inherit;
	font-weight: 600; font-size: 15.5px; text-decoration: none;
}
.ae-btn:hover, input[type="submit"]:hover { background: var(--ae-accent-dark); color: #fff; }
.ae-btn--ghost { background: transparent; color: var(--ae-accent); border: 2px solid var(--ae-accent); }
.ae-btn--ghost:hover { background: var(--ae-accent); color: #fff; }
.ae-btn--wa { background: #25d366; }
.ae-btn--wa:hover { background: #1da851; }

/* Notices */
.ae-notice { padding: 14px 18px; border-radius: 7px; margin-bottom: 22px; font-size: 15px; }
.ae-notice--ok { background: #e7f7ed; border: 1px solid #a9dfbe; color: #175c33; }
.ae-notice--err { background: #fdecec; border: 1px solid #f2b6b6; color: #8a1f1f; }

/* ==========================================================================
   9. Pagination
   ========================================================================== */
.ae-pagination { margin: 36px 0 0; }
.ae-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px; margin: 0 4px 8px 0;
	border: 1px solid var(--ae-line); border-radius: 7px;
	color: var(--ae-ink); font-weight: 600; font-size: 15px; background: #fff;
}
.ae-pagination .page-numbers:hover { border-color: var(--ae-accent); color: var(--ae-accent); }
.ae-pagination .page-numbers.current { background: var(--ae-accent); border-color: var(--ae-accent); color: #fff; }
.ae-pagination .dots { border: 0; background: none; }

/* ==========================================================================
   10. Guest post / Write for Us page
   ========================================================================== */
.ae-gp-hero {
	background: linear-gradient(135deg, var(--ae-accent) 0%, #0e3a86 100%);
	color: #fff; padding: 62px 0; text-align: center;
}
.ae-gp-hero h1 { color: #fff; font-size: 2.7rem; margin-bottom: 14px; }
.ae-gp-hero p { font-size: 1.15rem; opacity: .93; max-width: 720px; margin: 0 auto 26px; }
.ae-gp-hero .ae-btn { background: #fff; color: var(--ae-accent); }
.ae-gp-hero .ae-btn:hover { background: var(--ae-accent-soft); color: var(--ae-accent-dark); }
.ae-gp-hero .ae-btn--wa { background: #25d366; color: #fff; }
.ae-gp-hero .ae-btn--wa:hover { background: #1da851; color: #fff; }
.ae-gp-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.ae-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: -34px 0 46px; }
.ae-stat {
	background: #fff; border: 1px solid var(--ae-line); border-radius: var(--ae-radius);
	box-shadow: var(--ae-shadow); padding: 22px 18px; text-align: center;
}
.ae-stat__num { font-family: var(--ae-font-head); font-size: 2rem; font-weight: 700; color: var(--ae-accent); line-height: 1.1; }
.ae-stat__label { font-size: 13.5px; color: var(--ae-muted); margin-top: 5px; }

.ae-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ae-plan {
	border: 1px solid var(--ae-line); border-radius: var(--ae-radius);
	padding: 28px 24px; background: #fff; display: flex; flex-direction: column;
}
.ae-plan--featured { border: 2px solid var(--ae-accent); box-shadow: var(--ae-shadow); position: relative; }
.ae-plan--featured::before {
	content: "Most popular"; position: absolute; top: -12px; left: 24px;
	background: var(--ae-accent); color: #fff; font-size: 11px; font-weight: 700;
	letter-spacing: .8px; text-transform: uppercase; padding: 4px 12px; border-radius: 4px;
}
.ae-plan h3 { margin-bottom: 4px; }
.ae-plan__price { font-family: var(--ae-font-head); font-size: 2.1rem; color: var(--ae-ink); font-weight: 700; margin: 10px 0 4px; }
.ae-plan__note { font-size: 13px; color: var(--ae-muted); margin-bottom: 18px; }
.ae-plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.ae-plan li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; border-bottom: 1px solid var(--ae-line); }
.ae-plan li:last-child { border-bottom: 0; }
.ae-plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--ae-accent); font-weight: 700; }

.ae-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: st; }
.ae-step { counter-increment: st; padding-top: 8px; }
.ae-step::before {
	content: counter(st); display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--ae-accent-soft); color: var(--ae-accent);
	font-family: var(--ae-font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 13px;
}
.ae-step h4 { margin-bottom: 5px; }
.ae-step p { font-size: 14.5px; margin: 0; }

.ae-guidelines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ae-guidelines__box { background: var(--ae-bg-alt); border: 1px solid var(--ae-line); border-radius: var(--ae-radius); padding: 24px; }
.ae-guidelines__box h3 { font-size: 1.15rem; }
.ae-guidelines__box ul { padding-left: 20px; margin: 0; font-size: 15px; }
.ae-guidelines__box li { margin-bottom: 8px; }

.ae-faq details {
	border: 1px solid var(--ae-line); border-radius: var(--ae-radius);
	padding: 16px 20px; margin-bottom: 12px; background: #fff;
}
.ae-faq summary { font-weight: 600; color: var(--ae-ink); cursor: pointer; font-size: 16px; list-style: none; position: relative; padding-right: 28px; }
.ae-faq summary::-webkit-details-marker { display: none; }
.ae-faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--ae-accent); line-height: 1; }
.ae-faq details[open] summary::after { content: "\2212"; }
.ae-faq details p { margin: 12px 0 0; font-size: 15.5px; }

.ae-gp-form {
	background: var(--ae-bg-alt); border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius); padding: 30px; max-width: 760px; margin: 0 auto;
}
.ae-gp-form .ae-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* Category cards */
.ae-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ae-cat-card {
	display: block; background: var(--ae-bg-alt); border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius); padding: 20px; text-align: center;
	color: var(--ae-ink); transition: .18s ease;
}
.ae-cat-card:hover { background: var(--ae-accent); border-color: var(--ae-accent); color: #fff; transform: translateY(-3px); }
.ae-cat-card:hover .ae-cat-card__count { color: rgba(255,255,255,.85); }
.ae-cat-card__name { font-family: var(--ae-font-head); font-weight: 700; font-size: 1.05rem; }
.ae-cat-card__count { font-size: 13px; color: var(--ae-muted); margin-top: 3px; }

/* Archive header */
.ae-archive-head {
	background: var(--ae-bg-alt); border-bottom: 1px solid var(--ae-line);
	padding: 34px 0;
}
.ae-archive-head h1 { margin: 0 0 6px; font-size: 2.2rem; }
.ae-archive-head p { margin: 0; color: var(--ae-muted); }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.ae-footer { background: var(--ae-ink); color: #aab3c0; margin-top: 40px; }
.ae-footer a { color: #d3dae4; }
.ae-footer a:hover { color: #fff; }
.ae-footer__cols {
	display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: 40px; padding: 52px 0 40px;
}
.ae-footer h4 {
	color: #fff; font-size: 1.05rem; margin: 0 0 16px;
	padding-bottom: 9px; border-bottom: 2px solid var(--ae-accent); display: inline-block;
}
.ae-footer ul { list-style: none; margin: 0; padding: 0; }
.ae-footer-widget { margin-bottom: 26px; }
.ae-footer-widget:last-child { margin-bottom: 0; }
.ae-footer .ae-search { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.ae-footer .ae-search input[type="search"] { color: #fff; }
.ae-footer li { padding: 5px 0; font-size: 14.8px; }
.ae-footer p { font-size: 14.8px; }
.ae-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding: 18px 0; font-size: 14px;
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; flex-wrap: wrap;
}
.ae-footer__bar ul { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   12. Floating WhatsApp button
   ========================================================================== */
.ae-wa {
	position: fixed; right: 22px; bottom: 22px; z-index: 9000;
	display: flex; align-items: center; gap: 0;
	background: #25d366; color: #fff; border-radius: 999px;
	box-shadow: 0 6px 22px rgba(37, 211, 102, .42);
	padding: 0; height: 58px; overflow: hidden;
	transition: gap .25s ease, padding .25s ease;
	text-decoration: none;
}
.ae-wa:hover { color: #fff; background: #1da851; }
.ae-wa__icon { display: grid; place-items: center; width: 58px; height: 58px; flex: none; }
.ae-wa__icon svg { width: 30px; height: 30px; fill: #fff; }
.ae-wa__label {
	max-width: 0; opacity: 0; white-space: nowrap;
	font-size: 15px; font-weight: 600; overflow: hidden;
	transition: max-width .3s ease, opacity .25s ease, padding .3s ease;
}
.ae-wa:hover .ae-wa__label, .ae-wa:focus-visible .ae-wa__label {
	max-width: 220px; opacity: 1; padding-right: 22px;
}
.ae-wa__pulse {
	position: absolute; inset: 0; border-radius: 999px;
	box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
	animation: ae-pulse 2.4s infinite;
}
@keyframes ae-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
	70%  { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.ae-wa__pulse { animation: none; }
	html { scroll-behavior: auto; }
	.ae-thumb img { transition: none; }
}

/* Back to top */
.ae-top {
	position: fixed; right: 24px; bottom: 92px; z-index: 8900;
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: var(--ae-ink); color: #fff; cursor: pointer;
	display: grid; place-items: center; opacity: 0; visibility: hidden;
	transition: .25s ease;
}
.ae-top.is-on { opacity: .9; visibility: visible; }
.ae-top:hover { opacity: 1; }
.ae-top svg { width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.ae-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.ae-sidebar { position: static; }
	.ae-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
	.ae-stats { grid-template-columns: repeat(2, 1fr); }
	.ae-plans { grid-template-columns: 1fr; }
	.ae-steps { grid-template-columns: repeat(2, 1fr); }
	.ae-cats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
	body { font-size: 16.5px; }
	h1 { font-size: 2rem; }
	.ae-single__title { font-size: 1.95rem; }
	.ae-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.ae-hero__main .ae-card__title { font-size: 1.55rem; }
	.ae-header__inner { flex-direction: column; align-items: stretch; gap: 16px; }
	.ae-header__search { flex: none; }
	.ae-brand { justify-content: center; text-align: center; flex-direction: column; gap: 6px; }

	.ae-nav-toggle { display: inline-flex; }
	.ae-nav .ae-wrap { flex-direction: column; align-items: stretch; }
	.ae-menu {
		display: none; flex-direction: column;
		border-top: 1px solid rgba(255, 255, 255, .18); padding-bottom: 8px;
	}
	.ae-menu.is-open { display: flex; }
	.ae-menu li { width: 100%; }
	.ae-menu ul {
		position: static; opacity: 1; visibility: visible; transform: none;
		background: rgba(0, 0, 0, .16); border: 0; box-shadow: none;
		border-radius: 0; padding: 0;
	}
	.ae-menu ul a { color: #fff; padding-left: 32px; }
	.ae-menu ul a:hover { background: rgba(0, 0, 0, .2); color: #fff; }
	.ae-menu ul ul a { padding-left: 48px; }

	.ae-grid--2, .ae-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.ae-guidelines { grid-template-columns: minmax(0, 1fr); }
	.ae-gp-form .ae-row { grid-template-columns: minmax(0, 1fr); }
	.ae-postnav { grid-template-columns: minmax(0, 1fr); }
	.ae-postnav__item--next { text-align: left; }
	.ae-author { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
	.alignwide, .alignfull { margin-left: 0; margin-right: 0; max-width: 100%; }
	.ae-topbar .ae-wrap { justify-content: center; }
}

@media (max-width: 560px) {
	.ae-item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
	.ae-cats, .ae-stats, .ae-steps { grid-template-columns: repeat(2, 1fr); }
	.ae-gp-hero h1 { font-size: 2rem; }
	.ae-gp-hero { padding: 46px 0; }
	.ae-wa { right: 16px; bottom: 16px; }
	.ae-top { right: 18px; bottom: 84px; }
	.ae-footer__cols { grid-template-columns: minmax(0, 1fr); }
	.ae-footer__bar { justify-content: center; text-align: center; }
}

/* Print */
@media print {
	.ae-nav, .ae-topbar, .ae-sidebar, .ae-wa, .ae-top, .ae-share, .ae-footer, .ae-postnav { display: none !important; }
	.ae-layout { grid-template-columns: 1fr; }
	body { font-size: 12pt; color: #000; }
}
