.hp-video-section {
display: flex;
width: 100%;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
overflow: hidden;
margin: 2rem 0;
gap: 1rem;
padding:1rem;
}

.hp-video-text {
flex: 0 0 33.33%;
padding: 1.5rem;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
background-color: #f9f9f9;
border-right: 1px solid rgba(0,0,0,0.05);
box-shadow: inset -2px 0 6px rgba(0,0,0,0.02);
border-radius: 1rem; /* ← Your addition */
}
.hp-video-text h3 {
margin-top: 0;
font-size: 1.6rem;
color: #222;
}
.hp-video-text p {
margin-bottom: 0;
font-size: 1rem;
line-height: 1.6;
color: #555;
}

.hp-video-wrapper {
flex: 0 0 66.67%;
position: relative;
padding-bottom: 56.25%; /* 16:9 ratio – keep this always */
box-sizing: border-box;
overflow: hidden;
border-radius:1rem;
}
.hp-video-wrapper video {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
object-fit: cover;
border-radius: 0 8px 8px 0;
}

@media (max-width: 768px) {
.hp-video-section {
  display: block;
  /* re-apply shadow & corners at mobile (you added these) */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}
.hp-video-text {
  width: 100%;
  padding: 1rem;         /* from your grouped rule */
  box-shadow: none;
  border-right: none;
  border-radius: 1rem 1rem 0 0; /* keep the top corners rounded */
}
.hp-video-wrapper {
  width: 100%;
  margin: 1rem 0;        /* spacing instead of killing the ratio hack */
}
.hp-video-wrapper video {
  border-radius: 0 0 8px 8px; /* bottom corners rounded on mobile */
}
}