/* Blog Page Styles */
.blog-page .page-title {
  color: var(--default-color);
  padding: 80px 0 40px;
  height: 70vh;
}
.page-title {
  background-image: url('../img/hero/desert.png');
  background-position: center;
  background-size: cover;
}

.blog-page .page-title .heading {
  text-align: center;
}

.blog-page .page-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.blog-page .page-title p {
  font-size: 1.2rem;
  color: color-mix(in srgb, white, transparent 30%);
  margin-bottom: 0;
}

/* Author Profile */
.author-profile {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--surface-color);
  border-radius: 16px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--default-color), transparent 95%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.author-profile .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--accent-color), transparent 80%);
  flex-shrink: 0;
}

.author-profile .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile .profile-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.author-profile .profile-info p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 1rem;
}

.author-profile .social-links {
  display: flex;
  gap: 0.75rem;
}

.author-profile .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.author-profile .social-links a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

/* Post Cards */
.post-card {
  background: var(--surface-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--default-color), transparent 95%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  height: 100%;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--default-color), transparent 90%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
}

.post-img {
  position: relative;
  overflow: hidden;
}

.post-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-img img {
  transform: scale(1.05);
}

.post-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--surface-color);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.post-content h3 a {
  color: var(--heading-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-content h3 a:hover {
  color: var(--accent-color);
}

.post-content p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.post-meta .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-meta .author img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.post-meta .author span {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-weight: 500;
}

.read-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--heading-color);
  gap: 0.75rem;
}

/* Pagination */
.blog-pagination {
  margin-top: 3rem;
}

.blog-pagination .pagination {
  margin-bottom: 0;
}

.blog-pagination .page-item .page-link {
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.blog-pagination .page-item .page-link:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
}

.blog-pagination .page-item.active .page-link {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

/* RTL Adjustments */
.arabic-rtl .post-date {
  left: auto;
  right: 15px;
}

.arabic-rtl .read-more i {
  transform: rotate(180deg);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .blog-page .page-title {
    padding: 70px 0 30px;
    margin-top: 80px;
  }
  
  .profile-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .author-profile .social-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .blog-page .page-title h1 {
    font-size: 2rem;
  }
  
  .blog-page .page-title p {
    font-size: 1.1rem;
  }
  
  .author-profile {
    padding: 1.5rem;
  }
  
  .post-content {
    padding: 1.25rem;
  }
  
  .post-content h3 {
    font-size: 1.1rem;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .post-meta .read-more {
    align-self: flex-end;
  }
}

@media (max-width: 576px) {
  .blog-page .page-title {
    padding: 60px 0 20px;
  }
  
  .author-profile {
    padding: 1.25rem;
    margin-bottom: 2rem;
  }
  
  .post-img img {
    height: 200px;
  }
  
  .post-content {
    padding: 1rem;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .post-meta .read-more {
    align-self: stretch;
    text-align: center;
    justify-content: center;
  }
  
  .blog-pagination .page-item .page-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}
/* Blog Single Post Styles */
.blog-single-page .page-title {
  color: white;
  background-color: var(--background-color);
  padding: 80px 0 40px;
}

.blog-single-page .page-title .heading {
  text-align: center;
}

.blog-single-page .page-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  line-height: 1.3;
}

.blog-single-page .page-title p {
  font-size: 1.2rem;
  color: color-mix(in srgb, white, transparent 30%);
  margin-bottom: 0;
}

/* Article Styles */
.article {
  padding-right: 2rem;
}

.featured-image {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.featured-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--default-color), transparent 95%);
}

.article-meta .author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-meta .author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-content {
  display: flex;
  flex-direction: column;
}

.meta-content .name {
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.25rem;
}

.meta-content .date,
.meta-content .read-time {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-share {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-share span {
  font-weight: 500;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.social-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-share a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

.article-content {
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--heading-color);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: var(--heading-color);
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.content-box {
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.content-box h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.content-box h4 i {
  color: var(--accent-color);
}

.info-box {
  display: flex;
  gap: 1rem;
  background: color-mix(in srgb, var(--surface-color), transparent 20%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.info-box i {
  font-size: 1.5rem;
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.strategy-item {
  background: var(--surface-color);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--default-color), transparent 95%);
  transition: all 0.3s ease;
}

.strategy-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--default-color), transparent 90%);
}

.strategy-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 85%), color-mix(in srgb, var(--accent-color), transparent 90%));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.strategy-item:hover .strategy-icon {
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #4facfe 30%));
}

.strategy-icon i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.strategy-item:hover .strategy-icon i {
  color: var(--contrast-color);
}

.strategy-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.strategy-item p {
  font-size: 0.95rem;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

blockquote {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 95%), color-mix(in srgb, var(--accent-color), transparent 98%));
  border-left: 4px solid var(--accent-color);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  font-style: italic;
  position: relative;
}

blockquote p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

blockquote footer {
  font-weight: 600;
  color: var(--accent-color);
}

.article-content ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-content ul li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.article-content ul li:before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.conclusion {
  background: color-mix(in srgb, var(--surface-color), transparent 20%);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.conclusion h3 {
  color: var(--accent-color);
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
}

.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--default-color), transparent 95%);
}

.article-tags span {
  font-weight: 600;
  color: var(--heading-color);
}

.article-tags a {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-tags a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.author-bio {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--surface-color);
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--default-color), transparent 95%);
}

.author-avatar {
  flex-shrink: 0;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.author-info h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.author-info p {
  margin-bottom: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.author-social {
  display: flex;
  gap: 0.75rem;
}

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.author-social a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

.article-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.nav-prev,
.nav-next {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface-color);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--default-color), transparent 95%);
}

.nav-prev {
  text-align: right;
}

.nav-next {
  text-align: left;
}

.nav-prev:hover,
.nav-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--default-color), transparent 90%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
}

.nav-prev i,
.nav-next i {
  font-size: 1.5rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.nav-content span {
  display: block;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0.25rem;
}

.nav-content h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--heading-color);
  line-height: 1.4;
}

/* Sidebar Styles */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--surface-color);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--default-color), transparent 95%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.sidebar-widget h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--heading-color);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.sidebar-widget p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 1.5rem;
}

.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item .post-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.post-item .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-item:hover .post-img img {
  transform: scale(1.1);
}

.post-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.post-info h5 a {
  color: var(--heading-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-info h5 a:hover {
  color: var(--accent-color);
}

.post-info span {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subscribe-form input {
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 8px;
  background: var(--surface-color);
  color: var(--default-color);
  transition: all 0.3s ease;
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 90%);
}

.subscribe-form input::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.subscribe-form .btn {
  padding: 0.75rem 1rem;
}

/* RTL Adjustments */
.arabic-rtl .article {
  padding-right: 0;
  padding-left: 2rem;
}

.arabic-rtl .content-box {
  border-left: none;
  border-right: 4px solid var(--accent-color);
}

.arabic-rtl .info-box {
  flex-direction: row-reverse;
}

.arabic-rtl blockquote {
  border-left: none;
  border-right: 4px solid var(--accent-color);
}

.arabic-rtl .article-content ul li {
  padding-left: 0;
  padding-right: 1.5rem;
}

.arabic-rtl .article-content ul li:before {
  left: auto;
  right: 0;
}

.arabic-rtl .nav-prev {
  text-align: left;
}

.arabic-rtl .nav-next {
  text-align: right;
}

.arabic-rtl .nav-prev i {
  transform: rotate(180deg);
}

.arabic-rtl .nav-next i {
  transform: rotate(180deg);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .blog-single-page .page-title {
    padding: 70px 0 30px;
    margin-top: 80px;
  }
  
  .article {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .blog-single-page .page-title h1 {
    font-size: 2rem;
  }
  
  .blog-single-page .page-title p {
    font-size: 1.1rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .social-share {
    align-self: stretch;
    justify-content: center;
  }
  
  .strategies-grid {
    grid-template-columns: 1fr;
  }
  
  .article-navigation {
    grid-template-columns: 1fr;
  }
  
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .author-social {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .blog-single-page .page-title {
    padding: 60px 0 20px;
  }
  
  .featured-image .image-caption {
    position: relative;
    background: color-mix(in srgb, var(--default-color), transparent 95%);
    color: var(--default-color);
  }
  
  .article-meta .author {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .meta-content {
    align-items: center;
  }
  
  .content-box,
  .info-box {
    padding: 1.25rem;
  }
  
  .sidebar-widget {
    padding: 1.25rem;
  }
  
  .post-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .post-item .post-img {
    align-self: center;
  }
}
/* إحصائيات المدونة */
.stats-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-item:first-child {
    padding-top: 0;
}

.stat-item i {
    font-size: 1.5rem;
    color: #0d6efd;
    margin-left: 1rem;
    width: 40px;
    text-align: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* أحدث المنشورات */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0d6efd;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: #0d6efd;
}

.popular-post-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-item:first-child {
    padding-top: 0;
}

.popular-post-item:hover {
    transform: translateX(-5px);
}

.post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 1rem;
    flex-shrink: 0;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-post-item:hover .post-thumb img {
    transform: scale(1.1);
}

.post-info {
    flex: 1;
}

.post-info h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.post-info h5 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-info h5 a:hover {
    color: #0d6efd;
}

.post-date {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.post-date::before {
    content: '📅';
    margin-left: 0.25rem;
}

/* تأثيرات responsive */
@media (max-width: 768px) {
    .stats-container {
        padding: 1rem;
    }
    
    .stat-item {
        padding: 0.75rem 0;
    }
    
    .stat-item i {
        font-size: 1.25rem;
        margin-left: 0.75rem;
        width: 35px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
    
    .popular-post-item {
        padding: 0.75rem 0;
    }
    
    .post-thumb {
        width: 50px;
        height: 50px;
        margin-left: 0.75rem;
    }
    
    .post-info h5 {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .stat-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }
    
    .stat-item i {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
    
    .popular-post-item {
        flex-direction: column;
        text-align: center;
    }
    
    .post-thumb {
        margin-left: 0;
        margin-bottom: 0.75rem;
        width: 80px;
        height: 80px;
    }
}

/* تأثيرات hover إضافية */
.stats-container:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ألوان متنوعة للإحصائيات */
.stat-item:nth-child(1) i { color: #0d6efd; } /* ملفات - أزرق */
.stat-item:nth-child(2) i { color: #198754; } /* عين - أخضر */
.stat-item:nth-child(3) i { color: #6f42c1; } /* تقويم - بنفسجي */

/* تأثيرات للشريط الجانبي بالكامل */
.author-profile + .sidebar-widget {
    margin-top: 1.5rem;
}

.sidebar-widget + .sidebar-widget {
    margin-top: 1.5rem;
}

/* تحسينات للعناوين */
.widget-title {
    position: relative;
    padding-right: 1rem;
}

.widget-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    border-radius: 2px;
}

/* تأثيرات loading */
.popular-posts:empty::before {
    content: 'جاري التحميل...';
    display: block;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
}

.stats-container:empty::before {
    content: 'جاري تحميل الإحصائيات...';
    display: block;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
}

/* تحسينات للظلال والتدرجات */
.stats-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.sidebar-widget {
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfd 100%);
}

/* تأثيرات للروابط */
.popular-post-item a {
    text-decoration: none;
}

.popular-post-item a:hover h5 {
    color: #0d6efd;
}

/* تحسينات للخطوط */
.stat-number {
    font-family: 'Poppins', sans-serif;
}

.widget-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.post-info h5 {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
}