/*
 * Articles index 1.6.1.
 * Loaded after front-v160.css only on the posts page.
 */

body.ar-articles-v161{
  margin:0;
  padding-bottom:0!important;
  overflow-x:clip;
  background:#F7F9FD;
  color:#0F1F45;
  font-family:"IBM Plex Sans Arabic",system-ui,sans-serif;
}

body.ar-articles-v161 .ar160-shell{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

body.ar-articles-v161 .ar160-shell>main{
  flex:1 0 auto;
  display:flex;
  flex-direction:column;
  min-width:0;
}

.ar161-articles-page{
  flex:1 0 auto;
  display:flex;
  flex-direction:column;
  min-width:0;
}

.ar161-articles-hero{
  flex:none;
  padding:18px 0 4px;
  background:
    radial-gradient(70% 40% at 90% 0%,rgba(31,85,199,.10),transparent 70%),
    radial-gradient(60% 40% at 0% 30%,rgba(212,24,61,.07),transparent 70%),
    #fff;
}

.ar161-articles-hero h1{
  margin:0;
  color:var(--ar160-navy,#0F2A5C);
  font-size:clamp(24px,6.6vw,27px);
  font-weight:900;
  line-height:1.3;
}

.ar161-articles-bar{
  display:block;
  width:46px;
  height:4px;
  margin-top:12px;
  border-radius:4px;
  background:var(--ar160-red,#D4183D);
}

.ar161-articles-list{
  flex:1 0 auto;
  padding-block:14px 30px;
}

.ar161-articles-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
}

.ar161-article-card{
  min-width:0;
  overflow:hidden;
  background:#fff;
  border:1px solid #E3E9F4;
  border-radius:18px;
  box-shadow:0 8px 28px rgba(15,31,69,.08);
  transition:transform .2s ease;
}

.ar161-article-card:hover{
  transform:translateY(-3px);
}

.ar161-article-card>a{
  display:block;
  color:inherit;
  text-decoration:none;
}

.ar161-article-image{
  position:relative;
  aspect-ratio:2/1;
  overflow:hidden;
  background:#EEF3FB;
}

.ar161-article-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.ar161-article-image.is-fallback{
  background:linear-gradient(135deg,var(--ar160-navy,#0F2A5C),var(--ar160-blue,#1F55C7));
}

.ar161-article-image.is-fallback::before{
  content:"AR";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:rgba(255,255,255,.20);
  font:900 clamp(46px,10vw,72px)/1 Poppins,"IBM Plex Sans Arabic",sans-serif;
  letter-spacing:-.08em;
}

.ar161-article-copy{
  padding:12px 16px 14px;
}

.ar161-article-copy h2{
  margin:0;
  color:var(--ar160-navy,#0F2A5C);
  font-size:13.3px;
  font-weight:900;
  line-height:1.7;
}

.ar161-article-read{
  display:inline-block;
  margin-top:6px;
  color:var(--ar160-red,#D4183D);
  font-size:12.5px;
  font-weight:800;
}

.ar161-articles-empty{
  margin:0;
  padding:28px 20px;
  border:1px solid #E3E9F4;
  border-radius:18px;
  background:#fff;
  color:#4A5878;
  text-align:center;
}

body.ar-articles-v161 .navigation.pagination{
  margin-top:24px;
}

body.ar-articles-v161 .nav-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:7px;
}

body.ar-articles-v161 .page-numbers{
  min-width:38px;
  min-height:38px;
  padding:6px 10px;
  display:grid;
  place-items:center;
  border:1px solid #E3E9F4;
  border-radius:10px;
  background:#fff;
  color:var(--ar160-navy,#0F2A5C);
  font-size:13px;
  font-weight:800;
}

body.ar-articles-v161 .page-numbers.current{
  border-color:var(--ar160-red,#D4183D);
  background:var(--ar160-red,#D4183D);
  color:#fff;
}

/* The articles reference deliberately has no booking/WhatsApp strip. */
body.ar-articles-v161 .ar160-sticky-cta,
body.ar-articles-v161 .sticky-cta{
  display:none!important;
}

@media (min-width:900px){
  body.ar-articles-v161{
    padding-inline-start:212px;
  }

  .ar161-articles-hero{
    padding:40px 0 8px;
  }

  .ar161-articles-hero h1{
    font-size:44px;
  }

  .ar161-articles-list{
    padding-block:26px 50px;
  }

  .ar161-articles-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
  }

  .ar161-article-image{
    aspect-ratio:16/9;
  }

  .ar161-article-copy{
    padding:14px 18px 18px;
  }

  .ar161-article-copy h2{
    font-size:16.3px;
    line-height:1.65;
  }

  .ar161-article-read{
    margin-top:10px;
    font-size:14px;
  }
}

@media (prefers-reduced-motion:reduce){
  .ar161-article-card{transition:none}
}
