/* Scoped to this plugin; the existing MedXtore hero remains independent. */
.mcs-categories {
  position: relative; isolation: isolate; overflow: hidden; width: 100%;
  margin: 0; padding: clamp(20px, 3vw, 44px) clamp(18px, 3.8vw, 56px) clamp(24px, 4vw, 56px);
  color: #080d42; background: #daf5ff;
  font-family: var(--mcs-font-family, Arial, Helvetica, sans-serif); line-height: 1.2;
}
.mcs-categories, .mcs-categories *, .mcs-categories *::before, .mcs-categories *::after { box-sizing: border-box; }
.mcs-categories::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 18% 5%, #f6fdff 0%, transparent 58%), linear-gradient(145deg, #e6f9ff, #c6effd); }
.mcs-categories::after { content: ''; position: absolute; z-index: -1; left: -8%; bottom: -60px; width: 120%; height: 90px; border-radius: 50% 50% 0 0; background: #fff; transform: rotate(-1.5deg); pointer-events: none; }
.mcs-categories .mcs-categories__inner { position: relative; width: 100%; max-width: 1320px; margin: 0 auto; padding: 0; }
.mcs-categories .mcs-categories__header { display: block; margin: 0 0 14px; padding: 0; border: 0; background: none; }
.mcs-categories .mcs-categories__eyebrow { display: flex; align-items: center; gap: 18px; margin: 0 0 6px; color: #029feb; font: 800 clamp(8px, .85vw, 12px)/1.3 var(--mcs-font-family, Arial, Helvetica, sans-serif); text-transform: uppercase; letter-spacing: .22em; }
.mcs-categories__eyebrow::after { content: ''; width: 50px; height: 1px; background: #7bd6f6; }
.mcs-categories .mcs-categories__heading { margin: 0; padding: 0; color: #080d42; font: 800 clamp(26px, 3.4vw, 48px)/1.04 var(--mcs-font-family, Arial, Helvetica, sans-serif); letter-spacing: -.045em; text-transform: none; }
.mcs-categories .mcs-categories__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.1vw, 16px); margin: 0; padding: 0; }
.mcs-categories .mcs-category {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr;
  min-width: 0; min-height: min-content; aspect-ratio: 2.9 / 1; overflow: hidden;
  padding: clamp(14px, 2vw, 36px); margin: 0;
  border: 1px solid #aee8fc; border-radius: 10px; background: linear-gradient(110deg, #fbfeff, #effaff);
  text-decoration: none; color: #080d42; box-shadow: 0 3px 12px rgba(68,168,205,.045);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.mcs-categories .mcs-category:hover { color: #080d42; text-decoration: none; border-color: #52c9f6; box-shadow: 0 8px 20px rgba(20,152,200,.12); }
.mcs-categories .mcs-category:focus-visible { outline: 3px solid #008ad5; outline-offset: 3px; }
.mcs-categories .mcs-category__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 57%; min-width: 0; padding: 0; margin: 0; }
.mcs-categories .mcs-category__eyebrow { display: block; margin: 0 0 clamp(5px, .6vw, 9px); color: #029feb; font: 800 clamp(6px, .65vw, 10px)/1.3 var(--mcs-font-family, Arial, Helvetica, sans-serif); text-transform: uppercase; letter-spacing: .2em; }
.mcs-categories .mcs-category__name { position: relative; margin: 0; padding: 0; color: #080d42; font: 800 clamp(18px, 2.45vw, 36px)/1.02 var(--mcs-font-family, Arial, Helvetica, sans-serif); letter-spacing: -.045em; text-transform: none; overflow-wrap: anywhere; }
.mcs-categories .mcs-category--long .mcs-category__name { font-size: clamp(14px, 1.85vw, 28px); }
.mcs-categories .mcs-category__arrow { display: grid; place-items: center; flex-shrink: 0; width: clamp(26px, 3.4vw, 46px); height: clamp(26px, 3.4vw, 46px); margin-top: clamp(8px, 1.15vw, 18px); color: #009ded; background: #d6f5ff; border-radius: 50%; transition: background .2s ease, transform .2s ease; }
.mcs-categories .mcs-category__arrow svg { width: 52%; height: 52%; }
.mcs-categories .mcs-category:hover .mcs-category__arrow { background: #b7ebff; transform: translateX(3px); }
.mcs-categories .mcs-category__visual { position: absolute; z-index: 1; inset-block: 0; inset-inline-end: 0; width: 58%; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.mcs-category__visual::before { content: ''; position: absolute; z-index: -1; width: 89%; aspect-ratio: 1; border-radius: 50%; background: rgba(161,229,249,.26); box-shadow: inset 0 0 0 26px rgba(224,247,255,.48); }
.mcs-categories img.mcs-category__image { display: block; position: relative; width: 100%; height: 100%; max-width: 100%; max-height: none; object-fit: contain; object-position: center; margin: 0; padding: 4px 8px 0 0; border: 0; border-radius: 0; box-shadow: none; }
.mcs-categories .mcs-category__placeholder { width: 52%; height: 60%; color: #97cfdf; }
[dir="rtl"] .mcs-category__arrow svg { transform: scaleX(-1); }
[dir="rtl"] .mcs-categories .mcs-category:hover .mcs-category__arrow { transform: translateX(-3px); }
/* Eight cards form three rows: 3, 2, 3. Repeat for larger selections. */
@media (min-width: 981px) {
  .mcs-categories .mcs-categories__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mcs-categories .mcs-category { grid-column: span 2; aspect-ratio: auto; min-height: clamp(180px, 16vw, 220px); padding: clamp(18px, 1.7vw, 26px); }
  .mcs-categories .mcs-category:nth-child(8n + 4),
  .mcs-categories .mcs-category:nth-child(8n + 5) { grid-column: span 3; }
  .mcs-categories .mcs-category__copy { width: 60%; }
  .mcs-categories .mcs-category__name { font-size: clamp(20px, 1.75vw, 28px); }
  .mcs-categories .mcs-category--long .mcs-category__name { font-size: clamp(18px, 1.5vw, 24px); }
  .mcs-categories .mcs-category__eyebrow { font-size: clamp(7px, .55vw, 9px); }
  .mcs-categories .mcs-category__arrow { width: clamp(32px, 2.5vw, 40px); height: clamp(32px, 2.5vw, 40px); margin-top: 12px; }
}
@media (min-width: 561px) and (max-width: 760px) {
  .mcs-categories { padding: 20px 22px 28px; }
  .mcs-categories .mcs-category { padding: 8px 16px; border-radius: 6px; }
  .mcs-categories .mcs-category__copy { width: 59%; }
  .mcs-categories .mcs-category__eyebrow { margin-bottom: 3px; }
  .mcs-categories .mcs-category__arrow { width: 24px; height: 24px; margin-top: 5px; }
}
@media (max-width: 560px) {
  .mcs-categories .mcs-categories__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mcs-categories .mcs-category { aspect-ratio: auto; min-height: 170px; padding: 20px; }
  .mcs-categories .mcs-category__name { font-size: clamp(23px, 6.4vw, 32px); }
  .mcs-categories .mcs-category--long .mcs-category__name { font-size: clamp(18px, 5vw, 25px); }
  .mcs-categories .mcs-category__eyebrow { font-size: 7px; }
  .mcs-categories .mcs-category__arrow { width: 32px; height: 32px; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .mcs-categories .mcs-category, .mcs-categories .mcs-category__arrow { transition: none; } }
