{% scope_css %}

/* ===== Header ===== */
.ag-industries-marquee{
  width: 100%;
  padding: 0px 0;
}

.ag-industries-marquee__head{
  width: 100%;
  margin: 0 0 12px 0;
}

.ag-industries-marquee__title{
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.2;
  color: #0f172a;
}

/* ===== Marquee ===== */
.ag-marquee{
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 6px 0 14px 0;
}

.ag-marquee__track{
  width: 100%;
  overflow: hidden;
  padding: 8px 0;
}

.ag-marquee__inner{
  display: inline-flex;
  gap: 18px;
  align-items: stretch;
  will-change: transform;
  animation: agMarquee var(--ag-marquee-dur, 26s) linear infinite;
}

/* pause on hover */
.ag-marquee:hover .ag-marquee__inner{
  animation-play-state: paused;
}

/* fades */
.ag-marquee__fade{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  pointer-events: none;
  z-index: 3;
}

.ag-marquee__fade--l{
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0));
}

.ag-marquee__fade--r{
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,1), rgba(255,255,255,0));
}

@keyframes agMarquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(calc(-1 * var(--ag-marquee-shift, 1000px))); }
}

@media (prefers-reduced-motion: reduce){
  .ag-marquee__inner{ animation: none !important; }
  .ag-marquee__fade{ display: none; }
}

/* ===== Card ===== */
.ag-industry{
  flex: 0 0 auto;
  width: 280px;
  height: 300px;
}

@media (min-width: 768px){
  .ag-industry{ width: 320px; height: 360px; }
}

@media (min-width: 1024px){
  .ag-industry{ width: 360px; height: 360px; }
}

.ag-industry__link{
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto 0fr;
  text-decoration: none;
  color: inherit;

  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
  padding:4px;

  transition: border-color .5s ease, background-color .5s ease, box-shadow .5s ease;
}

/* image */
.ag-industry__media{
  grid-row: 1;
  padding: 12px 12px 0 12px;
  min-height: 0;
  display: flex;
  will-change: height;
  transform: translateZ(0);
}

.ag-industry__img,
.ag-industry__img--ph{
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.ag-industry__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.ag-industry__img--ph{
  background: linear-gradient(135deg, rgba(15,23,42,0.08), rgba(15,23,42,0.02));
}


/* title */
.ag-industry__body{
  grid-row: 2;
  padding: 10px 14px 10px 14px;
}

.ag-industry__name{
  margin: 0;
  font-weight:600;
}

/* collapsible section */
.ag-industry__extra{
  grid-row: 3;
  overflow: hidden;
  min-height: 0;

  opacity: 0;
  transform: translateY(6px);

  padding: 0 14px;
  max-height: 0;

  transition: opacity .22s ease, transform .22s ease, max-height .28s ease;
}

.ag-industry__subtext{
  margin: 8px 0 10px 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.72);
}

.ag-industry__cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 14px;
  font-weight: 700;

  padding: 8px 12px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
}

.ag-industry__cta-icon{
  display: inline-block;
  transform: translateX(0);
  transition: transform .22s ease;
}

/* Hover */
.ag-industry__link:hover,
.ag-industry__link:focus-visible{
  grid-template-rows: 1fr auto auto;
  background: #eaf6ff;
  border-color: rgba(2, 132, 199, 0.6);
}

.ag-industry__link:hover .ag-industry__extra,
.ag-industry__link:focus-visible .ag-industry__extra{
  opacity: 1;
  transform: translateY(0);
  max-height: 200px;
  padding: 0 14px 14px 14px;
}

.ag-industry__link:hover .ag-industry__cta-icon,
.ag-industry__link:focus-visible .ag-industry__cta-icon{
  transform: translateX(2px);
}

{% end_scope_css %}