/*
Theme Name: AE3888 Flatsome Child
Description: Flatsome child theme phục dựng giao diện ae3888.me từ Wayback Machine, giữ CSS tùy chỉnh tập trung trong file này.
Author: Codex
Template: flatsome
Version: 1.0.1
Text Domain: ae3888-child
*/

:root {
	--ae-color-primary: #164c38;
	--ae-color-primary-dark: #0c3327;
	--ae-color-accent: #d81b0d;
	--ae-color-accent-dark: #9f130a;
	--ae-color-gold: #b89851;
	--ae-color-bg: #f3f3f3;
	--ae-color-surface: #ffffff;
	--ae-color-text: #222222;
	--ae-color-muted: #6b7280;
	--ae-color-border: #e2e2e2;
	--ae-container-width: 1170px;
	--ae-radius-card: 10px;
	--ae-radius-button: 24px;
	--ae-shadow-card: 0 12px 30px rgba(12, 51, 39, 0.12);
}

html,
body,
#wrapper,
#main {
	background: var(--ae-color-bg);
	color: var(--ae-color-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: 0;
}

body {
	font-size: 16px;
	line-height: 1.65;
}

a {
	color: var(--ae-color-accent);
}

a:hover,
a:focus {
	color: var(--ae-color-accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(184, 152, 81, 0.55);
	outline-offset: 3px;
}

.button,
button,
input[type="submit"] {
	border-radius: var(--ae-radius-button);
	text-transform: none;
	min-height: 42px;
}

.button.primary,
button[type="submit"],
input[type="submit"] {
	background: var(--ae-color-accent);
	border-color: var(--ae-color-accent);
	color: #ffffff;
}

.button.primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: var(--ae-color-accent-dark);
	border-color: var(--ae-color-accent-dark);
}

.button.secondary {
	background: var(--ae-color-primary);
	border-color: var(--ae-color-primary);
	color: #ffffff;
}

.ae-template-container,
.ae-container {
	width: min(var(--ae-container-width), calc(100% - 32px));
	margin-inline: auto;
}

.ae-narrow {
	max-width: 850px;
}

.ae-section {
	background: var(--ae-color-bg);
}

.ae-kicker {
	color: var(--ae-color-gold);
	font-size: 0.84rem;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.header-wrapper,
.header-bg-color,
.header-main {
	background: var(--ae-color-primary);
}

.header-top {
	background: var(--ae-color-primary-dark);
	color: #ffffff;
	min-height: 36px;
}

.header-main {
	min-height: 88px;
}

.header-bottom {
	background: #ffffff;
	border-bottom: 1px solid rgba(12, 51, 39, 0.12);
	min-height: 36px;
}

.header:not(.transparent) .header-nav-main.nav > li > a,
.header-nav-main.nav > li > a {
	color: #ffffff;
	font-weight: 800;
}

.header-nav-main.nav > li > a:hover,
.header-nav-main.nav > li.active > a {
	color: var(--ae-color-gold);
}

#logo img {
	max-height: 86px;
	object-fit: contain;
}

.ae-home-hero {
	padding-top: 24px;
}

.ae-hero-grid {
	align-items: stretch;
}

.ae-hero-main,
.ae-news-panel {
	min-width: 0;
}

.ae-hero-slider {
	overflow: hidden;
	border-radius: var(--ae-radius-card);
	background: var(--ae-color-primary-dark);
	box-shadow: var(--ae-shadow-card);
}

.ae-hero-slider img,
.ae-promo-strip img,
.ae-slot-ad img {
	display: block;
	width: 100%;
	height: auto;
}

.ae-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	padding: 10px 16px;
	background: #ffffff;
	border: 1px solid var(--ae-color-border);
	border-radius: var(--ae-radius-card);
	overflow: hidden;
}

.ae-notice p {
	margin: 0;
	font-size: 0.94rem;
	white-space: nowrap;
	animation: ae-marquee 22s linear infinite;
}

.ae-notice strong {
	color: var(--ae-color-accent);
	margin-right: 8px;
}

@keyframes ae-marquee {
	0% {
		transform: translateX(30%);
	}
	100% {
		transform: translateX(-100%);
	}
}

.ae-reduce-motion .ae-notice p {
	animation: none;
}

.ae-news-panel {
	background: var(--ae-color-surface);
	border-radius: var(--ae-radius-card);
	box-shadow: var(--ae-shadow-card);
	padding: 16px;
}

.ae-news-panel h2,
.ae-game-grid h2,
.ae-slot-ad h2,
.ae-seo-content h2 {
	color: var(--ae-color-gold);
	font-size: clamp(1.35rem, 2vw, 1.9rem);
	margin-top: 0;
	text-align: center;
}

.ae-brand-intro {
	background: #ffffff;
}

.ae-brand-intro h1 {
	color: var(--ae-color-gold);
	font-size: 2.4rem;
	line-height: 1.15;
	margin-bottom: 14px;
}

.ae-brand-intro p {
	max-width: 760px;
	margin-inline: auto;
}

.ae-game-grid {
	background: #eeeeee;
}

.ae-game-card {
	position: relative;
	isolation: isolate;
	min-height: 370px;
	padding: 28px 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	overflow: hidden;
	border-radius: var(--ae-radius-card);
	color: #ffffff;
	text-align: center;
	background-color: var(--ae-color-primary-dark);
	background-position: center;
	background-size: cover;
	box-shadow: var(--ae-shadow-card);
}

.ae-game-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(12, 51, 39, 0.1), rgba(5, 19, 16, 0.88));
}

.ae-game-card--sports {
	background-image: url("assets/images/game-sports.webp");
}

.ae-game-card--casino {
	background-image: url("assets/images/game-casino.webp");
}

.ae-game-card--cockfight {
	background-image: url("assets/images/game-cockfight.webp");
}

.ae-game-card--slot {
	background-image: url("assets/images/game-slot.webp");
}

.ae-game-card img {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.ae-game-card h3 {
	color: #ffffff;
	font-size: 1.35rem;
	margin: 0;
}

.ae-game-card p {
	margin: 0;
	max-width: 240px;
}

.ae-benefit-grid {
	background: #ffffff;
}

.ae-benefit-grid .icon-box,
.ae-support-card,
.ae-slot-ad {
	background: var(--ae-color-surface);
	border: 1px solid var(--ae-color-border);
	border-radius: var(--ae-radius-card);
	box-shadow: var(--ae-shadow-card);
	padding: 20px;
}

.ae-support-area {
	background: #edf2ef;
}

.ae-support-card {
	min-height: 230px;
}

.ae-support-card img,
.ae-contact-method img {
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.ae-slot-ad {
	text-align: center;
}

.ae-slot-ad p {
	color: var(--ae-color-primary);
	font-size: 1.05rem;
	font-weight: 800;
}

.ae-seo-content {
	background: var(--ae-color-surface);
}

.ae-seo-content p,
.ae-page-body p,
.ae-single-content p {
	max-width: 760px;
}

.ae-archive-hero,
.ae-page-header,
.ae-single-header {
	background: linear-gradient(135deg, var(--ae-color-primary-dark), var(--ae-color-primary));
	color: #ffffff;
	padding: 34px 0;
}

.ae-archive-hero h1,
.ae-page-header h1,
.ae-single-header h1 {
	color: #ffffff;
	font-size: clamp(1.8rem, 4vw, 2.7rem);
	line-height: 1.2;
	margin: 8px 0 10px;
}

.ae-archive-hero p,
.ae-single-excerpt,
.ae-single-meta {
	color: rgba(255, 255, 255, 0.86);
}

.ae-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 0.9rem;
	margin-bottom: 10px;
}

.ae-breadcrumb a,
.ae-breadcrumb span {
	color: inherit;
}

.ae-breadcrumb a::after {
	content: "/";
	margin-left: 8px;
	color: rgba(255, 255, 255, 0.55);
}

.ae-layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	padding: 32px 0;
}

.ae-archive-grid,
.ae-related-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.ae-post-card,
.ae-widget,
.ae-empty-content,
.ae-error-box,
.ae-contact-form {
	background: var(--ae-color-surface);
	border: 1px solid var(--ae-color-border);
	border-radius: var(--ae-radius-card);
	box-shadow: var(--ae-shadow-card);
	overflow: hidden;
}

.ae-post-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--ae-color-primary-dark);
	overflow: hidden;
}

.ae-post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.ae-post-card:hover .ae-post-card__image img {
	transform: scale(1.035);
}

.ae-post-card__placeholder {
	display: grid;
	height: 100%;
	place-items: center;
	color: var(--ae-color-gold);
	font-weight: 800;
}

.ae-post-card__body {
	padding: 16px;
}

.ae-post-card__category {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--ae-color-gold);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.ae-post-card h2 {
	font-size: 1.12rem;
	line-height: 1.35;
	margin: 0 0 8px;
}

.ae-post-card h2 a {
	color: var(--ae-color-text);
}

.ae-post-card__meta,
.ae-sidebar-list span,
.ae-single-meta {
	font-size: 0.88rem;
}

.ae-post-card p {
	margin-bottom: 10px;
}

.ae-read-more {
	font-weight: 800;
}

.ae-pagination {
	margin-top: 28px;
}

.ae-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ae-pagination .page-numbers {
	display: inline-flex;
	min-width: 38px;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid var(--ae-color-border);
	color: var(--ae-color-primary);
}

.ae-pagination .current {
	background: var(--ae-color-accent);
	border-color: var(--ae-color-accent);
	color: #ffffff;
}

.ae-sidebar {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ae-widget {
	padding: 18px;
}

.ae-widget-title {
	color: var(--ae-color-primary);
	font-size: 1.12rem;
	margin: 0 0 12px;
}

.ae-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ae-sidebar-list li {
	border-bottom: 1px solid var(--ae-color-border);
	padding: 10px 0;
}

.ae-sidebar-list li:last-child {
	border-bottom: 0;
}

.ae-sidebar-list a {
	display: block;
	color: var(--ae-color-text);
	font-weight: 700;
	line-height: 1.35;
}

.ae-sidebar-list span {
	color: var(--ae-color-muted);
}

.ae-featured-image {
	margin-top: 24px;
}

.ae-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--ae-radius-card);
	box-shadow: var(--ae-shadow-card);
}

.ae-single-content,
.ae-page-content {
	font-size: 1.03rem;
}

.ae-single-content h2,
.ae-page-content h2 {
	color: var(--ae-color-primary);
	margin-top: 1.8em;
}

.ae-single-content h3,
.ae-page-content h3 {
	color: var(--ae-color-gold);
	margin-top: 1.4em;
}

.ae-sapo,
.ae-single-excerpt {
	font-size: 1.08rem;
	font-weight: 600;
}

.ae-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 28px 0;
}

.ae-post-nav a {
	display: block;
	background: #ffffff;
	border: 1px solid var(--ae-color-border);
	border-radius: var(--ae-radius-card);
	padding: 14px;
	font-weight: 800;
}

.ae-related-posts {
	margin-top: 32px;
}

.ae-page-intro {
	background: linear-gradient(135deg, var(--ae-color-primary-dark), var(--ae-color-primary));
	color: #ffffff;
}

.ae-page-intro h1 {
	color: #ffffff;
}

.ae-page-body {
	background: #ffffff;
}

.ae-contact-method {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 12px 0;
	font-weight: 800;
}

.ae-contact-form {
	padding: 22px;
}

.ae-contact-form label,
.ae-search-form label {
	display: block;
	color: var(--ae-color-primary);
	font-weight: 800;
	margin-bottom: 6px;
}

.ae-contact-form input,
.ae-contact-form textarea,
.ae-search-form input {
	width: 100%;
	border: 1px solid var(--ae-color-border);
	border-radius: 8px;
	min-height: 44px;
	padding: 10px 12px;
	background: #ffffff;
}

.ae-contact-form textarea {
	resize: vertical;
}

.ae-hp-field {
	position: absolute;
	left: -9999px;
}

.ae-form-success {
	background: #e6f4ec;
	border: 1px solid #abd7be;
	border-radius: 8px;
	color: var(--ae-color-primary);
	padding: 10px 12px;
}

.ae-search-form > div {
	display: flex;
	gap: 8px;
}

.ae-search-form button {
	flex: 0 0 auto;
	background: var(--ae-color-accent);
	border: 0;
	color: #ffffff;
	padding: 0 18px;
}

.ae-empty-content,
.ae-error-box {
	padding: 28px;
}

.ae-error-main {
	padding: 48px 0;
}

.ae-site-footer {
	background: var(--ae-color-primary-dark);
	color: rgba(255, 255, 255, 0.84);
}

.ae-site-footer h2 {
	color: var(--ae-color-gold);
	font-size: 1.05rem;
}

.ae-site-footer a {
	color: #ffffff;
}

.ae-footer-logo img {
	max-width: 190px;
	height: auto;
}

.ae-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
}

.ae-footer-menu li {
	break-inside: avoid;
	margin-bottom: 8px;
}

.absolute-footer {
	background: var(--ae-color-primary-dark);
	color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 1024px) {
	.ae-layout-with-sidebar {
		grid-template-columns: 1fr;
	}

	.ae-sidebar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.ae-template-container,
	.ae-container {
		width: min(100% - 24px, var(--ae-container-width));
	}

	.ae-archive-grid,
	.ae-related-grid,
	.ae-sidebar,
	.ae-post-nav {
		grid-template-columns: 1fr;
	}

	.ae-notice p {
		white-space: normal;
		animation: none;
	}

	.ae-game-card {
		min-height: 320px;
	}

	.ae-search-form > div {
		flex-direction: column;
	}
}

@media (max-width: 549px) {
	body {
		font-size: 16px;
	}

	.header-main {
		min-height: 70px;
	}

	#logo img {
		max-height: 68px;
	}

	.ae-brand-intro h1 {
		font-size: 2rem;
	}

	.ae-contact-form,
	.ae-widget,
	.ae-post-card__body,
	.ae-empty-content,
	.ae-error-box {
		padding: 16px;
	}
}
