/* ===============================
   HORIZONTAL GROUP BELOW CONTENT
=================================*/
.vet-horizontal-section{
  width: 100%;
  background: #fff;
}

.vet-horizontal-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* Content paragraph (like your ref) */
.vet-horizontal-content{
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.vet-horizontal-content p{
  font-size: 22px;
  line-height: 1.55;
  color: #555;
  padding-top: 25px;
  margin: 0 0 36px 0;
}

.vet-link{
  color: #49a6ff;
  font-weight: 700;
}

/* ===============================
   ROTATOR WRAPPER
=================================*/
.vet-hrow-rotator{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  height: 340px; /* stable height so layout doesn't jump */
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

/* Pause on hover (mouse over any image area) */
.vet-hrow-rotator:hover .vet-hrow-group,
.vet-hrow-rotator:hover .vet-hrow-group *{
  animation-play-state: paused !important;
}

/* Each group is a full-width horizontal row */
.vet-hrow-group{
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 images in one row */
  gap: 22px;
  align-items: start;
  padding: 10px 8px;

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  will-change: opacity, transform;
}

/* allow hover on images */
.vet-hrow-group .vet-hshot,
.vet-hrow-group img{
  pointer-events: auto;
}

/* Individual image card */
.vet-hshot{
  border-radius: 12px;
  overflow: hidden;
  background: transparent;     /* no white card background */
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  aspect-ratio: 9 / 16;        /* phone ratio */
  height: 100%;                /* fills available row height */
}

.vet-hshot img{
  width: 100%;
  height: 100%;
  object-fit: cover;   /* removes white space */
  display: block;
}

.vet-hshot:hover img{
  transform: scale(1.03);
}

/* ===============================
   4 groups, 5s each = 20s loop
=================================*/
.vet-hrow-g1{ animation: vetRowSwap 20s infinite; animation-delay: 0s; }
.vet-hrow-g2{ animation: vetRowSwap 20s infinite; animation-delay: 5s; }
.vet-hrow-g3{ animation: vetRowSwap 20s infinite; animation-delay: 10s; }
.vet-hrow-g4{ animation: vetRowSwap 20s infinite; animation-delay: 15s; }

@keyframes vetRowSwap{
  0%   { opacity: 0; transform: translateY(10px); }
  6%   { opacity: 1; transform: translateY(0); }
  24%  { opacity: 1; transform: translateY(0); }
  30%  { opacity: 0; transform: translateY(8px); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ===============================
   RESPONSIVE
=================================*/
@media (max-width: 1100px){
  .vet-horizontal-content p{ font-size: 20px; }
  .vet-hrow-rotator{ height: 300px; }
  .vet-hshot img{ height: 280px; }
}

@media (max-width: 900px){
  .vet-hrow-rotator{ height: auto; } /* allow wrap */
  .vet-hrow-group{
    position: relative; /* stacking becomes normal flow on mobile */
    opacity: 1;
    transform: none;
    pointer-events: auto;
    animation: none; /* disable rotation for mobile readability */
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }
  .vet-hshot img{ height: 240px; }
}

@media (max-width: 520px){
  .vet-horizontal-content p{ font-size: 18px; }
  .vet-hrow-group{ grid-template-columns: 1fr; }
  .vet-hshot img{ height: 240px; }
}



/* ===============================
   BUTTON ROW (Centered)
=================================*/
.vet-button-row{
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap; /* responsive */
}

.vet-btn{
  background: #333;
  color: #fff;
  text-decoration: none;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.25s ease;
  display: inline-block;
}

/* Hover effect */
.vet-btn:hover{
  background: #000;
  transform: translateY(-2px);
}