/*!
 * Ares Energy - "Real Installations" showcase (shared, editorial photo-forward)
 * Prefix: ares-inst-   Palette: navy + orange accent + verified-green
 */
.ares-inst {
  --ai-orange: #f38b2a;
  --ai-orange2: #e07820;
  --ai-orange3: #ffb266;
  --ai-navy: #0a1628;
  --ai-navy2: #16375c;
  --ai-green: #12a150;
  --ai-ink: #22344c;
  --ai-muted: #5f6f82;
  background:
    radial-gradient(ellipse at 15% -10%, rgba(42,111,176,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 88% 110%, rgba(243,139,42,0.07) 0%, transparent 50%),
    linear-gradient(180deg, #f8fbff 0%, #eef3fa 100%);
  padding: 78px 0;
  position: relative;
  overflow: hidden;
}
.ares-inst-inner { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ── Section header (editorial) ─────────────────────────── */
.ares-inst-head { text-align: center; margin-bottom: 40px; }
.ares-inst-kick {
  display: inline-flex; align-items: center; gap: 11px;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; font-weight: 800;
  color: var(--ai-navy2); margin-bottom: 15px;
}
.ares-inst-kick::before, .ares-inst-kick::after {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ai-orange), var(--ai-orange2));
}
.ares-inst-title {
  font-size: clamp(1.9rem, 3.3vw, 3rem); font-weight: 900;
  color: var(--ai-navy); letter-spacing: -0.025em; margin: 0 0 14px; line-height: 1.06;
}
.ares-inst-title em { font-style: normal; color: var(--ai-orange); }
.ares-inst-sub {
  font-size: 0.92rem; color: var(--ai-muted); max-width: 620px; margin: 0 auto; line-height: 1.6;
}
.ares-inst-sub strong { color: var(--ai-navy); font-weight: 700; }

/* ── Carousel ───────────────────────────────────────────── */
.ares-inst-carousel { position: relative; }
.ares-inst-track {
  display: flex; gap: 24px; overflow-x: auto;
  scroll-behavior: auto; padding: 14px 4px 8px;
  -ms-overflow-style: none; scrollbar-width: none;
  cursor: grab; -webkit-user-select: none; user-select: none;
}
.ares-inst-track.is-grabbing { cursor: grabbing; }
.ares-inst-fg { -webkit-user-drag: none; }
.ares-inst-track::-webkit-scrollbar { display: none; }
/* soft fade at the horizontal edges */
.ares-inst-carousel::before, .ares-inst-carousel::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 4; pointer-events: none;
}
.ares-inst-carousel::before { left: 0; background: linear-gradient(90deg, #eef3fa, transparent); }
.ares-inst-carousel::after  { right: 0; background: linear-gradient(270deg, #eef3fa, transparent); }

/* ── Photo-forward card ─────────────────────────────────── */
.ares-inst-card {
  position: relative; flex: 0 0 auto; width: 330px; aspect-ratio: 1 / 1;
  border-radius: 20px; overflow: hidden; background: #0a1628;
  box-shadow: 0 16px 40px rgba(15,40,80,0.16);
  transition: transform 0.32s cubic-bezier(0.22,1,0.36,1), box-shadow 0.32s;
}
.ares-inst-card:hover { transform: translateY(-8px); box-shadow: 0 30px 64px rgba(15,40,80,0.30); }
/* Uniform, consistent card - photo fills it cleanly, centered */
.ares-inst-fg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.ares-inst-card:hover .ares-inst-fg { transform: scale(1.06); }
.ares-inst-card::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(6,13,26,0.90) 0%, rgba(6,13,26,0.36) 24%, rgba(6,13,26,0) 46%);
}

/* Overlay caption */
.ares-inst-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 20px 20px 18px; }
.ares-inst-kicker {
  display: inline-block; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ai-orange3); margin-bottom: 6px;
}
.ares-inst-suburb {
  display: block; font-size: 1.42rem; font-weight: 800; color: #fff; line-height: 1.04; letter-spacing: -0.015em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.ares-inst-loc {
  display: flex; align-items: center; gap: 5px; margin-top: 5px;
  font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.82);
}
.ares-inst-loc svg { color: var(--ai-orange3); flex-shrink: 0; }

/* ── Arrows ─────────────────────────────────────────────── */
.ares-inst-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid #e2ebf5; cursor: pointer;
  background: #fff; color: var(--ai-navy); box-shadow: 0 10px 26px rgba(15,40,80,0.22);
  display: flex; align-items: center; justify-content: center; z-index: 6;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.ares-inst-arrow:hover { background: var(--ai-navy); color: #fff; transform: translateY(-50%) scale(1.06); }
.ares-inst-prev { left: -16px; }
.ares-inst-next { right: -16px; }

/* ── Trust rail ─────────────────────────────────────────── */
.ares-inst-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 24px;
}
.ares-inst-trust span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.84rem; font-weight: 600; color: var(--ai-ink);
}
.ares-inst-trust svg { color: var(--ai-green); flex-shrink: 0; }

/* ── CTA ────────────────────────────────────────────────── */
.ares-inst-cta { text-align: center; margin-top: 26px; }
.ares-inst-cta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--ai-orange), var(--ai-orange2));
  color: #fff; font-family: inherit; font-weight: 800; font-size: 1rem;
  text-decoration: none; padding: 15px 34px; border-radius: 14px; border: none; cursor: pointer;
  box-shadow: 0 10px 26px rgba(243,139,42,0.42); transition: transform 0.18s, box-shadow 0.18s;
}
.ares-inst-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(243,139,42,0.55); color: #fff; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .ares-inst { padding: 58px 0; }
  .ares-inst-arrow { display: none; }
  .ares-inst-carousel::before, .ares-inst-carousel::after { width: 26px; }
  .ares-inst-card { width: 300px; }
}
@media (max-width: 560px) {
  .ares-inst { padding: 50px 0; }
  .ares-inst-inner { padding: 0 16px; }
  .ares-inst-track { gap: 15px; padding-left: 16px; padding-right: 16px; margin: 0 -16px; }
  .ares-inst-carousel::before, .ares-inst-carousel::after { display: none; }
  .ares-inst-card { width: 80vw; max-width: 340px; }
  .ares-inst-suburb { font-size: 1.24rem; }
  .ares-inst-trust { gap: 8px 18px; }
  .ares-inst-trust span { font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ares-inst-card, .ares-inst-card img { transition: none; }
}
