/* MMCYBERCONET theme 6.8 */

/* Digital Services: the "Request this service" button sits beside the text at its own size, never squeezed or overlapping */
.mmc6-svc{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px 18px!important}
.mmc6-svc>div{min-width:0}
.mmc6-svc .mmc6-go,.mmc6 .mmc6-svc .mmc6-go{grid-column:auto!important;justify-self:end;align-self:center;margin-top:0!important;white-space:nowrap;width:auto!important;min-width:0;max-width:none;flex:none;overflow:visible}
@media (max-width:760px){
  .mmc6-svc{grid-template-columns:1fr!important}
  .mmc6-svc .mmc6-go,.mmc6 .mmc6-svc .mmc6-go{justify-self:start}
}

/* Homepage: Classroom groups across the whole width (no photo) */
.mmc68-comm-in{padding:28px;position:relative}
.mmc68-comm-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:16px}
.mmc68-comm-head>div{max-width:720px}
.mmc68-comm-head h2{margin:10px 0 6px;font-size:clamp(22px,2.4vw,32px);line-height:1.1;font-weight:900;color:#0a2463}
.mmc68-comm-head p{margin:0;color:#4b5b7a;line-height:1.55}
.mmc68-comm-head .mmc66-join{margin:0;flex:none}
.mmc68-glist{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important}
html.mmc-dark .mmc68-comm-head h2{color:#fff}html.mmc-dark .mmc68-comm-head p{color:#cbd8ee}
@media (max-width:600px){.mmc68-comm-in{padding:20px 16px}.mmc68-comm-head .mmc66-join{width:100%;justify-content:center}.mmc68-glist{grid-template-columns:1fr!important}}

/* Homepage: Business subscription plans */
.mmc68-plans{margin:34px 0 8px}

/* Homepage: real student photos just before the footer — all the same size, neatly cropped */
.mmc68-gallery{margin:34px 0 10px}
.mmc68-gal-head{margin-bottom:14px}
.mmc68-gal-head h2{margin:10px 0 0;font-size:clamp(22px,2.4vw,32px);line-height:1.1;font-weight:900;color:#0a2463}
html.mmc-dark .mmc68-gal-head h2{color:#fff}
.mmc68-gal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.mmc68-ph{position:relative;margin:0;border-radius:20px;overflow:hidden;background:#e8f1ff;box-shadow:0 14px 30px rgba(10,36,99,.14);aspect-ratio:3/2;max-height:var(--mmc68-ph,300px)}
.mmc68-ph::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;z-index:1;background:linear-gradient(90deg,#ffc928,#ff7a2e 55%,#e3243b)}
.mmc68-ph img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 5s ease}
.mmc68-ph:hover img{transform:scale(1.06)}
.mmc68-ph figcaption{position:absolute;left:0;right:0;bottom:0;padding:26px 14px 12px;font-weight:800;font-size:15px;color:#fff;background:linear-gradient(180deg,transparent,rgba(7,26,69,.85))}
@media (min-width:701px){.mmc68-ph{height:var(--mmc68-ph,300px);aspect-ratio:auto}}
@media (max-width:700px){.mmc68-gal-grid{grid-template-columns:1fr}.mmc68-ph{max-height:none}}
@media (prefers-reduced-motion:reduce){.mmc68-ph img{transition:none}}
