/* Ustudents Video Hub v1.0.1. All main styles isolated from the theme. */
body.usvh-video-page .elementor-location-header,
body.usvh-video-page #masthead,
body.usvh-video-page header.site-header {
  background-color: #211a4a !important;
}
body.usvh-video-page .elementor-location-header .elementor-top-section,
body.usvh-video-page .elementor-location-header .e-con.e-parent,
body.usvh-video-page .elementor-location-header > .elementor > .elementor-section-wrap > .elementor-section:first-child,
body.usvh-video-page .elementor-location-header > .elementor > .e-con:first-child,
body.usvh-video-page .elementor-location-header > .elementor > .elementor-section:first-child {
  background-color: #211a4a !important;
}
body.usvh-video-page .elementor-location-header .elementor-nav-menu--main .elementor-item,
body.usvh-video-page .elementor-location-header .elementor-icon-list-text {
  color: #fff !important;
}
body.usvh-video-page .elementor-location-header .elementor-item:hover,
body.usvh-video-page .elementor-location-header .elementor-item.elementor-item-active {
  color: #df2949 !important;
}
body.usvh-video-page .entry-header,
body.usvh-video-page .page-header:not(.elementor-location-header) { display: none !important; }
body.usvh-video-page .site-main > article > .entry-content { margin-top: 0; }

.usvh-hub {
  --usvh-blue: #1a1a6e;
  --usvh-navy: #1d2951;
  --usvh-red: #c52237;
  --usvh-light: #f7f8fb;
  --usvh-border: #e5e7ed;
  font-family: inherit !important;
  direction: rtl;
  text-align: right;
  position: relative;
  box-sizing: border-box;
  background: #fff;
  color: var(--usvh-navy);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.usvh-hub *, .usvh-hub *::before, .usvh-hub *::after,
.usvh-modal *, .usvh-modal *::before, .usvh-modal *::after { box-sizing: border-box; }
.usvh-hub button, .usvh-hub a, .usvh-hub h1, .usvh-hub h2,
.usvh-hub h3, .usvh-hub p, .usvh-modal * { font-family: inherit !important; }
.usvh-hub button, .usvh-modal button { cursor: pointer; }
.usvh-hub .usvh-container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

/* Hero uses no video files. Optional still photograph layered under the site's navy. */
.usvh-hub .usvh-hero {
  position: relative;
  text-align: center;
  padding: clamp(80px, 9vw, 116px) 20px 92px;
  color: #fff;
  isolation: isolate;
  background-color: #211a4a;
  background-image: linear-gradient(110deg, rgba(28,27,83,.92), rgba(29,24,73,.83)), var(--usvh-hero-image, linear-gradient(120deg,#211a4a,#232258));
  background-size: cover;
  background-position: center;
}
.usvh-hub .usvh-hero h1 {
  color: #fff !important;
  font-size: clamp(34px,4.5vw,58px) !important;
  line-height: 1.24 !important;
  font-weight: 700 !important;
  letter-spacing: -.6px;
  max-width: 950px;
  margin: 0 auto 24px !important;
  padding: 0;
}
.usvh-hub .usvh-hero p {
  font-size: clamp(17px,1.8vw,21px) !important;
  line-height: 1.8;
  max-width: 740px;
  color: rgba(255,255,255,.91) !important;
  margin: 0 auto !important;
}
.usvh-hub .usvh-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.usvh-hub .usvh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 29px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 100px;
  text-decoration: none !important;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.usvh-hub .usvh-btn:hover { transform: translateY(-2px); }
.usvh-hub .usvh-btn-red { background: var(--usvh-red); color: #fff !important; border-color: var(--usvh-red); }
.usvh-hub .usvh-btn-red:hover { background: #a91c30; border-color: #a91c30; color:#fff !important; }
.usvh-hub .usvh-btn-outline { background: transparent; border-color: rgba(255,255,255,.7); color: #fff !important; }
.usvh-hub .usvh-btn-outline:hover { background: #fff; color: var(--usvh-blue) !important; }

.usvh-hub .usvh-section { padding: 90px 0 100px; scroll-margin-top: 95px; }
.usvh-hub .usvh-light { background: var(--usvh-light); }
.usvh-hub .usvh-heading { text-align: center; max-width: 780px; margin: 0 auto 45px; }
.usvh-hub .usvh-heading::after { content: ""; display: block; width: 55px; height: 4px; background: var(--usvh-red); margin: 25px auto 0; border-radius: 5px; }
.usvh-hub .usvh-heading h2 { font-size: clamp(28px,3.2vw,42px) !important; font-weight: 700 !important; color: var(--usvh-blue) !important; margin: 0 0 15px !important; padding:0; line-height: 1.3 !important; }
.usvh-hub .usvh-heading p { color: #58627b !important; font-size: 18px !important; line-height: 1.8; margin: 0 !important; }
.usvh-hub .usvh-empty { text-align:center; color:#58627b; }

.usvh-hub .usvh-podcast-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 45px 24px; }
.usvh-hub .usvh-podcast { display: block; flex: 0 0 calc((100% - 48px)/3); min-width:0; text-align:center; padding:0; margin:0; border:0; box-shadow:none; background:transparent; color:inherit; appearance:none; }
.usvh-hub .usvh-podcast-thumb { position:relative; display:block; width:100%; aspect-ratio:16/9; background:var(--usvh-navy); overflow:hidden; border-radius:10px; }
.usvh-hub .usvh-podcast-thumb img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .4s ease, opacity .3s ease; }
.usvh-hub .usvh-podcast:hover img { transform:scale(1.055); opacity:.83; }
.usvh-hub .usvh-play { position:absolute; z-index:2; left:50%; top:50%; transform:translate(-50%,-50%); display:flex; align-items:center; justify-content:center; width:61px; height:61px; border-radius:50%; background:var(--usvh-red); color:#fff; box-shadow:0 5px 25px rgba(0,0,0,.23); transition:background .22s ease, transform .22s ease; }
.usvh-hub .usvh-play svg { display:block; width:24px; height:24px; fill:currentColor; transform:translateX(-1px); }
.usvh-hub .usvh-podcast:hover .usvh-play, .usvh-hub .usvh-reel:hover .usvh-play { background:var(--usvh-blue); transform:translate(-50%,-50%) scale(1.08); }
.usvh-hub .usvh-podcast-title { display:block; font-weight:700; color:var(--usvh-blue); font-size:21px; line-height:1.45; margin-top:19px; }
.usvh-hub .usvh-watch { display:inline-block; color:var(--usvh-red); font-size:15px; font-weight:700; margin-top:8px; }

.usvh-hub .usvh-reels-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); column-gap:18px; row-gap:34px; }
.usvh-hub .usvh-reel { display:block; width:100%; min-width:0; border:0; padding:0; margin:0; background:transparent; appearance:none; box-shadow:none; color:inherit; text-align:center; }
.usvh-hub .usvh-reel-visual { display:block; position:relative; width:100%; aspect-ratio:9/16; border-radius:10px; overflow:hidden; background:linear-gradient(155deg,#32456f,#141b42); isolation:isolate; }
.usvh-hub .usvh-reel-visual::after { content:""; position:absolute; z-index:1; inset:0; background:linear-gradient(to top,rgba(5,12,38,.35),transparent 50%); pointer-events:none; }
.usvh-hub .usvh-reel-poster,.usvh-hub .usvh-reel-preview { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.usvh-hub .usvh-reel-preview { opacity:0; transition:opacity .3s; }
.usvh-hub .usvh-reel-preview.usvh-ready { opacity:1; }
.usvh-hub .usvh-reel-placeholder { display:flex; align-items:center; justify-content:center; position:absolute; inset:0; color:rgba(255,255,255,.16); font-size:13px; font-weight:bold; letter-spacing:.13em; }
.usvh-hub .usvh-reel .usvh-play { width:52px; height:52px; }
.usvh-hub .usvh-reel .usvh-play svg { width:21px; height:21px; }
.usvh-hub .usvh-reel-title { display:block; font-size:17px; font-weight:700; color:var(--usvh-blue); line-height:1.5; margin-top:13px; transition:color .2s; }
.usvh-hub .usvh-reel:hover .usvh-reel-title { color:var(--usvh-red); }

.usvh-hub .usvh-final { padding:80px 22px 90px; background:#fff; text-align:center; }
.usvh-hub .usvh-final h2 { font-size:clamp(29px,3vw,40px) !important; line-height:1.35 !important; color:var(--usvh-blue) !important; font-weight:700 !important; margin:0 0 18px !important; }
.usvh-hub .usvh-final p { font-size:18px; line-height:1.8; max-width:650px; margin:0 auto 28px; color:#58627b; }

/* Modal is moved to document.body to avoid Elementor stacking and clipping. */
.usvh-modal[hidden], .usvh-modal .usvh-fallback[hidden] { display:none !important; }
.usvh-modal { position:fixed; inset:0; z-index:2147483000; display:flex; justify-content:center; align-items:center; padding:18px; direction:rtl; }
.usvh-modal-backdrop { position:absolute; inset:0; background:rgba(8,13,36,.94); }
.usvh-modal-shell { position:relative; z-index:1; width:min(960px,100%); max-height:calc(100dvh - 36px); display:flex; flex-direction:column; overflow:hidden; background:#101a3c; color:#fff; border-radius:12px; box-shadow:0 20px 70px rgba(0,0,0,.35); }
.usvh-modal-top { display:flex; align-items:center; justify-content:space-between; gap:15px; min-height:61px; padding:15px 20px; }
.usvh-modal-name { color:#fff; font-size:18px; font-weight:700; line-height:1.35; }
.usvh-modal-close { display:flex; justify-content:center; align-items:center; flex:0 0 38px; width:38px; height:38px; padding:0; border:0; border-radius:50%; color:#fff; background:rgba(255,255,255,.12); font-size:28px; line-height:1; }
.usvh-modal-close:hover { background:#c52237; }
.usvh-player-stage { position:relative; width:100%; aspect-ratio:16/9; min-height:0; background:#000; }
.usvh-player-stage iframe,.usvh-player-stage video { display:block; position:absolute; inset:0; width:100%; height:100%; border:0; background:#000; object-fit:contain; }
.usvh-modal-shell.usvh-portrait { width:min(430px,100%); }
.usvh-portrait .usvh-player-stage { height:min(70dvh,690px); aspect-ratio:auto; }
.usvh-fallback { background:#101a3c; padding:13px 20px; text-align:center; font-size:14px; line-height:1.5; color:#fff; }
.usvh-fallback a { color:#fff; font-weight:700; text-decoration:underline; }
.usvh-hub button:focus-visible,.usvh-hub a:focus-visible,.usvh-modal button:focus-visible { outline:3px solid #c52237; outline-offset:4px; }

@media(max-width:1024px) {
  .usvh-hub .usvh-podcast { flex-basis:calc((100% - 24px)/2); }
  .usvh-hub .usvh-reels-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:767px) {
  .usvh-hub .usvh-container { width:calc(100% - 32px); }
  .usvh-hub .usvh-hero { padding:75px 18px; }
  .usvh-hub .usvh-hero h1 { font-size:clamp(30px,8vw,41px) !important; letter-spacing:0; margin-bottom:18px !important; }
  .usvh-hub .usvh-hero p { font-size:16px !important; line-height:1.75; }
  .usvh-hub .usvh-hero-actions { gap:10px; margin-top:27px; }
  .usvh-hub .usvh-btn { font-size:14px; min-height:46px; padding:12px 18px; }
  .usvh-hub .usvh-section { padding:65px 0 75px; scroll-margin-top:75px; }
  .usvh-hub .usvh-heading { margin-bottom:34px; }
  .usvh-hub .usvh-heading h2 { font-size:29px !important; }
  .usvh-hub .usvh-heading p { font-size:16px !important; }
  .usvh-hub .usvh-podcast-grid { gap:33px; }
  .usvh-hub .usvh-podcast { flex-basis:100%; }
  .usvh-hub .usvh-podcast-title { font-size:19px; margin-top:14px; }
  .usvh-hub .usvh-play { width:55px; height:55px; }
  .usvh-hub .usvh-reels-grid { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:12px; row-gap:26px; }
  .usvh-hub .usvh-reel-title { font-size:15px; margin-top:10px; }
  .usvh-hub .usvh-reel .usvh-play { width:47px; height:47px; }
  .usvh-hub .usvh-final { padding:65px 20px 75px; }
  .usvh-hub .usvh-final p { font-size:16px; }
  .usvh-modal { padding:9px; }
  .usvh-modal-shell { max-height:calc(100dvh - 18px); }
  .usvh-modal-top { padding:10px 13px; min-height:54px; }
  .usvh-modal-name { font-size:15px; }
  .usvh-portrait .usvh-player-stage { height:min(72dvh,650px); }
}
@media(prefers-reduced-motion:reduce) {
  .usvh-hub *, .usvh-modal * { transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

/* Mobile only: retain the site's white header and its dark navigation.
   Desktop styling remains unchanged. This is scoped to Video Hub pages. */
@media screen and (max-width: 767px) {
  body.usvh-video-page .elementor-location-header,
  body.usvh-video-page #masthead,
  body.usvh-video-page header.site-header,
  body.usvh-video-page .elementor-location-header .elementor-top-section,
  body.usvh-video-page .elementor-location-header .e-con.e-parent,
  body.usvh-video-page .elementor-location-header > .elementor > .elementor-section-wrap > .elementor-section:first-child,
  body.usvh-video-page .elementor-location-header > .elementor > .e-con:first-child,
  body.usvh-video-page .elementor-location-header > .elementor > .elementor-section:first-child {
    background-color: #ffffff !important;
  }

  body.usvh-video-page .elementor-location-header .elementor-nav-menu--main .elementor-item,
  body.usvh-video-page .elementor-location-header .elementor-icon-list-text {
    color: #1d2951 !important;
  }

  body.usvh-video-page .elementor-location-header .elementor-item:hover,
  body.usvh-video-page .elementor-location-header .elementor-item.elementor-item-active {
    color: #df2949 !important;
  }
}
