body {
    font-family: vazir;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #333;
  }

  header {
    text-align: center;
    padding: 60px 20px 0;
    background: inherit;
    border-bottom: 4px solid #3b49a4;
  }
  header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #101b65;
    margin-top: 25px;
  }

  /* کانتینر اخبار */
  .news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 40px 20px;
    max-width: 1300px;
    margin: 0 auto;
  }

  /* کارت خبر */
  .news-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
  }
  .news-card:hover {
    transform: translateY(-6px);
  }

  /* عکس خبر */
  .news-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
  }

  /* متن کارت */
  .news-content {
    padding: 15px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .news-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0;
    color: #1f3c88;
  }
  .news-desc {
    font-size: 15px;
    color: #555;
    line-height: 1;
    margin-bottom: 20px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* دکمه */
  .read-more {
    align-self: flex-start;
    background: linear-gradient(to bottom, #3b49a4, #3443aa);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
  }
  .read-more:hover {
    opacity: 0.85;
  }
  #loading{
    display: flex;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
  }
  .news-date{
    margin-top: 6px;
    font-size: 12px;
  }

  /* ریسپانسیو */
  @media (max-width: 600px) {
    header h1 { font-size: 26px; margin-top: 14px;}
    .news-title { font-size: 16px; }
    .news-desc { font-size: 14px; }
  }
  .news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 40px 20px;
    max-width: 1300px;
    margin: 0 auto;
  }
  
  /* کارت خبر */
  .news-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0px 0px 20px 14px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    width: 100%;         /* مهم: کارت با والد منطبق بشه */
    max-width: 100%;     /* مهم: از صفحه بیرون نزنه */
    cursor: pointer;
  }
  
  /* عکس خبر */
  .news-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
  }
  
  /* ریسپانسیو ویژه برای خیلی موبایل‌های کوچک */
  @media (max-width: 360px) {
    .news-container {
      grid-template-columns: 1fr;   /* همیشه یک ستون */
      gap: 15px;
      padding: 20px 10px;
    }
    .news-title { font-size: 15px; }
    .news-desc { font-size: 13px; }
  }

  @media (max-width: 560px) {
      .news-container{
          padding: 40px 30px;
      }
  }

  #content:not(.p_ad){
      width: 100%;
  }
  