/* ========================================
   تازه‌ترین خبرها
======================================== */

/* کادر اصلی فهرست */
ul.my-news-grid {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: #202d44 !important;
    border: 1px solid #3a4963 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: block !important;
}

/* هر خبر */
ul.my-news-grid li {
    background-color: #202d44 !important;
    border-bottom: 1px solid #3a4963 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style-type: none !important;
    transition: background-color 0.25s ease-in-out !important;
}

/* حذف خط آخرین خبر */
ul.my-news-grid li:last-child {
    border-bottom: none !important;
}

/* عنوان خبر */
ul.my-news-grid li a {
    display: block !important;
    padding: 5px 6px !important;
    color: #f1f5f9 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: color 0.25s ease-in-out !important;
}

/* تاریخ خبر */
ul.my-news-grid li time {
    display: block !important;
    padding: 2px 6px 4px !important;
    color: #b8c1cc !important;
    font-size: 10px !important;
    transition: color 0.25s ease-in-out !important;
}

/* هاور خبر */
ul.my-news-grid li:hover {
    background-color: #263754 !important;
}

ul.my-news-grid li:hover a {
    color: #ffc600 !important;
    text-decoration: none !important;
}

ul.my-news-grid li:hover time {
    color: #f1f5f9 !important;
}


/* ========================================
   پربیننده‌ترین خبرها
======================================== */

/* کادر اصلی فهرست */
.my-top-posts .jetpack-top-posts-wrapper {
    background-color: #202d44 !important;
    border: 1px solid #3a4963 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* هر خبر */
.my-top-posts .jetpack-top-posts-item {
    background-color: #202d44 !important;
    border-bottom: 1px solid #3a4963 !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: background-color 0.25s ease-in-out !important;
}

/* حذف خط آخرین خبر */
.my-top-posts .jetpack-top-posts-item:last-child {
    border-bottom: none !important;
}

/* بخش عنوان */
.my-top-posts .jetpack-top-posts-title {
    display: block !important;
    padding: 5px 6px !important;
}

/* لینک عنوان */
.my-top-posts .jetpack-top-posts-title a {
    display: block !important;
    color: #f1f5f9 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    font-weight: bold !important;
    transition: color 0.25s ease-in-out !important;
}

/* تاریخ */
.my-top-posts .jetpack-top-posts-date {
    display: block !important;
    padding: 2px 6px 4px !important;
    color: #b8c1cc !important;
    font-size: 10px !important;
    transition: color 0.25s ease-in-out !important;
}

/* هاور خبر */
.my-top-posts .jetpack-top-posts-item:hover {
    background-color: #263754 !important;
}

.my-top-posts .jetpack-top-posts-item:hover .jetpack-top-posts-title a {
    color: #ffc600 !important;
}

.my-top-posts .jetpack-top-posts-item:hover .jetpack-top-posts-date {
    color: #f1f5f9 !important;
}

/* ========================================
   تیتر بخش‌های صفحه اصلی
======================================== */

.home-titles a{
	text-decoration: none !important;
}

.yellow-titles {
background-color: #ffc600 !important;
}

.yellow-titles a {
    color: #1b263b !important;
}
.yellow-titles:hover {
background-color: #8B1A1A !important;
transition: background-color 0.3s ease;
}
.yellow-titles:hover a {
color: #FFFFFF !important;
}

.red-titles {
    background-color: #e10000 !important;
}

.red-titles a {
    color: #ffffff !important;
}

.red-titles:hover {
    background-color: #ffc600 !important;
    transition: background-color 0.3s ease;
}

.red-titles:hover a {
    color: #1b263b !important;
}

.wp-block-social-links.has-small-icon-size {
    font-size: 18px !important;
}

.single-post .entry-content a {
    color: #ffc600 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}
.single-post .entry-content a:hover {
  color: #ffffff !important;
}

@media (max-width: 781px) {
    .mobile-image-first {
        flex-direction: column-reverse;
    }
}

@media (max-width: 781px) {
    .video-post-content .wp-block-columns {
        flex-direction: column-reverse;
    }
}

/* ========================================
   Kermanshah Voice — Post Cards
   CSS class: kv-cards
======================================== */


/* ========================================
   Post Cards
======================================== */

.wp-block-query.kv-cards .wp-block-post {
  background-color: #202d44;
  border: 1px solid #3a4963;
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 10px;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.wp-block-query.kv-cards .wp-block-post:hover {
  background-color: #263754;
  border-color: #ffc600;
  transform: translateY(-2px);
}


/* ========================================
   Post Titles
======================================== */

.wp-block-query.kv-cards .wp-block-post-title a {
  color: #f1f5f9 !important;
  text-decoration: none !important;
  transition: color 0.25s ease;
}

.wp-block-query.kv-cards
  .wp-block-post:hover
  .wp-block-post-title a {
  color: #ffc600 !important;
}


/* ========================================
   Post Dates
======================================== */

.wp-block-query.kv-cards .wp-block-post-date a,
.wp-block-query.kv-cards .wp-block-post-date time {
  color: #b8c1cc !important;
  transition: color 0.25s ease;
}

.wp-block-query.kv-cards
  .wp-block-post:hover
  .wp-block-post-date a,
.wp-block-query.kv-cards
  .wp-block-post:hover
  .wp-block-post-date time {
  color: #f1f5f9 !important;
}


/* ========================================
   Featured Images
======================================== */

.wp-block-query.kv-cards .wp-block-post-featured-image {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}


/* ========================================
   Post Excerpts
======================================== */

.wp-block-query.kv-cards
  .wp-block-post-excerpt__excerpt {
  color: #b8c1cc !important;
  transition: color 0.25s ease;
}

.wp-block-query.kv-cards
  .wp-block-post:hover
  .wp-block-post-excerpt__excerpt {
  color: #f1f5f9 !important;
}


/* ========================================
   Author Name
======================================== */

.wp-block-query.kv-cards
  .wp-block-post-author-name {
  color: #b8c1cc !important;
  transition: color 0.25s ease;
}

.wp-block-query.kv-cards
  .wp-block-post:hover
  .wp-block-post-author-name {
  color: #ffc600 !important;
}


/* ========================================
   Pagination Container
======================================== */

.wp-block-query.kv-cards
  .wp-block-query-pagination {
  gap: 8px !important;
  margin-top: 20px !important;
  font-family: "Vazirmatn", sans-serif;
}


/* ========================================
   Previous and Next Buttons
======================================== */

.wp-block-query.kv-cards
  .wp-block-query-pagination-previous,
.wp-block-query.kv-cards
  .wp-block-query-pagination-next {
  background-color: #202d44 !important;
  color: #f1f5f9 !important;
  border: 1px solid #3a4963 !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease !important;
}

.wp-block-query.kv-cards
  .wp-block-query-pagination-previous:hover,
.wp-block-query.kv-cards
  .wp-block-query-pagination-next:hover {
  background-color: #263754 !important;
  color: #ffc600 !important;
  border-color: #ffc600 !important;
}


/* ========================================
   Pagination Numbers
======================================== */

.wp-block-query.kv-cards
  .wp-block-query-pagination-numbers {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
}

.wp-block-query.kv-cards
  .wp-block-query-pagination-numbers
  .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;

  background-color: #202d44 !important;
  color: #f1f5f9 !important;
  border: 1px solid #3a4963 !important;
  border-radius: 8px !important;

  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease !important;
}


/* Pagination Number Hover */

.wp-block-query.kv-cards
  .wp-block-query-pagination-numbers
  .page-numbers:hover {
  background-color: #263754 !important;
  color: #ffc600 !important;
  border-color: #ffc600 !important;
}


/* Current Page */

.wp-block-query.kv-cards
  .wp-block-query-pagination-numbers
  .page-numbers.current {
  background-color: #ffc600 !important;
  color: #1b263b !important;
  border-color: #ffc600 !important;
}


/* Pagination Dots */

.wp-block-query.kv-cards
  .wp-block-query-pagination-numbers
  .page-numbers.dots {
  width: auto !important;
  background-color: transparent !important;
  color: #b8c1cc !important;
  border: none !important;
}


/* ========================================
   Keyboard Focus
======================================== */

.wp-block-query.kv-cards a:focus-visible {
  outline: 2px solid #ffc600 !important;
  outline-offset: 3px !important;
}