/*
Theme Name: Scholars
Theme URI: https://persmind.com/
Author: Persmind
Author URI: https://persmind.com/
Description: Modern scholarship & education theme based on Nafithatak layout, English LTR version.
Version: 1.0
License: GPLv2 or later
Text Domain: scholars
*/

/* ============================== */
/* 1. BASE STRUCTURE              */
/* ============================== */
/* ============================== */
/* Inter Font (Local WOFF2)      */
/* ============================== */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
:root {
  --article-frame: 980px;
  --content-pad: clamp(16px, 3vw, 32px);
  --frame-border: #e7eef5;
  --frame-radius: 16px;
  --divider: #e9eef3;
  --cat-link: #3166d6;
  --cat-link-hover: #0c4a6e;
  --by-author: #3166d6;
  --by-author-hover: #1e40af;
  --body-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent: #4958df;
  --hero-overlay: rgba(8,21,53,0.55);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-weight: 400;
  background: var(--body-bg);
  color: var(--text-main);
  line-height: 1.7;
}


a { color: inherit; text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ============================== */
/* 2. HEADER & FOOTER             */
/* ============================== */

.site-header {
  background: #fff;
  border-block: 1px solid var(--divider);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.site-title {
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  text-decoration: none;
}
.menu {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.menu a { font-weight: 600; color: var(--text-main); }
.menu a:hover { color: var(--accent); }

/* Footer */
.site-footer{background:#f6f6f6;margin-top:2rem;font-size:15px;color:#222}
.footer-container{max-width:1200px;margin:0 auto;padding:20px 16px}
.footer-menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;align-items:center;gap:10px}
.footer-menu li{border:none}
.footer-menu a{text-decoration:none;font-weight:500;color:#0a58ca;transition:color .2s ease}
.footer-menu a:hover{text-decoration:underline;color:#083a86}
.footer-copy{text-align:center;font-size:14px;opacity:.9;padding:12px;border-top:1px solid #ddd;background:#eceff3}
@media (min-width:768px){
  .footer-menu{flex-direction:row;justify-content:center;gap:20px}
  .footer-copy{background:transparent;border-top:1px solid #ddd;margin-top:10px}
}

/* ============================== */
/* 3. HOME PAGE (Hero + Sections) */
/* ============================== */

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 85vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-overlay), var(--hero-overlay));
  z-index: -1;
}
.home-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.home-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin: 0 0 10px;
}
.home-hero p {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  margin-bottom: 28px;
  color: #e2e8f0;
}
.hero-search {
  width: min(700px, 92vw);
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.hero-search input[type=search] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 14px 16px;
  color: var(--text-main);
}
.hero-search button {
  background: #0ea5a3;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
.hero-search button:hover { filter: brightness(0.95); }

/* Home Wrapper */
.home-wrap {
  max-width: 1200px;
  margin: 0 auto 64px;
  padding: 0 16px;
}
.home-section-title {
  font-weight: 800;
  font-size: 24px;
  color: var(--text-main);
  text-align: left;
  border-left: 5px solid var(--accent);
  padding-left: 10px;
  margin: 28px 0 24px;
}

/* Trending Grid */
.naf-featured-articles-wrap {
  display: grid;
  grid-template-areas: "main side" "bottom bottom";
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.naf-featured-main,
.naf-side article,
.naf-bottom article {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.naf-featured-main:hover,
.naf-side article:hover,
.naf-bottom article:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.naf-featured-main img {
  width: 100%;
  height: 400px;
  border-radius: 8px;
}
.post-cat-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #059669;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
}
.naf-featured-main h3,
.naf-side h4,
.naf-bottom h4 {
  margin: 10px 12px 6px;
  font-weight: 700;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.5;
}
.naf-featured-main p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 12px 14px;
}
.naf-side, .naf-bottom {
  display: grid;
  gap: 20px;
}
.naf-bottom {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Categories grid */
#categories { scroll-margin-top: 100px; }
.mawdoo3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 24px;
}
.maw-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}
.maw-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.maw-head {
  padding: 16px 18px 10px;
  text-align: center;
}
.maw-title {
  font-weight: 800;
  font-size: 22px;
  margin: 0;
  color: var(--text-main);
}
.maw-underline {
  height: 3px;
  width: 100%;
  background: #f59e0b;
}
.maw-list {
  list-style: none;
  margin: 0;
  padding: 14px 18px 18px;
}
.maw-list li { margin: 8px 0; }
.maw-list a {
  font-weight: 700;
  color: var(--text-main);
}
.maw-list a:hover { color: var(--accent); }

/* Hover color variety */
.maw-card:nth-child(16n+1):hover { background:#ffdbcb; } .maw-card:nth-child(16n+1):hover .maw-title { color:#854d0e; }
.maw-card:nth-child(16n+2):hover { background:#8cefe0; } .maw-card:nth-child(16n+2):hover .maw-title { color:#166534; }
.maw-card:nth-child(16n+3):hover { background:#d5dce6; } .maw-card:nth-child(16n+3):hover .maw-title { color:#1e3a8a; }
.maw-card:nth-child(16n+4):hover { background:#ffcbf5; } .maw-card:nth-child(16n+4):hover .maw-title { color:#86198f; }
.maw-card:nth-child(16n+5):hover { background:#e1cccc; } .maw-card:nth-child(16n+5):hover .maw-title { color:#991b1b; }

/* ============================== */
/* 4. SINGLE POST PAGE            */
/* ============================== */
.scholars-single {
  max-width: var(--article-frame);
  margin: 40px auto;
  padding: var(--content-pad);
  background: #fff;
  border: 1px solid var(--frame-border);
  border-radius: var(--frame-radius);
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}
.scholars-single__header { text-align: left; }
.entry-title {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}
.pm-subtitle-below {
  font-size: 18px;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 12px;
}
.scholars-byline {
  margin: 8px 0 20px;
  font-size: 14.5px;
  color: #6b7280;
}
.scholars-byline .by-author {
  color: var(--by-author);
  text-decoration: none;
  border-bottom: 1px dashed #cbd5e1;
}
.scholars-byline .by-author:hover {
  color: var(--by-author-hover);
  border-color: #94a3b8;
}
.scholars-featured img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}
.scholars-single__content {
  line-height: 1.8;
  color: var(--text-main);
}
.scholars-single__content img {
  max-width: 100%;
  border-radius: 12px;
}
.scholars-single__content h2,h3,h4 {
  margin: 1.4em 0 .55em;
}
.scholars-single__content p, ul, ol, blockquote {
  margin: 0 0 1.1em;
}
blockquote {
  border-left: 4px solid var(--accent);
  padding: 1em;
  background-color: #f9f9f9;
  font-style: italic;
  color: #333;
  margin: 1.5em 0;
}

/* Tables */
.scholars-single__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}
.scholars-single__content th, .scholars-single__content td {
  border: 1px solid #d1d5db;
  padding: 10px 14px;
  text-align: center;
}
.scholars-single__content th {
  background-color: #f8fafc;
  font-weight: 700;
  color: var(--text-main);
}
.scholars-single__content tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Tags Pills */
.tags-pills-wrap { margin-top: 18px; }
.tags-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tags-pills .pill {
  background: #f5f7fa;
  border: 1px solid #e7ecf2;
  border-radius: 999px;
  padding: .4em .8em;
  font-size: .92rem;
  display: inline-flex;
  gap: .35em;
}
.tags-pills .pill .hash { opacity: .6; }

/* Share box */
.scholars-share-box { margin: 26px 0 12px; text-align: center; }
.scholars-share-head { display: flex; justify-content: center; gap: 10px; align-items: center; margin-bottom: 12px; }
.scholars-share-title { font-weight: 800; color: var(--text-main); }
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .6em 1.1em;
  border-radius: 999px;
  background: #111827;
  color: #fff!important;
  text-decoration: none;
  font-weight: 700;
  transition: transform .12s ease, filter .12s ease;
}
.btn-share:hover { transform: translateY(-1px); filter: brightness(.95); }
.btn-telegram { background: #0d5579; }
.btn-whatsapp { background: linear-gradient(135deg,#25D366 0%,#128C7E 100%)!important; }
.btn-linkedin { background: #0A66C2; }
.btn-facebook { background: #1877F2; }

/* Related posts */
.scholars-picks { margin: 28px 0; }
.scholars-picks__title { font-weight: 800; text-align: left; margin-bottom: 12px; }
.scholars-picks__grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
}
.scholars-pick {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform .15s, box-shadow .15s;
}
.scholars-pick:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.scholars-pick__thumb { height: 220px; background: #f3f4f6; }
.scholars-pick__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scholars-pick__title { margin: 10px 12px 14px; font-weight: 700; }
@media (max-width:700px){
  .scholars-picks__grid { grid-template-columns: 1fr; }
  .scholars-pick__thumb { height: 200px; }
}
/* =============================== */
/* FIX: Inline Images + Share Icon */
/* =============================== */

/* 🔹 تصغير الصور داخل المقال لتناسب عرض النص فقط */
.single-post .entry-content img,
.naf-single__content img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 18px auto !important;
  border-radius: 12px !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
}

/* 🔹 إصلاح صور وسط المقال التي تمتد خارج الإطار */
.entry-content figure,
.naf-single__content figure {
  max-width: 100% !important;
  margin: 20px auto !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

/* =============================== */
/* FIX: Share Icon (Too Large) */
/* =============================== */

/* 🔹 إجبار السهم على حجم صغير وموحد في كل الحالات */
.naf-share-icon,
.single .naf-share-box svg.naf-share-icon,
.single .naf-share-box svg,
.single .naf-share-box .naf-share-head svg {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  fill: #0f172a !important;
  stroke: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* 🔹 إزالة أي تمدد غير متعمد داخل الحاويات */
.single .naf-share-box svg path,
.single .naf-share-box svg *,
.single .naf-share-box svg g {
  transform: none !important;
  scale: 1 !important;
}

/* 🔹 ضبط صندوق المشاركة نفسه */
.naf-share-box {
  text-align: center !important;
  margin: 22px 0 10px !important;
}

.naf-share-head {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

/* 🔹 تصغير النص وتوحيد الشكل */
.naf-share-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #0f172a !important;
}
/* التحكم بعنوان القسم Explore Categories */
.home-section-title {
    font-weight: 600 !important; /* غيّري 800 حسب رغبتك */
    font-size: 30px !important; /* لتكبير الخط */
    color: #0f172a !important;  /* لون العنوان */
    margin-bottom: 24px !important;
    letter-spacing: 0.3px;
}
/* التحكم بعنوان التصنيف داخل كل Card */
.maw-title a {
    font-weight: 600 !important; /* غيّري الرقم حسب رغبتك */
    font-size: 22px !important;
    color: #0f172a !important; /* لون النص */
    text-decoration: none !important;
}
/* ============================
   Transparent header on home
   ============================ */

/* 1) الهيدر شفاف على الصفحة الرئيسية قبل التمرير */
body.home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  border-block: none;
  box-shadow: none;
  z-index: 100;
}

/* 2) لما يتثبت (is-stuck) يرجع هيدر عادي أبيض + ثابت */
body.home .site-header.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-block: 1px solid var(--divider);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* 3) لون الشعار وعناوين المينيو أبيض قبل التمرير */
body.home .site-header:not(.is-stuck) .site-title,
body.home .site-header:not(.is-stuck) .menu a {
  color: #ffffff !important;
}

/* 4) لون الروفر على اللينكات وهي شفافة */
body.home .site-header:not(.is-stuck) .menu a:hover {
  color: #e5e7eb !important;
}

/* 5) جعل الشعار أبيض (لو اللوغو غامق) */
body.home .site-header:not(.is-stuck) .site-branding img {
  filter: brightness(0) invert(1);
}
/* ======================================= */
/*           Mobile Menu Panel (LTR)       */
/* ======================================= */

@media(max-width:1024px){

  /* زر الهامبرغر */
  .menu-toggle{
    display:flex !important;
    width:42px;
    height:38px;
    border-radius:10px;
    border:1px solid #e5e7eb;
    background:#fff;
    align-items:center;
    justify-content:center;
    cursor:pointer;
  }
  .menu-toggle .icon-close{ display:none; }
  .nav-open .menu-toggle .icon-bars{ display:none; }
  .nav-open .menu-toggle .icon-close{ display:block; }

  /* إخفاء قائمة الديسكتوب */
  .site-nav{
    display:none !important;
  }

  /* الخلفية السوداء */
  .site-nav__overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    display:none;
    z-index:200;
  }
  .nav-open .site-nav__overlay{
    display:block;
  }

  /* اللوحة الجانبية */
  .site-nav__panel{
    position:absolute;
    inset-block-start:0;
    inset-inline-end:0;
    height:100%;
    width:min(86vw,380px);
    background:#fff;
    border-left:1px solid #e5e7eb;
    overflow-y:auto;
    padding:0;
  }

  /* البحث داخل القائمة */
  .panel-search{
    padding:14px;
    border-bottom:1px solid #e9eef5;
    background:#fff;
    position:sticky;
    top:0;
    z-index:5;
  }
  .panel-search form{
    display:flex;
    gap:8px;
  }
  .panel-search input{
    flex:1;
    padding:10px 12px;
    border:1px solid #d1d5db;
    border-radius:8px;
    font-size:15px;
  }
  .panel-search button{
    padding:10px 14px;
    border:none;
    background:#0f172a;
    color:#fff;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
  }

  /* عناصر القائمة */
  .site-nav__panel .menu.menu--primary{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
  }
  .site-nav__panel .menu.menu--primary > li{
    border-bottom:1px solid #e9eef5;
  }
  .site-nav__panel .menu.menu--primary > li:last-child{
    border-bottom:none;
  }
  .site-nav__panel .menu.menu--primary > li > a{
    display:block;
    padding:14px 16px;
    font-size:15px;
    color:#0f172a;
    font-weight:600;
  }

  /* قوائم فرعية — أكورديون */
  .submenu-toggle{
    margin-left:8px;
    padding:4px 8px;
    background:#f1f5f9;
    border:none;
    border-radius:6px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
  }
  .site-nav__panel .menu.menu--primary li.menu-item-has-children > ul.sub-menu{
    display:none;
    list-style:none;
    padding:0;
    margin:0;
  }
  .site-nav__panel .menu.menu--primary li.open > ul.sub-menu{
    display:block;
  }
}
/* Force mobile menu text color */
body.home .site-nav__panel .menu.menu--primary a,
.site-nav__panel .menu.menu--primary a {
    color: #0f172a !important;
}

.site-nav__panel .panel-search input {
    padding: 10px 12px !important;
    font-size: 14px !important;
}
/* Disable white color inside mobile menu when header is transparent on home */
body.home .nav-open .site-nav__panel,
body.home .nav-open .site-nav__panel * {
    color: #0f172a !important;
    filter: none !important;
}
/* Fix oversized search button on mobile menu */
body.nav-open .site-nav__panel .panel-search button {
    width: auto !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    height: auto !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
}
/* ===== إصلاح لون المينو في الهاتف عند التمرير ===== */

/* قائمة الهاتف قبل التمرير على الصفحة الرئيسية → أبيض */
body.home .site-header:not(.is-stuck) .site-nav__panel .menu.menu--primary > li > a {
    color: #000000 !important;
}

/* عند التمرير (الهيدر sticky) → البنفسجي */
.site-header.is-stuck .site-nav__panel .menu.menu--primary > li > a {
    color: #000000 !important; /* بنفسجي */
}

/* الهوفر + العنصر الحالي في الهاتف */
.site-nav__panel .menu.menu--primary > li > a:hover,
.site-nav__panel .menu.menu--primary > li.current-menu-item > a {
    color: #000000 !important; /* بنفسجي أوضح */
}
/* Remove header search from mobile completely */
@media (max-width:1024px){
  .header-search{
    display:none !important;
  }
}

/* Desktop only - visible only when header is sticky */
@media (min-width:1025px){
  .header-search{
    display:none;
  }
  .site-header.is-stuck .header-search{
    display:block !important;
  }
}
/* ============================== */
/* PAGE TEMPLATE STYLING (naf-single) */
/* ============================== */

.page .naf-single {
  max-width: 900px;
  margin: 40px auto;
  padding: clamp(18px, 3vw, 32px);
  background: #fff;
  border: 1px solid #e7eef5;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}

/* عنوان الصفحة */
.page .naf-single__header .entry-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
  color: #0f172a;
}

/* صورة الصفحة */
.page .naf-featured img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 22px;
}

/* محتوى الصفحة */
.page .naf-single__content {
  font-size: 17px;
  line-height: 1.8;
  color: #0f172a;
}

/* الفقرات */
.page .naf-single__content p {
  margin-bottom: 1.2em;
}

/* عناوين h2 h3 h4 */
.page .naf-single__content h2,
.page .naf-single__content h3,
.page .naf-single__content h4 {
  margin-top: 1.4em;
  margin-bottom: .55em;
  font-weight: 700;
  color: #0f172a;
}

/* القوائم */
.page .naf-single__content ul,
.page .naf-single__content ol {
  margin: 0 0 1.2em 1.4em;
}

/* الروابط */
.page .naf-single__content a {
  color: #4958df;
  font-weight: 600;
}
.page .naf-single__content a:hover {
  color: #1e40af;
}

/* الصور داخل المحتوى */
.page .naf-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 18px 0;
  display: block;
}

/* اقتباسات */
.page .naf-single__content blockquote {
  border-left: 4px solid #4958df;
  background: #f9f9f9;
  padding: 14px 18px;
  font-style: italic;
  margin: 1.4em 0;
  border-radius: 10px;
}
/* Hide WPForms loading spinner */
.wpforms-submit-spinner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}
/* ضبط الصورة البارزة داخل صفحة المقال على الهواتف */
@media(max-width: 640px){
  .scholars-featured img {
    width: 100%;
    height: 220px;          /* يمكنك تغييره حسب رغبتك */
    object-fit: cover;      /* يجعل القص مثالي */
    border-radius: 12px;
  }
}
@media (max-width: 640px){

  /* الحاوية */
  .scholars-share-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* عمودين */
    gap: 14px !important;                      /* المسافة بينهم */
    width: 100% !important;
    padding: 0 10px;
  }

  /* كل زر */
  .scholars-share-actions .btn-share {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    padding: 12px 10px !important;
    border-radius: 12px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}
/* إصلاح لون الروابط داخل المقال */
.scholars-single__content a {
    color: #0a58ca !important;     /* اللون الأساسي للأリンク */
    font-weight: 600;
    text-decoration: none;
}

.scholars-single__content a:hover {
    color: #073f8c !important;     /* لون عند الهوفر */
    text-decoration: underline;
}
