/**
 * Eteform Guide — matches WHMCS eteform-rtl.css branding
 */

:root {
	--eg-navy: #0a1628;
	--eg-navy-light: #132238;
	--eg-gold: #c9a227;
	--eg-gold-light: #e8c547;
	--eg-green: #1a7a4c;
	--eg-green-light: #2ecc71;
	--eg-text: #e8edf5;
	--eg-muted: #94a3b8;
	--eg-card: #111d32;
	--eg-border: rgba(201, 162, 39, 0.25);
	--eg-radius: 12px;
	--eg-radius-sm: 8px;
	--eg-header-h: 72px;
	--eg-container: 1140px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

/* Nav/footer: WHMCS eteform-rtl.css (loaded from site root). Content styles below. */
body.eteform-guide {
	line-height: 1.7;
	font-size: 1rem;
}

a {
	color: var(--eg-gold);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--eg-gold-light);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.eg-container {
	width: min(100% - 2rem, var(--eg-container));
	margin-inline: auto;
}

.eg-container--narrow {
	width: min(100% - 2rem, 760px);
}

/* Hero */
.eg-hero {
	padding: 3rem 0 2rem;
	background: linear-gradient(180deg, var(--eg-navy-light) 0%, var(--eg-navy) 100%);
	border-bottom: 1px solid var(--eg-border);
}

.eg-hero--compact {
	padding: 2rem 0 1.5rem;
}

.eg-hero-title {
	margin: 0 0 0.5rem;
	font-family: 'Cairo', sans-serif;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	color: var(--eg-gold);
	line-height: 1.3;
}

.eg-hero-subtitle {
	margin: 0;
	color: var(--eg-muted);
	font-size: 1.1rem;
	max-width: 42rem;
}

/* Sections */
.eg-section {
	padding: 2.5rem 0 4rem;
}

.eg-section--article {
	padding-top: 2rem;
}

/* Card grid */
.eg-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
}

.eg-card {
	background: var(--eg-card);
	border: 1px solid var(--eg-border);
	border-radius: var(--eg-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.eg-card:hover {
	border-color: rgba(201, 162, 39, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.eg-card-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--eg-navy-light);
}

.eg-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.eg-card:hover .eg-card-thumb img {
	transform: scale(1.03);
}

.eg-card-body {
	padding: 1.25rem 1.35rem 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.eg-card-date {
	font-size: 0.85rem;
	color: var(--eg-muted);
	margin-bottom: 0.35rem;
}

.eg-card-title {
	margin: 0 0 0.65rem;
	font-family: 'Cairo', sans-serif;
	font-size: 1.2rem;
	line-height: 1.4;
}

.eg-card-title a {
	color: var(--eg-text);
}

.eg-card-title a:hover {
	color: var(--eg-gold);
}

.eg-card-excerpt {
	margin: 0 0 1rem;
	color: var(--eg-muted);
	flex: 1;
	font-size: 0.95rem;
}

.eg-card-link {
	font-weight: 600;
	color: var(--eg-green-light) !important;
	margin-top: auto;
}

.eg-card-link:hover {
	color: var(--eg-gold) !important;
}

/* Article */
.eg-article-header {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--eg-border);
}

.eg-article-title {
	margin: 0 0 0.5rem;
	font-family: 'Cairo', sans-serif;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	color: var(--eg-gold);
	line-height: 1.35;
}

.eg-article-meta {
	margin: 0;
	color: var(--eg-muted);
	font-size: 0.9rem;
}

.eg-article-thumb {
	margin-bottom: 1.5rem;
	border-radius: var(--eg-radius);
	overflow: hidden;
	border: 1px solid var(--eg-border);
}

.eg-article-content {
	font-size: 1.05rem;
}

.eg-article-content h2,
.eg-article-content h3 {
	font-family: 'Cairo', sans-serif;
	color: var(--eg-gold-light);
	margin-top: 1.75rem;
}

.eg-article-content p,
.eg-article-content ul,
.eg-article-content ol {
	margin-bottom: 1rem;
}

.eg-article-content ul,
.eg-article-content ol {
	padding-right: 1.25rem;
}

.eg-back-link {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--eg-border);
}

/* Pagination */
.eg-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 2rem;
}

.eg-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: var(--eg-radius-sm);
	border: 1px solid var(--eg-border);
	color: var(--eg-text);
	background: var(--eg-card);
}

.eg-pagination .page-numbers.current,
.eg-pagination .page-numbers:hover {
	background: rgba(201, 162, 39, 0.15);
	border-color: var(--eg-gold);
	color: var(--eg-gold);
}

.eg-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--eg-muted);
}

.eg-main {
	min-height: 50vh;
}

@media (max-width: 991px) {
	.eg-card-grid {
		grid-template-columns: 1fr;
	}
}
