:root{
  --bg: #ffffff;
  --title: #111111;
  --muted: #6f6f6f;

  --container-max: 1180px;
  --radius: 18px;

  --pad-top: 56px;
  --pad-bottom: 60px;

  --divider: rgba(0,0,0,0.12);
}

/* ===== SECTION ===== */
.events{
  background: var(--bg);
}

.events-container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--pad-top) 24px var(--pad-bottom);
}

/* Title */
.events-title{
  margin: 0 0 38px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 40px !important;
  line-height: 1.05;
}

/* Card */
.event-card{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.event-card__title{
  margin: 0 0 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 24px;
  line-height: 1.15;
}

.event-card__text{
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.event-card__media{
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.event-card__media img{
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* Divider on columns */
.event-col{
  position: relative;
  padding-right: 28px;
}

.event-col::after{
  content:"";
  position:absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: var(--divider);
}

/* ============ MOBILE (<=575) ============ */
@media (max-width: 575.98px){
  .events-container{
    padding: 44px 24px 56px;
    max-width: 520px;
  }

  .events-title{
    font-size: 28px !important;
    margin-bottom: 28px;
  }

  .event-card__title{
    font-size: 28px;
    margin-bottom: 14px;
  }

  .event-card__text{
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 22px;
  }

  .event-card__media img{
    height: 150px;
  }

  .event-col{
    padding-right: 0;
  }
  .event-col::after{
    display: none;
  }
}

/* ============ MOBILE LARGE (576–743) → 1 ستون ============ */
@media (min-width: 576px) and (max-width: 743.98px){
  .events-row > [class*="col-"]{
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .event-col{
    padding-right: 0;
  }
  .event-col::after{
    display: none;
  }
}

/* ============ TABLET (744–1199) → 2 ستون ============ */
@media (min-width: 744px) and (max-width: 1199.98px){
  .events-container{
    padding: 60px 34px 70px;
    max-width: 980px;
  }

  .events-title{
    font-size: 32px !important;
    margin-bottom: 40px;
  }

  .event-card__title{
    font-size: 34px;
  }

  .event-card__text{
    font-size: 18px;
    line-height: 1.9;
  }

  .event-card__media img{
    height: 140px;
  }

  /* ستون‌های سمت راست بدون Divider */
  .event-col:nth-child(2n)::after{
    display: none;
  }
}

/* ============ DESKTOP (>=1200) → 4 ستون ============ */
@media (min-width: 1200px){
  .event-col:nth-child(4n)::after{
    display: none;
  }
}
.event-card__media{ margin-top: auto; }
/* عکس همیشه پایین ستون */
.event-col{
  display: flex;          /* ستون را flex کن */
}

.event-card{
  height: 100%;           /* کارت قد ستون را بگیرد */
}

.event-card__media{
  margin-top: auto;       /* عکس به پایین هل داده شود */
}
