/* B76: reuse the approved upper course-card geometry, only in the catalog. */
#mainCatalog {
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
}
#mainCatalog > article {
  min-width:0;
  padding:0;
  border:1px solid #a889473b;
  border-radius:17px;
  overflow:hidden;
  background:linear-gradient(160deg,#122b4b,#081a32);
  box-shadow:0 12px 28px #0003;
}
#mainCatalog article .catalog-visual.pa-illustrated {
  order:-1;
  width:100%!important;
  height:180px!important;
  aspect-ratio:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  background:#081a32!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
}
#mainCatalog article .catalog-visual.pa-illustrated img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center top!important;
  transform:none!important;
}
#mainCatalog article .code {margin:16px 16px 0;font-size:11px;letter-spacing:.06em;}
#mainCatalog article h3 {margin:10px 16px 16px;font-size:17px;line-height:1.3;}
#mainCatalog article p {margin:0 16px 9px;font-size:14px;}
#mainCatalog article small {margin:0 16px;font-size:13px;}
#mainCatalog article .catalog-cta {margin:16px;margin-top:auto;padding:12px 0 0;min-height:44px;font-size:13px;}
@media(max-width:1100px){
  #mainCatalog {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:700px){
  #mainCatalog {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  #mainCatalog article .catalog-visual.pa-illustrated {height:145px!important;}
  #mainCatalog article .code {margin:12px 12px 0;}
  #mainCatalog article h3 {margin:10px 12px 16px;font-size:15px;}
  #mainCatalog article p {margin-inline:12px;}
  #mainCatalog article small {margin-inline:12px;}
  #mainCatalog article .catalog-cta {margin-inline:12px;}
}
@media(max-width:410px){
  #mainCatalog {grid-template-columns:1fr;}
  #mainCatalog article .catalog-visual.pa-illustrated {height:200px!important;}
}

/* ID-001 is inserted as a standalone card rather than a .catalog-visual.
   Match the approved edge-to-edge photographic header without touching
   course pricing, purchase buttons or their handlers. */
#mainCatalog > article.pa-b103-zero {
  padding:0;
}
#mainCatalog > article.pa-b103-zero > img {
  display:block;
  width:100%;
  height:180px;
  margin:0;
  border-radius:0;
  object-fit:cover;
  object-position:center top;
}
#mainCatalog > article.pa-b103-zero > :not(img) {
  margin-left:16px;
  margin-right:16px;
}
#mainCatalog > article.pa-b103-zero > .pa-b103-buy {
  width:calc(100% - 32px);
}
@media(max-width:700px) {
  #mainCatalog > article.pa-b103-zero > img {height:145px}
  #mainCatalog > article.pa-b103-zero > :not(img) {margin-left:12px;margin-right:12px}
  #mainCatalog > article.pa-b103-zero > .pa-b103-buy {width:calc(100% - 24px)}
}
@media(max-width:410px) {
  #mainCatalog > article.pa-b103-zero > img {height:200px}
}

/* B118: the three approved photographs carry internal framing that looks
   inset in narrow catalog cards. Crop within the existing panoramic viewport
   rather than changing the source files or any purchase controls. */
#mainCatalog article .catalog-visual.pa-illustrated:has(img[src*="id101-ingles"]),
#mainCatalog article .catalog-visual.pa-illustrated:has(img[src*="mkt201-marketing"]),
#mainCatalog article .catalog-visual.pa-illustrated:has(img[src*="comp101-hija-computacion"]) {
  overflow:hidden!important;
  margin:0!important;
  border-radius:0!important;
}
#mainCatalog article .catalog-visual.pa-illustrated img[src*="id101-ingles"],
#mainCatalog article .catalog-visual.pa-illustrated img[src*="mkt201-marketing"],
#mainCatalog article .catalog-visual.pa-illustrated img[src*="comp101-hija-computacion"] {
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center 35%!important;
  transform:scale(1.12)!important;
  transform-origin:center!important;
}

/* B120: only the two remaining approved course covers.
   Preserve the existing course cards, buttons, pricing and layout. */
#mainCatalog article .catalog-visual.pa-illustrated:has(img[src*="na101"]),
#mainCatalog article .catalog-visual.pa-illustrated:has(img[src*="enfermeria"]) {
  overflow:hidden!important;
}
#mainCatalog article .catalog-visual.pa-illustrated img[src*="na101"],
#mainCatalog article .catalog-visual.pa-illustrated img[src*="enfermeria"] {
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center 35%!important;
  transform:scale(1.10)!important;
  transform-origin:center!important;
}
#mainCatalog > article.pa-b103-zero {overflow:hidden!important;}
#mainCatalog > article.pa-b103-zero > img {
  width:100%!important;
  object-fit:cover!important;
  object-position:center 35%!important;
  transform:scale(1.08)!important;
  transform-origin:center top!important;
}
