/*
Theme Name: Amal Al-Qudaibi
Theme URI: https://amalq.me/
Author: Exahost
Author URI: https://exahost.com
Description: قالب عربي مخصص لمدونة أمل القضيبي، مستوحى من الهوية الورقية الكلاسيكية بواسطة اكساء هوست.
Version: 1.3.0
Text Domain: amalq
*/

@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&family=Noto+Kufi+Arabic:wght@400;500;600;700&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root{--paper:#fffcf7;--ink:#2b2b2b;--forest:#163c32;--wine:#8b1e3f;--gold:#c6a969;--soft:#f3eee5;--line:#e7ded0;--shadow:0 7px 24px rgba(33,43,38,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Naskh Arabic',serif;font-size:18px;line-height:1.8;direction:rtl;background-image:radial-gradient(circle at 12% 20%,rgba(198,169,105,.07),transparent 25%),radial-gradient(circle at 82% 68%,rgba(22,60,50,.045),transparent 28%)}
a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.wrap{width:min(1180px,calc(100% - 36px));margin:auto}.site-top{height:58px;background:rgba(255,252,247,.97);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}.top-inner{height:58px;display:flex;align-items:center;justify-content:space-between;gap:25px}.main-menu{list-style:none;padding:0;margin:0;display:flex;gap:38px;align-items:center}.main-menu a{font-family:'Noto Kufi Arabic',sans-serif;font-size:14px;transition:.2s}.main-menu a:hover,.main-menu .current-menu-item>a{color:var(--gold)}.main-menu .current-menu-item>a{border-bottom:2px solid var(--gold);padding-bottom:17px}.socials{display:flex;gap:15px;align-items:center}.socials a{color:var(--forest);display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;transition:.2s}.socials svg{display:block;width:21px;height:21px;fill:currentColor;stroke:none}.socials a[aria-label="انستغرام"] svg{fill:none;stroke:currentColor;stroke-width:1.8}.socials a[aria-label="انستغرام"] .social-dot{fill:currentColor;stroke:none}.socials a:hover{color:var(--wine);transform:translateY(-2px)}
.brand-hero{background:linear-gradient(120deg,#0e3229,#16483b);color:#fff;position:relative;overflow:hidden}.brand-hero:before{content:'❧';position:absolute;font-size:190px;opacity:.035;left:5%;top:-90px;transform:rotate(20deg)}.brand{height:170px;display:flex;justify-content:center;align-items:center;gap:20px}.feather{font-size:86px;color:var(--gold);transform:rotate(-13deg);line-height:1}.brand-name{font-family:'Aref Ruqaa',serif;font-size:57px;line-height:1.1;font-weight:400}.tagline{display:flex;align-items:center;gap:13px;font-size:20px;color:#f5efe3}.tagline:before,.tagline:after{content:'';width:55px;height:1px;background:var(--gold)}
.featured{display:grid;grid-template-columns:1.2fr 1fr;min-height:420px;background:#f8f3eb;border-bottom:1px solid var(--line)}.featured-media{min-height:420px;background:linear-gradient(135deg,#d8cbb6,#f2e9dd);position:relative}.featured-media img{width:100%;height:100%;object-fit:cover;position:absolute}.featured-copy{padding:58px clamp(35px,6vw,85px);display:flex;flex-direction:column;justify-content:center;position:relative}.eyebrow{color:var(--gold);font-size:16px;font-family:'Noto Kufi Arabic',sans-serif}.featured h1{font-family:'Noto Kufi Arabic',sans-serif;color:var(--forest);font-size:39px;line-height:1.55;margin:13px 0 12px}.featured p{margin:0 0 22px;color:#4b4a47}.button{display:inline-flex;align-items:center;justify-content:center;background:var(--gold);color:#fff;border-radius:28px;padding:9px 27px;width:max-content;font-family:'Noto Kufi Arabic',sans-serif;font-size:13px;transition:.25s}.button:hover{background:var(--wine);transform:translateY(-2px)}
.section{padding:42px 0}.section-title{display:flex;align-items:center;gap:15px;color:var(--forest);font-family:'Noto Kufi Arabic',sans-serif;font-size:29px;margin:0 0 28px}.section-title:after{content:'';width:34px;height:2px;background:var(--gold)}.categories{display:grid;grid-template-columns:repeat(6,1fr);gap:18px}.category{text-align:center;color:var(--ink);font-size:15px;transition:.2s}.category-icon{width:64px;height:64px;border-radius:50%;margin:0 auto 7px;background:var(--soft);border:1px solid #ede5d9;display:grid;place-items:center;color:var(--wine);font-size:27px;transition:.25s}.category:hover .category-icon{background:var(--wine);color:#fff;transform:translateY(-4px)}
.content-grid{display:grid;grid-template-columns:270px 1fr;gap:28px;align-items:start}.sidebar-box{background:rgba(255,252,247,.78);border:1px solid var(--line);border-radius:7px;padding:24px;margin-bottom:14px;box-shadow:0 3px 15px rgba(33,43,38,.035)}.sidebar-box h3{color:var(--forest);font-family:'Noto Kufi Arabic',sans-serif;text-align:center;font-size:19px;margin:0 0 17px}.search-form{display:flex;border:1px solid var(--line);border-radius:5px;background:#fff;overflow:hidden}.search-field{width:100%;border:0;padding:12px;background:transparent;font-family:inherit;font-size:15px;outline:none}.search-submit{border:0;background:transparent;color:var(--forest);padding:0 13px;cursor:pointer}.quote{font-size:18px;text-align:center;color:#444}.quote-mark{font-size:48px;color:var(--gold);line-height:.7}.side-socials{justify-content:center}.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden;box-shadow:0 3px 13px rgba(33,43,38,.06);transition:.25s;display:flex;flex-direction:column}.card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.card-media{height:172px;background:#e9e0d3;position:relative;overflow:hidden}.card-media img{width:100%;height:100%;object-fit:cover;transition:.35s}.card:hover .card-media img{transform:scale(1.04)}.badge{position:absolute;right:12px;bottom:10px;background:var(--wine);color:#fff;padding:3px 13px;border-radius:17px;font-size:12px}.card-body{padding:15px 17px 12px;display:flex;flex-direction:column;flex:1}.card h3{font-size:21px;margin:0 0 7px;color:#222;line-height:1.5}.excerpt{font-size:15px;line-height:1.75;color:#555;margin:0 0 10px}.card-meta{border-top:1px solid #eee6db;padding-top:8px;margin-top:auto;display:flex;justify-content:space-between;font-size:12px;color:#777}.read-more{color:var(--wine)}.more-row{text-align:center;margin-top:22px}
.site-footer{background:linear-gradient(120deg,#0e3229,#16483b);color:#fff;margin-top:34px;padding:36px 0 18px}.footer-main{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:25px;padding-bottom:28px;border-bottom:1px solid rgba(198,169,105,.45)}.footer-brand .brand-name{font-size:37px}.footer-brand .tagline{font-size:13px}.footer-menu{list-style:none;display:flex;gap:25px;padding:0;margin:0;font-size:14px}.footer-socials{justify-content:flex-start}.footer-socials a{color:#fff}.copyright{text-align:center;font-size:13px;padding-top:17px;color:#e8e0d3}.single-main{max-width:850px;margin:45px auto}.article{background:#fff;border:1px solid var(--line);padding:clamp(25px,5vw,60px);border-radius:8px}.article h1{color:var(--forest);font-family:'Noto Kufi Arabic',sans-serif;line-height:1.5}.article-content{font-size:20px}.article-content img{border-radius:6px}.page-header{padding:58px 0;text-align:center;background:var(--soft)}.page-header h1{font-family:'Noto Kufi Arabic',sans-serif;color:var(--forest);margin:0}.pagination{display:flex;justify-content:center;gap:8px;margin-top:25px}.pagination .page-numbers{padding:5px 12px;border:1px solid var(--line);border-radius:4px}.pagination .current{background:var(--wine);color:white}
@media(max-width:900px){.featured{grid-template-columns:1fr}.featured-media{min-height:320px}.categories{grid-template-columns:repeat(4,1fr)}.content-grid{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.posts-grid{grid-template-columns:repeat(2,1fr)}.footer-main{grid-template-columns:1fr;text-align:center}.footer-socials{justify-content:center}.footer-menu{justify-content:center}.footer-brand{display:flex;flex-direction:column;align-items:center}}
@media(max-width:620px){body{font-size:16px}.site-top{height:auto}.top-inner{height:auto;min-height:58px;flex-direction:column;padding:12px 0;gap:8px}.main-menu{gap:15px;flex-wrap:wrap;justify-content:center}.main-menu a{font-size:12px}.main-menu .current-menu-item>a{padding-bottom:2px}.brand{height:150px}.brand-name{font-size:40px}.feather{font-size:64px}.tagline{font-size:15px}.featured-copy{padding:35px 24px}.featured h1{font-size:28px}.featured-media{min-height:240px}.categories{grid-template-columns:repeat(3,1fr);gap:14px 5px}.category-icon{width:56px;height:56px}.section{padding:30px 0}.section-title{font-size:23px}.posts-grid{grid-template-columns:1fr}.sidebar{grid-template-columns:1fr}.footer-menu{flex-wrap:wrap;justify-content:center}.socials{gap:19px}}

/* شعار قابل للتغيير من: تخصيص > هوية الموقع */
.brand{gap:0}.brand-logo{height:145px;display:flex;align-items:center;justify-content:center}.brand-logo .custom-logo{display:block;width:auto;max-width:min(520px,80vw);max-height:145px;object-fit:contain}.brand-fallback{display:flex;flex-direction:column;align-items:center}.footer-logo{height:78px}.footer-logo .custom-logo{max-height:78px;max-width:280px}@media(max-width:620px){.brand-logo,.brand-logo .custom-logo{max-height:125px}}

/* الهيدر الموحد وقائمة التصنيفات */
.site-header{position:relative;z-index:80}.site-top{height:auto;min-height:126px;background:linear-gradient(120deg,#0e3229,#16483b);border:0;position:sticky;top:0;color:#fff;box-shadow:0 3px 18px rgba(10,35,29,.12)}.top-inner{min-height:126px;height:auto;display:grid;grid-template-columns:minmax(190px,280px) 1fr auto;align-items:center;gap:30px;padding:13px 0}.header-brand{height:98px;justify-content:flex-start}.header-brand .brand-logo{height:98px}.header-brand .brand-logo .custom-logo{max-height:98px;max-width:270px}.header-brand .brand-fallback{align-items:flex-start}.header-brand .brand-name{font-size:35px}.header-brand .tagline{font-size:13px}.header-brand .tagline:before,.header-brand .tagline:after{width:28px}.header-navigation{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-width:0}.header-navigation .main-menu{gap:34px}.header-navigation .main-menu a{color:#fff;font-size:15px}.header-navigation .main-menu a:hover,.header-navigation .main-menu .current-menu-item>a{color:var(--gold)}.header-navigation .main-menu .current-menu-item>a{padding-bottom:8px}.site-top>.wrap>.socials a{color:#fff}.site-top>.wrap>.socials a:hover{color:var(--gold)}.brand-hero{display:none}
.categories-menu{position:relative}.categories-menu summary{list-style:none;cursor:pointer;border:1px solid var(--gold);color:var(--gold);border-radius:28px;padding:7px 26px;min-width:165px;text-align:center;font-family:'Noto Kufi Arabic',sans-serif;font-size:14px;transition:.25s}.categories-menu summary::-webkit-details-marker{display:none}.categories-menu summary:hover,.categories-menu[open] summary{background:var(--gold);color:var(--forest)}.categories-arrow{display:inline-block;margin-right:8px;font-size:18px;transition:.25s}.categories-menu[open] .categories-arrow{transform:rotate(180deg)}.categories-panel{position:absolute;z-index:100;top:calc(100% + 14px);right:50%;transform:translateX(50%);width:min(690px,86vw);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 38px;padding:22px 28px;background:#123d33;border:1px solid rgba(198,169,105,.55);border-radius:18px;box-shadow:0 18px 45px rgba(4,25,20,.32)}.category-menu-item{display:flex;align-items:center;min-width:0;padding:9px 0;color:#fff;font-family:'Noto Kufi Arabic',sans-serif;font-size:15px;transition:.2s}.category-menu-item:hover{color:var(--gold)}.category-menu-name{white-space:nowrap}.category-menu-dots{flex:1;min-width:22px;border-bottom:2px dotted rgba(255,255,255,.22);margin:0 10px}.category-menu-count{color:var(--gold);font-family:Arial,sans-serif;font-weight:700;min-width:28px;text-align:left}
@media(max-width:900px){.site-top{position:relative}.top-inner{grid-template-columns:1fr;gap:10px;padding:16px 0 20px}.header-brand{justify-content:center;height:82px}.header-brand .brand-logo,.header-brand .brand-logo .custom-logo{max-height:82px}.header-brand .brand-fallback{align-items:center}.site-top>.wrap>.socials{justify-content:center}.categories-panel{width:min(640px,92vw)}}
@media(max-width:620px){.top-inner{display:flex;min-height:0}.header-navigation{width:100%}.header-navigation .main-menu{gap:20px}.header-navigation .main-menu a{font-size:14px}.categories-panel{gap:0 20px;padding:18px 16px;border-radius:14px}.category-menu-item{font-size:13px}.site-top>.wrap>.socials{display:none}}
@media(max-width:420px){.categories-panel{grid-template-columns:1fr;width:92vw}.header-navigation .main-menu{gap:12px}.header-navigation .main-menu a{font-size:12px}}

/* ترتيب الموبايل: النبذة، أحدث المقالات، ثم البحث والتواصل والاقتباس */
@media(max-width:900px){.content-grid{display:flex;flex-direction:column}.sidebar{display:contents}.sidebar-about{order:1}.content-grid>main{order:2;width:100%}.sidebar-search{order:3}.sidebar-social{order:4}.sidebar-quote{order:5}.sidebar-box{width:100%;margin-bottom:14px}.sidebar-social .socials{justify-content:center}.sidebar-social .socials a{width:38px;height:38px}.sidebar-social .socials svg{width:30px;height:30px}}






/* footer */
.site-footer .copyright{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}
.site-footer .credit{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.site-footer .credit img{
  height:24px;
  width:auto;
  display:block;
}

/* 404 page */
/* ===== 404 ===== */
.e404{
  text-align:center;
  padding:80px 0;
  max-width:640px;
  margin:0 auto;
}
.e404-code{
  font-size:clamp(80px,18vw,160px);
  font-weight:800;
  line-height:1;
  opacity:.15;
  margin-bottom:10px;
}
.e404-title{
  font-size:clamp(24px,4vw,36px);
  margin:0 0 12px;
}
.e404-text{
  opacity:.75;
  line-height:1.9;
  margin:0 0 28px;
}
.e404-search{ margin:0 auto 24px; max-width:420px; }
.e404-search form{ display:flex; gap:8px; }
.e404-search input[type="search"]{
  flex:1;
  padding:12px 16px;
  border:1px solid currentColor;
  border-radius:8px;
  background:transparent;
  color:inherit;
  font:inherit;
  opacity:.8;
}
.e404-search input[type="submit"],
.e404-search button{
  padding:12px 18px;
  border:0;
  border-radius:8px;
  background:#10392F;
  font:inherit;
  cursor:pointer;
  color:#FFF;
}
.e404-btn{
  display:inline-block;
  padding:12px 28px;
  border:1px solid currentColor;
  border-radius:999px;
  color:inherit;
  text-decoration:none;
  transition:.2s;
}
.e404-btn:hover{ opacity:.7; }
.e404-recent{ margin-top:50px; }
.e404-recent h2{ font-size:20px; margin-bottom:14px; }
.e404-recent ul{ list-style:none; padding:0; margin:0; }
.e404-recent li{ padding:10px 0; border-bottom:1px solid rgba(127,127,127,.2); }
.e404-recent a{ color:inherit; text-decoration:none; }
.e404-recent a:hover{ opacity:.7; }
