@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;700&display=swap');

body {
  background-image: url("bg.png");
  background-size: no-repeat;
  background-repeat: repeat-x;
  background-color: #0b4351;
  font-family: 'Heebo', Arial, sans-serif;
  margin: 0;
  padding: 0;
  direction: rtl;
}

.container {
  max-width: 700px;
  margin: 40px auto;
  padding: 24px;
  background: #fff0;
  border-radius: 16px;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #eeeeee;
  text-align: right;
  letter-spacing: 1px;
  animation: fadeInDown 1s;
}

.subtitle {
  font-size: 1.1rem;
  color: #d1d1d1;
  margin-bottom: 32px;
  text-align: right;
  animation: fadeInDown 1.2s;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 #0001;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
  min-height: 120px;
  animation: fadeInUp 0.8s;
  cursor: pointer;
  position: relative;
}

.article-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 32px 0 #0002;
}

.article-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 0 14px 14px 0;
  flex-shrink: 0;
  background: #eee;
  transition: filter 0.3s;
}

.article-content {
  padding: 18px 24px 18px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a237e;
  margin: 0 0 8px 0;
  transition: color 0.2s;
}

.article-card:hover .article-title {
  color: #3949ab;
}

.article-desc {
  font-size: 1rem;
  color: #444;
  margin: 0;
}

@media (max-width: 600px) {
  .container {
    padding: 8px;
  }
  .article-card {
    flex-direction: column;
    align-items: flex-start;
    min-height: unset;
  }
  .article-img {
    width: 100%;
    height: 180px;
    border-radius: 14px 14px 0 0;
  }
  .article-content {
    padding: 16px;
  }
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px);}
  to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

.back-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px 0;
  text-decoration: none;
}

.back-btn img {
  max-width: 22vw;
  max-height: 22vw;
  transition: 0.2s;
  cursor: pointer;
}

.back-btn:hover img {
  content: url('back_hover.png');
}

@media (max-width: 600px) {
  .back-btn img {
    max-width: 18vw;
    max-height: 18vw;
  }
}