/* Tarabot Blog - تصميم احترافي للمدونة */
.tarabot-blog {
  font-family: var(--tarabot-font, 'IBM Plex Sans Arabic', sans-serif);
  background: #f9f7f3;
  min-height: 100vh;
  padding-bottom: 40px;
}
.hero {
  background: linear-gradient(120deg, #e9f3ee 0%, #f7f7f7 100%);
  padding: 2.5rem 1rem 1.5rem 1rem;
  text-align: center;
  border-radius: 32px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 32px rgba(9,68,38,0.09);
}
.blog-hero-title {
  color: var(--tarabot-gold, #CF8B3F);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(207,139,63,0.10);
}
.blog-hero-desc {
  color: var(--tarabot-primary, #094426);
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 1.2rem;
}
.blog-search {
  max-width: 500px;
  margin: auto;
  display: flex;
  gap: 0.5rem;
}
.blog-search-input {
  flex: 1;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid #e9f3ee;
  font-size: 1.1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(9,68,38,0.07);
}
.blog-search-btn {
  background: var(--tarabot-gold, #CF8B3F);
  color: #fff;
  font-size: 1.1rem;
  padding: 0 1.5rem;
  border-radius: 16px;
  border: none;
  box-shadow: 0 2px 8px rgba(207,139,63,0.10);
  cursor: pointer;
  transition: background 0.2s;
}
.blog-list {
  max-width: 1200px;
  margin: 2rem auto;
}
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.2rem 1.5rem;
  margin-bottom: 2rem;
}
.blog-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 12px rgba(207,139,63,0.10);
  padding: 1.7rem 1.3rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.blog-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 6px 24px rgba(207,139,63,0.14);
}
.blog-thumb {
  display: block;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 8px rgba(9,68,38,0.07);
}
.blog-thumb img, .blog-thumb .wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.blog-content {
  width: 100%;
}
.blog-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tarabot-primary, #094426) !important;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-align: right;
}
.blog-title a {
  color: var(--tarabot-primary, #094426);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-title a:hover {
  color: var(--tarabot-gold, #CF8B3F);
}
.blog-title,
.blog-title a,
.blog-title-link {
  color: var(--tarabot-primary, #094426) !important;
  text-decoration: none;
  font-weight: 800;
  transition: color 0.2s;
}
.blog-title a:hover,
.blog-title-link:hover {
  color: var(--tarabot-gold, #CF8B3F) !important;
}
.blog-meta {
  font-size: 0.97rem;
  color: #888;
  margin-bottom: 0.4rem;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.blog-excerpt {
  font-size: 1.08rem;
  color: #333;
  opacity: 0.97;
  margin-bottom: 0.7rem;
  line-height: 1.7;
  text-align: right;
}
.blog-readmore {
  color: var(--tarabot-gold, #CF8B3F);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s;
  font-size: 1.05rem;
  margin-top: 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}
.blog-readmore i {
  font-size: 1em;
  margin-left: 0.2em;
}
.blog-card-empty {
  background: #f9f7f3;
  border: 2px dashed #CF8B3F;
  color: #888;
  text-align: center;
}
.blog-pagination {
  margin: 2.5rem 0;
  text-align: center;
}
.blog-sidebar {
  max-width: 340px;
  margin: 2rem auto 0 auto;
}
.sidebar-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(9,68,38,0.07);
  padding: 1.2rem 1rem;
  margin-bottom: 1.5rem;
}
.sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tarabot-primary, #094426);
  margin-bottom: 1rem;
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-list li {
  margin-bottom: 0.7rem;
}
.sidebar-list a {
  color: var(--tarabot-gold, #CF8B3F);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-list a:hover {
  color: var(--tarabot-primary, #094426);
}
.tarabot-blog-single {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.single-article.blog-card {
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  align-items: flex-start;
  width: 100%;
}
.single-title.blog-title {
  text-align: center;
  width: 100%;
}
.single-content.blog-excerpt {
  text-align: right;
  width: 100%;
}
/* تحسين تنسيق صفحة المقال الفردي */
.site-main {
  background: #fff;
  max-width: 800px;
  margin: 40px auto 32px auto;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(9,68,38,0.07);
  padding: 38px 28px;
}
.page-header {
  text-align: center;
  margin-bottom: 32px;
}
.entry-title {
  color: var(--tarabot-gold, #CF8B3F);
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.page-content {
  font-size: 1.18rem;
  color: #222;
  line-height: 2.1;
}
.page-content h2, .page-content h3, .page-content h4 {
  color: var(--tarabot-green, #094426);
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 700;
}
.page-content h2 { font-size: 1.7rem; border-right: 4px solid var(--tarabot-gold); padding-right: 12px; }
.page-content h3 { font-size: 1.3rem; border-right: 3px solid #e9f3ee; padding-right: 10px; }
.page-content h4 { font-size: 1.1rem; border-right: 2px solid #f9f7f3; padding-right: 8px; }
.page-content p {
  margin-bottom: 18px;
  font-size: 1.13rem;
  color: #222;
}
.post-tags {
  margin-top: 32px;
  text-align: right;
}
.tag-links {
  background: #f9f7f3;
  color: var(--tarabot-gold);
  padding: 6px 18px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
}
@media (max-width: 800px) {
  .site-main { padding: 18px 6px; }
  .entry-title { font-size: 1.5rem; }
  .page-content h2 { font-size: 1.2rem; }
  .page-content h3 { font-size: 1.05rem; }
  .page-content h4 { font-size: 0.95rem; }
}
@media (max-width: 900px) {
  .blog-list {
    max-width: 98vw;
    padding: 0 1vw;
  }
  .blog-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .blog-card {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
  .blog-thumb {
    height: 140px;
  }
  .blog-sidebar {
    max-width: 98vw;
    padding: 0 1vw;
  }
  .single-article.blog-card {
    max-width: 98vw;
    margin: 1.2rem auto 1rem auto;
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
}
