/* ================= VARIABLES ================= */
:root {
    --bg-primary: #d5d4d3;
    --bg-secondary: #d4c9b5;
    --bg-card: #ffffff;
    --accent-gold: #8a673d;
    --accent-gold-light: #d4b896;
    --accent-gold-dark: #806038;
    --accent-brown: #3e2c21;
    --text-primary: #3a2f24;
    --text-secondary: #5c4d3e;
    --text-muted: #736554;
    --border-color: #e5ddd0;
    --shadow-soft: 0 10px 40px rgba(62, 44, 33, 0.08);
    --shadow-medium: 0 15px 50px rgba(62, 44, 33, 0.12);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html,body{
height:100%;
}

body{
font-family:"Cairo",sans-serif;
background:#f2f2f2;
color:#333;

display:flex;
flex-direction:column;
min-height:100vh;
}
body{
padding-top:200px;
}

/* Desktop */

@media(min-width:900px){

body{
padding-top:330px;
}

}
body{
font-size:var(--fs-body);
}

 

/* ================= RESPONSIVE FONT SYSTEM ================= */

:root{

/* base text */
--fs-small: clamp(12px,1.2vw,14px);
--fs-body: clamp(14px,1.5vw,17px);
--fs-medium: clamp(16px,1.8vw,20px);

/* titles */
--fs-h3: clamp(18px,2.2vw,24px);
--fs-h2: clamp(22px,2.8vw,30px);
--fs-h1: clamp(26px,3.5vw,38px);

/* large arabic text */
--fs-bio: clamp(17px,2vw,21px);

}
 
/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    padding: 16px 12px 14px;   /* زيادة المساحة العلوية والسفلية */

    background: linear-gradient(180deg, #d4c9b5 0%, #f2ede4 100%);
    border-bottom: 1px solid rgba(184, 149, 107, 0.15);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================= ICON BUTTONS ================= */

.icon{

width:45px;
height:45px;

display:flex;
align-items:center;
justify-content:center;

background:#ffffff;

border-radius:12px;

box-shadow:0 6px 16px rgba(0,0,0,0.08);

cursor:pointer;

transition:.25s;

}

.icon svg{

width:25px;
height:25px;

stroke:#3e2c21;
stroke-width:2;
fill:none;

}

.icon:hover{

transform:translateY(-3px);
box-shadow:0 10px 20px rgba(0,0,0,0.15);

}

/* ================= BRAND ================= */

.brand{

flex:1;
text-align:center;

}

 
/* ================= AUTHOR IMAGE ================= */

.author-img{

width:clamp(75px,18vw,120px);
height:clamp(75px,18vw,120px);

border-radius:50%;

background:#f4f1ec;

padding:8px;

margin:auto;
margin-bottom:12px;

box-shadow:0 10px 25px rgba(0,0,0,0.15);

position:relative;

}

.author-img img{

width:100%;
height:100%;

border-radius:50%;

object-fit:cover;

/* يبعد الرأس عن الحافة */
object-position:center 5%;

}

 

/* ================= MAIN ================= */

.main{

flex:1;

max-width:1000px;

margin:auto;

padding:20px 16px;

display:flex;
align-items:center;
justify-content:center;

}

/* ================= GRID ================= */

.grid{

display:grid;

grid-template-columns:repeat(2,1fr);

gap:16px;

width:100%;
max-width:800px;

}

/* ================= CARD ================= */

.card{

background:white;

padding:18px 12px;

border-radius:16px;

text-align:center;

box-shadow:0 6px 18px rgba(0,0,0,0.06);

transition:.3s;

}

.card:hover{

transform:translateY(-4px);

}

.card{
text-decoration:none;
color:inherit;
display:block;
}
/* ================= ICON CIRCLE ================= */

.circle{

width:70px;
height:70px;

margin:auto;
margin-bottom:10px;

border-radius:50%;

background:#f4efe9;

display:flex;
align-items:center;
justify-content:center;

}

.circle img{

width:40px;

}

/* ================= CARD TITLE ================= */

.card h3{

font-family:"Amiri";
font-size:var(--fs-h3);

}

/* ================= SEARCH OVERLAY ================= */

.search-overlay{

position:fixed;
top:0;
left:0;
right:0;
height:100vh;

background:rgba(0,0,0,.25);

display:none;

padding-top:120px;

z-index:200;

}

.search-box{

background:white;

width:90%;
max-width:700px;

margin:auto;

border-radius:12px;

display:flex;
align-items:center;

padding:12px 16px;

box-shadow:0 10px 30px rgba(0,0,0,0.2);

}

.search-box input{

flex:1;

border:none;
outline:none;

font-size:18px;

font-family:"Cairo";

}

.close{

font-size:22px;

cursor:pointer;

}

.search-results{

width:90%;
max-width:700px;

margin:10px auto;

background:white;

border-radius:12px;

box-shadow:0 10px 30px rgba(0,0,0,0.15);

overflow:hidden;

}

.result{

display:block;

padding:14px 18px;

border-bottom:1px solid #eee;

text-decoration:none;

color:#333;

}

.result h4{

margin:0 0 4px;

font-size:16px;

}

.result p{

margin:0;

font-size:13px;

color:#777;

}

.result:hover{

background:#f5f5f5;

}


.brand {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: inherit !important;
}

.brand-link,
.brand-link:hover,
.brand-link:focus,
.brand-link:active,
.brand-link:visited,
.brand-link *,
.brand-link *:hover,
.brand-link *:focus,
.brand-link *:active,
.brand-link *:visited {
    text-decoration: none !important;
    color: inherit !important;
}

/* ================= SIDEBAR ================= */

.sidebar{

position:fixed;

top:0;
right:-320px;

width:300px;
height:100vh;

background:#f9f7f4;

box-shadow:-10px 0 35px rgba(0,0,0,0.15);

transition:.35s;

z-index:2000;

display:flex;
flex-direction:column;
justify-content:flex-start;

overflow-y:auto;
-webkit-overflow-scrolling:touch;

}

.sidebar.active{
right:0;
}

/* ================= SIDEBAR TOP ================= */

.sidebar-top{

display:flex;
justify-content:space-between;
align-items:center;

padding:18px 20px;

border-bottom:1px solid #e7e3de;

}

.sidebar-top h2{

font-family:"Amiri";
font-size:26px;

}

.close-btn{

font-size:24px;
cursor:pointer;

}

/* ================= MENU ================= */

.menu{

padding:20px;

display:flex;
flex-direction:column;

gap:8px;

}

.menu-item{

display:flex;
align-items:center;

gap:14px;

padding:14px;

border-radius:12px;

background:white;

box-shadow:0 5px 15px rgba(0,0,0,0.05);

text-decoration:none;

color:#333;

transition:.25s;

}

.menu-item:hover{

transform:translateX(-5px);

box-shadow:0 8px 20px rgba(0,0,0,0.08);

}

.menu-icon{

width:40px;
height:40px;

border-radius:10px;

background:#f2efea;

display:flex;
align-items:center;
justify-content:center;

font-size:18px;

}

.menu-text{

font-size:16px;

}

/* ================= SIDEBAR FOOTER ================= */

.sidebar-footer{

padding:12px 16px 18px;

border-top:1px solid #e7e3de;
margin-top:8px;
}

.lang-title{

font-size:13px;

color:#888;

margin-bottom:10px;

}

.lang{

display:flex;
gap:10px;

}

.lang a{

flex:1;

text-align:center;

padding:8px 0;

border-radius:8px;

background:#eae6e1;

text-decoration:none;

color:#444;

font-size:14px;

}

.lang a.active{

background:#dcd6cf;

font-weight:600;

}

/* ================= FOOTER ================= */

.footer{

margin-top:40px;

padding:20px;

text-align:center;

font-size:14px;

color:#8a8178;

background:#f1ede9;

border-top:1px solid #e5dfd6;

}

.footer strong{

font-family:"Amiri";

font-size:16px;

color:#3e2c21;

}

/* ================= MOBILE ================= */

@media(max-width:480px){

.brand h1{
font-size:25px;
}

.subtitle{
font-size:13px;
}

.grid{
gap:12px;
}

.card{
padding:14px 8px;
}

.circle{
width:58px;
height:58px;
}

.circle img{
width:32px;
}

}

/* ================= DESKTOP ================= */

@media(min-width:768px){

.grid{
grid-template-columns:repeat(4,1fr);
}

.brand h1{
font-size:40px;
}

}



/* ================= BREADCRUMB ================= */
.breadcrumb-wrap{
  max-width:900px;
  margin:45px auto 12px;
  padding:8px 18px;
  background:linear-gradient(145deg,#ffffff,#f5f2ec);
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  border:1px solid #e6dfd4;
}

.breadcrumb{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:var(--fs-small);
  flex-wrap:wrap; /* يسمح للبريدكرامب كله يلف */
}

.crumb{
  text-decoration:none;
  color:#7a6b5b;
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap; /* يمنع الكلمة نفسها من النزول لسطرين */
}

.home-icon{
  font-size:16px;
  flex-shrink:0;
}

.crumb-sep{
  width:6px;
  height:6px;
  background:#c8b79c;
  border-radius:50%;
  flex-shrink:0;
}

.crumb{
  text-decoration:none;
  color:#7a6b5b;
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  font-size:10px;
}

.crumb.current{
  color:#3a2f24;
  font-weight:600;
  white-space:nowrap;
  font-size:10px;
}


 

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: "Cairo", sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            line-height: 1.8;
        }

        /* ================= HEADER ================= */
 .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    padding: 16px 12px 14px;   /* زيادة المساحة العلوية والسفلية */

    background: linear-gradient(180deg, #d4c9b5 0%, #f2ede4 100%);
    border-bottom: 1px solid rgba(184, 149, 107, 0.15);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

        .header.scrolled {
            padding: 12px 24px;
            background: rgba(250,248,244,0.98);
            box-shadow: 0 4px 30px rgba(0,0,0,0.08);
        }

        /* Icon Buttons */
        .icon-btn {
            width: 55px;
            height: 55px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .icon-btn:hover {
            background: var(--accent-gold);
            border-color: var(--accent-gold);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(184,149,107,0.25);
        }

        .icon-btn svg {
            width: 30px;
            height: 30px;
            stroke: var(--accent-gold);
            stroke-width: 1.8;
            fill: none;
            transition: stroke 0.3s ease;
        }

        .icon-btn:hover svg {
            stroke: white;
        }

        /* Brand */
        .brand {
            flex: 1;
            text-align: center;
        }

 
        /* ================= MAIN CONTENT ================= */
        .main-content {
            padding-top:40px;
        }

        /* ================= PAGE TITLE ================= */
        .page-header {
            padding: 60px 24px 40px;
            text-align: center;
            background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
            position: relative;
        }

        .page-header::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
            opacity: 0.4;
        }

        .page-title {
            font-family: "Amiri", serif;
            font-size: clamp(28px, 4vw, 38px);
            color: var(--text-primary);
            margin-bottom: 12px;
            font-weight: 700;
        }

        .page-subtitle {
            font-size: 15px;
            color: #503f2a;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.9;
        }

        /* ================= INFO CARDS ================= */
        .info-section {
            padding: 20px 24px 40px;
            background: var(--bg-primary);
        }

        .info-container {
            max-width: 900px;
            margin: 0 auto;
        }

        .info-cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
        }

        .info-badge {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 18px 22px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            transition: all 0.3s ease;
        }

        .info-badge:hover {
            border-color: var(--accent-gold);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        }

        .info-badge-icon {
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(184,149,107,0.12) 0%, rgba(184,149,107,0.06) 100%);
            border-radius: 12px;
            flex-shrink: 0;
        }

        .info-badge-icon svg {
            width: 25px;
            height: 25px;
            stroke: var(--accent-gold);
            fill: none;
            stroke-width: 1.8;
        }

        .info-badge-content {
            display: flex;
            flex-direction: column;
        }

        .info-badge-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 2px;
        }

        .info-badge-value {
            font-size: 15px;
            color: var(--text-primary);
            font-weight: 600;
        }

        /* ================= BIOGRAPHY SECTION ================= */
        .biography-section {
            padding: 60px 24px 80px;
            background: var(--bg-primary);
        }

        .bio-container {
            max-width: 900px;
            margin: 0 auto;
        }

        /* Section Title */
        .section-title {
            text-align: center;
            margin-bottom: 40px;
        }

        .section-title h3 {
            font-family: "Amiri", serif;
            font-size: clamp(22px, 3vw, 28px);
            color: var(--text-primary);
            margin-bottom: 10px;
            font-weight: 700;
        }

        .section-title-line {
            width: 70px;
            height: 2px;
            background: var(--accent-gold);
            margin: 0 auto;
            border-radius: 2px;
        }

        /* Bio Content */
        .bio-content {
            font-family: "Amiri", serif;
            font-size: clamp(17px, 2vw, 19px);
            line-height: 2.3;
            color: var(--text-secondary);
        }

        .bio-intro {
            background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,255,255,0.7) 100%);
            border: 1px solid var(--border-color);
            border-right: 4px solid var(--accent-gold);
            border-radius: 16px;
            padding: 32px;
            margin-bottom: 36px;
            position: relative;
            overflow: hidden;
        }

        .bio-intro::before {
            content: '"';
            position: absolute;
            top: 8px;
            right: 20px;
            font-size: 100px;
            font-family: "Amiri", serif;
            color: var(--accent-gold);
            opacity: 0.1;
            line-height: 1;
        }

        .bio-intro p {
            position: relative;
            z-index: 1;
            margin: 0;
        }

        .bio-intro strong {
            color: var(--accent-gold-dark);
            font-weight: 700;
        }

        /* Bio Sections */
        .bio-section {
            margin-bottom: 28px;
            padding: 28px 32px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            transition: all 0.3s ease;
        }

        .bio-section:hover {
            border-color: rgba(184,149,107,0.4);
            box-shadow: 0 8px 32px rgba(0,0,0,0.06);
        }

        .bio-section-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 18px;
            padding-bottom: 14px;
            border-bottom: 1px solid rgba(229,221,208,0.6);
        }

        .bio-section-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(184,149,107,0.15) 0%, rgba(184,149,107,0.08) 100%);
            border-radius: 10px;
            flex-shrink: 0;
        }

        .bio-section-icon svg {
            width: 18px;
            height: 18px;
            stroke: var(--accent-gold);
            fill: none;
            stroke-width: 1.8;
        }

        .bio-section h4 {
            font-family: "Amiri", serif;
            font-size: 20px;
            color: var(--text-primary);
            font-weight: 700;
        }

        .bio-section p {
            margin-bottom: 14px;
            text-align: justify;
        }

        .bio-section p:last-child {
            margin-bottom: 0;
        }

        .bio-section strong {
            color: var(--accent-gold-dark);
        }

        /* Quote Block */
        .quote-block {
            position: relative;
            padding: 36px 40px;
            margin: 40px 0;
            background: linear-gradient(135deg, rgba(184,149,107,0.08) 0%, rgba(184,149,107,0.03) 100%);
            border: 1px solid rgba(184,149,107,0.25);
            border-radius: 16px;
            text-align: center;
        }

        .quote-block::before,
        .quote-block::after {
            content: '';
            position: absolute;
            width: 50px;
            height: 50px;
            opacity: 0.2;
        }

        .quote-block::before {
            top: 14px;
            right: 18px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8956b' stroke-width='1.5'%3E%3Cpath d='M10 11V8a4 4 0 0 0-4-4H4a4 4 0 0 0-4 4v3a4 4 0 0 0 4 4h1m9-5V8a4 4 0 0 0-4-4h-2a4 4 0 0 0-4 4v3a4 4 0 0 0 4 4h1'/%3E%3C/svg%3E") no-repeat center;
        }

        .quote-block::after {
            bottom: 14px;
            left: 18px;
            transform: rotate(180deg);
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8956b' stroke-width='1.5'%3E%3Cpath d='M10 11V8a4 4 0 0 0-4-4H4a4 4 0 0 0-4 4v3a4 4 0 0 0 4 4h1m9-5V8a4 4 0 0 0-4-4h-2a4 4 0 0 0-4 4v3a4 4 0 0 0 4 4h1'/%3E%3C/svg%3E") no-repeat center;
        }

        .quote-block p {
            font-family: "Amiri", serif;
            font-size: clamp(17px, 2vw, 20px);
            color: var(--text-primary);
            line-height: 2.1;
            font-style: italic;
            margin: 0;
        }

        /* Books Highlight */
        .books-highlight {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid rgba(229,221,208,0.6);
        }

        .book-tag {
            padding: 8px 16px;
            background: rgba(184,149,107,0.08);
            border: 1px solid rgba(184,149,107,0.2);
            border-radius: 8px;
            font-family: "Amiri", serif;
            font-size: 14px;
            color: var(--accent-gold-dark);
            transition: all 0.3s ease;
            cursor: default;
        }

        .book-tag:hover {
            background: rgba(184,149,107,0.15);
            border-color: rgba(184,149,107,0.35);
            transform: translateY(-2px);
        }

        /* ================= STATISTICS ================= */
        .statistics-section {
            padding: 50px 24px;
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-color);
        }

        .stats-container {
            max-width: 900px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 20px;
        }

        .stat-card {
            text-align: center;
            padding: 28px 20px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            border-color: var(--accent-gold);
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(0,0,0,0.08);
        }

        .stat-number {
            font-family: "Amiri", serif;
            font-size: 38px;
            color: var(--accent-gold);
            font-weight: 700;
            line-height: 1;
            margin-bottom: 8px;
        }

        .stat-label {
            font-size: 14px;
            color: var(--text-muted);
        }

        /* ================= FOOTER ================= */
        .footer {
            padding: 40px 24px;
            text-align: center;
            background: var(--bg-primary);
            border-top: 1px solid var(--border-color);
        }

        .footer-content {
            max-width: 600px;
            margin: 0 auto;
        }

        .footer-logo {
            font-family: "Amiri", serif;
            font-size: 20px;
            color: var(--accent-gold);
            margin-bottom: 10px;
            font-weight: 700;
        }

        .footer p {
            font-size: 14px;
            color: var(--text-muted);
            line-height: 1.8;
        }

        /* ================= ANIMATIONS ================= */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(25px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-in {
            opacity: 0;
            animation: fadeInUp 0.7s ease forwards;
        }

        .delay-1 { animation-delay: 0.1s; }
        .delay-2 { animation-delay: 0.2s; }
        .delay-3 { animation-delay: 0.3s; }
        .delay-4 { animation-delay: 0.4s; }

        /* ================= RESPONSIVE ================= */
        @media (max-width: 768px) {
            .page-header {
                padding: 50px 20px 35px;
            }

            .biography-section {
                padding: 50px 20px 60px;
            }

            .bio-section {
                padding: 22px 20px;
            }

            .bio-intro {
                padding: 24px 20px;
            }

            .quote-block {
                padding: 28px 20px;
            }

            .info-cards-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .header {
                padding: 14px 16px;
            }

            .icon-btn {
                width: 42px;
                height: 42px;
            }

        

            .info-cards-grid {
                grid-template-columns: 1fr;
            }

            .stats-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 14px;
            }

            .stat-card {
                padding: 22px 16px;
            }

            .stat-number {
                font-size: 32px;
            }
        }

        /* Reduced Motion */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }





.books-categories{

max-width:900px;
margin:auto;

padding:40px 20px;

}

.page-title{

text-align:center;

font-family:"Amiri";

font-size:28px;

margin-bottom:30px;

}

.categories-grid{

display:grid;

grid-template-columns:1fr;

gap:22px;

}


/* tablet */

@media (min-width:700px){

.categories-grid{

grid-template-columns:repeat(2,1fr);

}

}


/* desktop */

@media (min-width:1100px){

.categories-grid{

grid-template-columns:repeat(3,1fr);

}

}

/* CARD */
.cat-card{
    background:#fff;
    border-radius:16px;
    padding:22px 12px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,0.06);
    transition:.35s;
}

.cat-card:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,0,0,0.08);
}

/* IMAGE */
.cat-img{
    width:70px;
    margin-bottom:14px;
    opacity:.9;
}

/* TITLE */
.cat-card h3{
    font-family:"Amiri";
    font-size:20px;
    margin-bottom:6px;
    color:#3e2c21;
}

/* TEXT */
.cat-card p{
    font-size:14px;
    color:#8c7d6c;
    margin-bottom:18px;
    line-height:1.8;
}

/* BOOKS BIG BOX */
.books-box{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
    margin-top:12px;
    padding:6px;
    width:100%;
    box-sizing:border-box;
    background:#f7f2ea;
    border:1px solid #dccfbb;
    border-radius:18px;
}

/* BOOK NAME */
.books-box span{
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    min-height:auto;
    padding:6px 8px;
    font-size:11px;
    line-height:1.2;
    color:#7a6444;
    background:#fcfaf6;
    border:1px solid #e6d9c6;
    border-radius:10px;
}
/* FOOTER */
.cat-footer{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-top:18px;
    width:100%;
}

/* BUTTON */
.view-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    padding:10px 18px;
    background:#e8e1d7;
    border-radius:8px;
    text-decoration:none;
    color:#3e2c21;
    transition:.25s;
}

.view-btn:hover{
    background:#d8cfbf;
}

/* BOOK COUNT */
.book-count{
    font-size:13px;
    background:#f2ede6;
    padding:6px 10px;
    border-radius:20px;
    color:#6f5e4d;
}
/* ================= SMART HEADER ================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    padding: 16px 12px 14px;   /* زيادة المساحة العلوية والسفلية */

    background: linear-gradient(180deg, #d4c9b5 0%, #f2ede4 100%);
    border-bottom: 1px solid rgba(184, 149, 107, 0.15);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* عند السكرول */

.header.scrolled{

padding:10px 14px;

align-items:center;

box-shadow:0 6px 16px rgba(0,0,0,0.08);

}

/* صورة الكاتب */

.header .author-img{

transition:all .35s ease;

}

.header.scrolled .author-img{

width:52px;
height:52px;

padding:4px;

}

/* العنوان */

.header h1{

transition:all .35s ease;

}

.header.scrolled h1{

font-size:20px;

}

/* subtitle */

.header .subtitle{

transition:all .35s ease;

}

.header.scrolled .subtitle{

display:none;

}

/* النص العلوي */

.header .brand-top{

transition:all .35s ease;

}

.header.scrolled .brand-top{

display:none;

}


/* ================= BACK TO TOP ================= */

#backToTop{

position:fixed;

bottom:20px;
left:20px;

width:46px;
height:46px;

border:none;
border-radius:50%;

background:#c6b28a;   /* اللون الجديد */

color:#fff;

display:flex;
align-items:center;
justify-content:center;

cursor:pointer;

box-shadow:0 6px 18px rgba(0,0,0,0.15);

opacity:0;
visibility:hidden;

transition:0.3s;

z-index:999;

}

#backToTop svg{
width:20px;
height:20px;
}

#backToTop:hover{

background:#b49c70;

transform:translateY(-3px);

}

/* SHOW BUTTON */

#backToTop.show{

opacity:1;
visibility:visible;

}



/* ================= BOOKS SECTION ================= */

/* Container */
.books-section {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 16px 60px;
    position: relative;
    z-index: 1;
}

/* Title Wrapper */
.books-title-wrapper {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

/* Main Title */
.books-title {
    font-family: 'Amiri', serif;
    font-size: clamp(26px, 5vw, 38px);
    color: #3e2c21; /* var(--accent-brown) */
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* Ornament (Lines and Dots under title) */
.title-ornament {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.ornament-line {
    width: 60px;
    height: 1px;
    background: #b8956b; /* var(--accent-gold) */
    opacity: 0.5;
}

.ornament-dot {
    width: 6px;
    height: 6px;
    background: #b8956b;
    transform: rotate(45deg);
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* الموبايل: عمودين */
    gap: 16px;
}

/* Book Card Inner (لضبط الطول) */
.book-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Book Card */
.book-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(62, 44, 33, 0.07);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #e5ddd0;
	 height:100%;        /* مهم */
    display:flex;
    flex-direction:column;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(62, 44, 33, 0.12);
    border-color: #b8956b;
}

/* Image Wrapper */
.book-image-wrapper {
    position: relative;
    background: linear-gradient(180deg, #d4c9b5 0%, #f0ebe0 100%);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 220px; /* ثبات ارتفاع الصورة في الموبايل */
    overflow: hidden;
}

.book-image-wrapper img {
    max-height: 100%;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.15));
    transition: transform 0.4s ease;
}

.book-card:hover .book-image-wrapper img {
    transform: scale(1.08);
}

/* Corner Ornaments (زخرفة الزوايا) */
.corner-ornament {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #b8956b;
    border-style: solid;
    opacity: 0.25;
    transition: all 0.3s ease;
    pointer-events: none;
}

.book-card:hover .corner-ornament {
    opacity: 0.6;
    width: 30px;
    height: 30px;
}

/* تحديد مكان كل زاوية */
.corner-ornament.top-right { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.corner-ornament.top-left { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.corner-ornament.bottom-right { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.corner-ornament.bottom-left { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }

/* Overlay Content */
.book-overlay {
    padding: 15px 12px;
    text-align: center;
    background: #fff;
    position: relative;
    margin-top: auto; /* ليلتصق بالأسفل إذا قلت المحتوى */
	min-height:110px;   /* يثبت مساحة النص */
}

.book-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: #e5ddd0;
}

.book-overlay h3 {
    font-family: 'Amiri', serif;
    font-size: 17px;
    color: #3e2c21;
    margin-bottom: 4px;
    font-weight: 700;
}

.book-subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    color: #8a7d6d;
    margin-bottom: 12px;
    line-height: 1.4;

    display:-webkit-box;
    -webkit-line-clamp:2;   /* عدد السطور */
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* View Button */
.book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    background: #f2ede6;
    color: #3e2c21;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    border: 1px solid #e5ddd0;
}

.book-btn:hover {
    background: #b8956b;
    color: #fff;
    border-color: #b8956b;
    box-shadow: 0 5px 15px rgba(184, 149, 107, 0.3);
}

.book-btn .arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* حركة السهم عند المرور */
.book-btn:hover .arrow {
    transform: translateX(-3px);
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (min-width: 768px) {
    .books-section {
        padding: 0 24px 80px;
    }
    
    .books-grid {
        grid-template-columns: repeat(3, 1fr); /* تابلت: 3 أعمدة */
        gap: 24px;
    }

    .book-image-wrapper {
        height: 260px;
    }
    
    .book-overlay h3 { font-size: 19px; }
    .book-subtitle { font-size: 13px; }
}

/* Desktop */
@media (min-width: 1024px) {
    .books-grid {
        grid-template-columns: repeat(4, 1fr); /* ديسكتوب: 4 أعمدة */
        gap: 28px;
    }
    
    .books-title-wrapper {
        margin-bottom: 50px;
    }
}
.book-card-link{
text-decoration:none;
color:inherit;
display:block;
}



 /* ===== BOOK HERO SECTION ===== */
        .book-hero {
            --gold: #c9a227;
            --gold-light: #e8d48a;
            --gold-dark: #8b6914;
            --cream: #faf7f2;
            --brown-dark: #2c1810;
            --brown-medium: #5c4033;
            --brown-light: #8b7355;
            
            position: relative;
            background: var(--cream);
            padding: 50px 30px;
            overflow: visible;
        }

        /* Background Pattern */
        .book-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(ellipse at 20% 20%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
                linear-gradient(135deg, #faf7f2 0%, #f5efe5 50%, #ebe3d5 100%);
            z-index: 0;
        }

        /* Top Gold Line */
        .book-hero::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                var(--gold) 20%, 
                var(--gold-light) 50%, 
                var(--gold) 80%, 
                transparent 100%);
            z-index: 1;
        }

        .book-container {
            position: relative;
            max-width: 1100px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 180px 1fr;
            gap: 40px;
            align-items: start;
            z-index: 2;
        }

        /* ===== BOOK COVER ===== */
        .book-cover {
            position: relative;
        }

        .book-cover::before {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 10%;
            right: 10%;
            height: 30px;
            background: radial-gradient(ellipse, rgba(44, 24, 16, 0.25) 0%, transparent 70%);
            filter: blur(8px);
            z-index: -1;
        }

        .book-cover img {
            width: 100%;
            border-radius: 3px 10px 10px 3px;
            box-shadow: 
                -5px 5px 0 var(--gold),
                -10px 10px 0 var(--gold-light),
                0 15px 30px rgba(44, 24, 16, 0.3);
            transition: transform 0.4s ease, box-shadow 0.4s ease;
        }

        .book-cover:hover img {
            transform: translateY(-5px);
            box-shadow: 
                -7px 7px 0 var(--gold),
                -12px 12px 0 var(--gold-light),
                0 20px 35px rgba(44, 24, 16, 0.35);
        }

        /* Book spine effect */
        .book-cover::after {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 10px;
            background: linear-gradient(90deg, 
                rgba(0,0,0,0.25) 0%, 
                rgba(0,0,0,0.08) 50%, 
                transparent 100%);
            border-radius: 3px 0 0 3px;
            pointer-events: none;
        }

        /* ===== BOOK INFO ===== */
        .book-info {
            padding-top: 10px;
        }

        .book-title {
            font-family: 'Amiri', serif;
            font-size: clamp(1.8rem, 4vw, 2.8rem);
            font-weight: 700;
            color: var(--brown-dark);
            margin-bottom: 6px;
            line-height: 1.2;
        }

        .book-subtitle {
            font-family: 'Amiri', serif;
            font-size: 1.1rem;
            color: var(--brown-light);
            margin-bottom: 25px;
            font-style: italic;
        }

        /* ===== META INFO ===== */
        .book-meta {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
            margin-bottom: 20px;
            padding: 15px 0;
            border-top: 1px solid rgba(201, 162, 39, 0.3);
            border-bottom: 1px solid rgba(201, 162, 39, 0.3);
        }

        .meta-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .meta-label {
            font-family: 'Amiri', sans-serif;
            font-size: 0.8rem;
            color: var(--brown-light);
            letter-spacing: 0.5px;
        }

        .meta-value {
            font-family: 'Amiri', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            color: var(--brown-dark);
        }

        /* ===== DESCRIPTION ===== */
        .book-desc {
            font-family: 'Amiri', sans-serif;
            font-size: 1rem;
            line-height: 1.9;
            color: var(--brown-medium);
            margin-bottom: 25px;
            max-width: 600px;
        }

        /* ===== BUTTONS ===== */
        .book-actions {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .btn {
            font-family: 'Amiri', sans-serif;
            font-size: 0.95rem;
            font-weight: 600;
            padding: 12px 28px;
            border-radius: 50px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn-read {
            background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
        }

        .btn-read:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(201, 162, 39, 0.45);
        }

        .btn-download {
            background: transparent;
            color: var(--brown-dark);
            border: 2px solid var(--gold);
        }

        .btn-download::after {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--gold);
            z-index: -1;
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.3s ease;
            border-radius: 50px;
        }

        .btn-download:hover {
            color: white;
        }

        .btn-download:hover::after {
            transform: scaleX(1);
            transform-origin: left;
        }

        .btn svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }
		
		
		.btn-read {
    background: linear-gradient(135deg, #c9a875 0%, #9a7d4a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(181, 155, 107, 0.4);
}

.btn-read:hover {
    background: linear-gradient(135deg, #b89765 0%, #8a6d3a 100%);
    box-shadow: 0 6px 18px rgba(181, 155, 107, 0.5);
}

.btn-download {
    background: transparent;
    color: #5c4033;
    border: 2px solid #b59b6b;
}

.btn-download::after {
    background: linear-gradient(135deg, #c9a875 0%, #9a7d4a 100%);
}

.btn-download:hover {
    color: white;
    border-color: #c9a875;
}

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .book-hero {
                padding: 40px 20px;
            }
            
            .book-container {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 30px;
            }
            
            .book-cover {
                max-width: 150px;
                margin: 0 auto;
            }
            
            .book-info {
                padding-top: 0;
            }
            
            .book-meta {
                justify-content: center;
                gap: 20px;
            }
            
            .book-desc {
                margin: 0 auto 25px;
            }
            
            .book-actions {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .book-hero {
                padding: 30px 15px;
            }
            
            .book-cover {
                max-width: 130px;
            }
            
            .book-meta {
                flex-direction: column;
                gap: 12px;
                align-items: center;
            }
            
            .meta-item {
                align-items: center;
            }
            
            .book-actions {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
                justify-content: center;
                padding: 14px 28px;
            }
        }
		
		
	.books-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px 0 16px;
    padding: 14px;
    background: linear-gradient(180deg, #f8f5ef 0%, #f3eee6 100%);
    border: 1px solid #e0d5c6;
    border-radius: 18px;
}

.books-box span {
    display: block;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ddd0bf;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    color: #4b3a2c;
    transition: 0.3s ease;
}





:root{
  --bg:#f6f1e8;
  --bg-soft:#fbf8f2;
  --card:#ffffffcc;
  --card-solid:#fffdfa;
  --text:#3a2c21;
  --muted:#7d6a57;
  --line:#decfbb;
  --gold:#b79264;
  --gold-deep:#8f6a3e;
  --shadow:0 18px 50px rgba(78,56,32,.10);
  --shadow-soft:0 8px 24px rgba(78,56,32,.07);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Cairo",sans-serif;
  background:
    radial-gradient(circle at top, #fffaf3 0%, rgba(255,250,243,0) 35%),
    linear-gradient(180deg,#f3eee5 0%,#f8f4ed 100%);
  color:var(--text);
}
.container{width:min(1180px, calc(100% - 28px)); margin-inline:auto}
.hero{
  position:relative;
  overflow:hidden;
  padding:80px 0 42px;
  background:
    linear-gradient(135deg, rgba(183,146,100,.18), rgba(255,255,255,.22)),
    linear-gradient(180deg, #efe7db 0%, #f7f2ea 100%);
  border-bottom:1px solid rgba(143,106,62,.15);
}
.hero-content{text-align:center}
.hero-badge{
  display:inline-flex;
  padding:8px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(183,146,100,.28);
  color:var(--gold-deep);
  font-size:14px;
  font-weight:700;
  margin-bottom:18px;
}
.hero h1{
  margin:0 0 12px;
  font-family:"Amiri",serif;
  font-size:clamp(34px,5vw,56px);
  line-height:1.25;
  color:#2f241b;
}
.hero-subtitle{
  max-width:760px;
  margin:0 auto;
  font-size:16px;
  line-height:2;
  color:var(--muted);
}
.hero-stats{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  margin-top:28px;
}
.stat-card{
  padding:18px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(183,146,100,.22);
  border-radius:22px;
  box-shadow:var(--shadow-soft);
}
.stat-card strong{
  display:block;
  font-size:28px;
  color:var(--gold-deep);
  margin-bottom:6px;
}
.stat-card span{font-size:14px;color:var(--muted)}

.catalog-page{padding:30px 0 60px}
.quick-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin:0 0 26px;
  padding:18px;
  background:rgba(255,255,255,.65);
  border:1px solid rgba(183,146,100,.18);
  border-radius:26px;
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(10px);
}
.quick-nav a{
  text-decoration:none;
  color:var(--text);
  padding:10px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  font-size:14px;
  transition:.25s ease;
}
.quick-nav a:hover{
  transform:translateY(-2px);
  background:#f5eee4;
  border-color:#cdb495;
}
.section{
  margin:26px 0;
  padding:26px;
  background:linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,253,250,.92));
  border:1px solid rgba(183,146,100,.18);
  border-radius:30px;
  box-shadow:var(--shadow);
}
.section.split{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:22px;
}
.section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
  padding-bottom:16px;
  border-bottom:1px solid rgba(222,207,187,.75);
}
.section-head.compact h2{font-size:26px}
.section-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:linear-gradient(180deg,#c4a47a,#a98357);
  color:#fff;
  font-weight:800;
  font-size:14px;
  box-shadow:0 8px 18px rgba(143,106,62,.18);
  margin-bottom:12px;
}
.section h2{
  margin:0;
  font-family:"Amiri",serif;
  font-size:32px;
  line-height:1.3;
}
.count-pill{
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  background:#f5ecdf;
  border:1px solid #dcc8af;
  color:#7a5b38;
  font-size:14px;
  font-weight:700;
}
.section-note{
  margin:-4px 0 18px;
  color:var(--muted);
  line-height:1.9;
  font-size:15px;
}
.books-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
}
.books-grid.one-col{grid-template-columns:1fr}
.book-card{
  min-height:132px;
  padding:18px 18px 16px;
  background:var(--card-solid);
  border:1px solid #e5d9c8;
  border-radius:22px;
  box-shadow:var(--shadow-soft);
  position:relative;
  overflow:hidden;
}
.book-card::before{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:4px;
  background:linear-gradient(90deg, transparent, #d9b88f, transparent);
  opacity:.9;
}
.book-card h3{
  margin:0 0 14px;
  font-size:20px;
  line-height:1.8;
  color:#34281f;
  font-weight:700;
}
.book-card p{
  margin:0;
  font-size:14px;
  line-height:1.8;
  color:var(--muted);
}
.closing-quote{
  margin-top:26px;
  padding:28px 24px;
  text-align:center;
  background:linear-gradient(180deg, #f2e8db, #fbf7f0);
  border:1px solid rgba(183,146,100,.22);
  border-radius:28px;
  box-shadow:var(--shadow-soft);
}
.closing-quote p{
  margin:0;
  font-family:"Amiri",serif;
  font-size:30px;
  color:#5e4730;
}

@media (max-width: 980px){
  .books-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .section.split{grid-template-columns:1fr}
}
@media (max-width: 720px){
  .hero{padding-top:58px}
  .hero-stats{grid-template-columns:1fr; max-width:360px; margin-inline:auto; margin-top:22px}
  .section{padding:20px}
  .section-head{flex-direction:column; align-items:flex-start}
  .section h2{font-size:28px}
  .books-grid{grid-template-columns:1fr}
  .quick-nav{justify-content:flex-start}
  .book-card{min-height:auto}
  .book-card h3{font-size:18px}
  .closing-quote p{font-size:26px}
}


.book-card-inner{
  display:flex;
  flex-direction:column;
  height:100%;
}
.publisher-badge{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  padding:8px 12px;
  border-radius:999px;
  background:linear-gradient(180deg,#f7efe3,#efe2cf);
  border:1px solid #dbc4a2;
  color:#7a5b38;
  font-size:13px;
  line-height:1.8;
  box-shadow:0 6px 14px rgba(143,106,62,.08);
}
.book-actions{
  margin-top:auto;
  padding-top:16px;
}
.book-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:140px;
  padding:11px 18px;
  border-radius:14px;
  text-decoration:none;
  color:#fff;
  font-weight:700;
  font-size:14px;
  background:linear-gradient(135deg,#b79264,#8f6a3e);
  box-shadow:0 10px 22px rgba(143,106,62,.18);
  transition:.25s ease;
}
.book-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(143,106,62,.22);
}
.book-card p{
  margin:0;
  font-size:14px;
  line-height:1.8;
  color:var(--muted);
}
@media (max-width:720px){
  .book-btn{
    width:100%;
  }
  .publisher-badge{
    font-size:12px;
    padding:7px 10px;
  }
}



.brand {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: inherit !important;
}

.brand-link,
.brand-link:hover,
.brand-link:focus,
.brand-link:active,
.brand-link:visited,
.brand-link *,
.brand-link *:hover,
.brand-link *:focus,
.brand-link *:active,
.brand-link *:visited {
    text-decoration: none !important;
    color: inherit !important;
}


.brand-top {
    font-size: 14px;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
    margin-bottom: 0px;
    font-weight: 600;
}

.brand h1 {
    font-family: "Amiri", serif;
    font-size: 25px;
    color: var(--accent-brown);
    font-weight: 700;
    line-height: 1.1;
}

.subtitle {
    font-family: "Amiri", serif;
    font-size: 12px;
    color: var(--text-muted);
	margin: 14px 5px 5px;
}



/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    padding: 16px 12px 14px;   /* زيادة المساحة العلوية والسفلية */

    background: linear-gradient(180deg, #d4c9b5 0%, #f2ede4 100%);
    border-bottom: 1px solid rgba(184, 149, 107, 0.15);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

/* Support for OLD HTML (.icon) and NEW HTML (.icon-btn) */
.icon, .icon-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.icon:hover, .icon-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 149, 107, 0.25);
}

.icon svg, .icon-btn svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-gold);
    stroke-width: 2;
    fill: none;
    transition: var(--transition);
}

.icon:hover svg, .icon-btn:hover svg { stroke: white; }

/* Brand */
.brand {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    margin-bottom: 2px;
    box-shadow: 0 8px 24px rgba(62, 44, 33, 0.12);
    transition: var(--transition);
}

.author-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
}

.brand-top {
    font-size: 14px;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
    margin-bottom: 0px;
    font-weight: 600;
}

.brand h1 {
    font-family: "Amiri", serif;
    font-size: 25px;
    color: var(--accent-brown);
    font-weight: 700;
    line-height: 1.1;
}

.subtitle {
    font-family: "Amiri", serif;
    font-size: 12px;
    color: var(--text-muted);
	margin: 14px 5px 5px;
}



/* Large Screens (Desktop) */
@media (min-width: 900px) {
    body {
        padding-top: 280px; /* Large Header Space */
    }

    .header { padding: 20px 24px; }
    
    .icon, .icon-btn { width: 55px; height: 55px; }
    .icon svg, .icon-btn svg { width: 40px; height: 40px; }
    
    .author-img {
        width: 110px;
        height: 110px;
        margin-bottom: 10px;
        padding: 4px;
    }

    .brand-top { font-size: 14px; letter-spacing: 1px; margin-bottom: 2px; }
    .brand h1 { font-size: 40px; }
    .subtitle { font-size: 15px; }

    /* Home Grid Desktop */
    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .card {
        padding: 30px 15px;
        border-radius: 18px;
    }

    .circle {
        width: 80px;
        height: 80px;
    }

    .circle img {
        width: 42px;
        height: 42px;
    }
    
    .card h3 { font-size: 17px; }

    .sidebar { width: 300px; }
    .sidebar-top h2 { font-size: 24px; }

    /* Author Page Desktop */
    .breadcrumb-wrap {
        margin-top: 0;
        position: relative;
        /* Adjust position relative to the body padding */
    }
    
    .bio-content { font-size: 19px; }
    .bio-section { padding: 30px; }
}

/* Scrolled Header Effect */
.header.scrolled {
    padding: 8px 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.header.scrolled .author-img { width: 40px; height: 40px; margin-bottom: 2px; padding: 2px; }
.header.scrolled h1 { font-size: 15px; }
.header.scrolled .subtitle,
.header.scrolled .brand-top { display: none; }



.books-box{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:3px 5px;
    margin-top:8px;
}

.books-box span{
    display:block;
    padding:2px 4px;
    font-size:8px;
    line-height:1.2;
    color:#7a6444;
    background:#fcfaf6;
    border:1px solid #eee2cf;
    border-radius:7px;
}



.footer{
  text-align:center;
  padding:18px 14px;
}

.footer p{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:14px;
  line-height:1.8;
}

.footer-sep{
  opacity:.45;
}

.powered-by{
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color:inherit;
  transition:.25s ease;
}

.powered-by:hover{
  opacity:.8;
}

.powered-img{
  height:20px;
  width:auto;
  display:block;
}


/* الهيدر */
.header {
  z-index: 1000;
}

/* خلفية التعتيم */
.overlay-backdrop {
  z-index: 1500;
}

/* طبقة البحث نفسها */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

/* صندوق البحث */
.search-box {
  position: relative;
  z-index: 2001;
}




/* Start Audio Preparing Section */
.audio-preparing-section {
  width: 100%;
  padding: 28px 16px;
  background:
    radial-gradient(circle at top right, rgba(176, 132, 55, 0.14), transparent 34%),
    linear-gradient(180deg, #fbf8f1 0%, #ffffff 100%);
  font-family: "Cairo", sans-serif;
}

.audio-preparing-card {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 26px 22px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 235, 0.92));
  border: 1px solid rgba(176, 132, 55, 0.22);
  box-shadow: 0 18px 45px rgba(70, 45, 18, 0.09);
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.audio-preparing-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px dashed rgba(176, 132, 55, 0.22);
  pointer-events: none;
}

.audio-preparing-icon {
  width: 66px;
  height: 66px;
  min-width: 66px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, #fff7dc, #b08437);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(176, 132, 55, 0.26);
  position: relative;
  z-index: 1;
}

.audio-preparing-icon .iconify {
  font-size: 34px;
}

.audio-preparing-content {
  position: relative;
  z-index: 1;
}

.audio-preparing-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(176, 132, 55, 0.11);
  color: #8b6428;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.audio-preparing-content h2 {
  margin: 0 0 8px;
  color: #342513;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.35;
}

.audio-preparing-content p {
  margin: 0;
  color: #5d4b35;
  font-size: 17px;
  font-weight: 600;
  line-height: 2;
}

/* Mobile */
@media (max-width: 600px) {
  .audio-preparing-section {
    padding: 22px 14px;
  }

  .audio-preparing-card {
    padding: 22px 18px;
    border-radius: 24px;
    align-items: flex-start;
    gap: 14px;
  }

  .audio-preparing-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 18px;
  }

  .audio-preparing-icon .iconify {
    font-size: 28px;
  }

  .audio-preparing-content h2 {
    font-size: 22px;
  }

  .audio-preparing-content p {
    font-size: 15px;
    line-height: 1.9;
  }
}
/* End Audio Preparing Section */



/* ================= Writer Cards Without Images ================= */

.writer-pen-page {
    padding-bottom: 130px !important; /* مهم عشان الفوتر ما يغطيش الكروت */
}

.writer-links-section {
    width: 100%;
    max-width: 1050px;
    margin: 22px auto 0;
}

.writer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.writer-link-card {
    min-height: 255px;
    padding: 30px 24px 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(176, 132, 55, 0.10), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
    border: 1px solid rgba(176, 132, 55, 0.22);
    box-shadow: 0 18px 42px rgba(65, 45, 20, 0.08);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.writer-link-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 22px;
    border: 1px dashed rgba(176, 132, 55, 0.18);
    pointer-events: none;
}

.writer-link-card:hover {
    transform: translateY(-5px);
    border-color: rgba(176, 132, 55, 0.45);
    box-shadow: 0 24px 54px rgba(65, 45, 20, 0.13);
}

.writer-css-icon {
    width: 74px;
    height: 74px;
    margin-bottom: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 22%, #fff8df 0%, #efe2c5 45%, #d2b36d 100%);
    box-shadow:
        0 14px 28px rgba(176, 132, 55, 0.20),
        inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b2a17;
    position: relative;
    z-index: 1;
}

.writer-css-icon::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid rgba(176, 132, 55, 0.16);
}

.writer-css-icon span {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.writer-link-card h3 {
    margin: 0 0 12px;
    color: #2f2418;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

.writer-link-card p {
    margin: 0 0 18px;
    color: #8b6428;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.writer-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #f8f2e8;
    color: #7a5722;
    font-size: 14px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

/* Mobile */
@media (max-width: 600px) {
    .writer-pen-page {
        padding: 12px 14px 145px !important;
    }

    .writer-links-section {
        margin-top: 18px;
    }

    .writer-links-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .writer-link-card {
        min-height: auto;
        padding: 24px 18px 22px;
        border-radius: 24px;
    }

    .writer-link-card::before {
        inset: 10px;
        border-radius: 20px;
    }

    .writer-css-icon {
        width: 66px;
        height: 66px;
        margin-bottom: 14px;
    }

    .writer-css-icon span {
        font-size: 27px;
    }

    .writer-link-card h3 {
        font-size: 16px;
        line-height: 1.85;
        margin-bottom: 10px;
    }

    .writer-link-card p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .writer-more {
        font-size: 13px;
        padding: 9px 18px;
    }
}

/* Quran Image Icon */
.writer-img-icon {
    width: 74px;
    height: 74px;
    margin-bottom: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 22%, #fff8df 0%, #efe2c5 45%, #d2b36d 100%);
    box-shadow:
        0 14px 28px rgba(176, 132, 55, 0.20),
        inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.writer-img-icon::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid rgba(176, 132, 55, 0.16);
}

.writer-img-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

/* Mobile */
@media (max-width: 600px) {
    .writer-img-icon {
        width: 66px;
        height: 66px;
        margin-bottom: 14px;
    }

    .writer-img-icon img {
        width: 34px;
        height: 34px;
    }
}

/* ================= Compact Mobile Writer Cards ================= */
@media (max-width: 600px) {

    .writer-pen-page {
        padding: 10px 12px 120px !important;
    }

    .writer-links-section {
        margin-top: 14px !important;
    }

    .writer-links-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .writer-link-card {
        min-height: auto !important;
        padding: 18px 14px 16px !important;
        border-radius: 20px !important;
    }

    .writer-link-card::before {
        inset: 8px !important;
        border-radius: 16px !important;
    }

    .writer-img-icon,
    .writer-css-icon {
        width: 52px !important;
        height: 52px !important;
        margin-bottom: 10px !important;
    }

    .writer-img-icon::after,
    .writer-css-icon::after {
        inset: -5px !important;
    }

    .writer-img-icon img {
        width: 30px !important;
        height: 30px !important;
    }

    .writer-css-icon span {
        font-size: 22px !important;
    }

    .writer-link-card h3 {
        font-size: 14px !important;
        line-height: 1.75 !important;
        margin: 0 0 7px !important;
        max-width: 95%;
    }

    .writer-link-card p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin: 0 0 12px !important;
    }

    .writer-more {
        padding: 7px 15px !important;
        font-size: 12.5px !important;
        gap: 6px !important;
    }
}

/* ================= Narrow Mobile Writer Cards ================= */
@media (max-width: 600px) {

    .writer-pen-page {
        padding: 10px 0 125px !important;
        overflow-x: hidden !important;
    }

    .writer-links-section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px auto 0 !important;
        padding: 0 !important;
    }

    .writer-links-grid {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 14px !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    .writer-link-card {
        width: 86% !important;          /* هنا عرض الكارت */
        max-width: 360px !important;
        min-height: auto !important;
        padding: 18px 14px 16px !important;
        border-radius: 22px !important;
        margin: 0 auto !important;
    }

    .writer-link-card::before {
        inset: 8px !important;
        border-radius: 18px !important;
    }

    .writer-img-icon,
    .writer-css-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 10px !important;
    }

    .writer-img-icon img {
        width: 29px !important;
        height: 29px !important;
    }

    .writer-css-icon span {
        font-size: 21px !important;
    }

    .writer-link-card h3 {
        font-size: 13.5px !important;
        line-height: 1.75 !important;
        margin: 0 auto 8px !important;
        max-width: 92% !important;
    }

    .writer-link-card p {
        font-size: 12.8px !important;
        line-height: 1.5 !important;
        margin: 0 0 12px !important;
    }

    .writer-more {
        padding: 7px 15px !important;
        font-size: 12px !important;
    }
}

/* ================= Writer Pen Intro Section ================= */

.writer-pen-intro {
    width: 100%;
    max-width: 980px;
    margin: 0 auto 22px;
    padding: 0 14px;
    font-family: "Cairo", sans-serif;
}

.writer-pen-intro-card {
    width: 100%;
    padding: 26px 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(176, 132, 55, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 235, 0.94));
    border: 1px solid rgba(176, 132, 55, 0.22);
    box-shadow: 0 18px 45px rgba(70, 45, 18, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.writer-pen-intro-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 23px;
    border: 1px dashed rgba(176, 132, 55, 0.22);
    pointer-events: none;
}

.writer-pen-intro-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 30% 20%, #fff7dc, #d6b76b 55%, #b08437);
    color: #3b2a17;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(176, 132, 55, 0.24);
    position: relative;
    z-index: 1;
}

.writer-pen-intro-icon span {
    font-size: 30px;
    font-weight: 900;
}

.writer-pen-intro-content {
    position: relative;
    z-index: 1;
}

.writer-pen-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 15px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(176, 132, 55, 0.12);
    color: #8b6428;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.writer-pen-intro-content h1 {
    margin: 0 0 12px;
    color: #342513;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.4;
}

.writer-pen-intro-content p {
    margin: 0;
    color: #5d4b35;
    font-size: 17px;
    font-weight: 600;
    line-height: 2.15;
}

/* Mobile */
@media (max-width: 600px) {
    .writer-pen-intro {
        margin-bottom: 16px;
        padding: 0 12px;
    }

    .writer-pen-intro-card {
        padding: 22px 18px;
        border-radius: 24px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .writer-pen-intro-card::before {
        inset: 10px;
        border-radius: 20px;
    }

    .writer-pen-intro-icon {
        width: 58px;
        height: 58px;
        min-width: 58px;
        border-radius: 20px;
    }

    .writer-pen-intro-icon span {
        font-size: 25px;
    }

    .writer-pen-kicker {
        font-size: 12px;
        padding: 5px 13px;
        margin-bottom: 8px;
    }

    .writer-pen-intro-content h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .writer-pen-intro-content p {
        font-size: 14.5px;
        line-height: 2;
        text-align: justify;
    }
}
