/* =========================================================
   English Habit Theme — الأخضر الملكي والذهبي
   ========================================================= */

:root {
	--royal-green-900: #0a2e21;
	--royal-green-800: #0d3b2b;
	--royal-green-700: #145c40;
	--royal-green-600: #1c7a54;
	--royal-green-100: #e7f1ea;
	--gold-700: #a9821c;
	--gold-600: #c9a227;
	--gold-500: #d9b94a;
	--gold-300: #ecd98a;
	--cream: #faf8f2;
	--paper: #ffffff;
	--text: #16241d;
	--text-muted: #5c7367;
	--border: #e5e1d4;
	--radius: 14px;
	--shadow-soft: 0 4px 18px rgba(13, 59, 43, 0.08);
	--shadow-strong: 0 10px 30px rgba(13, 59, 43, 0.16);
	--font-heading: "Cairo", "Tajawal", sans-serif;
	--font-body: "Tajawal", "Cairo", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--text);
	font-family: var(--font-body);
	direction: rtl;
	line-height: 1.7;
	padding-bottom: 0;
}

body.eht-has-bottom-nav { padding-bottom: 78px; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.eht-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.eht-container-narrow { max-width: 760px; }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 800; color: var(--royal-green-800); margin: 0 0 .5em; }

/* ===== أزرار عامة ===== */
.eht-btn {
	display: inline-block;
	padding: 13px 30px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	transition: transform .2s ease, box-shadow .2s ease;
	border: none;
	cursor: pointer;
}
.eht-btn-gold {
	background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
	color: var(--royal-green-900);
	box-shadow: 0 6px 18px rgba(201, 162, 39, .35);
}
.eht-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 162, 39, .45); }

/* ===== الهيدر ===== */
.eht-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(250, 248, 242, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}
.eht-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}
.eht-logo img { max-height: 44px; }
.eht-text-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: var(--royal-green-800); }
.eht-logo-icon { font-size: 22px; }

.eht-primary-nav { display: none; }
.eht-menu { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.eht-menu a {
	font-weight: 600;
	font-size: 15px;
	color: var(--royal-green-800);
	position: relative;
	padding: 6px 0;
}
.eht-menu a::after {
	content: '';
	position: absolute;
	right: 0; bottom: 0;
	width: 0; height: 2px;
	background: var(--gold-600);
	transition: width .25s ease;
}
.eht-menu a:hover::after, .eht-menu .current-menu-item a::after { width: 100%; }

.eht-menu-toggle {
	background: none; border: none; cursor: pointer;
	width: 40px; height: 40px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.eht-menu-toggle span { width: 22px; height: 2px; background: var(--royal-green-800); border-radius: 2px; transition: all .25s ease; }
.eht-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.eht-menu-toggle.active span:nth-child(2) { opacity: 0; }
.eht-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.eht-mobile-menu {
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
	background: var(--paper);
	border-top: 1px solid var(--border);
}
.eht-mobile-menu.open { max-height: 400px; }
.eht-mobile-menu-list { list-style: none; margin: 0; padding: 10px 20px; }
.eht-mobile-menu-list li { border-bottom: 1px solid var(--border); }
.eht-mobile-menu-list a { display: block; padding: 14px 4px; font-weight: 600; color: var(--royal-green-800); }

@media (min-width: 900px) {
	.eht-primary-nav { display: block; }
	.eht-menu-toggle { display: none; }
	.eht-mobile-menu { display: none; }
}

/* ===== قسم البطل (Hero) ===== */
.eht-hero {
	position: relative;
	background: radial-gradient(120% 140% at 20% 0%, var(--royal-green-700) 0%, var(--royal-green-900) 65%);
	color: #fff;
	padding: 70px 0 90px;
	overflow: hidden;
	text-align: center;
}
.eht-hero-decor {
	position: absolute; inset: 0;
	background-image:
		radial-gradient(circle at 85% 20%, rgba(217,185,74,.25) 0, transparent 40%),
		radial-gradient(circle at 10% 90%, rgba(217,185,74,.15) 0, transparent 35%);
	pointer-events: none;
}
.eht-hero-inner { position: relative; z-index: 2; max-width: 640px; }
.eht-hero-eyebrow {
	display: inline-block;
	background: rgba(217,185,74,.15);
	border: 1px solid rgba(217,185,74,.4);
	color: var(--gold-300);
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 18px;
}
.eht-hero-title { font-size: 34px; line-height: 1.4; color: #fff; margin-bottom: 16px; }
.eht-hero-title span { color: var(--gold-300); }
.eht-hero-desc { color: #d8e6de; font-size: 16px; margin-bottom: 30px; }

@media (min-width: 768px) {
	.eht-hero-title { font-size: 44px; }
}

/* ===== قسم التطبيق ===== */
.eht-app-section { padding: 40px 0 60px; margin-top: -40px; position: relative; z-index: 3; }
.eht-notice { background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--text-muted); }

/* تكييف بطاقات إضافة English Habit مع هوية القالب */
.eht-app-section .eh-app { --eh-primary: var(--royal-green-700); --eh-primary-dark: var(--royal-green-900); --eh-accent: var(--gold-600); box-shadow: var(--shadow-strong); }
.eht-app-section .eh-header { background: linear-gradient(135deg, var(--royal-green-700), var(--royal-green-900)); }
.eht-app-section .eh-stage-btn.done { background: var(--royal-green-700); border-color: var(--royal-green-700); }
.eht-app-section .eh-btn-primary { background: var(--royal-green-700); border-color: var(--royal-green-700); }
.eht-app-section .eh-fav-btn.active { color: var(--gold-600); }

/* ===== المقالات ===== */
.eht-posts-section, .eht-page-section { padding: 50px 0; }
.eht-posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.eht-post-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.eht-post-card h2 { padding: 16px 18px 0; font-size: 19px; }
.eht-post-excerpt { padding: 8px 18px 18px; color: var(--text-muted); font-size: 14px; }
.eht-post-meta { color: var(--text-muted); font-size: 13px; padding: 0 18px; }
.eht-post-thumb img { border-radius: var(--radius) var(--radius) 0 0; }

.eht-page-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-soft); }
.eht-page-title { font-size: 26px; border-bottom: 3px solid var(--gold-600); display: inline-block; padding-bottom: 8px; }
.eht-content { margin-top: 20px; color: var(--text); }
.eht-content a { color: var(--royal-green-700); text-decoration: underline; }

/* ===== الفوتر ===== */
.eht-footer { background: var(--royal-green-900); color: #cfe0d6; margin-top: 40px; }
.eht-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; padding: 50px 0 30px; }
.eht-widget-title { color: #fff; font-size: 16px; border-bottom: 2px solid var(--gold-600); display: inline-block; padding-bottom: 6px; margin-bottom: 12px; }
.eht-footer-menu { list-style: none; margin: 0; padding: 0; }
.eht-footer-menu li { margin-bottom: 8px; }
.eht-footer-menu a:hover { color: var(--gold-300); }
.eht-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: 13px; color: #9fb5a8; }

/* =========================================================
   شريط التنقل السفلي للجوال (Bottom Mobile Nav)
   ========================================================= */
.eht-bottom-nav {
	position: fixed;
	bottom: 0; right: 0; left: 0;
	z-index: 300;
	display: flex;
	background: var(--paper);
	border-top: 1px solid var(--border);
	box-shadow: 0 -6px 20px rgba(13,59,43,.10);
	padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.eht-bottom-nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 6px 2px;
	color: var(--text-muted);
	font-size: 11px;
	font-weight: 600;
	border-radius: 12px;
	transition: color .2s ease, background .2s ease;
	position: relative;
}
.eht-bottom-nav-icon { width: 22px; height: 22px; display: block; }
.eht-bottom-nav-icon svg { width: 100%; height: 100%; }
.eht-bottom-nav-item.active { color: var(--royal-green-700); }
.eht-bottom-nav-item.active .eht-bottom-nav-icon { color: var(--gold-600); }
.eht-bottom-nav-item:active { background: var(--royal-green-100); }
.eht-bottom-nav-item.active::before {
	content: '';
	position: absolute;
	top: -6px;
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--gold-600);
}

@media (min-width: 900px) {
	.eht-bottom-nav { display: none; }
	body.eht-has-bottom-nav { padding-bottom: 0; }
}

/* ===== تعليقات ووردبريس الافتراضية (تنسيق بسيط) ===== */
.comment-list { list-style: none; padding: 0; }
.comment-form input, .comment-form textarea {
	width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); font-family: var(--font-body); margin-bottom: 10px;
}
.comment-form .submit {
	background: var(--royal-green-700); color: #fff; border: none; padding: 10px 22px; border-radius: 999px; cursor: pointer; font-weight: 700;
}
