/* ==========================================================================
   LANDING PAGE: FULL COVER HERO PILLARS
   ========================================================================== */

#landing {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

.pillar-container {
  width: 100%;
  height: 100%;
}

.pillar-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   INDIVIDUAL FULL-COVER PILLAR
   -------------------------------------------------------------------------- */
.pillar {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.18);
  transition: flex 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.3s ease;
}

.pillar:last-child {
  border-right: none;
}

/* Hover expansion on desktop */
@media (hover: hover) and (min-width: 1025px) {
  .pillar-wrapper:hover .pillar:not(:hover) {
    filter: brightness(0.88);
  }

  .pillar:hover {
    flex: 1.28;
    z-index: 2;
  }
}

/* --------------------------------------------------------------------------
   PILLAR COLOR THEMES (GRADIENTS)
   -------------------------------------------------------------------------- */
#academy {
  background: linear-gradient(
    180deg,
    #0f172a 0%,
    var(--color-academy-main) 45%,
    var(--color-academy-hover) 100%
  );
}

#auto {
  background: linear-gradient(
    180deg,
    #0369a1 0%,
    var(--color-auto-main) 45%,
    var(--color-auto-hover) 100%
  );
}

#advisory {
  background: linear-gradient(
    180deg,
    #991b1b 0%,
    var(--color-advisory-main) 45%,
    var(--color-advisory-hover) 100%
  );
}

#products {
  background: linear-gradient(
    180deg,
    #92400e 0%,
    var(--color-amber-main) 45%,
    var(--color-amber-hover) 100%
  );
}

/* --------------------------------------------------------------------------
   PILLAR CARD CONTENT & CENTERING
   -------------------------------------------------------------------------- */
.pillar-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  padding: calc(var(--header-height, 68px) + 2.5rem) 2rem 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
  outline: none;
}

.pillar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* --------------------------------------------------------------------------
   PILLAR SYMBOL & WHITE SHINE ANIMATION
   -------------------------------------------------------------------------- */
.pillar-symbol {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.symbol-badge {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.28),
              inset 0 1px 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Clip the diagonal shine strip precisely inside badge boundary */
  overflow: hidden;
  clip-path: inset(0 round 26px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              background-color 0.3s ease;
}

.symbol-svg {
  width: 46px;
  height: 46px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.symbol-svg,
.symbol-svg path,
.symbol-svg polygon,
.symbol-svg g {
  fill: #ffffff !important;
}

/* --------------------------------------------------------------------------
   WHITE SHINE STRIP ANIMATION (Corner to Opposite Corner)
   -------------------------------------------------------------------------- */
.symbol-badge::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -70%;
  width: 240%;
  height: 240%;
  background: linear-gradient(
    135deg,
    transparent 35%,
    rgba(255, 255, 255, 0.15) 43%,
    rgba(255, 255, 255, 0.92) 49%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.92) 51%,
    rgba(255, 255, 255, 0.15) 57%,
    transparent 65%
  );
  transform: translate(-100%, -100%);
  pointer-events: none;
  z-index: 3;
  animation: shineSweep 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Stagger shine waves across the 4 pillars */
#academy .symbol-badge::after { animation-delay: 0s; }
#auto .symbol-badge::after { animation-delay: 0.9s; }
#advisory .symbol-badge::after { animation-delay: 1.8s; }
#products .symbol-badge::after { animation-delay: 2.7s; }

@keyframes shineSweep {
  0% {
    transform: translate(-100%, -100%);
  }
  28% {
    transform: translate(100%, 100%);
  }
  100% {
    transform: translate(100%, 100%);
  }
}

/* Hover dynamic reaction */
.pillar:hover .symbol-badge {
  transform: translateY(-6px) scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 20px 42px -6px rgba(0, 0, 0, 0.38),
              inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.pillar:hover .symbol-svg {
  transform: scale(1.08);
}

.pillar:hover .symbol-badge::after {
  animation: shineSweepHover 1.1s cubic-bezier(0.16, 1, 0.3, 1) 1;
}

@keyframes shineSweepHover {
  0% {
    transform: translate(-100%, -100%);
  }
  100% {
    transform: translate(100%, 100%);
  }
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY & DESCRIPTIONS
   -------------------------------------------------------------------------- */
.pillar-title {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease;
}

.pillar-desc {
  font-size: clamp(0.875rem, 1vw, 0.975rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.88);
  max-width: 290px;
  margin: 0 auto 1.75rem;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Call to Action Button / Link */
.pillar-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-medium, 0.875rem);
  font-weight: 600;
  color: #ffffff;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-action i {
  font-size: 1.1rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar:hover .pillar-action {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.2);
}

.pillar:hover .pillar-action i {
  transform: translateX(4px);
}

/* ==========================================================================
   RESPONSIVE: TABLET (641px - 1024px) - FULL COVER SEAMLESS BLOCKS
   ========================================================================== */
@media (max-width: 1024px) {
  #landing {
    height: auto;
    min-height: 100dvh;
    /* padding-top: calc(var(--header-height, 68px) + 1rem); */
    padding-bottom: 0;
  }

  .pillar-container {
    height: auto;
    padding: 0;
  }

  .pillar-wrapper {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .pillar {
    height: auto;
    min-height: 50dvh;
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.15);
  }

  .pillar:nth-child(2n) {
    border-right: none;
  }

  .pillar-card {
    padding: 3rem 1.75rem;
  }

  .symbol-badge {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }

  .symbol-svg {
    width: 42px;
    height: 42px;
  }

  .pillar-title {
    font-size: 1.55rem;
  }

  .pillar-desc {
    max-width: 320px;
    font-size: 0.925rem;
    margin-bottom: 1.5rem;
  }
}

/* ==========================================================================
   RESPONSIVE: MOBILE (<= 640px) - FULL COVER SEAMLESS STACK
   ========================================================================== */
@media (max-width: 640px) {
  #landing {
    height: auto;
    min-height: 100dvh;
    padding-top: 0;
    padding-bottom: 0;
  }

  .pillar-container {
    padding: 0;
    width: 100%;
  }

  .pillar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .pillar {
    min-height: 50dvh;
    border-radius: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.15);
    width: 100%;
  }

  .pillar:last-child {
    border-bottom: none;
  }

  .pillar-card {
    padding: 3.5rem 1.5rem 3rem;
    flex: 1;
  }

  .pillar-symbol {
    margin-bottom: 1.25rem;
  }

  .symbol-badge {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    clip-path: inset(0 round 20px);
  }

  .symbol-svg {
    width: 38px;
    height: 38px;
  }

  .pillar-title {
    font-size: 1.45rem;
    margin-bottom: 0.65rem;
  }

  .pillar-desc {
    font-size: 0.885rem;
    line-height: 1.55;
    max-width: 310px;
    margin-bottom: 1.35rem;
  }

  .pillar-action {
    padding: 0.5rem 1rem;
    font-size: 0.825rem;
  }
}
