.blog-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  direction: rtl;
  font-family: "Tahoma", sans-serif;
}

.blog-main-title {
  text-align: center;
  color: #264d80;
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: 600;
}

.blog-filter-bar {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}

.hashtags-container {
  display: flex;
  align-items: center;
  background-color: #eee;
  padding: 8px 15px;
  border-radius: 8px;
  gap: 10px;
}

.hashtag-label {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

.hashtag-list a {
  text-decoration: none;
  font-size: 13px;
  color: #4da3c4;
  margin-right: 8px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 20px;
}

.blog-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.blog-item img {
  width: 100%;
  height: 100%;
  position: relative;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-item:hover img {
  transform: scale(1.05);
}

.item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #264d80;
  color: white;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  font-weight: bold;
  margin: 0;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.best-weblogs {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}
.best-weblog {
  width: 40%;
}
.blog-item:hover .item-title {
  opacity: 0;
}
.best-weblog img {
  height: 450px;
}
.services-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
  font-family: "Tahoma", sans-serif;
  direction: rtl;
}

.service-card {
  display: flex;
  flex-direction: row-reverse;
  background-color: #e7e9e8;
  border-radius: 12px;
  overflow: hidden;
  padding: 10px 40px;
  margin-left: 50px;
  margin-right: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-content h3 {
  font-size: 1.4rem;
  color: #444444;
  margin-top: 0;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 1rem;
  color: #3d3d3d;
  line-height: 1.6;
  text-align: justify;
}

.card-image {
  flex: 1;
  height: 250px;
  width: 100px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  border-radius: 8px;
}

.service-card:hover .card-image img {
  transform: scale(1.05);
}
@media (max-width: 500px) {
  .best-weblogs {
    display: flex;
    flex-direction: column;
  }
  .best-weblog {
    width: 100%;
    margin-bottom: 30px;
  }
  .service-card {
    display: flex;
    flex-direction: column-reverse;
    padding: 20px 30px;
    position: relative;
  }
  .card-image {
    height: 400px;
    width: 350px;
  }
  .hashtag-list {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
  }
  .search-box {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .best-weblogs {
    display: flex;
    flex-direction: column;
  }
  .best-weblog {
    width: 100%;
    margin-bottom: 30px;
  }
  .card-content h3 {
    font-size: 20px;
  }
}
