
.home-news-section {
  padding: 4.5rem 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  position: relative;
  overflow: hidden;
}
.home-news-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* Section Header */
.home-news-header {
  text-align: center;
  margin-bottom: 3.25rem;
}
.home-news-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}
.news-eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background-color: #0284C7;
  border-radius: 1px;
}
.news-eyebrow-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0284C7;
  text-transform: uppercase;
}
.home-news-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

/* 2x2 Grid (Rebon Alternating Layout) */
.home-news-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 26px;
  column-gap: 24px;
}
.news-card {
  width: calc(50% - 12px);
  display: flex;
  align-items: stretch;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -4px rgba(2, 132, 199, 0.12);
  border-color: #BAE6FD;
}

/* Rebon signature alternating layout: 3rd and 4th cards reversed */
@media (min-width: 901px) {
  .news-card:nth-of-type(n+3) {
    flex-direction: row-reverse;
  }
}

/* Image & Date Badge */
.news-card-img-wrap {
  width: 50%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 250px;
  background-color: #E2E8F0;
}
.news-img-link {
  display: block;
  width: 100%;
  height: 100%;
}
.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-card:hover .news-card-img {
  transform: scale(1.06);
}

.news-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: #FFFFFF;
  padding: 6px 14px;
  text-align: center;
  border-bottom: 2px solid #0284C7;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  pointer-events: none;
}
.news-date-day {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
  display: block;
  margin-bottom: 3px;
  transition: color 0.3s ease;
}
.news-date-month {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  line-height: 1;
  display: block;
  transition: color 0.3s ease;
}
.news-card:hover .news-date-badge {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border-bottom-color: #0369A1;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.28);
}
.news-card:hover .news-date-day,
.news-card:hover .news-date-month {
  color: #FFFFFF;
}

/* Card Content */
.news-card-content {
  width: 50%;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background-color: #FFFFFF;
}
.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.42;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-title a {
  color: #0F172A;
  text-decoration: none;
  transition: color 0.25s ease;
}
.news-card:hover .news-card-title a {
  color: #0284C7;
}
.news-card-desc {
  font-size: 0.86rem;
  line-height: 1.62;
  color: #64748B;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0284C7;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.news-card-more:hover {
  color: #0369A1;
}
.news-more-arrow {
  font-size: 0.95rem;
  transition: transform 0.25s ease;
  display: inline-block;
}
.news-card:hover .news-more-arrow {
  transform: translateX(4px);
}

/* Responsive & Mobile Defensive Layout */
@media (max-width: 900px) {
  .home-news-section {
    padding: 3.5rem 0;
  }
  .home-news-header {
    margin-bottom: 2.25rem;
  }
  .home-news-title {
    font-size: 1.75rem;
  }
  .home-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .news-card {
    width: 100%;
    flex-direction: column !important;
  }
  .news-card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: unset;
  }
  .news-card-content {
    width: 100%;
    padding: 20px 18px;
  }
  .news-card-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .news-card-desc {
    margin-bottom: 14px;
  }
}
@media (max-width: 640px) {
  .home-news-section {
    padding: 2.75rem 0;
  }
  .home-news-container {
    padding: 0 1.15rem;
  }
  .home-news-title {
    font-size: 1.45rem;
  }
}

/* Arabic RTL Support */
[dir="rtl"] .home-news-section {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .news-date-badge {
  left: auto;
  right: 14px;
}
[dir="rtl"] .home-news-header {
  text-align: center;
}
[dir="rtl"] .news-more-arrow {
  transform: scaleX(-1);
}
[dir="rtl"] .news-card:hover .news-more-arrow {
  transform: scaleX(-1) translateX(4px);
}
