/* =========================================================
   YH VIDEO CTA – NET Edition (Solid / Tech Calm)
   - keeps no-cut mobile strategy + overflow killer
   - palette uses NET variables: --yh-net-blue/teal/red
========================================================= */

/* ✅ JS wrapper (id + class) : prevent horizontal overflow */
#yh-video-cta,
.yh-video-cta-wrap{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  overflow: hidden;
}

/* Base wrapper */
.yh-video-cta{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 28px 0;
}

/* Card */
.yh-video-cta .yh-video-cta-card{
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 18px 16px 18px;
  box-sizing: border-box;

  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15,23,42,0.10);

  position: relative;
  overflow: hidden;
}

/* Top accent line (NET) */
.yh-video-cta .yh-video-cta-card::before{
  content:"";
  position:absolute;
  left:0; top:0;
  width:100%;
  height:3px;
  background: linear-gradient(90deg, var(--yh-net-blue, #2563eb), var(--yh-net-teal, #0f766e), var(--yh-net-red, #ad0e0e));
  opacity: .95;
}

/* Head */
.yh-video-cta .yh-video-cta-head{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin: 2px 0 8px 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Icon chip */
.yh-video-cta .yh-video-cta-ic{
  flex:none;
  width:36px;
  height:36px;
  border-radius:12px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(37,99,235,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
}

/* Title */
.yh-video-cta .yh-video-cta-title{
  margin:0;
  color: #0f172a;
  font-size:16px;
  font-weight:950;
  letter-spacing:-0.3px;
  line-height:1.35;

  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Desc */
.yh-video-cta .yh-video-cta-desc{
  margin: 8px 0 14px 0;
  color: rgba(15,23,42,0.62);
  font-size:13px;
  line-height:1.65;
  letter-spacing:-0.2px;

  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Actions */
.yh-video-cta .yh-video-cta-actions{
  display:flex;
  gap:10px;
  align-items:stretch;
  flex-wrap:wrap;
  max-width:100%;
  box-sizing:border-box;
}

/* Buttons */
.yh-video-cta .yh-video-cta-btn{
  flex: 1 1 180px;
  min-width: 180px;
  height: 44px;

  border-radius:12px;
  font-size:14px;
  font-weight:950;
  letter-spacing:-0.2px;

  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  box-sizing:border-box;
  white-space:nowrap;
  user-select:none;
  -webkit-tap-highlight-color: transparent;

  max-width: 100%;
  border: 1px solid transparent;
}

/* Call (ghost) */
.yh-video-cta .yh-video-cta-btn-call{
  background: rgba(15,23,42,0.04);
  color: #0f172a !important;
  border: 1px solid rgba(15,23,42,0.12);
}

/* Online (primary blue) */
.yh-video-cta .yh-video-cta-btn-online{
  background: var(--yh-net-blue, #2563eb);
  color:#fff !important;
  border:0;
  box-shadow: 0 10px 20px rgba(37,99,235,0.18);
}

/* Hover (PC only) */
@media (hover:hover){
  .yh-video-cta .yh-video-cta-btn-call:hover{ transform: translateY(-1px); }
  .yh-video-cta .yh-video-cta-btn-online:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(37,99,235,0.22);
  }
  .yh-video-cta .yh-video-cta-btn-call,
  .yh-video-cta .yh-video-cta-btn-online{
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  }
}

/* =========================================================
   MOBILE (No-cut)
========================================================= */
@media (max-width: 480px){
  #yh-video-cta,
  .yh-video-cta-wrap{
    padding: 0 12px;
  }

  .yh-video-cta{
    padding: 0;
    margin: 18px 0 26px 0;
  }

  .yh-video-cta .yh-video-cta-card{
    max-width: 100%;
    margin: 0;
    padding: 16px 14px 14px 14px;
    border-radius: 14px;
  }

  .yh-video-cta .yh-video-cta-actions{
    flex-direction: column;
    gap: 8px;
  }

  .yh-video-cta .yh-video-cta-btn{
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;

    height: 40px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 900;
    gap: 6px;
    white-space: nowrap;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark){
  .yh-video-cta .yh-video-cta-card{
    background: rgba(2,6,23,0.86);
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 18px 44px rgba(0,0,0,0.55);
  }
  .yh-video-cta .yh-video-cta-ic{
    background: rgba(96,165,250,0.12);
    border-color: rgba(255,255,255,0.16);
  }
  .yh-video-cta .yh-video-cta-title{
    color: rgba(255,255,255,0.92);
  }
  .yh-video-cta .yh-video-cta-desc{
    color: rgba(255,255,255,0.62);
  }
  .yh-video-cta .yh-video-cta-btn-call{
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.92) !important;
  }
  .yh-video-cta .yh-video-cta-btn-online{
    background: #60a5fa;
    color: #06101f !important;
    box-shadow: 0 14px 26px rgba(96,165,250,0.20);
  }
}

/* =========================================================
   HARD STOP: Mobile right-cut killer (keep)
========================================================= */
@media (max-width: 768px){
  .video_box,
  .video_box iframe,
  iframe[src*="youtube"],
  iframe[src*="youtu.be"]{
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  .video_box{
    overflow: hidden !important;
  }

  #yh-video-cta,
  .yh-video-cta-wrap{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
    overflow: hidden !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .yh-video-cta,
  .yh-video-cta .yh-video-cta-card,
  .yh-video-cta .yh-video-cta-actions,
  .yh-video-cta .yh-video-cta-btn{
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .yh-video-cta .yh-video-cta-card{
    width: 100% !important;
    margin: 0 !important;
  }

  .yh-video-cta .yh-video-cta-btn{
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* online text always white */
.yh-video-cta-btn-online,
.yh-video-cta-btn-online span{
  color: #ffffff !important;
}

/* =========================================================
   VIDEO CTA (NET) – Mobile button size HARD OVERRIDE
   - Matches YH GLOBAL CTA button feel on mobile
   - Defeats theme/global anchor/button overrides
========================================================= */
@media (max-width: 1023px){
  #yh-video-cta a.yh-video-cta-btn,
  #yh-video-cta .yh-video-cta a.yh-video-cta-btn{
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    border-radius: 14px !important;
    line-height: 1 !important;
  }
  #yh-video-cta a.yh-video-cta-btn span{
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }
}
