/* ===== GLOBAL RTL ===== */
body {
  direction: rtl;
  text-align: right;
  background: #eef3f4;
  font-family: "Tajawal", Arial, sans-serif;
}

/* ===== SECTION WRAPPER ===== */
.rss-section {
  background: #ffffff; /* changed to white */
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.27);
}

/* ===== SECTION TITLE ===== */
.rss-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 5px 10px;
  color: #fff;
  display: inline-block;
  border-radius: 5px;
}

/* Ensure the link inside RSS title is always white */
.rss-title a {
  color: #fff;          /* text stays white */
  text-decoration: none; /* optional, remove underline */
  transition: color 0.2s;
}

/* Different colors like RimNow */
.rss-title.red { background: #d32f2f; }
.rss-title.green { background: #2e7d32; }
.rss-title.blue { background: #1565c0; }
.rss-title.orange { background: #ef6c00; }
.rss-title.purple { background: #6a1b9a; }
.rss-title.Aqua { background: #009890; }
.rss-title.yellow { background: #f9a825; color:#000; }
.rss-title.dark { background: #263238; }
.rss-title.teal { background: #2f6073; }

/* ===== RSS TITLE HOVER ===== */
.rss-title:hover {
  background: #8b0000;  /* dark red */
}

/* ===== TABLE STYLE ===== */
.custom-rss-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-rss-table tr {
  border-bottom: 1px solid #e0e0e0;
}

.custom-rss-table td {
  padding: 8px 10px;
}

/* ===== LINKS (NEWS ITEMS) ===== */
.custom-rss-table a {
  text-decoration: none;
  color: #0d47a1; /* blue text */
  font-size: 14px;
  display: block;
  transition: color 0.2s, padding-right 0.2s;
}

.custom-rss-table a:hover {
  color: #d32f2f; /* red on hover */
  padding-right: 5px;
}

/* ===== GRID LAYOUT (2 columns like RimNow) ===== */
.rss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .rss-grid {
    grid-template-columns: 1fr;
  }
}

/* Page background */
body {
  background: #d9e6e6; /* similar to your light blue */
}

/* White card container */
.section-card {
  background: #fff;
  padding: 25px;
  margin: 25px auto;
  border-radius: 10px;
  max-width: 1200px;
  
  /* subtle shadow for separation */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Title style */
.section-card h2 {
  color: red;
  border-right: 5px solid red;
  padding-right: 10px;
  margin-bottom: 20px;
}

/* Grid (same as before) */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

/* Buttons */
.links-grid a {
  display: block;
  text-align: center;
  padding: 12px;
  background: #f3f3f3;
  border-radius: 8px;
  text-decoration: none;
  color: #004080;
  font-weight: bold;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.links-grid a:hover {
  background: #e6e6e6;
}

/* Footer menu active page highlight */
#nv-primary-navigation-main a {
  padding: 3px 7px;
  border-radius: 3px;
  transition: all 0.2s;
}

#nv-primary-navigation-main a:hover {
  color: #d77735 !important;
  font-weight: bold;
}