/* =====================================================
   Generic Card
   ===================================================== */
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* =====================================================
   Hero Section
   ===================================================== 
.moit-hero {
  background-image: url('../images/placeholder-hero.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.moit-hero .hero-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 24px;
}

.moit-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.moit-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

*/

/* =====================================================
   Electronic Services Section
   ===================================================== */
.services-section {
  padding: 56px 0;
}

.services-section h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: url('../images/icon-service.svg') center / contain no-repeat;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.service-card p {
  font-size: 0.9rem;
  color: #555;
}

/* =====================================================
   Economic Sectors Section
   ===================================================== */
.sectors-section {
  padding: 56px 0;
  background: var(--light);
}

.sector-card {
  text-align: right;
}

.sector-card span {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 6px;
}

/* =====================================================
   Top Bar
   ===================================================== */
.top-bar {
  background: #f5f7fa;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =====================================================
   Institutional Footer
   ===================================================== 
.site-footer {
  background: var(--primary);
  color: #ffffff;
  padding: 48px 0 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #ffffff;
}
*/

/* =====================================================
   EU NEWS SECTION – FINAL (WITH ZOOM + FEATURED)
   ===================================================== */

.eu-news-section {
  background: #f4f9f8;
  padding: 32px 0 48px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.eu-news-section > * {
  max-width: 1280px;
  margin: auto;
  padding: 0 24px;
}

/* Header */
.eu-section-header {
  margin-bottom: 20px;
}

.eu-section-title {
  margin: 0 0 4px;
  font-size: 1.8rem;
}

.eu-section-desc {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

/* Grid */
.eu-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Card */
.eu-news-card {
  background: #ffffff;
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  overflow: hidden;
}

/* Featured */
.eu-news-card.is-featured {
  grid-column: span 2;
}

/* Image */
.eu-news-image {
  margin: 0;
  overflow: hidden;
}

.eu-news-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Zoom on hover */
.eu-news-card:hover .eu-news-image img {
  transform: scale(1.05);
}

/* Content */
.eu-news-content {
  padding: 14px 18px 18px;
  text-align: right;
}

/* Meta */
.eu-news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 6px;
}

.eu-news-type {
  font-weight: 600;
  color: #0b3c5d;
}

.eu-news-separator {
  color: #999;
}

.eu-news-date {
  color: #666;
}

/* Title */
.eu-news-title {
  margin: 8px 0 6px;
  font-size: 1.05rem;
}

.eu-news-title a {
  color: #0b3c5d;
  text-decoration: none;
}

.eu-news-title a:hover {
  text-decoration: underline;
}

/* Summary */
.eu-news-summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

/* Read time */
.eu-news-readtime {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #777;
}

/* Footer */
.eu-news-footer {
  margin-top: 32px;
  text-align: right;
}

.eu-news-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b3c5d;
  text-decoration: none;
}

.eu-news-more:hover {
  text-decoration: underline;
}

.eu-news-more .arrow {
  transition: transform 0.2s ease;
}

.eu-news-more:hover .arrow {
  transform: translateX(-4px);
}

/* Mobile */
@media (max-width: 768px) {
  .eu-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .eu-news-card.is-featured {
    grid-column: span 1;
  }

  .eu-news-image img {
    height: 180px;
  }

  .eu-news-content {
    padding: 14px 16px 18px;
  }
}

@media (max-width: 1200px) {
  .eu-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .eu-news-grid {
    grid-template-columns: 1fr;
  }
}

.eu-news-icon {
  margin-inline-start: 2px;
  margin-inline-end: 4px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.eu-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #555;
}


/* ===============================
   News type colors (by label)
   =============================== */

/* الشكل العام */
.eu-news-meta-type {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: #eef3f8;
  color: #0b3c5d;
  white-space: nowrap;
}

/* بيان صحفي */
.eu-news-meta-type:contains("بيان") {
  background: #fff3cd;
  color: #856404;
}

/* خبر */
.eu-news-meta-type:contains("خبر") {
  background: #e7f1ff;
  color: #084298;
}

/* فعالية */
.eu-news-meta-type:contains("فعالية") {
  background: #e6f4ea;
  color: #1e7e34;
}




/* =====================================
   EU News – Final Clean CSS (News Page)
   ===================================== */

/* الكرت */
.eu-news-row.eu-news-page {
  display: flex;
  gap: 28px;
  padding: 10px 0;              /* ⬅ تقليل المسافة العمودية */
  border-bottom: 1px solid #e5e7eb;
  align-items: flex-start;
}

/* الصورة */
.eu-news-page .eu-news-image {
  flex: 0 0 220px;
  overflow: hidden;
  border-radius: 8px;
}

.eu-news-page .eu-news-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* Zoom – Desktop only */
@media (min-width: 769px) {
  .eu-news-row:hover .eu-news-image img {
    transform: scale(1.06);
  }
}

/* المحتوى */
.eu-news-page .eu-news-content {
  flex: 1;
  padding: 0px 0px 0px;
  text-align: right;
}

/* النوع + التاريخ */
.eu-news-page .eu-news-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 4px;           /* ⬅ تقليل الفراغ */
}

.eu-news-page .eu-news-type {
  font-weight: 600;
  color: #0b3c5d;
}

.eu-news-page .eu-news-separator {
  margin: 0 6px;
  color: #aaa;
}

.eu-news-page .eu-news-date {
  white-space: nowrap;
}

/* العنوان */
.eu-news-page .eu-news-title {
  margin: 4px 0 6px;            /* ⬅ تقليل الفراغ */
}

.eu-news-page .eu-news-title a {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b3c5d;
  text-decoration: none;
}

.eu-news-row:hover .eu-news-title a {
  color: #005ea5;
}

/* الملخص */
.eu-news-page .eu-news-summary {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #333;
  max-width: 680px;
}

/* =====================================
   Mobile – Clean UX
   ===================================== */
@media (max-width: 768px) {

  .eu-news-row.eu-news-page {
    flex-direction: column;
    gap: 10px;                  /* ⬅ تقليل الفراغ */
    padding: 12px 0;
  }

  /* الصورة في المنتصف وبعرض كامل */
  .eu-news-page .eu-news-image {
    width: 100%;
    margin: 0 auto;
  }

  .eu-news-page .eu-news-image img {
    width: 100%;
    height: auto;
    max-height: 240px;
    border-radius: 10px;
    transform: none;
  }

  /* النص */
  .eu-news-page .eu-news-content {
    padding-top: 4px;
  }

  .eu-news-page .eu-news-meta {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  .eu-news-page .eu-news-title a {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .eu-news-page .eu-news-summary {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

.eu-news-row {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eu-news-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.eu-news-image img {
  transition: transform 0.4s ease;
}

.eu-news-row:hover .eu-news-image img {
  transform: scale(1.07);
}

.eu-news-title a {
  transition: color 0.25s ease;
}

.eu-news-row:hover .eu-news-title a {
  color: var(--news-accent);
}


/* ===============================
   Mobile – Latest News Fix
   =============================== */
@media (max-width: 768px) {

  .news-page-main .views-row:first-child .eu-news-row {
    padding: 16px;
    border-right: none;
    border-top: 4px solid #005ea5;
  }

}

