/* News Section Divider */
.news-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px auto;
  height: 22px;
  width: 100%;
  max-width: 900px;
}
.news-section-divider::before,
.news-section-divider::after {
  content: '';
  display: block;
  height: 4px;
  width: 100%;
  max-width: 320px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1976d2, #64b5f6);
  opacity: 0.18;
}
.news-section-divider::before { margin-right: 16px; }
.news-section-divider::after { margin-left: 16px; }
.news-section-divider .news-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(30,60,120,0.08);
  padding: 2px;
  z-index: 2;
}
@media (max-width: 700px) {
  .news-section-divider::before,
  .news-section-divider::after { max-width: 60px; }
}

/* News Grid & Cards */
.news-section {
  padding: 60px 0 40px 0;
  background: linear-gradient(135deg, #f7faff 60%, #e3e9f7 100%);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 32px 20px;
}
.news-card {
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(30,60,120,0.13), 0 1.5px 8px rgba(25,118,210,0.08);
  border: 1.5px solid #e3e9f7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s, background 0.22s;
  backdrop-filter: blur(2.5px);
}
.news-card:hover {
  box-shadow: 0 12px 36px rgba(25,118,210,0.18), 0 2px 16px rgba(30,60,120,0.10);
  border-color: #1976d2;
  transform: translateY(-5px) scale(1.025);
  background: rgba(255,255,255,0.97);
}
.news-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e3e9f7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: transform 0.22s;
}
.news-card:hover .news-card-img img {
  transform: scale(1.04) rotate(-1deg);
}
.news-card-body {
  padding: 22px 18px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.news-card-date {
  font-size: 0.98rem;
  color: #1976d2;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.85;
}
.news-card-title {
  font-size: 1.13rem;
  font-weight: 800;
  color: #1976d2;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.news-card-summary {
  font-size: 1rem;
  color: #444;
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.7;
}
.news-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 26px;
  border: none;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(90deg, #1976d2 0%, #64b5f6 100%);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(25,118,210,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  margin-top: 8px;
}
.news-card-btn:hover {
  background: linear-gradient(90deg, #1565c0 0%, #1976d2 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(25,118,210,0.13);
}
.news-card-btn::after {
  content: '\f061';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1em;
  margin-left: 6px;
  display: inline-block;
}
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 700px) {
  .news-section { padding: 28px 0 10px 0; }
  .news-grid { grid-template-columns: 1fr; gap: 16px 0; }
  .news-card-img { aspect-ratio: 16/10; }
  .news-card-body { padding: 12px 8px 10px 8px; }
  .news-card { border-radius: 14px; }
  .news-card-img img { border-top-left-radius: 14px; border-top-right-radius: 14px; }
}
html[dir="rtl"] .news-card-body { align-items: flex-end; text-align: right; }

/* News Modal Styles */
.news-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
}
.news-modal.active {
  display: flex;
}
.news-modal .modal-backdrop {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 60, 120, 0.35);
  backdrop-filter: blur(2px);
  z-index: 1;
}
.news-modal .modal-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 12px 48px rgba(30,60,120,0.18);
  max-width: 520px;
  width: 95vw;
  padding: 40px 32px 32px 32px;
  animation: modalFadeIn 0.4s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.news-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1976d2;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s;
}
.news-modal .modal-close:hover {
  color: #0d47a1;
}
.news-modal .modal-body {
  width: 100%;
  margin-top: 10px;
  text-align: left;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.news-modal .modal-body .modal-image {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(30,60,120,0.10);
  background: #e3e9f7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-modal .modal-body .modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.news-modal .modal-body .modal-date {
  font-size: 1rem;
  color: #1976d2;
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 0.85;
  text-align: center;
}
.news-modal .modal-body h2 {
  font-size: 1.5rem;
  color: #1976d2;
  margin-bottom: 10px;
  font-weight: 800;
  text-align: center;
}
.news-modal .modal-body p {
  font-size: 1.08rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 0;
  text-align: center;
}
@media (max-width: 600px) {
  .news-modal .modal-content {
    padding: 16px 4vw 16px 4vw;
    max-width: 98vw;
  }
  .news-modal .modal-body .modal-image {
    max-width: 100%;
    aspect-ratio: 16/10;
  }
  .news-modal .modal-body h2 {
    font-size: 1.1rem;
  }
}
