
/*
 * COMMON.CSS
 * مشترك بين النسخة العربية والإنجليزية – ما فيه شي خاص بلغة معيّنة
 */

/* Reset & Box Sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body and General Styling */
body {
  background-color: #f9f9f9;
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 2.2;
}

/* اتجاه عام حسب اللغة */
body.lang-ar {
    direction: rtl;
    text-align: right;
}

body.lang-en {
    direction: ltr;
    text-align: left;
}
 
/* مثال لعكس ترتيب الهيدر بين عربي وإنجليزي */
body.lang-ar #theme-header,
body.lang-ar #eng-theme-header {
    direction: rtl;
}

body.lang-en #theme-header,
body.lang-en #eng-theme-header {
    direction: ltr;
}


/* Admin Bar Fix – مشترك */
#wpadminbar {
  z-index: 99999 !important;
  position: fixed !important;
  top: 0;
  width: 100%;
}

html {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

@media screen and (max-width: 782px) {
  html {
    margin-top: 0 !important;
  }

  body.admin-bar #theme-header,
  body.admin-bar #eng-theme-header {
    margin-top: 46px !important;
  }
}

@media screen and (min-width: 783px) {
  body.admin-bar #theme-header,
  body.admin-bar #eng-theme-header {
    margin-top: 32px !important;
  }
}

/* Small vertical break */
.small-break {
  display: block;
  height: 15px;
}

/* Desktop header container (عربي + إنجليزي) */
@media screen and (min-width: 783px) {
  .header-container-mobile,
  .eng-header-container-mobile {
    display: none !important;
  }

  .header-container-desktop,
  .eng-header-container-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 250px;
    gap: 15px;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
  }

  .left-icons {
    order: 1;
  }

  .logo-wrapper {
    order: 2;
    flex-shrink: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .right-icons {
    order: 3;
  }

  .logo-wrapper img {
    max-height: 100px;
    width: auto;
  }

  .social-icons a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .social-icons a:hover {
    color: #ffcc00;
  }
}

/* Mobile header container (عربي + إنجليزي) */
@media screen and (max-width: 768px) {
  .header-container-desktop,
  .eng-header-container-desktop {
    display: none !important;
  }

  .header-container-mobile,
  .eng-header-container-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo-wrapper img {
    max-height: 100px;
    width: auto;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .social-icons a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .social-icons a:hover {
    color: #ffcc00;
  }
}

/* ====== HEADER MENUS (مشتركة: عربي + إنجليزي) ====== */

/* Main menu container */
#header-menu,
#eng-header-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: transparent;
  padding: 10px 0;
  list-style: none;
  margin: 0;
}

#header-menu li,
#eng-header-menu li {
  position: relative;
  margin: 0;
}

/* Link styles */
#header-menu a,
#eng-header-menu a {
  text-decoration: none;
  color: white;
  font-family: 'Cairo', sans-serif;
  font-weight: 700 !important;
  font-size: 16px;
  padding: 10px 20px;
  display: inline-block;
  transition: color 0.3s ease;
  text-align: center;
}

#header-menu a:hover,
#eng-header-menu a:hover {
  color: black;
}

/* Submenu */
#header-menu ul,
#eng-header-menu ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #e8230d;
  padding: 10px 0;
  display: none;
  list-style: none;
  margin: 0;
  z-index: 1000;
  width: 200px;
  text-align: center;
}

/* Submenu link styles */
#header-menu ul a,
#eng-header-menu ul a {
  padding: 10px;
  color: white;
  font-size: 14px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#header-menu ul a:hover,
#eng-header-menu ul a:hover {
  background-color: black;
  color: white;
}

/* Arrow indicator for items with submenu */
#header-menu .menu-item-has-children > a::after,
#eng-header-menu .menu-item-has-children > a::after {
  content: " ▼";
  font-size: 18px;
  margin-left: 5px;
  cursor: pointer;
}

/* Desktop behaviour */
@media (min-width: 769px) {
  #header-menu,
  #eng-header-menu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-menu-toggle {
    display: none;
  }

  #header-menu li:hover > ul,
  #eng-header-menu li:hover > ul {
    display: block;
  }

  #header-menu ul,
  #eng-header-menu ul {
    transition: all 0.3s ease;
  }
}

/* Mobile menu behaviour */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    background-color: transparent;
    display: block;
    color: white;
    border: none;
    padding: 10px;
    font-size: 38px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
  }

  .mobile-menu-toggle:focus {
    outline: none;
  }

  #header-menu,
  #eng-header-menu {
    display: none;
    flex-direction: column;
    background-color: #e8230d;
    width: 100%;
    gap: 2px;
  }

  #header-menu.active,
  #eng-header-menu.active {
    display: flex;
  }

  #header-menu li,
  #eng-header-menu li {
    width: 100%;
  }

  #header-menu ul,
  #eng-header-menu ul {
    position: static;
    width: 100%;
    background-color: black;
    display: none;
  }

  #header-menu li.menu-item-has-children.open > ul,
  #eng-header-menu li.menu-item-has-children.open > ul {
    display: block;
  }

  #header-menu a,
  #eng-header-menu a {
    padding: 5px 5px;
    width: 100%;
    font-size: 17px;
  }

  #header-menu ul a,
  #eng-header-menu ul a {
    font-size: 15px;
  }
}

/* Social icons container (مشترك) */
.social-icons-container {
  position: relative;
  z-index: 100000;
}

.social-icons-container.mobile-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

@media (max-width: 768px) {
  .social-icons-container {
    display: flex !important;
  }
}

/* ====== FOOTER مشترك للعربي والإنجليزي ====== */

footer {

  padding: 20px 0;
  line-height: 20px;
  text-align: center;
  font-size: 13px;
  margin-top: 4px;
  color: white;
}

/* Footer main content container */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: column;
  text-align: center;
}

/* Footer bottom text */
.footer-bottom {
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
}

/* Footer menu (عربي + إنجليزي) */
.footer-nav,
.eng-footer-nav {
  text-align: center;
  margin: 20px 0;
}

.footer-nav-list,
.eng-footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li,
.eng-footer-nav-list li {
  display: inline-block;
  margin: 0 10px;
}

.footer-nav-list li a,
.eng-footer-nav-list li a {
  color: white !important;
  text-decoration: none !important;
  font-weight: 500;
}

.footer-nav-list li a:hover,
.eng-footer-nav-list li a:hover {
  text-decoration: none !important;
  opacity: 0.8;
}

/* Move to top button */
.move-to-top {
  position: fixed;
  bottom: 50px;
  left: 10px;
  background-color: #e8230d;
  color: white;
  border: none;
  padding: 12px;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  display: none;
  text-align: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  direction: rtl !important;
}

.move-to-top:hover {
  background-color: #000000;
}

.move-to-top::before {
  content: '>';
  font-size: 45px;
  display: inline-block;
  color: white;
  transform: rotate(90deg);
  line-height: 0;
  text-align: center;
  width: 100%;
  direction: rtl !important;
}

@media screen and (max-width: 768px) {
  .move-to-top {
    bottom: 10px;
  }
  .footer-bottom {
    margin-bottom: 50px;
  }
}

/* Fix for some translation widget on mobile */
@media (max-width: 768px) {
  #gt-wrapper-31942085,
  #gt_float_wrapper {
    position: fixed !important;
    bottom: 0 !important;
    right: 20px !important;
    z-index: 999999 !important;
    width: auto !important;
  }
  .gt_float_switcher {
    opacity: 1 !important;
  }
  .gt-options {
    display: none !important;
  }
}

/* ====== HOME RELATED, ARCHIVE, LAYOUT, WIDGETS, POSTS, EMBEDS, ARTICLE ====== */
/* 👇 كل الأقسام اللي كانت مرة وحدة فقط حطّيتها كما هي بدون تكرار */

/* Home Related Posts Widget Styling */
#home-related-posts-widget {
  background-color: #fff;
  padding: 30px;
  margin-top: 0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 30px;
}

@media screen and (min-width: 768px) {
  .main-content {
    width: 65%;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-height: 300px;
  }

  .home-related-posts-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
  }
}

.home-related-item {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: 15px;
  margin-bottom: 15px;
}

.home-related-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.home-related-item .home-post-thumb img {
  height: 150px;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.home-related-item .home-post-title {
  margin-top: 5px;
}

.home-related-item .home-post-title a {
  text-decoration: none;
  color: #000;
  transition: color 0.2s ease;
  font-size: 15px;
  font-weight: 800;
  margin: 0 5px;
  line-height: 2;
  display: inline-block;
}

.home-related-item .home-post-title a:hover {
  color: #d32f2f;
}

.home-related-item .post-meta {
  display: none;
}

@media screen and (max-width: 768px) {
  .home-related-posts-list {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
  }
  #home-related-posts-widget {
    padding: 20px;
  }
  .widget-title {
    font-size: 20px;
  }
}

@media screen and (max-width: 480px) {
  .home-related-posts-list {
    grid-template-columns: 1fr;
  }
  #home-related-posts-widget {
    padding: 15px;
  }
  .widget-title {
    font-size: 18px;
  }
  .see-more-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

.see-more {
  margin-top: 20px;
}

.see-more-btn {
  background-color: #e8230d;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.see-more-btn:hover {
  background-color: black;
}

/* Home container layout */
.home-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  min-height: 400px;
}

@media (max-width: 768px) {
  .home-container {
    display: block;
    gap: 0;
    justify-content: unset;
    flex-wrap: unset;
  }
  .home-related-posts-list {
    grid-gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
  }
}

/* Mag box titles */
.mag-box-title {
  background: linear-gradient(to left, #e8230d, black);
  color: #fff;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 5px;
}

.mag-box-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
}

.mag-box-title h3 a {
  color: white;
  text-decoration: none;
}

.widgt-alignright {
  display: flex;
  align-items: center;
}

.mag-box-options {
  display: flex;
  align-items: center;
}

.block-more-button {
  color: white;
  font-size: 14px;
  background-color: black;
  padding: 5px 12px;
  border-radius: 3px;
  text-decoration: none;
}

.block-more-button:hover {
  background-color: white;
  color: red;
}

/* Latest posts widget */
#latest-posts-widget {
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: white;
  padding: 10px;
  bottom: 15px;
}

#main-post {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

#main-thumbnail {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

#main-title {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  border-radius: 0 0 12px 12px;
}

.read-more {
  color: red;
  font-weight: bold;
  margin-left: 10px;
}

#thumbnails1 {
  height: 100px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  padding: 10px 0;
  justify-items: center;
}

@media (max-width: 768px) {
  #thumbnails1 a:nth-child(n+7) {
    display: none;
  }
  #thumbnails1 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    height: 200px;
    width: 100%;
    object-fit: cover;
  }
}

.thumbnail-link {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.thumbnail {
  width: 100%;
  height: 100px;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
  border-radius: 8px;
}

.thumbnail:hover {
  transform: scale(1.1);
}

/* SEO text toggle */
.homepage-seo-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.homepage-seo-text.open {
  max-height: 300px;
  overflow-y: auto;
}
#seoToggleBtn {
  background-color: transparent !important;
  color: white !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 14px !important;
  text-align: center !important;
  display: block !important;
  margin: 10px auto !important;
  padding: 5px 10px !important;
  width: auto !important;
  border-radius: 5px !important;
}

/* Container/content/sidebar layout */
.container {
  display: flex;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
}

.content-area {
  width: 65%;
  padding: 50px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-height: 300px;
}

/* AdSense full width on mobile */
@media screen and (max-width: 768px) {
  .adsbygoogle {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
}

/* Archive layout – الجزء المشترك (العربي والإنجليزي لهم كلاس خاص لكل واحد – حنضيفهم في ملفات اللغة) */
.archive-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 25px;
}

.archive-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.archive-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.archive-post-title {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  line-height: 1.4;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.archive-post-title:hover {
  color: #b60000;
}

.archive-date {
  font-size: 14px;
  color: #666;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 40px;
}

.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  background: #b60000;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.pagination a:hover {
  background: #8a0000;
}

/* Load more button */
.load-more-container {
  text-align: center;
  margin: 40px 0;
}

.load-more-btn {
  background: none;
  border: 2px solid #000;
  border-radius: 10px;
  font-size: 22px;
  font-weight: bold;
  color: #000;
  padding: 10px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn span {
  color: #c80000;
  font-size: 26px;
  margin-right: 8px;
}

.load-more-btn:hover {
  background: #c80000;
  color: #fff;
}

.load-more-btn:hover span {
  color: #fff;
}

/* Post thumbnail & listing */
.post-thumbnail {
  width: 100%;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.post-details {
  padding: 10px;
}

.post-date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.post-title a {
  font-size: 1.2rem;
  font-weight: bold;
  color: black;
  text-decoration: none;
  line-height: 1.4;
}

.post-title a:hover {
  color: #e8230d;
}

.read-more-btn a {
  font-size: 0.9rem;
  color: #e8230d;
  text-decoration: none;
}

.read-more-btn a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .content-area,
  .primary-sidebar {
    width: 100%;
    margin: 10px 0;
    padding: 15px;
  }

  .primary-sidebar {
    overflow: hidden;
  }

  .post-thumbnail img {
    width: 100%;
    border-radius: 10px;
    margin: 0 auto;
  }

  .post-details {
    padding: 10px 0;
  }

  .post-title a {
    font-size: 1rem;
    line-height: 1.5;
  }

  .read-more-btn a {
    font-size: 0.8rem;
  }
}

/* Images in content */
article .wp-image,
.page .wp-image,
article img,
.page img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.wrap {
  overflow: hidden;
}

.container {
  overflow: hidden;
}

.content-area img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  article img,
  .page img {
    width: 100%;
  }
  .content-area {
    padding: 0 10px;
  }
  .content-area img {
    margin-bottom: 15px;
  }
  .wrap {
    overflow: hidden;
  }
}

/* Related posts widget (single) */
#related-posts {
  background-color: #fff;
  padding: 30px;
  margin-top: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
}

.related-posts-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  margin-top: 20px;
  align-items: center;
}

.related-item {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.related-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.related-item .post-thumb img {
  width: 150px;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.related-item .post-title {
  margin-top: 5px;
}

.related-item .post-title a {
  text-decoration: none;
  color: #000;
  transition: color 0.2s ease;
  font-size: 15px;
  font-weight: 800;
  margin: 0 5px;
  line-height: 2;
  display: inline-block;
}

.related-item .post-title a:hover {
  color: #d32f2f;
}

.related-item .post-meta {
  display: none;
}

@media screen and (max-width: 768px) {
  .related-posts-list {
    grid-template-columns: repeat(2, 1fr);
  }
  #related-posts {
    padding: 0;
  }
}

@media screen and (max-width: 480px) {
  .related-posts-list {
    grid-template-columns: 1fr;
  }
}

/* Social embeds */
.wp-block-embed-twitter,
.wp-block-embed-facebook {
  max-width: 100% !important;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.wp-block-embed-twitter .wp-block-embed__wrapper,
.wp-block-embed-facebook .wp-block-embed__wrapper {
  max-width: 100%;
}

.wp-block-embed-twitter iframe,
.wp-block-embed-facebook iframe {
  max-width: 100% !important;
  height: auto !important;
  min-height: 600px !important;
  display: block;
  flex-grow: 1;
}

.wp-block-embed-youtube {
  max-width: 100% !important;
  overflow: hidden;
  justify-content: center;
}

.wp-block-embed-youtube .wp-block-embed__wrapper {
  max-width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.wp-block-embed-youtube iframe {
  max-width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* Single article structure (مشترك) */
.article-header {
  line-height: 1.5;
}

.image-and-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 15px;
}

.post-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-date p {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  margin-right: 5px;
}

.social-share {
  margin-bottom: 20px;
  align-items: center;
  justify-content: flex-end;
  margin-right: 0;
}

.social-share a {
  margin: 0 5px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-share span {
  font-size: 20px;
  margin-right: 5px;
  color: #333;
}

.social-share a:hover {
  transform: scale(1.1);
}

.social-share .fab {
  font-size: 30px;
  color: #333;
}

.social-share .fab.fa-whatsapp {
  color: #25d366;
}

.social-share .fab.fa-telegram {
  color: #0088cc;
}

.social-share .fab.fa-facebook {
  color: #1877f2;
}

.social-share .fab.fa-twitter {
  color: #1da1f2;
}

.social-share .fab.fa-facebook-messenger {
  color: #00b2ff;
}

.article-full p {
  color: #333;
}

.article-full a {
  color: #007bff;
  transition: color 0.3s ease;
  word-wrap: break-word;
}

.article-full a:hover {
  color: #0056b3;
}

.article-footer {
  margin-top: 30px;
  font-size: 16px;
  background-color: #e8230d;
  line-height: 1.8;
}

.article-footer p {
  margin-right: 15px;
}

.white-text {
  color: white;
}

.white-text .label {
  color: black;
}

.white-text .prev-title {
  color: white;
  margin-right: 10px;
}

.article-footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-footer a:hover {
  color: black;
}

/* Headings */
h1 .the-subtitle {
  line-height: 1.5;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 16px;
}

h1, h2, h3, h4, h5, h6, .the-subtitle {
  line-height: 1.5;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 16px;
}

h1 {
  font-size: 41px;
  font-weight: 700;
}

h2 {
  font-size: 27px;
}

h3 {
  font-size: 23px;
}

h4, .the-subtitle {
  font-size: 17px;
}

h5 {
  font-size: 13px;
}

h6 {
  font-size: 12px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 25px;
    font-weight: 600;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 18px;
  }
  h4, .the-subtitle {
    font-size: 14px;
  }
  h5,
  h6 {
    font-size: 10px;
  }
}

/* Fonts – Almarai & Cairo */
@font-face {
  font-family: 'Almarai';
  src: url('/wp-content/themes/itrust/assets/fonts/Almarai-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Almarai';
  src: url('/wp-content/themes/itrust/assets/fonts/Almarai-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Almarai';
  src: url('/wp-content/themes/itrust/assets/fonts/Almarai-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Almarai';
  src: url('/wp-content/themes/itrust/assets/fonts/Almarai-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('/wp-content/themes/itrust/assets/fonts/Cairo-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('/wp-content/themes/itrust/assets/fonts/Cairo-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('/wp-content/themes/itrust/assets/fonts/Cairo-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('/wp-content/themes/itrust/assets/fonts/Cairo-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('/wp-content/themes/itrust/assets/fonts/Cairo-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('/wp-content/themes/itrust/assets/fonts/Cairo-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('/wp-content/themes/itrust/assets/fonts/Cairo-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('/wp-content/themes/itrust/assets/fonts/Cairo-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

p {
  display: block;
  margin-block-start: 2em;
  margin-block-end: 2em;
  margin-inline-start: 2px;
  margin-inline-end: 2px;
  unicode-bidi: isolate;
}

/* Main widget area (sidebar) */
.main-content-widget-area {
  padding: 5px;
  background: linear-gradient(to left, #e8230d, black);
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.widget {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 5px;
  margin-bottom: 15px;
}

.widget img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  display: block;
  margin: 0 auto;
}

.primary-sidebar {
  width: 30%;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .primary-sidebar {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .home-container {
    flex-direction: column;
  }
  .primary-sidebar {
    width: 100%;
    padding: 5px;
  }
  .main-content-widget-area .widget img {
    padding: 5px;
  }
}

/* Most read widget */
.most-read-widget {
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 25px;
  color: white;
  background: black;
  padding: 10px;
}

.most-read-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.most-read-posts li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.most-read-thumbnail {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.most-read-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 12px;
}

.most-read-title {
  font-size: 12px;
  font-weight: bold;
  color: white;
  margin: 0 12px;
}

.most-read-thumbnail:hover .most-read-title {
  color: #0073aa;
}

/* Video container (responsive embeds) */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* إذا بدك تعدّل حجم صور المقالات العادية لا تنسخ هالسطر */
img {
  width: 640px;
  height: 360px;
}
