@font-face {
  font-family: 'Calibri';
  /* src: url('http://localhost:81/news/wp-content/themes/smart-construction-theme/assets/fonts/Calibri.ttf') format('truetype'); */
  src:url('../fonts/Calibri.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


:root {
  --bg-body: #f8f8f8;
  --red-bg: #9B0000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

body {
  background-color: var(--bg-body);
  
  font-family: 'Calibri';
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #b91c1c #3f3f3f;
}



::-webkit-scrollbar {
  height: 8px;              /* height of horizontal scrollbar ← You're missing this */
  width: 8px;               /* width of vertical scrollbar */
  border: 1px solid #b91c1c;
}


::-webkit-scrollbar-track {
  border-radius: 0;
  background: #f8f8f8;
}

::-webkit-scrollbar-thumb {
  border-radius: 0;
  background: #b91c1c;
}


h1 {
  font-family: 'Noto Sans Arabic', sans-serif;
}
.single-page, .single-page p, .single-page a{
  font-family: 'Calibri';
}

.single-page a {
  text-decoration: underline 2px solid #9B0000;
}
.main-menu {
    height: 100%;
}
.main-menu li {
  display: flex;
  height: 100%;
}

.main-menu li a,
.left-menu {
  font-family: "Cairo", sans-serif;
  display: flex;
  align-items: center;
  font-weight: 630;
  padding-top: 10px;
  padding-bottom: 10px;
  height: 100%;
  padding-left: 5px;
    padding-right: 5px;
  font-size: 14px; /* default for mobile */
}

@media (min-width: 640px) {
  .main-menu li a,
  .left-menu {
    font-size: 16px;
  }
}

@media (min-width: 1050px) {
  .main-menu li a,
  .left-menu {
    font-size: 16px;
  }
}
@media (min-width: 1600px) {
  .main-menu li a,
  .left-menu {
    font-size: 18px;

  }
}
@media (min-width: 1200px) {
  .main-menu li a,
  .left-menu {
    font-size: 18px;
    padding-left: 5px;
    padding-right: 5px;
  }
}


.main-menu li .active {
  background-color: #292929;
  display: inline-block;
  height: 100%;
  padding-left: 8px;
  padding-right: 8px;
}
.main-menu li:hover {
  background-color: #292929;
}

/* الخلفية */
.backgound-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 60%;
  height: 200%;
  background: #f8f8f8;
  /* clip-path: polygon(94% 0.116%, 75.43% 99.508%, 63.822% 99.537%, 82.699% 0%, 32.546% 0%, 16.107% 99.363%, 6.479% 99.479%, 22.178% 0.261%, 15.835% 0.174%, 0% 99.132%, 15.893% 99.58%, 63.607% 99.566%, 82.135% 100%, 100% 0.144%, 94% 0.116%);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%); */
  clip-path: polygon(94% 0.116%, 67.2914% 99.939%, 57.1365% 99.968%, 85.1682% -0.431037%, 45.189% 0.431034%, 16.107% 99.363%, 6.479% 99.479%, 36.1308% 0.261001%, 29.6407% 1.03607%, 0% 99.132%, 15.893% 99.58%, 56.63% 100.428%, 73.5599% 100%, 100% 0.144%, 94% 0.116%);
  /* clip-path: polygon(96.799% 0.547034%, 69.624% 100.37%, 64.2898% 99.968%, 91.0776% -2.4e-06%, 38.6573% 0.862076%, 8.64212% 98.9319%, 2.90204% 99.479%, 33.0208% 1.12307%, 29.6407% 1.03607%, 0% 99.132%, 8.73932% 99.149%, 64.2498% 100.428%, 73.5599% 100%, 100% 0.144%, 96.9545% 0.547034%) */
  clip-path: polygon(96.799% 0.547034%, 69.624% 100.37%, 64.2898% 99.968%, 90.4556% 0.431032%, 38.6573% 0.862076%, 8.64212% 98.9319%, 2.90204% 99.479%, 33.0208% 1.12307%, 29.6407% 1.03607%, 0% 99.132%, 8.73932% 99.149%, 64.2498% 100.428%, 73.5599% 100%, 100% 0.144%, 96.9545% 0.547034%)
}

.ticker-container {
  overflow: hidden;
  width: 100%;
  height: 2.5rem;

}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 10s linear infinite;
}

/* مسافة بين العناصر */
.ticker-track span {
  display: inline-block;
  padding: 0 2rem;
}

/* تحريك التيكر مرة واحدة فقط */
@keyframes scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}



/* slider top */
.slider {
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain; /* أو cover */

  opacity: 0;
  transform: translateX(0);
  transition: all 0.8s ease;
}

/* الصورة الحالية */
.slide.active {
  opacity: 1;
  transform: translateX(0);
}

/* دخول من اليمين */
.slide.enter-right {
  opacity: 0;
  transform: translateX(60px);
}

/* دخول من الشمال */
.slide.enter-left {
  opacity: 0;
  transform: translateX(-60px);
}

/* خروج */
.slide.exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

.slide.exit-right {
  opacity: 0;
  transform: translateX(60px);
}

/* اهتزاز خفيف بعد ما تثبت */
@keyframes softShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

.slide.shake {
  animation: softShake 0.4s ease;
}


/* +++++++++ */
/* +++++++++ */
/* +++++++++ */
/* +++++++++ */

.marquee {
  overflow: hidden;
  width: 100%;
  background: #000;
  background: #333232;
  color: #fff;
}

.track {
  display: flex;
  width: max-content;
  
}

.item {
  padding: 8px 10px;
  white-space: nowrap;
}

.item:last-child {
  padding-right: 0;
}


/*  */
    /* .whatshnow-list {
  overflow-x: scroll;
  scrollbar-color:  #b91c1c #3f3f3f;
  scrollbar-width: thin;
} */


.whatshnow-list {
  scrollbar-width: thin;
  scrollbar-color: #b91c1c #3f3f3f;
}

.single-gallery {
   /* scrollbar-width: none;
  -ms-overflow-style: none; */
  scrollbar-width: thin;
  scrollbar-color: #e7e7e7 #ffffff;
}


/* Chrome / Edge */
.whatshnow-list::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.whatshnow-list::-webkit-scrollbar-track {
  background: #3f3f3f;
}

.whatshnow-list::-webkit-scrollbar-thumb {
  background: #b91c1c;
  border-radius: 10px;
}



/* news cards */
.news-card-single {
  position: relative;
}

/* overlay */
.news-card-single .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

/* date */
.news-card-single .date {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  background: #9B0000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 20px;
}

/* title */
.news-card-single .title {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}
.news-card-single .title:hover, .news-card .title:hover {
  text-decoration: underline 3px solid #9B0000;
  
}


/* 00000 */

/* news cards */
.news-card {
  position: relative;
}

/* overlay */
.news-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

/* date */
.news-card .date {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  background: #9B0000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 20px;
}

/* title */
.news-card .title {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}




/* 🎯 أول صف (2 كبار) */
/* .news-card:nth-child(-n+2) {
  grid-column: span 3;
  aspect-ratio: 5/3;
} */

/* 🎯 باقي العناصر (3 صغار) */
.news-card:nth-child(n+3) {
  grid-column: span 2;
  aspect-ratio: 1/1;
}


/* 🎯 الكبار */
.news-card:nth-child(-n+2) {
  grid-column: span 3;  
  aspect-ratio: 5/3;
}

/* 🎯 الصغار */
.news-card:nth-child(n+3) {
  grid-column: span 2;   /* 2/6 = 33.33% */
  aspect-ratio: 1/1;
}

@media (max-width: 900px) {
.news-card:nth-child(-n+2) {
  grid-column: inherit;  
  aspect-ratio: inherit;
}
  .news-grid {
    /* grid-template-columns: repeat(2, 1fr); */
    /* grid-template-rows: repeat(6, 1fr); */
    grid-template-columns: repeat(2, 2);
  grid-auto-rows: 15vh; /* تتحكم في الطول من هنا */
    
  }

  /* 🟩 الصغير (الشمال) */
  .news-card:nth-child(3) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .news-card:nth-child(4) {
    grid-column: 1;
    grid-row: 3 / span 2;
  }

  .news-card:nth-child(5) {
    grid-column: 1;
    grid-row: 5 / span 2;
  }

  /* 🟦 الكبير (اليمين) */
  .news-card:nth-child(1) {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .news-card:nth-child(2) {
    grid-column: 2;
    grid-row: 4 / span 3;
  }

  /* مهم جدًا */
  .news-card {
    aspect-ratio: auto;
    height: 100%;
    width: 100%;
  }
}


/* fooooooooter */

.footer-link:hover {
    color: red;
    text-decoration: underline;
}


@media (min-width: 1115px) {
  .header-1 {
    font-size: 50px;
  }
}


.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* print */

@media print {

  /* اخفي الحاجات اللي مش مهمة */
  header,
  footer,
  .sidebar,
  .ads,
  .no-print {
    display: none !important;
  }

  /* خليك مع المحتوى بس */
  body {
    background: #fff;
  }

  .article-content {
    width: 100%;
    font-size: 16px;
    line-height: 1.8;
  }

  img {
    max-width: 100%;
    height: auto;
  }

}



.pagination .page-numbers {
  padding: 8px 16px;
  border: 1px solid #b91c1c;
  background: #fff;
  border-radius: 15px;
  text-decoration: none;
  color: #b91c1c;
  font-weight: bold;
}

.pagination .page-numbers:hover {
  background: #dc2626;
  color: #fff;
}

/* 🔴 active */
.pagination .page-numbers.current {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}