/* 22Media Premium Pro v6.27 — balanced homepage newsroom rhythm */

/* Homepage sections should feel like deliberate newsroom modules, not stretched white bands. */
.m22-home-v6 .m22-newsroom-pulse,
.m22-home-v6 .m22-section{
  position:relative;
  margin-top:34px!important;
}
.m22-home-v6 .m22-section{
  padding:20px;
  border:1px solid color-mix(in srgb,var(--m22-line) 88%,#b8d3ff 12%);
  border-radius:24px;
  background:
    radial-gradient(circle at 100% 0,rgba(18,99,255,.055),transparent 27%),
    linear-gradient(180deg,color-mix(in srgb,var(--m22-card) 98%,#f3f7ff 2%),var(--m22-card));
  box-shadow:0 12px 34px rgba(24,48,88,.045);
  overflow:hidden;
}
.m22-home-v6 .m22-section:before{
  content:"";position:absolute;left:20px;right:20px;top:0;height:2px;border-radius:0 0 999px 999px;
  background:linear-gradient(90deg,#1263ff 0%,#6ba7ff 34%,transparent 76%);opacity:.72;pointer-events:none;
}
.m22-home-v6 .m22-section .m22-section-head{margin-bottom:16px!important;padding-bottom:12px!important}
.m22-home-v6 .m22-section .m22-section-head h2{font-size:28px!important;letter-spacing:-.035em}
.m22-home-v6 .m22-section .m22-section-head>a{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:10px;transition:.18s}
.m22-home-v6 .m22-section .m22-section-head>a:hover{background:#edf4ff;transform:translateX(2px)}

/* Critical spacing fix: the right news rail must not stretch to the height of the lead card. */
.m22-home-v6 .m22-section-grid{align-items:start!important;gap:18px!important}
.m22-home-v6 .m22-section-list{
  align-self:start!important;
  align-content:start!important;
  grid-auto-rows:max-content!important;
  gap:11px!important;
  min-height:0!important;
}
.m22-home-v6 .m22-section-list>.m22-card-small{
  height:126px!important;
  min-height:126px!important;
  max-height:126px!important;
  grid-template-columns:184px minmax(0,1fr)!important;
  align-items:stretch!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:var(--m22-card)!important;
}
.m22-home-v6 .m22-section-list>.m22-card-small .m22-card-media{height:126px!important;min-height:126px!important}
.m22-home-v6 .m22-section-list>.m22-card-small .m22-card-media img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
.m22-home-v6 .m22-section-list>.m22-card-small .m22-card-body{padding:13px 14px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important}
.m22-home-v6 .m22-section-list>.m22-card-small h3{font-size:15px!important;line-height:1.27!important;margin:0 0 9px!important;-webkit-line-clamp:3!important}
.m22-home-v6 .m22-section-list>.m22-card-small .m22-meta{font-size:9.5px!important;margin-top:auto!important}

/* Lead card is compact enough to remain visually balanced against four rail stories. */
.m22-home-v6 .m22-feature-card{align-self:start!important;border-radius:19px!important;overflow:hidden!important}
.m22-home-v6 .m22-feature-card .m22-feature-media{aspect-ratio:16/9!important;max-height:420px}
.m22-home-v6 .m22-feature-card>div{padding:18px 19px 19px!important}
.m22-home-v6 .m22-feature-card h3{font-size:24px!important;line-height:1.2!important;margin-bottom:8px!important}
.m22-home-v6 .m22-feature-card p{font-size:13px!important;line-height:1.58!important;margin-bottom:11px!important}

/* Latest Newsroom: remove the large blank vertical gaps seen on wide screens. */
.m22-home-v6 .m22-pulse-grid{align-items:start!important;gap:18px!important}
.m22-home-v6 .m22-pulse-feed{align-content:start!important;grid-auto-rows:max-content!important;gap:10px!important;background:transparent!important;border:0!important;overflow:visible!important}
.m22-home-v6 .m22-pulse-feed article{
  min-height:132px!important;height:auto!important;
  grid-template-columns:190px minmax(0,1fr)!important;
  gap:17px!important;padding:11px!important;
  border-radius:17px!important;background:var(--m22-card)!important;
  box-shadow:0 8px 24px rgba(16,42,82,.035)!important;
}
.m22-home-v6 .m22-pulse-thumb{height:110px!important;aspect-ratio:auto!important;border-radius:13px!important}
.m22-home-v6 .m22-pulse-feed article>div{align-self:center;min-width:0}
.m22-home-v6 .m22-pulse-feed h3{font-size:17px!important;line-height:1.25!important;margin:4px 0 5px!important}
.m22-home-v6 .m22-pulse-feed p{font-size:12px!important;line-height:1.45!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.m22-home-v6 .m22-mostread-panel{top:168px!important;border-radius:18px!important;box-shadow:0 14px 38px rgba(3,20,62,.12)!important}

/* Grid cards: consistent media ratio, crop and text rhythm. */
.m22-home-v6 .m22-card-grid,.m22-home-v6 .m22-listing-grid{gap:16px!important}
.m22-home-v6 .m22-card-standard{border-radius:18px!important;overflow:hidden!important}
.m22-home-v6 .m22-card-standard .m22-card-media{aspect-ratio:16/9!important;background:#eaf0f8!important}
.m22-home-v6 .m22-card-standard .m22-card-media img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
.m22-home-v6 .m22-card-standard .m22-card-body{padding:14px 15px 15px!important}
.m22-home-v6 .m22-card-standard h3{font-size:17px!important;line-height:1.28!important;margin-bottom:7px!important}
.m22-home-v6 .m22-card-standard p{font-size:12px!important;line-height:1.5!important}

/* Slight alternating surface depth creates a premium front page without making it heavy. */
.m22-home-v6 .m22-section:nth-of-type(even){
  background:radial-gradient(circle at 0 0,rgba(18,99,255,.045),transparent 26%),linear-gradient(180deg,var(--m22-card),color-mix(in srgb,var(--m22-card) 97%,#edf4ff 3%));
}

body.m22-dark .m22-home-v6 .m22-section{background:radial-gradient(circle at 100% 0,rgba(54,128,255,.09),transparent 28%),linear-gradient(180deg,#101725,#0d1421);border-color:#202d42;box-shadow:none}
body.m22-dark .m22-home-v6 .m22-section .m22-section-head>a:hover{background:#15233b}
body.m22-dark .m22-home-v6 .m22-pulse-feed article{background:#101725!important;border-color:#202d42!important;box-shadow:none!important}

@media(max-width:1080px){
  .m22-home-v6 .m22-section{padding:17px}
  .m22-home-v6 .m22-section-grid{grid-template-columns:1fr!important}
  .m22-home-v6 .m22-section-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .m22-home-v6 .m22-section-list>.m22-card-small{grid-template-columns:132px minmax(0,1fr)!important;height:120px!important;min-height:120px!important;max-height:120px!important}
  .m22-home-v6 .m22-section-list>.m22-card-small .m22-card-media{height:120px!important;min-height:120px!important}
}
@media(max-width:760px){
  .m22-home-v6 .m22-section{padding:14px;border-radius:20px;margin-top:28px!important}
  .m22-home-v6 .m22-section:before{left:14px;right:14px}
  .m22-home-v6 .m22-section .m22-section-head h2{font-size:23px!important}
  .m22-home-v6 .m22-section-list{grid-template-columns:1fr!important;gap:9px!important}
  .m22-home-v6 .m22-section-list>.m22-card-small{grid-template-columns:116px minmax(0,1fr)!important;height:104px!important;min-height:104px!important;max-height:104px!important}
  .m22-home-v6 .m22-section-list>.m22-card-small .m22-card-media{height:104px!important;min-height:104px!important}
  .m22-home-v6 .m22-section-list>.m22-card-small .m22-card-body{padding:10px 11px!important}
  .m22-home-v6 .m22-section-list>.m22-card-small h3{font-size:13.5px!important;margin-bottom:6px!important}
  .m22-home-v6 .m22-pulse-feed article{grid-template-columns:112px minmax(0,1fr)!important;min-height:102px!important;padding:8px!important;gap:10px!important}
  .m22-home-v6 .m22-pulse-thumb{height:86px!important}
  .m22-home-v6 .m22-pulse-feed h3{font-size:14px!important}
}
@media(max-width:430px){
  .m22-home-v6 .m22-section{padding:12px}
  .m22-home-v6 .m22-section-list>.m22-card-small{grid-template-columns:104px minmax(0,1fr)!important}
  .m22-home-v6 .m22-section-list>.m22-card-small .m22-meta span:nth-child(2),.m22-home-v6 .m22-section-list>.m22-card-small .m22-meta span:nth-child(3){display:none}
}
