/* =========================================================
   0) MOBILE: hide the big logo image, keep the menu
   ========================================================= */
@media (max-width: 768px) {
  img.custom-logo,
  img[src*="cropped-Logo-1"] {
    display: none !important;
  }
}

/* =========================================================
   1) WPForms – center + style
   ========================================================= */
.wpforms-container {
  max-width: 1000px;
  margin: 0 auto !important;
}
.wpforms-form { padding: 20px; }

.wpforms-container input,
.wpforms-container textarea,
.wpforms-container select {
  border-width: 2px !important;
  border-style: solid !important;
  border-color: #000000 !important;
  border-radius: 6px !important;
  padding: 10px !important;
}

/* Phone fields (intl addon too) */
.wpforms-container input[type="tel"],
.wpforms-container .wpforms-field-phone input,
.wpforms-container .iti input,
.wpforms-container .iti--allow-dropdown input {
  border-width: 2px !important;
  border-style: solid !important;
  border-color: #000000 !important;
  border-radius: 6px !important;
  padding: 10px !important;
}

/* =========================================================
   2) BIO SECTION (Meet Your Attorney)
   ========================================================= */
.bio-section {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1100px;
  margin: 60px auto;
  padding: 10px 20px;
}

.bio-image img {
  width: 400px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.bio-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}

.bio-text h2 {
  font-size: 30px;
  margin-bottom: 5px;
  font-weight: 600;
}
.bio-text h3 {
  margin-top: 0;
  font-size: 22px;
  font-weight: 500;
  color: #444;
}

.bio-text p {
  margin-bottom: 18px;
  letter-spacing: 0.2px;
  word-break: normal;
  white-space: normal;
}

.bio-text p {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Mobile bio layout */
@media (max-width: 768px) {
  .bio-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .bio-image img {
    width: 260px;
    margin-bottom: 20px;
  }
}

/* =========================================================
   3) MOBILE STICKY BAR : CALL / TEXT / CONSULTATION
   ========================================================= */
.ml-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(90deg, #0B3C61, #1A73E8);
  z-index: 99999;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  overflow: hidden;
}

.ml-sticky-btn {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ml-text-btn {
  border-left: 1px solid rgba(255,255,255,0.25);
  border-right: 1px solid rgba(255,255,255,0.25);
}

.ml-consult-btn {
  background: rgba(0,0,0,0.08);
}

.ml-sticky-btn:active,
.ml-sticky-btn:hover {
  background: rgba(0,0,0,0.15);
}

@media (min-width: 769px) {
  .ml-sticky-bar { display: none; }
}

/* Lighten Call icon image */
.ml-sticky-btn[href^="tel"] img {
  filter: brightness(0) invert(1) opacity(0.75);
}

/* =========================================================
   4) HOMEPAGE H1 sizing (global clamp)
   ========================================================= */
body.home h1 {
  font-size: clamp(32px, 3vw, 40px) !important;
  line-height: 1.15 !important;
}

/* =========================================================
   6) MOBILE: remove the blue contact/social header strip
   ========================================================= */
@media (max-width: 768px) {
  .classic-header > header#site-header.site-header.vrsn-two {
    display: none !important;
  }
}

/* =========================================================
   7) MOBILE NAV - premium look
   ========================================================= */
@media (max-width: 768px){
  nav.navbar-header-wrap{
    padding: 6px 0 !important;
    min-height: 0 !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 0 0 16px 16px !important;
  }

  nav.navbar-header-wrap .container-full{ padding: 0 !important; }

  nav.navbar-header-wrap .row.align-self-center{
    margin: 0 !important;
    align-items: center !important;
    min-height: 0 !important;
  }

  nav.navbar-header-wrap .row.align-self-center > .align-self-center{
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
    padding: 0 12px !important;
    line-height: 1 !important;
    min-height: 46px !important;
  }

  nav.navbar-header-wrap a.navbar-brand{ display: none !important; }
  nav.navbar-header-wrap .themes-header-top{ display: none !important; }

  nav.navbar-header-wrap button.navbar-toggler{
    padding: 8px 12px !important;
    margin: 0 !important;
    line-height: 1 !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.95) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
  }

  nav.navbar-header-wrap .navbar-toggler-icon{
    opacity: 0.85 !important;
  }

  nav.navbar-header-wrap button.navbar-toggler:focus{
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,105,255,0.20), 0 6px 16px rgba(0,0,0,0.10) !important;
  }

  nav.navbar-header-wrap:after{
    content: "" !important;
    display: block !important;
    height: 2px !important;
    background: rgba(0,105,255,0.35) !important;
  }
}

/* =========================================================
   8) DESKTOP HEADER PREMIUM (sticky + blur + logo safe)
   ========================================================= */
@media (min-width: 769px) {

  .navbar.navbar-header-wrap{
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: rgba(255,255,255,0.88) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: visible !important;
    min-height: 84px !important;
    display: flex !important;
    align-items: center !important;
  }

  .navbar.navbar-header-wrap .container,
  .navbar.navbar-header-wrap .container-fluid,
  .navbar.navbar-header-wrap .container-full,
  .navbar.navbar-header-wrap .row,
  .navbar.navbar-header-wrap .navbar-collapse,
  .navbar.navbar-header-wrap .navbar-header {
    overflow: visible !important;
  }

  .navbar.navbar-header-wrap .navbar-brand,
  .navbar.navbar-header-wrap .custom-logo-link{
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 0 !important;
    line-height: 1.1 !important;
    height: auto !important;
    max-height: none !important;
  }

  .navbar.navbar-header-wrap img.custom-logo,
  .navbar.navbar-header-wrap .custom-logo-link img,
  .navbar.navbar-header-wrap .navbar-brand img,
  .navbar.navbar-header-wrap .site-logo img,
  .navbar.navbar-header-wrap .logo img{
    display: block !important;
    height: auto !important;
    width: auto !important;
    max-height: 62px !important;
    max-width: none !important;
    object-fit: contain !important;
  }

  .navbar.navbar-header-wrap .site-title,
  .navbar.navbar-header-wrap .navbar-brand .site-title,
  .navbar.navbar-header-wrap .navbar-brand .site-name,
  .navbar.navbar-header-wrap .navbar-brand span,
  .navbar.navbar-header-wrap .navbar-brand strong{
    display: inline-block !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  .navbar.navbar-header-wrap .navbar-nav > li > a,
  .navbar.navbar-header-wrap .nav > li > a{
    padding: 14px 12px !important;
    font-weight: 600 !important;
    color: rgba(15,23,42,0.88) !important;
    transition: all 180ms ease !important;
  }

  .navbar.navbar-header-wrap .navbar-nav > li > a:hover,
  .navbar.navbar-header-wrap .nav > li > a:hover{
    color: #0B3C61 !important;
    background: rgba(11,60,97,0.06) !important;
    border-radius: 12px !important;
  }
}

/* =========================================================
   5) MOBILE HERO - TARGET ONLY New-Hero-Photo.png
   (FULL BLOCK: PHOTO + TEXT — text unchanged, photo corrected)
   ========================================================= */
@media (max-width: 768px) {

  /* ---------------------------
     HERO IMAGE - SIZE + CROP
     --------------------------- */
  #theme-main-slider .item[style*="New-Hero-Photo.png"]{
    height: 72vh !important;
    min-height: 520px !important;
    max-height: 700px !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;

    /* ✅ PHOTO TUNING ONLY:
       Increase Y% to move photo DOWN (try 78%, 82%, 86%, 90%) */
    background-position: 50% 82% !important;

    position: relative !important;
    overflow: hidden !important;
  }

  /* IF SLIDER USES IMG ON MOBILE */
  #theme-main-slider .item[style*="New-Hero-Photo.png"] img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;

    /* ✅ must match background-position */
    object-position: 50% 82% !important;
  }

  /* ---------------------------
     TEXT GROUP - MOBILE HERO POSITIONING
     (UNCHANGED from your current code)
     --------------------------- */
  #theme-main-slider .item[style*="New-Hero-Photo.png"] .theme-slider-content{
    position: absolute !important;
    left: 14px !important;
    right: 14px !important;
    bottom: clamp(88px, 12vh, 110px) !important;
    top: auto !important;
    transform: none !important;
    z-index: 5 !important;
  }

  /* TEXT CONTAINER (UNCHANGED) */
  #theme-main-slider .item[style*="New-Hero-Photo.png"] .theme-text-right.align-right{
    max-width: 70% !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-align: right !important;
  }

  /* TITLE + DESCRIPTION (UNCHANGED) */
  #theme-main-slider .item[style*="New-Hero-Photo.png"] .title-large{
    font-size: clamp(18px, 4.6vw, 26px) !important;
    line-height: 1.15 !important;
    margin: 0 0 6px 0 !important;
  }

  #theme-main-slider .item[style*="New-Hero-Photo.png"] .description{
    font-size: clamp(13px, 3.6vw, 16px) !important;
    line-height: 1.35 !important;
    margin: 0 0 10px 0 !important;
  }

  /* READABILITY WITHOUT BOX (UNCHANGED) */
  #theme-main-slider .item[style*="New-Hero-Photo.png"] .title-large,
  #theme-main-slider .item[style*="New-Hero-Photo.png"] .description{
    text-shadow: 0 2px 10px rgba(0,0,0,0.55) !important;
  }

  /* BUTTON (UNCHANGED) */
  #theme-main-slider .item[style*="New-Hero-Photo.png"] .mt-4.pt-2{
    margin-top: 8px !important;
    padding-top: 0 !important;
  }

  #theme-main-slider .item[style*="New-Hero-Photo.png"] a.btn-small.btn-default{
    display: inline-block !important;
    white-space: normal !important;
  }
}

/* =========================================================
   HERO PHOTO – DESKTOP/TABLET POSITION (does NOT affect mobile .png rule)
   ========================================================= */

/* Desktop */
@media (min-width: 1101px) {
  #theme-main-slider .item[style*="New-Hero-Photo"]{
    background-position: 50% -30% !important; /* your previous desktop tuning */
  }
}

/* =========================================================
   HERO PHOTO – MOBILE (Owl active slide, no distortion, no grey)
   ========================================================= */
@media (max-width: 768px) {
  body.home #theme-main-slider .owl-item.active .item[style*="New-Hero-Photo.png"]{
    background-repeat: no-repeat !important;
    background-size: 195% auto !important;     /* big enough to prevent grey gap */
    background-position: 50% 96% !important;  /* tune this only */
  }
}

/* =========================================================
   HERO PHOTO – "DESKTOP SITE" ON PHONE (reliable fix)
   Uses device-width so it still applies in "Request desktop site"
   ========================================================= */
@media only screen and (max-device-width: 768px) and (min-width: 769px) {
  body.home #theme-main-slider .owl-item.active .item[style*="New-Hero-Photo.png"]{
    background-repeat: no-repeat !important;
    background-size: 160% auto !important;
    background-position: 50% -60% !important; /* your good desktop-on-phone value */
  }
}

/* ============================
   HERO CTA BUTTON – FINAL
   ============================ */

/* Button base */
#theme-main-slider .btn,
#theme-main-slider a.btn {
  padding: 16px 22px;
  line-height: 1.2;
  text-align: center;
}

/* Main CTA line (dominant) */
#theme-main-slider .cta-main {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Secondary line (supporting) */
#theme-main-slider .cta-subtext {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.2px;
}

/* Mobile tuning */
@media (max-width: 768px) {
  #theme-main-slider .cta-main {
    font-size: 19px;
  }

  #theme-main-slider .cta-subtext {
    font-size: 12px;
    margin-top: 4px;
  }
}

/* ============================
   MOBILE CTA – FINAL POLISH
   ============================ */
@media (max-width: 768px) {

  #theme-main-slider .btn,
  #theme-main-slider a.btn {
    padding: 10px 10px;
    min-height: unset;
    width: auto !important;
    max-width: 200px !important;
    display: inline-block !important;
    margin-left: auto;
    margin-right: auto;
  }

  #theme-main-slider .cta-main {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.2px;
  }

  #theme-main-slider .cta-subtext {
    font-size: 9px;
    line-height: 1.2;
    margin-top: 3px;
    opacity: 0.7;
  }
}

/* Remove bottom author box on single posts */
/* Remove entire author white box on single blog posts */
.single-post article.theme-blog-author {
    display: none !important;
}


/* Gutenberg lists: restore bullets + numbering + clean spacing */
ul.wp-block-list {
  list-style: disc;
}

ol.wp-block-list {
  list-style: decimal;
}

ul.wp-block-list,
ol.wp-block-list {
  padding-left: 1.5em;
  margin-left: 0;
}

.wp-block-list li {
  margin: 0.35em 0;
  line-height: 1.6;
}

/* Full-width hero image on desktop */
.ud-hero-img {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

.ud-hero-img img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  position: relative;
  top: 100px; /* increase until it looks right */
}
@media (min-width: 1024px) {
  .ud-hero-img img {
    max-height: 850px;
    object-fit: cover;
  }
}

/* Center the content and make it look like a designed card */
.ud-card{
  max-width: 1100px;
  margin: -60px auto 30px auto;  /* pulls card up over the image */
  background: #fff;
  padding: 28px 34px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

/* Mobile spacing */
@media (max-width: 768px){
  .ud-card{
    margin: -20px 16px 20px 16px;
    padding: 18px 18px;
    border-radius: 14px;
  }
}

/* Center section container */
.ud-trust{
  max-width: 1100px;
  margin: 10px auto 40px auto;
  padding: 0 16px;
}

/* Card style */
.ud-card{
  background:#fff;
  border-radius:16px;
  padding:18px 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

/* Make the columns feel spaced and clean */
.ud-trust .wp-block-column{
  padding: 0 10px;
}

.ud-trust h3{
  margin: 0 0 8px 0;
  font-size: 25px;
}

.ud-trust p{
  margin: 0;
  color:#444;
  line-height: 1.45;
  font-size: 15px;
}

@media (max-width: 781px){
  .ud-trust .wp-block-column{ padding: 0; margin-bottom: 14px; }
}

.ud-section {
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ====== PAGE STRUCTURE ====== */

/* keep your existing ud-content wrapper */
.ud-content{
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding: 10px 22px 60px !important;
}

/* each major section becomes a clean "card" */
.ud-section{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:34px 34px;
  margin:22px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* headings: readable + not screaming */
.ud-section h2{
  font-size:26px !important;
  line-height:1.2 !important;
  margin:0 0 12px !important;
  text-transform:none !important;
  letter-spacing:-0.2px !important;
}

.ud-section h3{
  font-size:18px !important;
  margin:18px 0 8px !important;
  text-transform:none !important;
}

/* body text */
.ud-section p, .ud-section li{
  font-size:16px !important;
  line-height:1.7 !important;
  color:#222 !important;
}

/* lists */
.ud-section ul, .ud-section ol{
  padding-left:20px !important;
  margin:12px 0 0 !important;
}

.ud-section li{ margin:6px 0 !important; }

/* make SERVICES list look like two columns (desktop only) */
.ud-section.services ul{
  columns: 2;
  column-gap: 38px;
}
.ud-section.services li{
  break-inside: avoid;
}

/* buttons */
.ud-content .wp-block-button__link{
  border-radius:999px !important;
  padding:12px 22px !important;
  font-weight:700 !important;
}

/* mobile */
@media (max-width: 768px){
  .ud-section{
    padding:22px 18px !important;
    border-radius:14px !important;
  }
  .ud-section.services ul{ columns:1; }
}

/* Alternate section styling for rhythm */
.ud-section:nth-of-type(even){
  background:#f7f8fa;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}

.ud-section h2{
  position: relative;
  padding-left: 14px;
}

.ud-section h2:before{
  content:"";
  position:absolute;
  left:0;
  top: 6px;
  width: 4px;
  height: 24px;
  border-radius: 3px;
  background:#1A73E8;
}

.ud-section p{
  color:#1f2937;
}

.ud-section{
  line-height: 1.7;
}

/* Services list as pill grid */
.ud-section.services ul{
  list-style:none;
  padding-left:0 !important;
  columns: 1; /* keep predictable */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.ud-section.services li{
  background:#fff;
  border:1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

@media (max-width: 768px){
  .ud-section.services ul{
    grid-template-columns: 1fr;
  }
}

.ud-cta{
  background: linear-gradient(90deg, #0B3C61, #1A73E8);
  color:#fff;
  border-radius: 18px;
  padding: 34px 22px;
  text-align:center;
  border: none;
}

.ud-cta p{ color: rgba(255,255,255,0.9) !important; }

.ud-cta .wp-block-button__link{
  background:#fff !important;
  color:#0B3C61 !important;
}
/* Force white heading inside CTA */
.ud-cta h2{
  color:#ffffff !important;
}

/* ================================ */
/* IMMIGRATION PREMIUM STYLE       */
/* Apply class "immigration-premium" */
/* ================================ */

.immigration-premium {
  max-width: 860px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
}

.immigration-premium p {
  margin: 0 0 16px;
}

/* H1 */
.immigration-premium h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #0B2C5D;
}

/* H2 */
.immigration-premium h2 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 40px 0 10px;
  padding-top: 10px;
  color: #0B2C5D;
}

.immigration-premium h2:after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: #0B2C5D;
  opacity: 0.25;
}

/* H3 */
.immigration-premium h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 26px 0 10px;
  color: #1F2F46;
  padding-left: 10px;
  border-left: 3px solid #0B2C5D;
}

/* Lists */
.immigration-premium ul {
  margin: 8px 0 18px 20px;
}

.immigration-premium li {
  margin-bottom: 8px;
}

/* Links */
.immigration-premium a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* PREMIUM BOX STYLE (Reusable everywhere) */

.premium-box,
.wp-block-group.premium-box {

  background: #E9EEF5 !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 16px !important;

  padding: 24px !important;
  margin: 28px 0 !important;

  box-shadow: 0 10px 24px rgba(0,0,0,0.08) !important;

}

/* Mobile */
@media (max-width: 768px) {

  .immigration-premium {
    font-size: 17px;
    line-height: 1.7;
    padding: 0 12px;
  }

  .immigration-premium h1 {
    font-size: 28px;
  }

  .immigration-premium h2 {
    font-size: 23px;
  }

}

/* PREMIUM BOX styling for the homepage WPForms form (ID 419) */
#wpforms-419 {
  background: #E9EEF5 !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08) !important;
}

/* Add a bit of breathing room around the form */
#wpforms-419 .wpforms-field-container {
  margin-top: 8px;
}

/* Make field labels look a little more premium */
#wpforms-419 .wpforms-field-label {
  font-weight: 700;
}

/* Inputs/textarea: cleaner look */
#wpforms-419 input[type="text"],
#wpforms-419 input[type="email"],
#wpforms-419 input[type="number"],
#wpforms-419 textarea {
  border-radius: 10px;
}

/* Button: slightly more premium */
#wpforms-419 button[type="submit"],
#wpforms-419 .wpforms-submit {
  border-radius: 12px;
  font-weight: 700;
}

/* Hide duplicate post title under the banner */
.single-post .entry-title {
display: none;
}

/* HOMEPAGE POSTS: show only a short preview, hide long content + form */
.home article.post .entry-content .immigration-premium h2,
.home article.post .entry-content .immigration-premium h3,
.home article.post .entry-content .immigration-premium hr,
.home article.post .entry-content .immigration-premium ul,
.home article.post .entry-content .immigration-premium ol,
.home article.post .entry-content .immigration-premium .wpforms-container,
.home article.post .entry-content .immigration-premium style {
  display: none !important;
}

/* Hide all paragraphs after the first one */
.home article.post .entry-content .immigration-premium p:nth-of-type(n+2) {
  display: none !important;
}