/*
 * هوية "هنذاكر إعدادي" لداشبورد الطالب (Tutor LMS 4.x)
 * الأخضر الأساسي #0B5140 — الأصفر الثانوي #E8BD22 — الخط Graphic Arabic
 */

/* ==========================================================================
   1) استبدال سلّم ألوان Tutor الافتراضي (أزرق) بسلّم أخضر من هوية الموقع
   كل مكوّنات Tutor (أزرار، لينكات، تابات، أشرطة تقدم) بتقرا من المتغيرات دي
   ========================================================================== */
:root {
	--tutor-brand-25:  #f6faf9;
	--tutor-brand-50:  #ecf5f2;
	--tutor-brand-100: #d9ece5;
	--tutor-brand-200: #c2e2d6;
	--tutor-brand-300: #9ccbbc;
	--tutor-brand-400: #5da78f;
	--tutor-brand-500: #2e7a63;
	--tutor-brand-600: #0b5140;
	--tutor-brand-700: #094536;
	--tutor-brand-800: #07392d;
	--tutor-brand-900: #062f25;
	--tutor-brand-950: #04231c;
}

/* ==========================================================================
   2) الخط: Graphic Arabic بدل Inter داخل الداشبورد وكل شاشات Tutor
   ========================================================================== */
body.tutor-screen-frontend-dashboard,
body.tutor-screen-frontend-dashboard input,
body.tutor-screen-frontend-dashboard select,
body.tutor-screen-frontend-dashboard textarea,
body.tutor-screen-frontend-dashboard button,
.tutor-dashboard-layout,
.tutor-dashboard-layout h1,
.tutor-dashboard-layout h2,
.tutor-dashboard-layout h3,
.tutor-dashboard-layout h4,
.tutor-dashboard-layout h5,
.tutor-dashboard-layout h6,
.tutor-dashboard-layout p,
.tutor-dashboard-layout a,
.tutor-dashboard-layout span,
.tutor-dashboard-layout div,
.tutor-dashboard-layout li,
.tutor-dashboard-layout label,
.tutor-dashboard-layout td,
.tutor-dashboard-layout th {
	font-family: "Graphic Arabic", Inter, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}

/* ==========================================================================
   3) السايدبار: أخضر غامق + العنصر النشط أصفر (زي زرار الهيرو في الرئيسية)
   ========================================================================== */
.tutor-dashboard-sidebar {
	background-color: #0b5140;
	border-inline-end: none;
}

.tutor-dashboard-sidebar-logo {
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* اللوجو ملوّن فحطيناه على شريحة بيضا مدوّرة عشان يبان */
.tutor-dashboard-sidebar-logo img {
	background: #ffffff;
	border-radius: 12px;
	padding: 8px 12px;
	box-sizing: content-box;
	max-height: calc(100% - 16px);
}

.tutor-dashboard-sidebar .tutor-dashboard-sidebar-nav ul li a {
	color: rgba(255, 255, 255, 0.88);
	border-radius: 12px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.tutor-dashboard-sidebar .tutor-dashboard-sidebar-nav ul li a:hover,
.tutor-dashboard-sidebar .tutor-dashboard-sidebar-nav ul li a:focus {
	background-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.tutor-dashboard-sidebar .tutor-dashboard-sidebar-nav ul li a.active {
	background-color: #e8bd22;
	color: #0b5140;
	font-weight: 600;
}

/* الخط الفاصل بين مجموعات القايمة */
.tutor-dashboard-sidebar .tutor-dashboard-sidebar-nav ul li:nth-of-type(5):not(:last-of-type)::after {
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

/* زرار "تصفح الكورسات" أسفل السايدبار: pill بحدود بيضا */
.tutor-dashboard-sidebar .tutor-see-all-courses {
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	margin: 12px 16px;
	justify-content: center;
	transition: background-color 0.15s ease;
}

.tutor-dashboard-sidebar .tutor-see-all-courses:hover,
.tutor-dashboard-sidebar .tutor-see-all-courses:focus {
	background-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

/* ==========================================================================
   4) منطقة المحتوى: نفس خلفية الموقع + كروت بحواف دائرية زي الرئيسية
   ========================================================================== */
.tutor-dashboard-main {
	background-color: #f2f5f4;
}

.tutor-dashboard-header {
	background-color: #ffffff;
	border-bottom: 1px solid #e6ece9;
}

.tutor-stat-card {
	background-color: #ffffff;
	border: 1px solid #e6ece9;
	border-radius: 16px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tutor-stat-card:hover {
	box-shadow: 0 6px 18px rgba(11, 81, 64, 0.1);
	transform: translateY(-2px);
}

.tutor-stat-card-title {
	color: #43435c;
}

/* أفاتار الطالب بألوان البراند */
.tutor-avatar {
	background-color: #d9ece5;
	color: #0b5140;
}

/* ==========================================================================
   5) لمسات عامة: أزرار وحواف متناسقة مع الموقع
   ========================================================================== */
.tutor-dashboard-layout .tutor-btn {
	border-radius: 999px;
}

.tutor-dashboard-layout .tutor-card,
.tutor-dashboard-layout .tutor-course-card {
	border-radius: 16px;
}

/* ==========================================================================
   6) توسيع منطقة المحتوى: Tutor بيحدّها بـ 944px فبتبان مزنوقة على الشاشات الواسعة
   ========================================================================== */
@media (min-width: 1200px) {
	.tutor-dashboard-page {
		max-width: min(1320px, calc(100% - 96px));
	}
}

/* ==========================================================================
   7) قايمة اليوزر المنسدلة (البوب أوفر)
   ========================================================================== */
.tutor-dashboard-header-user-popover {
	width: 268px;
	padding: 10px;
	border: none;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(6, 47, 37, 0.18), 0 2px 8px rgba(6, 47, 37, 0.08);
}

/* بلوك البروفايل: أخضر غامق زي السايدبار */
.tutor-dashboard-header-user-popover-profile {
	background: linear-gradient(160deg, #0b5140 0%, #094536 100%);
	border-radius: 12px;
}

.tutor-dashboard-header-user-popover-profile .tutor-text-primary {
	color: #ffffff;
}

.tutor-dashboard-header-user-popover-profile .tutor-text-secondary {
	color: rgba(255, 255, 255, 0.75);
}

/* الأفاتار جوه البلوك: أصفر بحلقة بيضا خفيفة */
.tutor-dashboard-header-user-popover-profile .tutor-avatar {
	background-color: #e8bd22;
	color: #0b5140;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* عناصر القايمة */
.tutor-dashboard-header-user-popover-menu li a {
	border-radius: 10px;
	color: #1f1f2a;
	transition: background-color 0.15s ease;
}

.tutor-dashboard-header-user-popover-menu li a svg {
	color: #0b5140;
}

.tutor-dashboard-header-user-popover-menu li a:hover {
	background-color: #ecf5f2;
	color: #0b5140;
}

.tutor-dashboard-header-user-popover-menu li a.active {
	background-color: #d9ece5;
	color: #0b5140;
}

/* تسجيل الخروج: آخر عنصر ومفصول بخط — نبرة تحذيرية هادية */
.tutor-dashboard-header-user-popover-menu li:last-of-type {
	border-top-color: #e6ece9;
}

.tutor-dashboard-header-user-popover-menu li:last-of-type a,
.tutor-dashboard-header-user-popover-menu li:last-of-type a svg {
	color: #b42318;
}

.tutor-dashboard-header-user-popover-menu li:last-of-type a:hover {
	background-color: #fdecea;
	color: #b42318;
}

/* ==========================================================================
   8) الناف بار الرئيسي للموقع
   ========================================================================== */

/* اسم الطالب في الهيدر: سطر واحد دايماً، ولو طويل أوي يتقص بنقط */
.custom-user-dropdown .user-trigger span,
.custom-user-dropdown .user-name,
.header-user .elementor-widget-heading .elementor-heading-title {
	white-space: nowrap;
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* نسخة الـ spacer اللي Elementor Sticky بيعملها من الهيدر المفروض تفضل مخفية —
   كانت ظاهرة فبيبان ناف بار مكرر أثناء السكرول.
   السبب: كود مخصص في الموقع بيعمل visibility:visible!important على
   body.logged-in .header-user فبيشمل الـ spacer — فمحتاجين تخصيص أعلى منه */
.elementor-sticky__spacer,
body.logged-in .header-user.elementor-sticky__spacer,
body.logged-out .header-guest.elementor-sticky__spacer,
body.logged-in .elementor-sticky__spacer.header-user,
body.logged-out .elementor-sticky__spacer.header-guest {
	visibility: hidden !important;
	pointer-events: none !important;
}

/* سكرول ناعم للينكات الهاش + مسافة تحت الهيدر الثابت عشان السكشن ميتغطاش */
html {
	scroll-behavior: smooth;
}

#courses,
#pricing-plans,
#why-us,
#our-teachers,
#faq-section {
	scroll-margin-top: 88px;
}

/* الهيدر المثبت ياخد عرض الشاشة كامل دايماً —
   Elementor Sticky بيكتب width بالبكسل وقت التفعيل وبتبقى قيمة قديمة/غلط
   لما مقاس الشاشة يتغير، فبيظهر الهيدر مش واخد العرض في الموبايل */
.elementor-location-header .elementor-sticky--active {
	width: 100% !important;
	inset-inline-start: 0 !important;
}

/* تقليل ارتفاع الناف بار (كان 90px → حوالي 64px) */
.elementor-location-header .header-user,
.elementor-location-header .header-guest {
	padding-top: 5px !important;
	padding-bottom: 5px !important;
}

.elementor-location-header .elementor-element-417c293 {
	padding-top: 4px !important;
	padding-bottom: 4px !important;
}

.elementor-location-header .header-user img.e-image-base,
.elementor-location-header .header-guest img.e-image-base {
	max-height: 46px;
	width: auto;
}

/* الصورة الشخصية في الناف بار: دايرة بقطر ثابت مهما كان مقاس الصورة */
.custom-user-dropdown .user-trigger img.user-avatar,
.custom-user-dropdown img.user-avatar {
	width: 38px !important;
	height: 38px !important;
	max-height: 38px !important;
	border-radius: 50% !important;
	object-fit: cover;
	flex-shrink: 0;
}

/* صورة البروفايل في هيدر الموبايل (ويدجت صورة Elementor) */
.elementor-location-header .elementor-element-a58c0cf img.e-image-base {
	width: 38px !important;
	height: 38px !important;
	max-height: 38px !important;
	border-radius: 50% !important;
	object-fit: cover;
}

/* ==========================================================================
   9) الصفحة الرئيسية — توسيط على الموبايل
   ========================================================================== */
@media (max-width: 767px) {
	/* سكشن "خطواتك للتفوق": البادج والعنوان وكروت الخطوات كلها في المنتصف */
	[data-id="cbeef40"] .elementor-heading-title,
	[data-id="cbeef40"] .elementor-widget-text-editor,
	[data-id="cbeef40"] .elementor-widget-text-editor p,
	[data-id="cbeef40"] h1,
	[data-id="cbeef40"] h2,
	[data-id="cbeef40"] h3,
	[data-id="cbeef40"] h4,
	[data-id="cbeef40"] p {
		text-align: center !important;
	}

	/* كروت الخطوات: مسافات متساوية يمين وشمال (كانت 30/20) */
	[data-id="064e195"],
	[data-id="fc5073d"] {
		padding-inline: 14px !important;
		margin-inline: 0 !important;
		width: 100% !important;
	}

	[data-id="59228e0"],
	[data-id="52a4eff"],
	[data-id="30e2f0e"],
	[data-id="f40544a"] {
		margin-inline: 0 !important;
		width: 100% !important;
	}
}

/* ==========================================================================
   9.5) سعر الكورس في كروت الكورسات: شارة بخلفية خضرا فاتحة
   (بيشمل كل الأسعار حتى "مجاناً" — نفس العنصر custom-course-price)
   ========================================================================== */
.custom-course-price {
	display: inline-block;
	background-color: #d9ece5;
	color: #0b5140;
	border-radius: 12px;
	padding: 5px 10px;
	font-size: 15px;
	text-align: center;
	line-height: 1.3;
	white-space: nowrap;
	width: fit-content;
}

/* عمود السعر في كارت الكورس ضيق (كان بيكسر السعر حرف بحرف) — نخليه ياخد مقاسه */
.elementor-element-5d1f409 {
	width: auto !important;
	max-width: none !important;
	flex-shrink: 0;
}

/* عنوان الكورس في نفس الصف: يتقلص ويلف بدل ما الشارة تتقص برة الكارت */
.elementor-element-cb08281 .elementor-element-2968daa {
	flex: 1 1 auto !important;
	min-width: 0;
	width: auto !important;
}

/* ==========================================================================
   9.6) صفحة الكورسات: مسافة بين شبكة الكروت والسايد بار (كانوا لازقين ببعض)
   ========================================================================== */
.elementor-element-65a26d72 {
	gap: 28px;
}

/* شرائح الفلاتر (شريط الصف/النوع + سايد بار المادة): ألوان البراند
   بدل الرمادي المخضر — hover أخضر فاتح والمختار أخضر غامق */
.filter-btn:hover,
.tag-btn:hover {
	background-color: #d9ece5 !important;
	border-color: #0b5140 !important;
	color: #0b5140 !important;
}

.filter-btn.active,
.tag-btn.active {
	background-color: #0b5140 !important;
	border-color: #0b5140 !important;
	color: #ffffff !important;
}

.filter-btn.active:hover,
.tag-btn.active:hover {
	background-color: #094536 !important;
	color: #ffffff !important;
}

/* ==========================================================================
   9.7) منيو الموبايل (Elementor Popup 6999): تنظيم وشكل جمالي
   ========================================================================== */
#elementor-popup-modal-6999 .dialog-widget-content {
	background: linear-gradient(165deg, #0b5140 0%, #08392d 100%) !important;
}

/* الحاوية الداخلية ليها خلفية من Elementor بتغطي التدرج — نشيلها */
#elementor-popup-modal-6999 .elementor-element-12cf23e {
	background: transparent !important;
}

#elementor-popup-modal-6999 .elementor-icon-list-text {
	font-weight: 500;
}

/* زرار الإغلاق: دايرة واضحة */
#elementor-popup-modal-6999 .dialog-close-button {
	background: rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 14px;
}

#elementor-popup-modal-6999 .dialog-close-button svg {
	fill: #ffffff;
	width: 18px;
	height: 18px;
}

/* مساحة تنفس حوالين المحتوى */
#elementor-popup-modal-6999 .elementor-element-12cf23e > .e-con-inner {
	padding-top: 64px;
	padding-inline: 14px;
	padding-bottom: 24px;
}

/* عناصر القايمة: صفوف مرتبة بأيقونة جوه صندوق */
#elementor-popup-modal-6999 .elementor-icon-list-items {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

#elementor-popup-modal-6999 .elementor-icon-list-item {
	margin: 0;
	padding: 0;
}

#elementor-popup-modal-6999 .elementor-icon-list-item > a {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 9px 12px;
	border-radius: 14px;
	transition: background-color 0.15s ease;
}

#elementor-popup-modal-6999 .elementor-icon-list-item > a:hover,
#elementor-popup-modal-6999 .elementor-icon-list-item > a:focus {
	background-color: rgba(255, 255, 255, 0.1);
}

/* صندوق الأيقونة: مقاس موحّد مهما كان مقاس الـ SVG الأصلي */
#elementor-popup-modal-6999 .elementor-icon-list-icon {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#elementor-popup-modal-6999 .elementor-icon-list-icon svg {
	width: 20px;
	height: 20px;
}

#elementor-popup-modal-6999 .elementor-icon-list-text {
	color: #ffffff;
	font-size: 16px;
}

/* الخط الفاصل قبل تسجيل الخروج */
#elementor-popup-modal-6999 .elementor-divider-separator,
#elementor-popup-modal-6999 hr {
	border-color: rgba(255, 255, 255, 0.2);
}

/* تسجيل الخروج: مميز بأيقونة صفرا وإطار خفيف */
#elementor-popup-modal-6999 a[href*="action=logout"] {
	border: 1px solid rgba(255, 255, 255, 0.25);
}

#elementor-popup-modal-6999 a[href*="action=logout"] .elementor-icon-list-icon {
	background: #e8bd22;
}

#elementor-popup-modal-6999 a[href*="action=logout"] .elementor-icon-list-icon svg [fill="white"] {
	fill: #0b5140;
}

#elementor-popup-modal-6999 a[href*="action=logout"] .elementor-icon-list-icon svg [stroke="white"] {
	stroke: #0b5140;
}

/* ==========================================================================
   10) كروت الأسعار: العناوين والأسعار في المنتصف (ديسك توب وموبايل)
   — شارة "الأكثر توفيراً" زي ما هي
   ========================================================================== */
#pricing-plans .elementor-widget-heading .elementor-heading-title,
#pricing-plans .elementor-widget-text-editor,
#pricing-plans .elementor-widget-text-editor p,
#pricing-plans .e-heading-base,
#pricing-plans .e-paragraph-base {
	text-align: center !important;
}

/* شريط التنقل السفلي في الموبايل */
.tutor-dashboard-nav-mobile {
	background-color: #0b5140;
	border-top: none;
}

.tutor-dashboard-nav-mobile-list > li > a,
.tutor-dashboard-nav-mobile-list > li > button,
.tutor-dashboard-nav-mobile-list > li > a span,
.tutor-dashboard-nav-mobile-list > li > button span {
	color: rgba(255, 255, 255, 0.85);
}

.tutor-dashboard-nav-mobile-list > li > a.active,
.tutor-dashboard-nav-mobile-list > li > a.active span,
.tutor-dashboard-nav-mobile-list > li > button.active,
.tutor-dashboard-nav-mobile-list > li > button.active span {
	color: #e8bd22;
}

.tutor-dashboard-nav-mobile-list > li > a:hover,
.tutor-dashboard-nav-mobile-list > li > a:focus,
.tutor-dashboard-nav-mobile-list > li > button:hover,
.tutor-dashboard-nav-mobile-list > li > button:focus {
	color: #ffffff;
}
