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

    body {
      font-family: 'Cairo', sans-serif;
      background: var(--bg);
      color: var(--ink);
      line-height: 1.8;
      scroll-behavior: smooth;
    }

    header.navbar {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(247,244,239, .95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(0,0,0,.06);
    }

    .container {
      width: min(1100px, 92vw);
      margin-inline: auto;
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 0;
    }

    .brand-title {
      text-decoration: none;
      color: var(--ink);
      font-weight: 600;
      padding: 10px 16px;
      border-radius: 8px;
      transition: background 0.3s ease;
    }

    nav a {
      text-decoration: none;
      color: var(--ink);
      font-weight: 600;
      padding: 10px 16px;
      border-radius: 8px;
      transition: background 0.3s ease;
    }
    nav a:hover { background: rgba(162,106,61,.1); }

    /* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: grid;
  place-items: center;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  box-shadow: var(--shadow);
  /* background: rgba(162,106,61,.1);  <-- أزلنا الطبقة */
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/bg.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  opacity: 1;
  filter: brightness(1); /* ألوان طبيعية */
  z-index: -2;
  transition: transform 5s ease-in-out;
  transform: scale(1.05);
  bottom: 40px;
  min-height: 20vh;
}

.hero:hover::before {
  transform: scale(1.14);
}

/* أزلنا ::after لأنه يضيف طبقة تغميق */
/*
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.3));
  z-index: -1;
}
*/

.hero-content {
  width: min(900px, 92vw);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}


    .hero h4 {
      font-family: 'Amiri', serif;
      font-size: clamp(2rem, 6vw, 3.5rem);
      margin-bottom: 20px;
      text-shadow: 0 2px 16px rgba(0,0,0,.5);
    }

    .hero .btn-more {
      display: inline-block;
      padding: 14px 32px;
      font-size: 1.1rem;
      font-weight: 600;
      color: #fff;
      background: var(--accent);
      border-radius: 12px;
      text-decoration: none;
      transition: background 0.3s ease, transform 0.2s ease;
    }
    .hero .btn-more:hover {
      background: var(--accent-2);
      transform: scale(1.5);
    }

    /* Sections */
    section {
      padding: 80px 20px;
      background: var(--bg);
    }

    section:nth-child(even) { background: #f0ece5; }

    section h2 {
      text-align: center;
      font-family: 'Amiri', serif;
      font-size: 2.2rem;
      margin-bottom: 30px;
      color: var(--accent);
    }

    section p {
      text-align: center;
      max-width: 800px;
      margin: auto;
      font-size: 1.1rem;
      line-height: 1.8;
      color: var(--ink);
    }

    /* Bio toggle */
    #bio.collapsed {
      max-height: 100px;
      overflow: hidden;
    }
    #toggleBio {
      margin: 16px auto 0;
      display: block;
      padding: 12px 24px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.3s ease;
    }
    #toggleBio:hover {
      background: var(--accent-2);
    }


.about-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
}

.about-img img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20%;   /* دائري */
  box-shadow: var(--shadow);
}


.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text p {
  text-align: right;
  margin-bottom: 16px;
}

#bio.collapsed + .extra {
  display: none;
}

#toggleBio {
  margin-top: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
#toggleBio:hover {
  background: var(--accent-2);
}


.admin-link {
  font-size: 0.9rem;
  color: #999;          /* رمادي باهت */
  text-decoration: none;
  transition: color 0.3s ease;
}

.admin-link:hover {
  color: var(--accent); /* يظهر عند التمرير */
}

    /* Footer */
    footer {
      padding: 28px 0;
      border-top: 1px solid rgba(0,0,0,.06);
      text-align: center;
      color: var(--muted);
      background: #faf7f1;
    }

.poetry-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tab-btn:hover { background: var(--accent-2); }
.tab-btn.active { background: #333; }

.tab-content { display: none; text-align: center; }
.tab-content.active { display: block; }

.poem-list, .book-list {
  list-style: none;
  margin-top: 20px;
  padding: 0;
}
.poem-list li, .book-list li {
  margin: 10px 0;
  font-size: 1.1rem;
}
.poem-list a {
  text-decoration: none;
  color: var(--accent);
}
.poem-list a:hover { text-decoration: underline; }



 @media (max-width: 768px) {
  .hero {
    min-height: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .hero::after {
    display: none; /* نخفي التظليل فقط */
  }

  .hero-content {
    padding: 20px 15px;
    color: var(--ink);
    text-shadow: none;
  }

  .hero h4 {
    font-size: 1.6rem;
    color: var(--accent);
  }
 


  nav a { 
    padding: 8px 10px; 
    font-size: 0.9rem; 
  }
  #about  {

  margin-top:-88px;
}
.brand-title {
      font-size: 1rem;
    }
}




  