/* .vertical-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.vertical-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(55, 65, 81, 0.75);
  border-radius: 8px;
  padding: 30px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.vertical-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(#1e3a8a, #3f8cff, #1e3a8a);
  z-index: 0;
  animation: rotateBorder 6s linear infinite paused;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vertical-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: #fff;
  border-radius: inherit;
  z-index: 1;
}

.vertical-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 10px 15px rgba(10, 60, 255, 0.1);
}

.vertical-card:hover::before {
  animation-play-state: running;
  opacity: 1;
}

.vertical-card * {
  position: relative;
  z-index: 2;
}

.vertical-card p {
    color: #374151;
}

@keyframes rotateBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
 */
.vertical-card-link {
  text-decoration: none;
  color: inherit;
  position: relative;
}

.vertical-card {
  padding: 30px;
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease; /* animate padding */
  overflow: hidden;
}

/* Gradient border */
.vertical-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(#1e3a8a, #3f8cff, #1e3a8a);
  z-index: 0;
  opacity: 0;
  animation: rotateBorder 6s linear infinite paused;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

/* Inner white background */
.vertical-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: transparent;
  border-radius: inherit;
  z-index: 1;
  transition: background 0.25s ease 0.05s; /* small delay on hover-out */
}

/* Hover in */
.vertical-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px rgba(10, 60, 255, 0.1);
}

.vertical-card:hover::after {
  background: #fff;
  border: 1px solid rgba(55, 65, 81, 0.75);
  transition-delay: 0s; /* background appears immediately */
}

.vertical-card:hover::before {
  opacity: 1;
  animation-play-state: running;
  transition-delay: 0.15s; /* border comes after white background */
}

/* Hover out (order matters!) */
.vertical-card:not(:hover)::before {
  animation-play-state: paused; /* stop spinning immediately */
  opacity: 0; /* fade border out fast */
  transition-delay: 0s;
}

.vertical-card:not(:hover)::after {
  transition-delay: 0.1s; /* wait for blue fade before removing white bg */
  background: transparent;
  border-color: transparent;
}

/* Keep content above */
.vertical-card * {
  position: relative;
  z-index: 2;
}

.vertical-card p {
  color: #374151;
}

/* Rotation animation */
@keyframes rotateBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.readmore-custom {
  font-size: 16px;
  font-weight: 600;
  color: #1e3a8a;
  text-decoration: none;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
  cursor: pointer;
}

.readmore-custom:hover {
  color: #3f8cff;
}
.vertical-button-container {
  display: flex;
  justify-content: end;
}

.section-image-wrapper {
  border-radius: 4px;
  overflow: hidden;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-image {
  border-radius: 4px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

