/* QafPost third homepage block — three-column SANA-inspired editorial layout */
.qafpost-sana-three-block{width:100vw;max-width:none;margin:38px calc(50% - 50vw) 0;padding:30px clamp(28px,3.1vw,58px) 42px;background:#faf9f7;color:#111;box-sizing:border-box;}
.qafpost-sana-three-grid{display:grid;width:100%;max-width:1800px;margin:0 auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start;}
.qafpost-sana-column{min-width:0;}
.qafpost-sana-heading{direction:rtl;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;padding:0;border:0;text-align:right;}
.qafpost-sana-heading h2{direction:rtl;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;margin:0;color:#111;font-size:clamp(21px,1.9vw,29px);font-weight:800;line-height:1.3;text-align:right !important;}
.qafpost-sana-dot{display:inline-block;width:17px;height:17px;flex:0 0 17px;border-radius:50%;background:#2f7e77;}
.qafpost-sana-column-guides .qafpost-sana-dot{background:#55b7ad;}
.qafpost-sana-column-ai .qafpost-sana-dot{background:#f2b34f;}
.qafpost-sana-heading>a{flex:none;margin-inline-start:auto;color:#111;text-decoration:none;font-size:15px;font-weight:700;text-align:left;}
.qafpost-sana-heading>a:hover{color:#00377c;}
.qafpost-sana-lead{margin:0 0 18px;min-width:0;}
.qafpost-sana-lead-image{display:block;width:100%;aspect-ratio:1.66/1;overflow:hidden;border-radius:7px;background:#e8edf2;text-decoration:none;}
.qafpost-sana-lead-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease;}
.qafpost-sana-lead-image:hover img,.qafpost-sana-list-image:hover img{transform:scale(1.035);}
.qafpost-sana-lead h3{margin:12px 12px 8px;text-align:center;font-size:clamp(17px,1.55vw,23px);font-weight:800;line-height:1.55;}
.qafpost-sana-lead h3 a,.qafpost-sana-list-content h3 a{color:inherit;text-decoration:none;}
.qafpost-sana-lead h3 a:hover,.qafpost-sana-list-content h3 a:hover{color:#00377c;}
.qafpost-sana-lead>time{display:block;text-align:center;color:#777;font-size:12px;line-height:1.4;}
.qafpost-sana-list{display:flex;flex-direction:column;}
.qafpost-sana-list-item{display:flex;align-items:center;gap:12px;min-height:82px;padding:10px 0;margin:0;border-top:1px solid #e6e4e0;}
.qafpost-sana-list-image{display:block;flex:0 0 112px;width:112px;height:70px;overflow:hidden;border-radius:6px;background:#e8edf2;text-decoration:none;}
.qafpost-sana-list-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease;}
.qafpost-sana-list-content{min-width:0;flex:1;}
.qafpost-sana-list-content h3{margin:0 0 7px;font-size:clamp(13px,1.05vw,16px);font-weight:600;line-height:1.5;}
.qafpost-sana-list-content time{display:block;color:#777;font-size:12px;line-height:1.4;}
.qafpost-sana-no-image{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:#00377c;color:#fff;font-size:30px;font-weight:800;}
@media(max-width:900px){.qafpost-sana-three-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:34px;}.qafpost-sana-heading h2{font-size:22px;}}
@media(max-width:600px){.qafpost-sana-three-block{width:100vw;margin:26px calc(50% - 50vw) 0;padding:22px 14px 30px;}.qafpost-sana-three-grid{grid-template-columns:1fr;gap:30px;}.qafpost-sana-heading{margin-bottom:14px;}.qafpost-sana-heading h2{font-size:22px;}.qafpost-sana-heading>a{font-size:14px;}.qafpost-sana-lead-image{aspect-ratio:1.65/1;}.qafpost-sana-lead h3{font-size:19px;line-height:1.5;margin:10px 6px 7px;}.qafpost-sana-list-item{min-height:78px;gap:10px;padding:9px 0;}.qafpost-sana-list-image{flex-basis:105px;width:105px;height:68px;}.qafpost-sana-list-content h3{font-size:14px;line-height:1.45;margin-bottom:5px;}.qafpost-sana-list-content time{font-size:11px;}}

/* Final heading alignment: match SANA's RTL section headers exactly. */
.qafpost-sana-column > .qafpost-sana-heading{
  direction:rtl !important;
  display:flex !important;
  flex-direction:row !important;
  justify-content:space-between !important;
  align-items:center !important;
  width:100% !important;
  text-align:right !important;
}
.qafpost-sana-column > .qafpost-sana-heading > h2{
  direction:rtl !important;
  display:flex !important;
  flex-direction:row !important;
  justify-content:flex-start !important;
  align-items:center !important;
  order:0 !important;
  float:none !important;
  width:auto !important;
  max-width:calc(100% - 105px) !important;
  margin:0 auto 0 0 !important;
  padding:0 !important;
  text-align:right !important;
}
.qafpost-sana-column > .qafpost-sana-heading > a{
  order:1 !important;
  flex:0 0 auto !important;
  float:none !important;
  margin:0 0 0 auto !important;
  text-align:left !important;
}

/* 1.4.25 — Separate the section title and "View all" to opposite edges. */
.qafpost-sana-column > .qafpost-sana-heading{
  direction:rtl !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  justify-content:stretch !important;
  column-gap:16px !important;
  width:100% !important;
  margin:0 0 18px !important;
  text-align:right !important;
}
.qafpost-sana-column > .qafpost-sana-heading > h2{
  grid-column:1 !important;
  justify-self:start !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  width:max-content !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  text-align:right !important;
}
.qafpost-sana-column > .qafpost-sana-heading > a{
  grid-column:2 !important;
  justify-self:end !important;
  margin:0 !important;
  padding:0 !important;
  text-align:left !important;
  white-space:nowrap !important;
}
