@charset "UTF-8";
/***!  /templates/wt_trendi_free/css/custom.css  !***/

/* ─── الخط الأساسي للموقع ─── */
body {
  font-family: "Tajawal", "Arial", sans-serif;
  line-height: 1.6;
  color: #111;
}

/* ─── روابط القائمة الفرعية ─── */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner a {
  font-weight: bold !important;
}

/* ─── أزرار عامة ─── */
button, .uk-button, .sppb-btn, a.button,
input[type="submit"], input[type="button"] {
  background-color: #006699;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
button:hover, .uk-button:hover, .sppb-btn:hover,
a.button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background-color: #004466;
  cursor: pointer;
}
button:active, .uk-button:active {
  transform: scale(0.97);
}

/* ─── صور رؤساء التحرير ─── */
.editors-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 10px;
}
.editors-links img {
  max-width: 150px;
  border-radius: 6px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.editors-links img:hover {
  transform: scale(1.05);
}

/* ─── صور المقالات ─── */
.item-page img {
  margin: 10px auto;
  display: block;
  max-width: 100%;
  height: auto;
}

/* ─── عناوين الموديولات المحسّنة ─── */
.moduletable h3,
.uk-card-title,
.sp-module .sp-module-header__title {
  position: relative;
  font-family: "Cairo", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ba2c2c;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: all 0.3s ease-in-out;
}
.moduletable h3:hover,
.uk-card-title:hover,
.sp-module .sp-module-header__title:hover {
  color: #006699;
  transform: scale(1.02);
}
.moduletable h3::after,
.uk-card-title::after,
.sp-module .sp-module-header__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ba2c2c 0%, #006699 100%);
  border-radius: 2px;
}
.moduletable h3::before,
.uk-card-title::before,
.sp-module .sp-module-header__title::before {
  content: "\f02d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 0.5em;
  color: #006699;
}

/* ─── قسم الإعلان ─── */
.module-advert, .ad-section, .announcement, .moduletable-ad {
  direction: rtl;
  font-size: 1.2rem;
  text-align: right;
  padding: 16px;
  border-radius: 6px;
  background-color: #fdfdfd;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

/* ─── الموديولات الجانبية ─── */
aside.module, .sidebar .moduletable,
.sp-module, .uk-panel {
  background: #f9f9f9;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ─── الفوتر ─── */
footer, .sp-footer, .site-footer {
  background-color: #222;
  color: #ccc;
  padding: 30px 15px;
  font-size: 0.9rem;
  text-align: center;
}
footer a, .sp-footer a {
  color: #88c9ff;
  text-decoration: none;
}
footer a:hover, .sp-footer a:hover {
  background-color: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ─── بطاقة "صدر حديثًا" ─── */
.latest-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.book-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  padding: 15px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.book-card:hover {
  transform: translateY(-5px);
}
.book-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}
.book-card h4 {
  font-size: 1.1rem;
  color: #ba2c2c;
  margin-bottom: 10px;
  font-weight: 700;
  font-family: "Cairo", sans-serif;
}
.button-readmore {
  display: inline-block;
  background-color: #ba2c2c;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.button-readmore:hover {
  background-color: #006699;
}

/* ─── الجوال ─── */
@media (max-width: 768px) {
  .main-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  h1, h2 {
    font-size: 1.4rem;
    text-align: center;
  }
  footer {
    font-size: 0.85rem;
  }
  .editors-links img {
    max-width: 100px;
  }
  .ad-section, .module-advert {
    font-size: 1rem;
  }
  .moduletable h3, .uk-card-title,
  .sp-module .sp-module-header__title {
    font-size: 1.2rem;
  }
}

/* ─── تعطيل تنسيقات مخصصة ─── */
.nonz,
.nonz .module,
.nonz .sidebar .moduletable,
.nonz .sp-module,
.nonz .uk-panel {
  background: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
