/* ============================================================
   modern-front.css  —  Public site SaaS skin (NAVY + ORANGE)
   Appended LAST in <head>; overrides style.css + online-course.css
   by cascade only. No existing public CSS file is modified.
   Brand: navy #5F060C + orange #C6A571 (matches the admin theme).
   ============================================================ */


:root{
  --f-navy:var(--nm-maroon, #5F060C); --f-navy-600:var(--nm-navy-d, #0b4a8f); --f-navy-050:#eef4fa;
  --f-orange:var(--nm-gold, #C6A571); --f-orange-600:var(--nm-orange-b, #db7000);
  --f-ink:#0f1f33; --f-muted:#5b6b7f; --f-bg:#f4f7fb;
  --f-surface:#ffffff; --f-border:#e3e9f0;
  --f-radius:14px; --f-shadow:0 6px 24px -12px rgba(var(--nm-navy-rgb, 0,33,71),.18);
  --f-ease:cubic-bezier(.22,1,.36,1);
}

/* ---------- Typography: Roboto -> Cairo ---------- */
body, p, span, div, a, li, td, th, input, select, textarea, button,
.proinner, .product-item, .price, .pricesell, .secsubtitle, .breadcrumb{
  font-family:'Cairo','Segoe UI',Tahoma,Arial,sans-serif !important; }
h1,h2,h3,h4,h5,h6, .sectitle, .slide-text, .proinner h5{
  font-family:'Cairo','Segoe UI',sans-serif !important; font-weight:700 !important; }
body{ color:var(--f-ink); -webkit-font-smoothing:antialiased; }

/* ---------- Links -> navy / orange hover ---------- */
a{ color:var(--f-navy-600); transition:color .2s var(--f-ease); }
a:hover, a:focus{ color:var(--f-orange); }

/* ---------- Buttons: navy primary, orange CTA, modern radius ---------- */
.btn{ border-radius:10px !important; font-weight:600 !important; transition:all .2s var(--f-ease) !important; }
.btn-primary, .slide-text > a.btn-primary{ background:var(--f-navy) !important; border-color:var(--f-navy) !important; color:#fff !important; }
.btn-primary:hover, .btn-primary:focus, .slide-text > a.btn-primary:hover{ background:var(--f-navy-600) !important; border-color:var(--f-navy-600) !important; color:#fff !important; }
.ptaddtocart, .gotocartbtn, .btn-success, .addtocartbtn{ background:var(--f-orange) !important; border-color:var(--f-orange) !important; color:#fff !important; border-radius:10px !important; }
.ptaddtocart:hover, .gotocartbtn:hover, .btn-success:hover{ background:var(--f-orange-600) !important; border-color:var(--f-orange-600) !important; color:#fff !important; }

/* ---------- Remove legacy green / blue / maroon accents ---------- */
.product-item:hover .pricesell, .product-item:hover .proinner h5{ color:var(--f-orange) !important; }
.pricesell, .price, .current-pricetext{ color:var(--f-navy) !important; font-weight:700; }
.proinner .authers a:hover{ color:var(--f-navy-600) !important; }
.newsinner{ background:var(--f-navy) !important; border-radius:12px; }
.newspagebox2 a, .newspagebox2 .date2, .date_item, .datenews,
.newscontent ul li span{ color:var(--f-navy-600) !important; }

/* ---------- Course / product cards -> modern SaaS ---------- */
.product-item{ border-radius:var(--f-radius) !important; border:1px solid var(--f-border) !important;
  box-shadow:var(--f-shadow) !important; overflow:hidden; transition:transform .2s var(--f-ease), box-shadow .2s var(--f-ease) !important; }
.product-item:hover{ transform:translateY(-4px); box-shadow:0 16px 38px -14px rgba(var(--nm-navy-rgb, 0,33,71),.30) !important; }
.coursebox, .panel, .card{ border-radius:var(--f-radius) !important; box-shadow:var(--f-shadow) !important; border:1px solid var(--f-border) !important; }
.coupon-tag{ background:var(--f-orange-600) !important; }

/* ---------- Header currency picker & cart ----------
   The legacy theme painted the currency label white for a dark bar; on the
   light header that made it invisible (an empty-looking box next to the cart). */
.currency-icon-list .btn.dropdown-toggle,
.currency-icon-list .btn.dropdown-toggle .filter-option,
.currency-icon-list .bootstrap-select .btn{ color:var(--f-ink) !important; }
.currency-icon-list .btn.dropdown-toggle{ border:1px solid var(--f-border) !important; border-radius:10px !important;
  background:#fff !important; box-shadow:none !important; font-weight:600 !important; }
.currency-icon-list .btn.dropdown-toggle:hover,
.currency-icon-list .btn.dropdown-toggle:focus{ border-color:var(--f-orange) !important; }
.shop-chart{ border:1px solid var(--f-border) !important; border-radius:10px !important; }
.shop-chart:hover{ border-color:var(--f-orange) !important; }
.shop-chart a, .shop-chart a i{ color:var(--f-navy) !important; }

/* ---------- Forms ---------- */
.form-control, .priceinput{ border-radius:10px !important; border:1px solid var(--f-border) !important; box-shadow:none !important; }
.form-control:focus{ border-color:var(--f-navy-600) !important; box-shadow:0 0 0 3px rgba(var(--nm-navy-rgb, 0,33,71),.12) !important; }

/* ---------- Motion: kill the legacy 1s transitions ---------- */
a, .btn, .product-item, .product-img img, .owl-item img{ transition-duration:.2s !important; }

/* ---------- نتيجة الامتحان على الهاتف (2026-10-28) ----------
   الجدول كان 832px داخل 326px: عمود الدرجات خارج الشاشة ولا شيء يدلّ على التمرير. الصفّ بطاقةٌ: المادة سطرٌ كامل،
   ثم كل خانةٍ بعنوان عمودها (data-label يكتبه سكربت الصفحة). */
@media (max-width: 600px){
  .nm-rtab thead{ display:none; }
  .nm-rtab, .nm-rtab tbody{ display:block; width:100%; }
  .nm-rtab tr{ display:flex; flex-wrap:wrap; gap:4px 16px; padding:10px 12px; border-block-end:1px solid var(--f-border, #e5e9ef); }
  .nm-rtab td{ display:block; border:0 !important; padding:0 !important; white-space:nowrap; font-variant-numeric:tabular-nums; }
  /* bootstrap يفرض nowrap على خانات .table-responsive بمحدِّدٍ أعلى — الاسم الطويل كان يُقصّ عند الحافّة */
  .nm-rtab td:first-child{ flex:1 0 100%; min-width:0; white-space:normal !important; overflow-wrap:anywhere; font-weight:700; }
  .nm-rtab td[data-label]:not(:first-child)::before{ content:attr(data-label) " "; font-weight:400; font-size:12px; color:#6b7785; }
}
