/*
Theme Name: Syrian Scholars (Scholars Identity)
Theme URI: https://example.com/
Author: ChatGPT
Description: قالب ووردبريس مخصص لموقع تعريفي بثلاثة علماء، مستلهم من الهوية البصرية السورية (ألوان/إحساس عام) بدون استخدام شعارات رسمية.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: syrian-scholars
*/

:root{
  /* Syrian visual identity palette (as collected by syrian.zone) */
  --forest-500:#428177;
  --forest-700:#054239;
  --forest-900:#002623;

  --wheat-100:#edebe0;
  --wheat-500:#b9a779;
  --wheat-700:#988561;

  --umber-500:#6b1f2a;
  --umber-700:#4a151e;

  --charcoal-0:#ffffff;
  --charcoal-700:#3d3a3b;
  --charcoal-900:#161616;

  --bg: var(--charcoal-0);
  --surface: rgba(237,235,224,.65);
  --text: var(--charcoal-900);
  --muted: rgba(22,22,22,.72);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --shadow-sm: 0 10px 28px rgba(0,0,0,.06);
  --shadow-md: 0 18px 44px rgba(0,0,0,.10);

  --container: 1120px;

  --font-ar: "Noto Kufi Arabic","Noto Sans Arabic",system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;
  --font-latin: system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

html{ scroll-behavior:smooth; }
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:var(--font-ar);
  line-height:1.85;
  direction:rtl;
  text-rendering:optimizeLegibility;
}

*{ box-sizing:border-box; }
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
a:focus{ outline: 3px solid rgba(66,129,119,.35); outline-offset:3px; border-radius:10px; }

.container{
  max-width:var(--container);
  margin-inline:auto;
  padding-inline: clamp(16px, 3vw, 28px);
}

/* Top bar */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:saturate(150%) blur(10px);
  background:rgba(255,255,255,.72);
  border-bottom:1px solid rgba(0,0,0,.06);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-block:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand-mark{
  width:42px;
  height:42px;
  border-radius:14px;
  background:
    radial-gradient(circle at 35% 35%, rgba(237,235,224,.9), rgba(237,235,224,.1) 55%),
    linear-gradient(135deg, var(--forest-700), var(--forest-500));
  box-shadow: var(--shadow-sm);
  border:1px solid rgba(0,0,0,.08);
}
.brand-title{
  display:flex;
  flex-direction:column;
  line-height:1.2;
}
.brand-title strong{
  font-size: 16px;
  letter-spacing:.2px;
}
.brand-title span{
  font-size:12px;
  color:var(--muted);
}

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
}
.nav a{
  padding:10px 12px;
  border-radius: 14px;
  font-weight:600;
  font-size: 14px;
  color: rgba(22,22,22,.86);
}
.nav a:hover{
  background: rgba(237,235,224,.75);
}
.nav a.is-active{
  background: rgba(66,129,119,.12);
  color: var(--forest-700);
}

/* Mobile menu */
.menu-btn{
  display:none;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  border-radius: 16px;
  padding:10px 12px;
  box-shadow: var(--shadow-sm);
  cursor:pointer;
}
.menu-btn span{ font-weight:700; }

@media (max-width: 860px){
  .menu-btn{ display:inline-flex; align-items:center; gap:8px; }
  .nav{
    position:fixed;
    inset: 72px 16px auto 16px;
    background:#fff;
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--shadow-md);
    border:1px solid rgba(0,0,0,.08);
    display:none;
    flex-direction:column;
    align-items:stretch;
  }
  .nav.is-open{ display:flex; }
  .brand{ min-width: unset; }
}

/* Hero */
.hero{
  position:relative;
  padding-block: 52px 26px;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:-20px -20px -40px -20px;
  background:
    radial-gradient(circle at 12% 18%, rgba(66,129,119,.14), transparent 42%),
    radial-gradient(circle at 80% 22%, rgba(185,167,121,.22), transparent 44%),
    radial-gradient(circle at 55% 85%, rgba(107,31,42,.10), transparent 45%);
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute;
  inset:-120px -120px -120px -120px;
  opacity:.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23054239' stroke-opacity='.55' stroke-width='1'%3E%3Cpath d='M110 12c54 0 98 44 98 98s-44 98-98 98S12 164 12 110 56 12 110 12Z'/%3E%3Cpath d='M110 44c36 0 66 30 66 66s-30 66-66 66-66-30-66-66 30-66 66-66Z'/%3E%3Cpath d='M110 74c20 0 36 16 36 36s-16 36-36 36-36-16-36-36 16-36 36-36Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
  transform: rotate(6deg);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
}

.hero-card{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(18px, 3.4vw, 28px);
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  color: var(--forest-700);
  letter-spacing:.3px;
  margin-bottom: 10px;
}
.kicker-dot{
  width:12px; height:12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--forest-700), var(--forest-500));
  box-shadow: 0 10px 24px rgba(66,129,119,.22);
}

.hero h1{
  margin: 0 0 10px 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}
.hero p{
  margin:0;
  color: var(--muted);
  font-size: 15px;
}

.quote{
  margin-top: 16px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.06);
}
.quote .label{
  font-weight:800;
  font-size: 13px;
  color: var(--forest-700);
}
.quote .text{
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.9;
}
.quote .ref{
  margin-top: 8px;
  font-size: 13px;
  color: rgba(22,22,22,.66);
}

.hero-side{
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.panel{
  border-radius: var(--radius-xl);
  padding: 18px;
  background: linear-gradient(135deg, rgba(0,38,35,.96), rgba(5,66,57,.92));
  color: rgba(255,255,255,.94);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.10);
}
.panel h2{
  margin:0 0 8px 0;
  font-size:18px;
}
.panel p{
  margin:0;
  color: rgba(255,255,255,.82);
  font-size:14px;
}
.panel .btn{
  margin-top: 14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  font-weight:800;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.95);
  box-shadow: 0 14px 32px rgba(0,0,0,.14);
}
.btn:hover{ background: rgba(255,255,255,.14); }
.btn.light{
  background: rgba(237,235,224,.85);
  color: var(--forest-900);
  border-color: rgba(0,0,0,.08);
}
.btn.light:hover{ background: rgba(237,235,224,1); }

/* Section separator */
.sep{
  display:flex;
  align-items:center;
  gap: 14px;
  margin: 26px 0;
}
.sep::before, .sep::after{
  content:"";
  flex:1;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.14), transparent);
}
.sep span{
  font-weight:800;
  font-size: 12px;
  color: rgba(22,22,22,.58);
  letter-spacing:.6px;
}

/* Scholars grid */
.section-title{
  margin: 0 0 10px 0;
  font-size: 18px;
  color: var(--forest-900);
  font-weight: 900;
}
.section-sub{
  margin:0 0 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.scholar-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 34px;
}
@media (max-width: 980px){
  .scholar-grid{ grid-template-columns: 1fr; }
}

.card{
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm);
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-media{
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(66,129,119,.12), rgba(185,167,121,.18));
  position:relative;
}
.card-media img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.card-badge{
  position:absolute;
  inset: 12px 12px auto auto; /* RTL: top-right */
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 900;
  color: var(--forest-700);
  font-size: 12px;
  backdrop-filter: blur(10px);
}
.play{
  width: 10px; height: 10px;
  background: var(--forest-700);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.card-body{
  padding: 16px;
}
.card-title{
  margin:0;
  font-size: 18px;
  font-weight: 900;
}
.card-excerpt{
  margin: 8px 0 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card-footer{
  padding: 0 16px 16px;
}
.link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  color: var(--forest-700);
  background: rgba(66,129,119,.10);
  border:1px solid rgba(66,129,119,.16);
  padding: 10px 12px;
  border-radius: 18px;
}
.link:hover{ background: rgba(66,129,119,.14); }
.link .arrow{
  width:18px; height:18px;
  border-radius: 999px;
  background: rgba(66,129,119,.20);
  display:grid; place-items:center;
  font-family: var(--font-latin);
  line-height:1;
}

/* Single scholar */
.page-wrap{ padding: 30px 0 50px; }

.breadcrumb{
  font-size: 13px;
  color: rgba(22,22,22,.60);
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 14px;
}
.breadcrumb a{ color: rgba(5,66,57,.92); font-weight:800; }

.profile-head{
  display:grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}
@media (max-width: 980px){
  .profile-head{ grid-template-columns: 1fr; }
}

.profile-media{
  border-radius: var(--radius-xl);
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, rgba(66,129,119,.14), rgba(185,167,121,.18));
}
.profile-media img{ width:100%; height:100%; object-fit:cover; aspect-ratio: 4/3; }

.profile-card{
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-md);
  padding: 18px;
}
.profile-card h1{
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
}
.profile-card .meta{
  margin-top: 8px;
  color: rgba(22,22,22,.60);
  font-size: 13px;
}
.content{
  margin-top: 18px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm);
  padding: clamp(16px, 3vw, 24px);
}
.content h2, .content h3{
  color: var(--forest-900);
}
.content a{
  color: var(--forest-700);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.content a:hover{ color: var(--forest-500); }

.section-box{
  margin-top: 16px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.section-box h2{
  margin:0 0 10px 0;
  font-size: 18px;
}
.video-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 980px){
  .video-grid{ grid-template-columns: 1fr; }
}
.video-embed{
  border-radius: var(--radius-xl);
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(237,235,224,.65);
}
.video-embed iframe{
  width:100%;
  height: 320px;
  border:0;
  display:block;
}
@media (max-width: 980px){
  .video-embed iframe{ height: 220px; }
}

.books{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 980px){
  .books{ grid-template-columns: 1fr; }
}
.book{
  display:flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-xl);
  border:1px solid rgba(0,0,0,.08);
  background: rgba(237,235,224,.55);
}
.book .pdf-ico{
  width:44px; height:44px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(107,31,42,.14), rgba(107,31,42,.06));
  border:1px solid rgba(107,31,42,.20);
  display:grid; place-items:center;
  font-weight:900;
  color: var(--umber-700);
  font-family: var(--font-latin);
}
.book .info{ flex:1; min-width:0; }
.book .title{
  font-weight:900;
  margin:0;
  font-size: 15px;
}
.book .sub{
  margin: 4px 0 0 0;
  color: rgba(22,22,22,.62);
  font-size: 12px;
}
.book .dl{
  align-self:center;
  white-space:nowrap;
  padding: 10px 12px;
  border-radius: 18px;
  font-weight:900;
  background: rgba(66,129,119,.12);
  border: 1px solid rgba(66,129,119,.18);
  color: var(--forest-700);
}
.book .dl:hover{ background: rgba(66,129,119,.16); }

/* Footer */
.site-footer{
  border-top: 1px solid rgba(0,0,0,.08);
  background: rgba(237,235,224,.55);
  padding: 26px 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 16px;
  flex-wrap:wrap;
}
.footer-inner .small{
  font-size: 13px;
  color: rgba(22,22,22,.65);
}
.backtop{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 18px;
  font-weight:900;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm);
}
.backtop:hover{ box-shadow: var(--shadow-md); }
.backtop .chev{
  width:18px; height:18px;
  display:grid; place-items:center;
  border-radius: 999px;
  background: rgba(185,167,121,.35);
  font-family: var(--font-latin);
}

/* WordPress blocks small tweaks */
.wp-block-file__button{
  background: rgba(66,129,119,.12) !important;
  border: 1px solid rgba(66,129,119,.18) !important;
  color: var(--forest-700) !important;
  border-radius: 18px !important;
  font-weight: 900 !important;
}
.wp-block-quote{
  border-right: 4px solid rgba(66,129,119,.45);
  border-left: none;
  padding-right: 16px;
}
