/* --- Ümumi Kateqoriya Səhifəsi Layout --- */
.category-wrapper {
  display: flex;
  flex-direction: row;
  gap: 40px;
  max-width: 1240px;
  margin: 40px auto;
  padding: 0 20px;
}

.category-main {
  flex: 1 1 70%;
}

.category-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #1c1e21;
}

.category-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}

/* --- Yazı Siyahısı --- */
.category-posts {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.category-post {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  transition: transform 0.2s ease;
}

.category-post:hover {
  transform: scale(1.01);
}

.category-post img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.category-post-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-post-info h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #111;
}

.category-post-info p {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 10px;
}

.category-date {
  font-size: 13px;
  color: #999;
}

/* --- Sidebar --- */
.sidebar {
  flex: 1 1 30%;
}

.sidebar .widget {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 20px;
  margin-bottom: 30px;
}

.sidebar .widget h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #e60000;
  padding-bottom: 6px;
}

.sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .widget ul li {
  margin-bottom: 10px;
  font-size: 15px;
}

.sidebar .widget ul li a {
  color: #333;
  text-decoration: none;
}

.sidebar .widget ul li a:hover {
  color: #e60000;
  text-decoration: underline;
}

/* --- Mobil Versiya --- */
@media (max-width: 992px) {
  .category-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .category-post {
    flex-direction: column;
  }

  .category-post img {
    width: 100%;
    height: auto;
  }


.pagination {
  margin-top: 30px;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: 0.2s ease;
}

.pagination a:hover {
  background-color: #e60000;
  color: #fff;
  border-color: #e60000;
}

.pagination .current {
  background-color: #e60000;
  color: #fff;
  border-color: #e60000;
}

