/* For galaxy fold ===  */
@media (max-width: 440px) {
    .display-4 {
        font-size: 1.7rem;
    }

    .h1,
    h1,
    .h2,
    h2 {
        font-size: 1.5rem;
    }

    .h3,
    h3,
    .h4,
    h4 {
        font-size: 1.25rem;
    }

    .h5,
    h5 {
        font-size: 1.05rem;
    }
}

@media (min-width: 441px) and (max-width: 812px) {

    h1,
    .h1 {
        font-size: 1.85rem;
    }

    h2,
    .h2 {
        font-size: 1.5rem;
    }

    h3,
    .h3 {
        font-size: 1.25rem;
    }

    .display-4 {
        font-size: 2.25em;
    }
}

/* HEADER ==============================  */

.header .header-info img {
    width: 300px;
}

.cw-header-info {
    padding: 0.5rem 0;
}

.header a.header-business-phone,
.header span {
    vertical-align: middle;
}

.header a.header-business-phone {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    hyphens: none;
}

/*Navbar*/
.header .navbar-dark .navbar-nav .nav-link {
    background: #01467a;
    color: #fff;
}

.header .navbar-dark .navbar-nav .nav-link:hover {
    background: var(--color-theme-primary);
}

.header .navbar-dark .navbar-nav>.active .nav-link {
    color: #fff !important;
}

.header .navbar-dark .navbar-nav .nav-item .nav-link:before {
    border-width: 0 !important;
}

.header .navbar .active>.nav-link,
.header .navbar .dropdown-item.active,
.header .navbar .dropdown-item:active,
.header .navbar .show>.nav-link {
    background-color: var(--header-secondary);
}

/* HOME PAGE ==========================  */


.cw-video-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  .cw-video-wrap {
    position: relative;
    width: 100%;
    z-index: 1; /* Video layer */
  }
  
  
  .cw-banner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 3; /* Above video */
    pointer-events: none;
  }
  
  
  .cw-banner .hero-text,
  .cw-banner .hero-text * {
    pointer-events: auto;
  }
  
  
  .cw-video-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      rgba(0,0,0,0.45),
      rgba(0,0,0,0.45)
    );
    z-index: 2;            
    pointer-events: none; 
  }
  
  
  @media (max-width: 768px) {
    .cw-banner h1 {
      font-size: 1.75rem;
    }
  }


@media (max-width: 575px) {

    /* Remove overlay behavior */
    .cw-banner {
      position: relative;
      inset: auto;
      z-index: auto;
      pointer-events: auto;
      padding: 30px 0;
    }
  
    /* Remove dark overlay on mobile */
    .cw-video-hero::after {
      display: none;
    }
  
    /* Adjust text color for light bg */
    .cw-banner h1,
    .cw-banner p,
    .cw-banner h5 {
      color: #212529;
    }
  
    /* Spacing polish */
    .cw-banner .hero-text {
      max-width: 100%;
    }
  }
  

  @media (min-width: 576px) {
  
    .cw-banner {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      z-index: 3;
      pointer-events: none;
    }
  
    .cw-banner .hero-text,
    .cw-banner .hero-text * {
      pointer-events: auto;
    }
  }
  



/* Section wrapper */
.cw-care-model {
    padding: 80px 0;
    background-color: #f8f9fa;
  }
  
  /* Headings */
  .cw-section-title {
    margin-bottom: 20px;
    font-weight: 700;
  }
  
  /* Benefits list */
  .cw-benefits-list {
    padding-left: 18px;
    margin-bottom: 20px;
  }
  
  .cw-benefits-list li {
    margin-bottom: 8px;
  }
  
  /* Fit disclaimer */
  .cw-fit-note {
    margin-top: 20px;
    font-style: italic;
    opacity: 0.9;
  }
  
  /* Care model box */
  .cw-care-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  
  /* Box title */
  .cw-care-box-title {
    margin-bottom: 20px;
    font-weight: 600;
  }
  
  /* Stats list */
  .cw-care-stats {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .cw-care-stats li {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
  }
  
  .cw-care-stats li:last-child {
    border-bottom: none;
  }







  .cw-info-group {
    padding: 70px 0;
    background-color: #ffffff;
  }
  
  .cw-info-card {
    height: 100%;
    padding: 30px;
    border-radius: 10px;
    background: #f8f9fa;
  }
  
  /* Titles */
  .cw-info-title {
    margin-bottom: 15px;
    font-weight: 700;
  }
  
  /* Lists */
  .cw-info-list {
    padding-left: 18px;
    margin-bottom: 15px;
  }
  
  .cw-info-list li {
    margin-bottom: 6px;
  }
  
  /* Footnotes */
  .cw-info-footnote {
    font-size: 0.95rem;
    opacity: 0.9;
  }
  
  /* Subtle visual separation (no extra space) */
  .cw-info-services {
    border-top: 4px solid #0d6efd;
  }
  
  .cw-info-billing {
    border-top: 4px solid #198754;
  }
  
  .cw-info-veterans {
    border-top: 4px solid #6c757d;
  }
  
  /* Mobile spacing */
  @media (max-width: 767px) {
    .cw-info-card {
      margin-bottom: 25px;
    }
  }





  .cw-footer-cta {
    position: relative;
    padding: 90px 0;
    background-image: url("https://apihoard.webit.com/api/v1/Image/AB9A7F77E53F6FAD8AB272D82BA1B5FC/AB9A7F77E53F6FAD8AB272D82BA1B5FC.jpg?size=1920x1440");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  /* Dark overlay for readability */
  .cw-footer-cta-overlay {
    position: relative;
  }
  
  .cw-footer-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
  }
  
  /* Text styling */
  .cw-footer-cta-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
  }
  
  .cw-footer-cta-text {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
  }
  
  /* Mobile tuning */
  @media (max-width: 767px) {
    .cw-footer-cta {
      padding: 70px 0;
    }
  
    .cw-footer-cta-title {
      font-size: 1.8rem;
    }
  }








/*
.cw-hero {
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url(https://apihoard.webit.com/api/v1/Image/D2F4126452643AAF5AF0A03878BFF8AF/D2F4126452643AAF5AF0A03878BFF8AF.jpg?size=1920x1440);
    background-position: 50% 21%;
    background-size: cover;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-text {
    position: relative;
     top: 89%; 
    color: #fff;
}



.hero-text h1 {
    color: #01467A;
    text-shadow: 1px 1px 5px #ffffff;
}

.hero-text p {
     text-shadow: 1px 1px #000000;
    font-weight: 800;
    font-size: 19px;
}
*/

/*List module settings*/
.page-home .list .list-wrap {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    padding-bottom: 3rem;
}

/*covid popup*/
#wb__c19-modal .modal-dialog {
    /*        max-width: 650px;*/
}

#wb__c19-modal .modal-body {
    background: #222;

    background-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%),
        url("https://apihoard.webit.com/api/v1/Image/388B6FDCB59E4D12788590C0C52508BB/388B6FDCB59E4D12788590C0C52508BB.jpg?size=1920x1440");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
}

#wb__c19-modal .modal-body p {
    font-size: 1.3rem;
    font-weight: 700;
}

#wb__c19-modal .modal-footer {
    border-top: 0;
}

.page-home .textwithimage-img img {
    width: 450px !important;
    margin: 0 auto;
    max-width: 100%;
}


/*---- HOMEPAGE CAREER SECTION ----*/

.cw-career-link-col {
    flex-direction: column;
}

.cw-senior-logo {
    padding-bottom: 2rem;
}

@media (min-width: 330px) {
    .cw-senior-logo-img {
        width: 60%;
    }
}

@media (min-width: 440px) {
    .cw-senior-logo-img {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .cw-senior-logo-img {
        width: 65%;
        padding-bottom: 0;
    }

    .cw-career-link-col {
        flex-direction: row;
    }
}

@media (min-width: 1160px) {
    .cw-senior-logo-img {
        width: 55%;
    }
}


/* -------------------- INTERNAL pages ---------------------- */
/* -------------------- About ---------------------- */
/* .page-about-us .textwithimage-img img {
    width: 450px !important;
    margin: 0 auto;
    max-width: 100%;
} */

.bg-lt-teal {
    background: #e8faf9;
}

/* Adjust 2nd image so it doesnt hit that 100% width and make it giant ===  */

.page-about-us section:nth-of-type(5) .lazy-image {
    font-weight: 600;
    width: 50% !important;
    margin: 0 auto;
}

/* -------------------- Services ---------------------- */

.modal-footer {
    border-top: 1px solid #e8faf9;
}

.modal-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    row-gap: 10px;
    column-gap: 10px;
}

@media (min-width: 768px) {
    .modal-container {
        grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    }
}

.modal-container .modal {
    padding-right: 0 !important;
}

.service-btn {
    width: 100%;
}

/* Stop hyphenation on button text  */
.page-services .btn:not(.form-control) {
    white-space: normal;
    overflow-wrap: normal;
    word-wrap: normal;
    hyphens: none;
}

/* .wb__services {
  font-size: 1.3rem;
}

.wb__services .wb__flexlist {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: stretch;
  margin: 2rem auto;
  padding-left: 0;
  list-style: none;
}

.wb__services .wb__flexlist li {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  min-width: 100px;
  flex-grow: 1;
  flex-basis: 99%;

  padding: 0.6rem 0.5rem;
  margin: 3px 0;
  background: rgba(141, 206, 203, 0.35);

  font-size: 1.2rem;
  font-weight: 700;
} */

/* -------------------- footer ---------------------- */

.wb__footer {
    border-bottom: 3px solid #fff;
    background: #01467a;
}

.wb__footer a img {
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .wb__services .wb__flexlist li {
        flex-basis: 48%;
        margin: 3px 4px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

    /*=============== LOGO IN NAVBAR ===============*/
    nav.navbar a.navbar-brand {
        display: block !important;
        background: url(https://apihoard.webit.com/api/v1/Image/218756EEC1B668DF7C446B52161BBC75/218756EEC1B668DF7C446B52161BBC75.png?size=800x600) no-repeat !important;
        background-size: contain !important;
        width: 250px !important;
        height: 200px;
        max-width: none;
        color: transparent !important;
        transition-duration: 0.1s;
    }

    nav.navbar.affix a.navbar-brand {
        width: 160px !important;
        height: 130px;
    }

    /*<!-- navbar-->*/
    .header .navbar-dark .navbar-nav .nav-link {
        line-height: 1em;
        border-radius: 50px;
    }

    .header .navbar .navbar-nav {
        justify-content: center;
    }

    .header .navbar .navbar-collapse.justify-content-center {
        justify-content: flex-end !important;
    }

    .header .header-container {
        background: var(--header-primary);
    }

    .header .header-container .navbar .container {
        -webkit-box-orient: horizontal !important;
        -webkit-box-direction: normal !important;
        -ms-flex-direction: row !important;
        flex-direction: row !important;
    }

    .header .navbar-expand-lg .navbar-nav .nav-link {
        font-weight: 400;
        text-transform: uppercase;
        font-size: 1rem;
        border: 1px solid var(--color-theme-primary);
        margin: 3px 3px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .wb__services .wb__flexlist li {
        font-size: 1.25rem;
    }

    .header .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 1.25rem;
    }
}


/*-------------------- REVIEWS --------------------*/

.cw-reviews {
    padding: 1rem 0 3rem;
}

.cw-reviews .cw-author {
    color: var(--color-theme-secondary);
    font-style: italic;
}

.cw-reviews .cw-carddeck {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: stretch;
    text-align: center;
}

.cw-reviews .cw-carddeck .cw-card-body {
    flex-grow: 1;
    border: 1px solid var(--color-theme-highlight);

    padding: 1rem;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;

    font-size: 1.2rem;
}

.cw-carddeck .fx-1 {
    flex-basis: 100%;
}

.cw-carddeck .fx-2 {
    flex-basis: 100%;
}

.cw-carddeck .fx-3 {
    flex-basis: 100%;
}

.cw-carddeck .fx-4 {
    flex-basis: 100%;
}

.cw-reviews .card-text {
    font-size: 1.1em;
}

.cw-reviews .fx-1 .card-text {
    font-size: 1.2em;
}

.cw-reviews .fx-2 .card-text {
    font-size: 1.1em;
}

.cw-reviews .fx-3 .card-text {
    font-size: 1em;
}


/* small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    /* .cw-carddeck .fx-1 {
        flex-basis: 50%;
    } */
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .cw-reviews .cw-carddeck .cw-card-body {
        padding: 1.5rem;
        font-size: 1.3rem;
    }

    .cw-carddeck .fx-1 {
        flex-basis: 40%;
    }

    .cw-carddeck .fx-2 {
        flex-basis: 60%;
    }

    .cw-carddeck .fx-3 {
        flex-basis: 100%;
    }
}

/* Large devices (desktops, 992px and up) The navbar toggle appears at this breakpoint */
@media (min-width: 992px) {

    .cw-reviews .cw-carddeck .cw-card-body {
        padding: 1.8rem;
    }

    .cw-carddeck .fx-1 {
        flex-basis: 33%;
    }

    .cw-carddeck .fx-2 {
        flex-basis: 50%;
    }

    .cw-carddeck .fx-3 {
        flex-basis: 100%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .cw-reviews .cw-carddeck .cw-card-body {
        padding: 2rem;
        font-size: 1.4rem;
    }

    .cw-carddeck .fx-1 {
        flex-basis: 33%;
    }

    .cw-carddeck .fx-2 {
        flex-basis: 50%;
    }

    .cw-carddeck .fx-3 {
        flex-basis: 66%;
    }
}