/* Custom CSS */

/* Font family override */
body, html, h1, h2, h3, h4, h5, h6, p, div, span, a, button, input, textarea, select {
  font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif !important;
}

/* Service Grid Title Styling */
.service-grid-title {
  font-size: 2.5rem;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}

@media (max-width: 768px) {
  .service-grid-title {
    font-size: 2.5rem !important;
  }
}

@media (max-width: 576px) {
  .service-grid-title {
    font-size: 2rem !important;
  }
}

/* navbar spacing 
@media (min-width: 1200px) {
  .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 1320px !important;
  }
}

@media (min-width: 1400px) {
  .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 1400px !important;
  }
} */

 #main-nav .container,
#main-nav .container-fluid {
  max-width: 1500px !important;
  padding-left: 1rem;
  padding-right: 1rem;
} 

.navbar-nav {
  margin-left: auto;
  margin-right: 1.5rem;
  text-align: center;
}

.extra-nav {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-phone-number {
  white-space: nowrap;
}

/* nuke the hard-coded heights */
.hero-section {
  min-height: auto !important;
  height: auto     !important;
}

#wrapper-navbar {
  height: fit-content;
  position: sticky;
  z-index: 999;
  top: 0;
  background-color: white;
  border-bottom: 1px solid lightgray;
}

/* Footer */
.social-media-container {
  display: flex;
  column-gap: 1em;
  row-gap: 1em;
}

.social-media-container img {
  /* Make social media icons black */
  filter: brightness(0);
  height: 36px;
  width: 36px;
}

/* Form Style */

#gform_wrapper_1,
#gform_wrapper_2,
#gform_wrapper_3 {
  background-color: #f5f5f5;
  padding: 40px;
}

.gform_heading {
  text-align: center !important;
  padding-bottom: 10px !important;
}

#gform_wrapper_2 .gform_title,
#gform_wrapper_1 .gform_title,
#gform_wrapper_3 .gform_title {
  font-size: 32px;
  font-weight: bold;
}

#gform_wrapper_2 .gform_fields,
#gform_wrapper_1 .gform_fields,
#gform_wrapper_3 .gform_fields {
  row-gap: 15px !important;
}

#gform_wrapper_2 input,
#gform_wrapper_2 select,
#gform_wrapper_1 input,
#gform_wrapper_1 select,
#gform_wrapper_1 textarea,
#gform_wrapper_3 input,
#gform_wrapper_3 select,
#gform_wrapper_3 textarea {
  border: 1px solid #999999;
  min-height: 50px;
}

#gform_wrapper_2 input[type='submit'],
#gform_wrapper_1 input[type='submit'],
#gform_wrapper_3 input[type='submit'] {
  border: 1px solid #c8102e;
  background: #d30000;
  color: #fff;
  font-size: 18px;
  padding: 12px 30px;
  font-weight: bold;
  letter-spacing: 1px;
  min-height: initial !important;
  margin: 0 auto;

}

.hero-section .wp-block-cover__image-background {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.hero-section {
  min-height: 60vh !important;
}



.service-card-wrapper {
  transition: 0.25s ease-in-out;
  margin-bottom: 2rem;

  .card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease-in-out
  }

}

.service-card-wrapper:hover {
  transform: scale(0.98);
  transition: 0.25s ease-in-out;
}

.landing-page-form-container #gform_wrapper_1 .gform_title {
  color: black;
}

.landing-page-form-container #gform_wrapper_1 .gform_required_legend {
  display: none;
}

.rounded-image img {
  border-radius: 12px !important;
}

.wp-block-image img {
  border-radius: 12px;
}

.intro-image img {
  border-radius: 12px;
}

/* Button Styles */
.wp-block-button__link {
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out !important;
}

.wp-block-button__link:hover {
  background-color: #fff !important;
  color: #d30000 !important;
  border: 1px solid #d30000 !important;
}




/* Header Button */
.blue-button-hover {
  background-color: transparent;
  border: 2px solid #003479;
  color: #003479 !important;
  border-radius: 60px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.blue-button-hover:hover {
  background-color: #003479 !important;
  color: #fff !important;
}

/* CTA Button Hover Effect */
.reference-btn {
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
  border: 1px solid transparent;
}

.reference-btn:hover {
  background-color: #fff !important;
  color: var(--wp--preset--color--accent) !important;
  border-color: var(--wp--preset--color--accent) !important;
}


/* Awards Section */
/* Modern Grid approach for awards */
.awards-section .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.awards-section .wp-block-column {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* style issues fixed */

figure table tr,
figure table tr td {
  border: none !important;
}

.logo-carousel-block img {
  width: 100%;
}

.logo-carousel-block .slick-slider .slick-slide>div {
  justify-content: center;
}

#no-title-page-wrapper {
  padding: 0px;
}

/* Locations + Areas Served + Areas */
.area-container-with-sidebar {
  display: grid;
  grid-template-columns: 0.75fr 0.25fr;
  column-gap: 2em;
  margin: 4em auto 4em auto;
  max-width: 75%;
}

.sidebar-areas-list-container {
  background-color: #f5f5f5;
  padding: 40px;
  height: fit-content;
  margin-bottom: 1em;
}

.active-area {
  text-decoration: underline !important;
}

.sidebar-areas-list {
  display: grid;
  row-gap: 0.25em;
  max-height: 200px;
  overflow-y: scroll;
  list-style-type: none;
  padding: 0;
  margin: 0;
  background: linear-gradient(rgb(245, 245, 245) 30%, rgba(255, 255, 255, 0)) center top, linear-gradient(rgba(255, 255, 255, 0), rgb(245, 245, 245) 70%) center bottom, radial-gradient(farthest-side at 50% 0, rgba(133, 133, 133, 0.2), rgba(0, 0, 0, 0)) center top, radial-gradient(farthest-side at 50% 100%, rgba(133, 133, 133, 0.2), rgba(0, 0, 0, 0)) center bottom;
  background-repeat: no-repeat;
  background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
  background-attachment: local, local, scroll, scroll;
}

.sidebar-areas-list a {
  text-decoration: none;
  font-size: 1.05rem;
}

.area-list-container h3 {
  margin-bottom: 20px;
}

ul.area-list-ul {
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: 1em;
  list-style: none;
  grid-template-columns: auto auto auto auto auto;
}

.sidebar-list-title {
  font-size: 1.25rem;
  font-weight: bold;
}

li.area-list-point::before {
  content: '';
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 0.556em;
  height: 0.556em;
  border-radius: 50%;
  background-color: black;
}

li.sidebar-list-point::before {
  content: unset;
}

li.sidebar-list-point {
  padding: unset;
}

li.area-list-point {
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  padding: 0.1em 0 0.1em 1.5em;
}

.header-landing-page .img-fluid {
  max-height: 80px;
  height: auto;
  width: auto;
}

.landing-page-form {
  background-color: rgba(255,255,255,0.85); 
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 0 auto;       
  box-sizing: border-box;
  max-width: 600px;     
  width: 100%;
  opacity: 90%;
}

/* Heading inside the form */
.landing-page-form h2,
.landing-page-form .wp-block-heading {
  line-height: 1.2;
  color: #80b3d6;
  text-align: center;
  margin-bottom: 0.5em;
}

/* Description paragraph inside form */
.landing-page-form p {
  line-height: 1.6;
  color: #333;
  max-width: 500px;
  margin: 0 auto 1.5em;  
  text-align: center;
}

/* Submit button inside form */
.landing-page-form .gform_footer input[type="submit"],
.landing-page-form #gform_submit_button_3.gform_button.button {
  width: 100% !important;
  padding: 18px 0;
  background: #80b3d6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.landing-page-form .gform_footer input[type="submit"]:hover,
.landing-page-form #gform_submit_button_3.gform_button.button:hover {
  background: #eff7ff;
  color: #003479;
}


.secondary-navbar {
  display: none;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card .card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  text-align: center;
}

.service-card:hover .card-overlay {
  opacity: 1;
}

.service-card .card-title,
.service-card a.text-primary {
  color: #fff !important;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card .card-img-top img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}


.cta-section-1 {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: black;
  padding: 3em 1em;
  text-align: center;
  border-radius: 12px;
  margin: 4em auto;
  max-width: 80%;
}

.finding-the-right-care-and-quality-care-cards {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: black;
  padding: clamp(1.5em, 4vw, 3em) clamp(0.75em, 2vw, 1em); /* Fluid padding */
  text-align: center;
  border-radius: 12px;
  margin: clamp(1.5em, 4vw, 4em) auto; /* Fluid margins */
  max-width: clamp(280px, 85vw, 80%); /* Responsive width */
  border: 2px solid #80b3d6;
  transition: box-shadow 0.3s ease-in-out;
}

.finding-the-right-care-and-quality-care-cards:hover {
  box-shadow: 0 8px 25px rgba(128, 179, 214, 0.4);
}

.understrap-read-more-link {
  background-color:#c8102e;
  border: 2px solid #c8102e;
}

.understrap-read-more-link:hover {
  background-color: white;
  color:#c8102e;
  border-color:#c8102e;
}


.wp-block-group.has-background .wp-block-columns {
    max-width: clamp(300px, 90vw, 1200px); 
    margin: 0 auto;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

@media only screen and (max-width: 767px) {
  .secondary-navbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    padding: 0;
  }

  .hero-section {
    min-height: 40vh !important;
  }


  .secondary-navbar a {
    width: 100%;
    padding: 1em;
    background-color: rgba(var(--bs-primary-rgb));
    color: var(--wp--preset--color--white);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    text-wrap: nowrap;
    font-size: calc(0.65rem + .9vw) !important
  }

  .second-nav-phone {
    border-right: 1px solid var(--wp--preset--color--white);
  }

  .secondary-landing-nav-phone {
    width: 100%;
    padding: 1em;
    background-color: #003479 !important;
    color: var(--wp--preset--color--white);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    text-wrap: nowrap;
    font-size: calc(0.65rem + .9vw) !important
  }

  .nav-phone-number {
    font-size: calc(0.75rem + .9vw) !important
  }

  .nav-phone-icon {
    font-size: calc(0.85rem + .9vw) !important
  }

  .secondary-landing-page-navbar {
    display: block;
    grid-template-columns: 1fr;
    padding: 1.5rem 0rem;
    width: auto;
    margin: 0 auto;
    max-width: 180px;
  }

  .header-landing-page .navbar .navbar-brand,
  .header-landing-page .navbar .custom-logo-link {
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    display: block !important;
    text-align: center !important;
  }

  .hero-text {
    line-height: 1;
  }

  .visible-only-on-desktop {
    display: none !important;
  }

  .area-container-with-sidebar {
    grid-template-columns: 1fr;
    max-width: 95%;
    row-gap: 2em;
  }

  ul.area-list-ul {
    grid-template-columns: auto;
    row-gap: 0.5em;
  }

  .header-landing-page .img-fluid {
    padding-right: 5rem !important;
  }

}

@media (min-width: 782px) and (max-width: 991px) {
  .landing-page-form-container {
    flex-basis: 55% !important;
  }
}

@media (max-width: 781px) {
  .finding-the-right-care-and-quality-care-cards {
    max-width: 95% !important;
    margin: 2em auto !important;
    padding: 2em 1em !important;
  }
}

/* ========================================
   BLOG STYLES
   ======================================== */

/* Blog Header Section */
.blog-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.blog-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #be1c30, #d30000);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.blog-card:hover::before {
    opacity: 1;
}

/* Blog Card Image */
.blog-card .image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.blog-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1.05) contrast(1.1);
}

.blog-card:hover .image-container img {
    transform: scale(1.08) rotate(1deg);
}

/* Blog Card Content */
.blog-card .content {
    padding: 2rem;
    position: relative;
}

.blog-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.blog-card h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
    background: linear-gradient(90deg, #be1c30, #be1c30) 0 100% / 0 2px no-repeat;
    transition: background-size 0.3s ease, color 0.3s ease;
}

.blog-card h2 a:hover {
    color: #be1c30;
    background-size: 100% 2px;
}

.blog-card .excerpt {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    min-height: 4.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Button */
.blog-card .understrap-read-more-link {
    background: linear-gradient(135deg, #be1c30 0%, #d30000 100%) !important;
    color: white !important;
    border: 2px solid transparent !important;
    padding: 0.875rem 2rem !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    position: relative !important;
    overflow: hidden !important;
}

.blog-card .understrap-read-more-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    transition: left 0.5s ease;
}

.blog-card .understrap-read-more-link:hover::before {
    left: 100%;
}

.blog-card .understrap-read-more-link:hover {
    background: white !important;
    color: #be1c30 !important;
    border-color: #be1c30 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(190, 28, 48, 0.3) !important;
    text-decoration: none !important;
}

.blog-card .understrap-read-more-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.blog-card .understrap-read-more-link:hover::after {
    transform: translateX(4px);
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.blog-pagination .page-info {
    font-weight: 600;
    color: #be1c30;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(190, 28, 48, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(190, 28, 48, 0.2);
}

.blog-pagination .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #be1c30 0%, #d30000 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(190, 28, 48, 0.3);
}

.blog-pagination .nav-link:hover {
    background: linear-gradient(135deg, #d30000 0%, #be1c30 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(190, 28, 48, 0.4);
}

.blog-pagination .nav-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.blog-pagination .nav-link:hover svg {
    transform: scale(1.2);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed #dee2e6;
    margin: 2rem 0;
}

.no-posts p {
    color: #6c757d;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .blog-container {
        padding: 2rem 1rem;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 3rem 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .blog-container {
        padding: 1.5rem 1rem;
    }
    
    .blog-card .content {
        padding: 1.5rem;
    }
    
    .blog-pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-pagination .page-info {
        order: 1;
    }
}

@media (max-width: 576px) {
    .blog-card .image-container {
        height: 180px;
    }
    
    .blog-card h2 {
        font-size: 1.3rem;
    }
    
    .blog-card .understrap-read-more-link {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.85rem !important;
    }
}

/* Loading Animation for Blog Cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

/* Focus States for Accessibility */
.blog-card .understrap-read-more-link:focus,
.blog-pagination .nav-link:focus {
    outline: 3px solid rgba(190, 28, 48, 0.5);
    outline-offset: 2px;
}

