
/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
  --color-primary:      #EC1C24;
  --color-primary-light: #EC1C2480;
  --color-dark:         #231F20;
  --color-nav-active:   #2b2b2b;
  --color-white:        #ffffff;
  --color-gray-bg:      #f5f5f5;
  --color-gray-border:  #e0e0e0;
  --color-text:         #333333;
  --color-text-muted:   #777777;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;

  --transition-base: 0.25s ease;

  --container-max: 1180px;
  --container-pad: 15px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

.main-content {
  position: relative;
}

/* ============================================
   SIDE BANNERS
   ============================================ */
   .logo-bar__logo img {
width: 180PX;

   }
.side-ad-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px; /* Slightly wider skyscraper */
  z-index: 10;
  pointer-events: none; /* Allows interacting with things underneath if empty */
}

.side-ad-wrapper--right {
  right: calc(50% + 590px);
}

.side-ad-wrapper--left {
  left: calc(50% + 590px);
}

.side-ad {
  position: sticky;
  top: 150px; /* Distance from top of the screen when scrolled */
  width: 100%;
  pointer-events: auto; /* Restores clickability for the ad */
}

.side-ad img {
  width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

h2,
h3 {
  margin-bottom: 0;
}

@font-face {
  font-family: B-29LT-Bukra;
  src: url(../fonts/29ltbukrabold.otf);
}

@font-face {
  font-family: R-29LT-Bukra;
  src: url(../fonts/29ltbukralight.otf);
}

@font-face {
  font-family: L-29LT-Bukra;
  src: url(../fonts/29ltbukralight.otf);
}
@font-face {
  font-family: CairoNowExtended-Bold;
  src: url(../fonts/CairoliNowExtended-Bold.ttf);
}
.B-29LT-Bukra {
  font-family: B-29LT-Bukra;
}
.R-29LT-Bukra {
  font-family: R-29LT-Bukra;
}
.L-29LT-Bukra {
  font-family: L-29LT-Bukra;
}
.CairoNowExtended-Bold {
  font-family: CairoNowExtended-Bold;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.main-content {
    max-width: var(--container-max);
  margin-inline: auto;
  border-left: 2px solid var(--color-text);
  border-right: 2px solid var(--color-text);
  padding-top: 5px; padding-bottom: 40px
}
/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  border-left: 2px solid var(--color-text);
  border-right: 2px solid var(--color-text);
}

.card-img-ratio > a,
.card-img-ratio > span {
  position: relative;
  padding-bottom: 65%;
  display: block;
  overflow: hidden;
}

.card-img-ratio img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* .card-img-ratio:hover img {
  transform: scale(1.04);
} */

/* Ratio Modifiers */
.card-img-ratio--wide > a    { padding-bottom: 56%; }  /* 16:9  */
.card-img-ratio--square > a  { padding-bottom: 100%; } /* 1:1   */
.card-img-ratio--portrait > a{ padding-bottom: 133%; } /* 3:4   */
.card-img-ratio--thumb > a   { padding-bottom: 75%; }  /* 4:3   */



/* ============================================
   SECTION TITLE 
   ============================================ */
.section-title {
  position: relative;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  padding-right: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-title--light {
  color: var(--color-white);
}
.section-title--light::before {
  background: var(--color-white);
}

.section-title--lg {
  font-size: 1.5rem;
}

.section-title__badge {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
}



/* start stars section */
.stars-section {
  position: relative;
      padding-bottom: 30px;
}
.stars-section::after  {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 2px;
  background: var(--color-text);
}
.stars-header {
  position: relative;
  margin-bottom: 60px;
}
.stars-header h2 {
  color: var(--color-primary);
  font-family: B-29LT-Bukra;
  font-size: 24px;
  text-align: right;
  margin-bottom: 15px;
  padding-bottom: 15px;
      padding-right: 20px;
}
.stars-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 6px;
  background: var(--color-primary);
}
.stars-slider-wrap {
  position: relative;
  margin-top: 50px;
}
.stars-swiper {
  width: 100%;
  padding-bottom: 10px;
    overflow: hidden;
}
/* ============================================
   EDITOR PICKS SECTION
   ============================================ */
   .editor-picks::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 2px;
    background: var(--color-text);
}

.editor-picks {
  position: relative;
  margin-top: 40px;
      padding-bottom: 40px;
  margin-bottom: 50px;
}


.editor-picks__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: #A4A4A4; 
  border-top: 2px solid #A4A4A4;
  border-bottom: 1px solid #A4A4A4;
  box-shadow: 0px 25px 30px -15px #00000026;
}

.editor-picks__item {
  background-color:#F8F8F8;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
}
.editor-picks__num {
    font-family: CairoNowExtended-Bold;
  font-size: 64px;
  color: var(--color-dark);
  line-height: 1;
  text-align: right;
     margin-bottom: 30px;
}
.card-img-ratio--picks > a {
  padding-bottom: 62.3%;
}
.editor-picks__item .card-img-ratio {
  margin-bottom: 15px;
}
.editor-picks__item-title {
  font-size: 18px;
 font-family: B-29LT-Bukra;
  color: var(--color-dark);
  margin-bottom: 8px;
  text-align: right;
  line-height: 1.4;
      overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}
.editor-picks__item-title a {
  color: var(--color-dark);
}
.editor-picks__item-title a:hover {
  color: var(--color-primary);
}
.editor-picks__item-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: right;
  line-height: 1.6;
}

/* Hover effects */
.editor-picks__item , .editions-item{
  transition: background-color 0.3s ease;
  cursor: pointer;
}
.editor-picks__item:hover , .editions-item:hover {
  background-color: #ffe2e4;
}
.editor-picks__num {
  transition: color 0.3s ease;
}
.editor-picks__item:hover .editor-picks__num {
  color: var(--color-primary);
}

/* Meta timestamp */
.editor-picks__item-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #8E8E8E;
  padding-top: 15px;
    font-family: R-29LT-Bukra;
}
.editor-picks__item-meta svg {
  width: 14px;
  height: 14px;
  fill: #8E8E8E;
}

.star-card {
  position: relative;
}
.star-card .card-img-ratio {
  transition: filter 0.3s ease;
  filter: drop-shadow(0 0 1px #0000004d);
}
.star-card:hover .card-img-ratio {
  filter: drop-shadow(4px 4px 0 #1a1a1a);
}
.card-img-ratio--star > a {
  padding-bottom: 134.71%;
  /* border-radius: 8px; */
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 8px;
  background: var(--color-white);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 70'><path fill='black' d='M130,70 L10,70 Q20,70 30,60 L50,40 Q60,30 70,30 L115,30 Q130,30 130,15 L130,70 Z'/></svg>"), linear-gradient(#fff, #fff);
  mask-position: bottom right, top left;
    mask-size: 110px 59px, 100% 100%;
  mask-repeat: no-repeat, no-repeat;
  mask-composite: exclude;
}
.star-badge {
    position: absolute;
    bottom: -7px;
    right: 0;
    height: 50px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 33.53px;
       font-family: CairoNowExtended-Bold;
    z-index: 5;
    transition: color 0.3s ease;
}
.star-card:hover .star-badge {
    color: #1a1a1a;
}
.stars-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}
.stars-prev, .stars-next {
  position: static !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  background: #ffe5e5;
  color: var(--color-primary) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  cursor: pointer;
  transition: all 0.3s ease;
}
.stars-prev::after, .stars-next::after {
  font-size: 14px !important;
  font-weight: bold;
}
.stars-prev:hover, .stars-next:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
}
/* end stars section */


/* start footer */
.site-footer {
  background-color: var(--color-dark);
  color: #fff;
    padding: 10px 0 20px;
  font-family: Cairo, sans-serif;
  overflow: hidden;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}
.site-footer a:hover {
  opacity: 0.8;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: flex-start;
  margin-bottom: 50px;
}


.site-footer__newsletter {
  max-width: 450px;
}
.site-footer__nl-title {
  font-family: B-29LT-Bukra;
  font-size: 16px;
  text-align: center;
  margin-bottom: 10px;
}
.site-footer__nl-desc {
  font-size: 14px;
  color: #b9b9b9;
    font-family: R-29LT-Bukra;
  line-height: 1.6;
  margin-bottom: 25px;
      text-align: center;
}

.site-footer__nl-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.site-footer__nl-input {
  width: 100%;
  padding: 12px 25px;
  border-radius: 50px;
  border: none;
  outline: none;
  font-size: 14px;
      font-family: R-29LT-Bukra;
  color: #333;
  direction: rtl;
}

.site-footer__nl-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-footer__nl-btn {
  background-color: var(--color-primary, #ED1C24);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 30px;
  font-family: B-29LT-Bukra;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.3s;
  flex: 1; 
}
.site-footer__nl-btn:hover {
  opacity: 0.9;
}
.site-footer__nl-icon {
  background-color: var(--color-primary, #ED1C24);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end; 
}

.site-footer__logo img {
max-width: 257px;
    margin-bottom: 40px;
  filter: brightness(0) invert(1);
}
.site-footer__social-title {
     font-size: 16px;
    font-family: B-29LT-Bukra;
  margin-bottom: 15px;
  text-align: center;
  padding-right: 5px;
}

.site-footer__social-icons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  align-items: center;
  direction: ltr; 
}
.site-footer__social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.site-footer__social-icons a  svg{
  fill: #fff;
}
/* Middle Row */
.site-footer__middle {
  border-top: 1px solid #373535;
  border-bottom: 1px solid #373535;
  padding: 25px 0;
  margin-bottom: 30px;
}
.site-footer__middle-inner {
  display: flex;
  justify-content: flex-start;
  gap: 26%;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.site-footer__links li a  {
  font-size: 14px;
      font-family: R-29LT-Bukra;
  color: #ffffff;
}
 .site-footer__bottom h1{
    font-size: 11px;
      font-family: R-29LT-Bukra;
  color: #ffffff;
  margin: 0;
 }
.site-footer__links li a:hover {
  color: #fff;
}

.site-footer__bottom {
  text-align: center;
  font-size: 11px;
        font-family: R-29LT-Bukra;
  color: #7b7b7b;
}
.site-footer__bottom p {
  margin: 0;
    color: #ffffff;
}
/* end footer */


/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary, #ED1C24);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top.show:hover {
  background-color: #d11820;
  transform: translateY(-3px);
}
@media (max-width: 767px) {
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
  }
}

@media(max-width: 991px) {
  .site-footer__social-title {
    text-align: center;
    padding-right: 0;
  }
    .site-footer__brand {
    align-items: center;
  }
    .site-footer__top {
    flex-direction: column-reverse;
    gap: 40px;
    align-items: center;
    text-align: center;
  }
    .editions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
    .editor-picks__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width: 767px) {
  .editor-picks__item-title {
    font-size: 13px;
}
    .editor-picks__num {
    font-size: 30px;
}
    .stars-header h2 {
    font-size: 16px;
}
  .site-footer__middle-inner {
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: start;
    text-align: center;
  }
  .site-footer__links li a {
    font-size: 14px;
}
.site-footer__links{
  border-bottom: 1px solid #373535;
  padding-bottom: 20px;
  width: 100%;
}
.site-footer__links:last-child , .site-footer__middle{
  border-bottom: none;
}
}

@media(max-width: 575px) {
      .editions-grid {
    grid-template-columns: 1fr;
  }
}