/* ── Links Grid ──────────────────────────────────── */

.linksSection {
  background: #fff;
  padding: 100px max(50px, calc((100% - 1440px) / 2));
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

.linksSection .header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.linksSection .sectionTag {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #2865BA;
}

.linksSection .heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-unbounded, 'Arial Black', sans-serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  color: #201e1f;
  text-align: center;
}

.linksSection .headingWrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.linksSection .headingBlue {
  color: #397de3;
}

.linksSection .anchor {
  width: 31px;
  height: auto;
}

.linksSection .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.linksSection .card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 255px;
  padding: 32px;
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
  transition: background 0.35s ease;
  cursor: pointer;
}

.linksSection .cardSky.expanded  { background: #397de3; }
.linksSection .cardTeal.expanded { background: #1c3f9c; }
.linksSection .cardBlue.expanded { background: #002b68; }
.linksSection .cardOrange.expanded { background: #dd0020; }

.linksSection .cardHead {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.linksSection .cardTitle {
  font-family: var(--font-unbounded, 'Arial Black', sans-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
  color: #2b2b2b;
  transition: color 0.35s ease;
}

.linksSection .card.expanded .cardTitle {
  color: #fff;
}

.linksSection .circleArrow {
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 100%;
  background: #201e1f;
  color: #fff;
  transition: opacity 0.25s ease;
}

.linksSection .card.expanded .circleArrow {
  opacity: 0;
}

.linksSection .decor {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 162px;
  height: 162px;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.linksSection .card.expanded .decor {
  opacity: 0;
}

.linksSection .curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.linksSection .card.expanded .curve {
  opacity: 1;
}

.linksSection .links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.linksSection .card.expanded .links {
  max-height: 200px;
  opacity: 1;
}

.linksSection .linkCol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.linksSection .linkItem {
  font-family: var(--font-onest, 'Onest', sans-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.linksSection .linkItem:hover {
  opacity: 0.8;
}

.linksSection .linkActive {
  text-decoration: underline;
  text-decoration-thickness: 6%;
}

/* ── Adaptive ────────────────────────────────────── */

@media (max-width: 1205px) {
  .linksSection .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 885px) {
  .linksSection { padding: 60px 20px; gap: 32px; }
  .linksSection .heading { font-size: 24px; line-height: 26px; letter-spacing: -1px; }
  .linksSection .anchor { width: 24px; }
  .linksSection .card { height: 240px; padding: 24px; border-radius: 32px; }
  .linksSection .cardTitle { font-size: 20px; }
  .linksSection .decor { width: 120px; height: 120px; right: 16px; }
  .linksSection .circleArrow { left: 24px; bottom: 24px; width: 40px; height: 40px; }
  .linksSection .linkItem { font-size: 16px; }
  .linksSection .links { gap: 24px; }
}

@media (max-width: 475px) {
  .linksSection { padding: 48px 12px; }
  .linksSection .linkItem { white-space: normal; }
  .linksSection .links { gap: 20px; }
  .linksSection .card.expanded .links { max-height: 260px; }
  .linksSection .card { height: auto; min-height: 210px; padding: 20px; border-radius: 24px; }
  .linksSection .cardTitle { font-size: 18px; }
  .linksSection .decor { width: 96px; height: 96px; right: 12px; }
  .linksSection .circleArrow { left: 20px; bottom: 20px; width: 36px; height: 36px; }
}
